Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Benjamin Peterson | 3b2abe9 | 2010-03-14 15:06:14 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 78962 . |
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 |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 720 | PKG_CONFIG |
| 721 | LIBFFI_INCLUDEDIR |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 722 | USE_SIGNAL_MODULE |
| 723 | SIGNAL_OBJS |
| 724 | USE_THREAD_MODULE |
| 725 | LDLAST |
| 726 | THREADOBJ |
| 727 | DLINCLDIR |
| 728 | DYNLOADFILE |
| 729 | MACHDEP_OBJS |
| 730 | TRUE |
| 731 | LIBOBJS |
| 732 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 733 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 734 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 735 | HAVE_GETHOSTBYNAME_R |
| 736 | HAVE_GETHOSTBYNAME |
| 737 | LIBM |
| 738 | LIBC |
| 739 | UNICODE_OBJS |
| 740 | THREADHEADERS |
| 741 | SRCDIRS |
| 742 | LTLIBOBJS' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 743 | ac_subst_files='' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 744 | ac_precious_vars='build_alias |
| 745 | host_alias |
| 746 | target_alias |
| 747 | CC |
| 748 | CFLAGS |
| 749 | LDFLAGS |
| 750 | LIBS |
| 751 | CPPFLAGS |
| 752 | CPP' |
| 753 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 754 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 755 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 756 | ac_init_help= |
| 757 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 758 | # The variables have the same names as the options, with |
| 759 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 760 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 761 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 762 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 763 | no_recursion= |
| 764 | prefix=NONE |
| 765 | program_prefix=NONE |
| 766 | program_suffix=NONE |
| 767 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 768 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 769 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 770 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 771 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 772 | x_includes=NONE |
| 773 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 774 | |
| 775 | # Installation directory options. |
| 776 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 777 | # and all the variables that are supposed to be based on exec_prefix |
| 778 | # by default will actually change. |
| 779 | # 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] | 780 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 781 | bindir='${exec_prefix}/bin' |
| 782 | sbindir='${exec_prefix}/sbin' |
| 783 | libexecdir='${exec_prefix}/libexec' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 784 | datarootdir='${prefix}/share' |
| 785 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 786 | sysconfdir='${prefix}/etc' |
| 787 | sharedstatedir='${prefix}/com' |
| 788 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 789 | includedir='${prefix}/include' |
| 790 | oldincludedir='/usr/include' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 791 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 792 | infodir='${datarootdir}/info' |
| 793 | htmldir='${docdir}' |
| 794 | dvidir='${docdir}' |
| 795 | pdfdir='${docdir}' |
| 796 | psdir='${docdir}' |
| 797 | libdir='${exec_prefix}/lib' |
| 798 | localedir='${datarootdir}/locale' |
| 799 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 800 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 801 | ac_prev= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 802 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 803 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 804 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 805 | # If the previous option needs an argument, assign it. |
| 806 | if test -n "$ac_prev"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 807 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 808 | ac_prev= |
| 809 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 810 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 811 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 812 | case $ac_option in |
| 813 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 814 | *) ac_optarg=yes ;; |
| 815 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 816 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 817 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 818 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 819 | case $ac_dashdash$ac_option in |
| 820 | --) |
| 821 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 822 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 823 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 824 | ac_prev=bindir ;; |
| 825 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 826 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 827 | |
| 828 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 829 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 830 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 831 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 832 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 833 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 834 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 835 | ac_prev=cache_file ;; |
| 836 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 837 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 838 | cache_file=$ac_optarg ;; |
| 839 | |
| 840 | --config-cache | -C) |
| 841 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 842 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 843 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 844 | ac_prev=datadir ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 845 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 846 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 847 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 848 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 849 | | --dataroo | --dataro | --datar) |
| 850 | ac_prev=datarootdir ;; |
| 851 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 852 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 853 | datarootdir=$ac_optarg ;; |
| 854 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 855 | -disable-* | --disable-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 856 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 857 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 858 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 859 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 860 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 861 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 862 | eval enable_$ac_feature=no ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 863 | |
| 864 | -docdir | --docdir | --docdi | --doc | --do) |
| 865 | ac_prev=docdir ;; |
| 866 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 867 | docdir=$ac_optarg ;; |
| 868 | |
| 869 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 870 | ac_prev=dvidir ;; |
| 871 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 872 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 873 | |
| 874 | -enable-* | --enable-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 875 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 876 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 877 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 878 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 879 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 880 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 881 | eval enable_$ac_feature=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 882 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 883 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 884 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 885 | | --exec | --exe | --ex) |
| 886 | ac_prev=exec_prefix ;; |
| 887 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 888 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 889 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 890 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 891 | |
| 892 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 893 | # Obsolete; use --with-gas. |
| 894 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 895 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 896 | -help | --help | --hel | --he | -h) |
| 897 | ac_init_help=long ;; |
| 898 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 899 | ac_init_help=recursive ;; |
| 900 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 901 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 902 | |
| 903 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 904 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 905 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 906 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 907 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 908 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 909 | ac_prev=htmldir ;; |
| 910 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 911 | | --ht=*) |
| 912 | htmldir=$ac_optarg ;; |
| 913 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 914 | -includedir | --includedir | --includedi | --included | --include \ |
| 915 | | --includ | --inclu | --incl | --inc) |
| 916 | ac_prev=includedir ;; |
| 917 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 918 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 919 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 920 | |
| 921 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 922 | ac_prev=infodir ;; |
| 923 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 924 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 925 | |
| 926 | -libdir | --libdir | --libdi | --libd) |
| 927 | ac_prev=libdir ;; |
| 928 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 929 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 930 | |
| 931 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 932 | | --libexe | --libex | --libe) |
| 933 | ac_prev=libexecdir ;; |
| 934 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 935 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 936 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 937 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 938 | -localedir | --localedir | --localedi | --localed | --locale) |
| 939 | ac_prev=localedir ;; |
| 940 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 941 | localedir=$ac_optarg ;; |
| 942 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 943 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 944 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 945 | ac_prev=localstatedir ;; |
| 946 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 947 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 948 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 949 | |
| 950 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 951 | ac_prev=mandir ;; |
| 952 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 953 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 954 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 955 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 956 | # Obsolete; use --without-fp. |
| 957 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 958 | |
| 959 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 960 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 961 | no_create=yes ;; |
| 962 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 963 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 964 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 965 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 966 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 967 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 968 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 969 | | --oldin | --oldi | --old | --ol | --o) |
| 970 | ac_prev=oldincludedir ;; |
| 971 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 972 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 973 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 974 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 975 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 976 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 977 | ac_prev=prefix ;; |
| 978 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 979 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 980 | |
| 981 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 982 | | --program-pre | --program-pr | --program-p) |
| 983 | ac_prev=program_prefix ;; |
| 984 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 985 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 986 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 987 | |
| 988 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 989 | | --program-suf | --program-su | --program-s) |
| 990 | ac_prev=program_suffix ;; |
| 991 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 992 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 993 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 994 | |
| 995 | -program-transform-name | --program-transform-name \ |
| 996 | | --program-transform-nam | --program-transform-na \ |
| 997 | | --program-transform-n | --program-transform- \ |
| 998 | | --program-transform | --program-transfor \ |
| 999 | | --program-transfo | --program-transf \ |
| 1000 | | --program-trans | --program-tran \ |
| 1001 | | --progr-tra | --program-tr | --program-t) |
| 1002 | ac_prev=program_transform_name ;; |
| 1003 | -program-transform-name=* | --program-transform-name=* \ |
| 1004 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1005 | | --program-transform-n=* | --program-transform-=* \ |
| 1006 | | --program-transform=* | --program-transfor=* \ |
| 1007 | | --program-transfo=* | --program-transf=* \ |
| 1008 | | --program-trans=* | --program-tran=* \ |
| 1009 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1010 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1011 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1012 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1013 | ac_prev=pdfdir ;; |
| 1014 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1015 | pdfdir=$ac_optarg ;; |
| 1016 | |
| 1017 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1018 | ac_prev=psdir ;; |
| 1019 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1020 | psdir=$ac_optarg ;; |
| 1021 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1022 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1023 | | -silent | --silent | --silen | --sile | --sil) |
| 1024 | silent=yes ;; |
| 1025 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1026 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1027 | ac_prev=sbindir ;; |
| 1028 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1029 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1030 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1031 | |
| 1032 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1033 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1034 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1035 | | --sha | --sh) |
| 1036 | ac_prev=sharedstatedir ;; |
| 1037 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1038 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1039 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1040 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1041 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1042 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1043 | -site | --site | --sit) |
| 1044 | ac_prev=site ;; |
| 1045 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1046 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1047 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1048 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1049 | ac_prev=srcdir ;; |
| 1050 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1051 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1052 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1053 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1054 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1055 | ac_prev=sysconfdir ;; |
| 1056 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1057 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1058 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1059 | |
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 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1062 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1063 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1064 | |
| 1065 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1066 | verbose=yes ;; |
| 1067 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1068 | -version | --version | --versio | --versi | --vers | -V) |
| 1069 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1070 | |
| 1071 | -with-* | --with-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1072 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1073 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1074 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1075 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1076 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1077 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1078 | eval with_$ac_package=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1079 | |
| 1080 | -without-* | --without-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1081 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1082 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1083 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1084 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1085 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1086 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1087 | eval with_$ac_package=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1088 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1089 | --x) |
| 1090 | # Obsolete; use --with-x. |
| 1091 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1092 | |
| 1093 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1094 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1095 | ac_prev=x_includes ;; |
| 1096 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1097 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1098 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1099 | |
| 1100 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1101 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1102 | ac_prev=x_libraries ;; |
| 1103 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1104 | | --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] | 1105 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1106 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1107 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1108 | Try \`$0 --help' for more information." >&2 |
| 1109 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1110 | ;; |
| 1111 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1112 | *=*) |
| 1113 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1114 | # Reject names that are not valid shell variable names. |
| 1115 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1116 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1117 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1118 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1119 | export $ac_envvar ;; |
| 1120 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1121 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1122 | # FIXME: should be removed in autoconf 3.0. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1123 | 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] | 1124 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1125 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1126 | : ${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] | 1127 | ;; |
| 1128 | |
| 1129 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1130 | done |
| 1131 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1132 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1133 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1134 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1135 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1136 | fi |
| 1137 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1138 | # Be sure to have absolute directory names. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1139 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1140 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1141 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1142 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1143 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1144 | eval ac_val=\$$ac_var |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1145 | case $ac_val in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1146 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1147 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1148 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1149 | { 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] | 1150 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1151 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1153 | # There might be people who depend on the old broken behavior: `$host' |
| 1154 | # used to hold the argument of --host etc. |
| 1155 | # FIXME: To remove some day. |
| 1156 | build=$build_alias |
| 1157 | host=$host_alias |
| 1158 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1159 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1160 | # FIXME: To remove some day. |
| 1161 | if test "x$host_alias" != x; then |
| 1162 | if test "x$build_alias" = x; then |
| 1163 | cross_compiling=maybe |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1164 | 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] | 1165 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1166 | elif test "x$build_alias" != "x$host_alias"; then |
| 1167 | cross_compiling=yes |
| 1168 | fi |
| 1169 | fi |
| 1170 | |
| 1171 | ac_tool_prefix= |
| 1172 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1173 | |
| 1174 | test "$silent" = yes && exec 6>/dev/null |
| 1175 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1176 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1177 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1178 | ac_ls_di=`ls -di .` && |
| 1179 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1180 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1181 | { (exit 1); exit 1; }; } |
| 1182 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1183 | { 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] | 1184 | { (exit 1); exit 1; }; } |
| 1185 | |
| 1186 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1187 | # Find the source files, if location was not specified. |
| 1188 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1189 | ac_srcdir_defaulted=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1190 | # Try the directory containing this script, then the parent directory. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1191 | ac_confdir=`$as_dirname -- "$0" || |
| 1192 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1193 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1194 | X"$0" : 'X\(//\)$' \| \ |
| 1195 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1196 | echo X"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1197 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1198 | s//\1/ |
| 1199 | q |
| 1200 | } |
| 1201 | /^X\(\/\/\)[^/].*/{ |
| 1202 | s//\1/ |
| 1203 | q |
| 1204 | } |
| 1205 | /^X\(\/\/\)$/{ |
| 1206 | s//\1/ |
| 1207 | q |
| 1208 | } |
| 1209 | /^X\(\/\).*/{ |
| 1210 | s//\1/ |
| 1211 | q |
| 1212 | } |
| 1213 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1214 | srcdir=$ac_confdir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1215 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1216 | srcdir=.. |
| 1217 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1218 | else |
| 1219 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1220 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1221 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1222 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1223 | { 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] | 1224 | { (exit 1); exit 1; }; } |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 1225 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1226 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1227 | ac_abs_confdir=`( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1228 | 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] | 1229 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1230 | pwd)` |
| 1231 | # When building in place, set srcdir=. |
| 1232 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1233 | srcdir=. |
| 1234 | fi |
| 1235 | # Remove unnecessary trailing slashes from srcdir. |
| 1236 | # Double slashes in file names in object file debugging info |
| 1237 | # mess up M-x gdb in Emacs. |
| 1238 | case $srcdir in |
| 1239 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1240 | esac |
| 1241 | for ac_var in $ac_precious_vars; do |
| 1242 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1243 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1244 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1245 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1246 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1247 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1248 | # |
| 1249 | # Report the --help message. |
| 1250 | # |
| 1251 | if test "$ac_init_help" = "long"; then |
| 1252 | # Omit some internal or obsolete options to make the list less imposing. |
| 1253 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1254 | cat <<_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1255 | \`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] | 1256 | |
| 1257 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1258 | |
| 1259 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1260 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1261 | |
| 1262 | Defaults for the options are specified in brackets. |
| 1263 | |
| 1264 | Configuration: |
| 1265 | -h, --help display this help and exit |
| 1266 | --help=short display options specific to this package |
| 1267 | --help=recursive display the short help of all the included packages |
| 1268 | -V, --version display version information and exit |
| 1269 | -q, --quiet, --silent do not print \`checking...' messages |
| 1270 | --cache-file=FILE cache test results in FILE [disabled] |
| 1271 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1272 | -n, --no-create do not create output files |
| 1273 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1274 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1275 | Installation directories: |
| 1276 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1277 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1278 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1279 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1280 | |
| 1281 | By default, \`make install' will install all the files in |
| 1282 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1283 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1284 | for instance \`--prefix=\$HOME'. |
| 1285 | |
| 1286 | For better control, use the options below. |
| 1287 | |
| 1288 | Fine tuning of the installation directories: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1289 | --bindir=DIR user executables [EPREFIX/bin] |
| 1290 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1291 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1292 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1293 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1294 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1295 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1296 | --includedir=DIR C header files [PREFIX/include] |
| 1297 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1298 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1299 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1300 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1301 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1302 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1303 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1304 | --htmldir=DIR html documentation [DOCDIR] |
| 1305 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1306 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1307 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1308 | _ACEOF |
| 1309 | |
| 1310 | cat <<\_ACEOF |
| 1311 | _ACEOF |
| 1312 | fi |
| 1313 | |
| 1314 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1315 | case $ac_init_help in |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1316 | short | recursive ) echo "Configuration of python 2.7:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1317 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1318 | cat <<\_ACEOF |
| 1319 | |
| 1320 | Optional Features: |
| 1321 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1322 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Brett Cannon | 91a1dec | 2008-02-13 19:15:44 +0000 | [diff] [blame] | 1323 | --enable-universalsdk[=SDKDIR] |
Brett Cannon | 9a8bb0e | 2008-02-03 02:07:55 +0000 | [diff] [blame] | 1324 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1325 | --enable-framework[=INSTALLDIR] |
| 1326 | Build (MacOSX|Darwin) framework |
| 1327 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1328 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1329 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 1330 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1331 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 1332 | --enable-big-digits[=BITS] |
| 1333 | use big digits for Python longs [BITS=30] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1334 | --enable-unicode[=ucs[24]] |
| 1335 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1336 | |
| 1337 | Optional Packages: |
| 1338 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1339 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1340 | --with-universal-archs=ARCH |
| 1341 | select architectures for universal build ("32-bit", |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 1342 | "64-bit", "3-way", "intel" or "all") |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1343 | --with-framework-name=FRAMEWORK |
| 1344 | specify an alternate name of the framework built |
| 1345 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1346 | --without-gcc never use gcc |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 1347 | --with-cxx-main=<compiler> |
| 1348 | compile main() and link python executable with C++ |
| 1349 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1350 | --with-suffix=.exe set executable suffix |
| 1351 | --with-pydebug build with Py_DEBUG defined |
| 1352 | --with-libs='lib1 ...' link against additional libs |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 1353 | --with-system-expat build pyexpat module using an installed expat |
| 1354 | library |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 1355 | --with-system-ffi build _ctypes module using an installed ffi library |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 1356 | --with-dbmliborder=db1:db2:... |
| 1357 | order to check db backends for dbm. Valid value is a |
| 1358 | colon separated string with the backend names |
| 1359 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1360 | --with-signal-module disable/enable signal module |
| 1361 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1362 | --with(out)-threads[=DIRECTORY] |
| 1363 | disable/enable thread support |
| 1364 | --with(out)-thread[=DIRECTORY] |
| 1365 | deprecated; use --with(out)-threads |
| 1366 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1367 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1368 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1369 | --with(out)-pymalloc disable/enable specialized mallocs |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 1370 | --with-valgrind Enable Valgrind support |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1371 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1372 | --with-fpectl enable SIGFPE catching |
| 1373 | --with-libm=STRING math library |
| 1374 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1375 | |
| 1376 | Some influential environment variables: |
| 1377 | CC C compiler command |
| 1378 | CFLAGS C compiler flags |
| 1379 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1380 | nonstandard directory <lib dir> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1381 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1382 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1383 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1384 | CPP C preprocessor |
| 1385 | |
| 1386 | Use these variables to override the choices made by `configure' or to help |
| 1387 | it to find libraries and programs with nonstandard names/locations. |
| 1388 | |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 1389 | Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1390 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1391 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1392 | fi |
| 1393 | |
| 1394 | if test "$ac_init_help" = "recursive"; then |
| 1395 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1396 | 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] | 1397 | test -d "$ac_dir" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1398 | ac_builddir=. |
| 1399 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1400 | case "$ac_dir" in |
| 1401 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1402 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1403 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1404 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1405 | 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] | 1406 | case $ac_top_builddir_sub in |
| 1407 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1408 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1409 | esac ;; |
| 1410 | esac |
| 1411 | ac_abs_top_builddir=$ac_pwd |
| 1412 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1413 | # for backward compatibility: |
| 1414 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1415 | |
| 1416 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1417 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1418 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1419 | ac_top_srcdir=$ac_top_builddir_sub |
| 1420 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1421 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1422 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1423 | ac_top_srcdir=$srcdir |
| 1424 | ac_abs_top_srcdir=$srcdir ;; |
| 1425 | *) # Relative name. |
| 1426 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1427 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1428 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1429 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1430 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1431 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1432 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1433 | # Check for guested configure. |
| 1434 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1435 | echo && |
| 1436 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1437 | elif test -f "$ac_srcdir/configure"; then |
| 1438 | echo && |
| 1439 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1440 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1441 | 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] | 1442 | fi || ac_status=$? |
| 1443 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1444 | done |
| 1445 | fi |
| 1446 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1447 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1448 | if $ac_init_version; then |
| 1449 | cat <<\_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1450 | python configure 2.7 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1451 | generated by GNU Autoconf 2.61 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1452 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1453 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1454 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1455 | This configure script is free software; the Free Software Foundation |
| 1456 | gives unlimited permission to copy, distribute and modify it. |
| 1457 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1458 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1459 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1460 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1461 | This file contains any messages produced by compilers while |
| 1462 | running configure, to aid debugging if configure makes a mistake. |
| 1463 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1464 | It was created by python $as_me 2.7, which was |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1465 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1466 | |
| 1467 | $ $0 $@ |
| 1468 | |
| 1469 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1470 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1471 | { |
| 1472 | cat <<_ASUNAME |
| 1473 | ## --------- ## |
| 1474 | ## Platform. ## |
| 1475 | ## --------- ## |
| 1476 | |
| 1477 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1478 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1479 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1480 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1481 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1482 | |
| 1483 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1484 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1485 | |
| 1486 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1487 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1488 | /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] | 1489 | /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] | 1490 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1491 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1492 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1493 | |
| 1494 | _ASUNAME |
| 1495 | |
| 1496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1497 | for as_dir in $PATH |
| 1498 | do |
| 1499 | IFS=$as_save_IFS |
| 1500 | test -z "$as_dir" && as_dir=. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1501 | echo "PATH: $as_dir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1502 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1503 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1504 | |
| 1505 | } >&5 |
| 1506 | |
| 1507 | cat >&5 <<_ACEOF |
| 1508 | |
| 1509 | |
| 1510 | ## ----------- ## |
| 1511 | ## Core tests. ## |
| 1512 | ## ----------- ## |
| 1513 | |
| 1514 | _ACEOF |
| 1515 | |
| 1516 | |
| 1517 | # Keep a trace of the command line. |
| 1518 | # 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] | 1519 | # 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] | 1520 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1521 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1522 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1523 | ac_configure_args0= |
| 1524 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1525 | ac_must_keep_next=false |
| 1526 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1527 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1528 | for ac_arg |
| 1529 | do |
| 1530 | case $ac_arg in |
| 1531 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1532 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1533 | | -silent | --silent | --silen | --sile | --sil) |
| 1534 | continue ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1535 | *\'*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1536 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1537 | esac |
| 1538 | case $ac_pass in |
| 1539 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1540 | 2) |
| 1541 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1542 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1543 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1544 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1545 | case $ac_arg in |
| 1546 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1547 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1548 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1549 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1550 | case "$ac_configure_args0 " in |
| 1551 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1552 | esac |
| 1553 | ;; |
| 1554 | -* ) ac_must_keep_next=true ;; |
| 1555 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1556 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1557 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1558 | ;; |
| 1559 | esac |
| 1560 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1561 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1562 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1563 | $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] | 1564 | |
| 1565 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1566 | # config.log. We remove comments because anyway the quotes in there |
| 1567 | # would cause problems or look ugly. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1568 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1569 | # 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] | 1570 | trap 'exit_status=$? |
| 1571 | # Save into config.log some information that might help in debugging. |
| 1572 | { |
| 1573 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1575 | cat <<\_ASBOX |
| 1576 | ## ---------------- ## |
| 1577 | ## Cache variables. ## |
| 1578 | ## ---------------- ## |
| 1579 | _ASBOX |
| 1580 | echo |
| 1581 | # 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] | 1582 | ( |
| 1583 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1584 | eval ac_val=\$$ac_var |
| 1585 | case $ac_val in #( |
| 1586 | *${as_nl}*) |
| 1587 | case $ac_var in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1588 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1589 | 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] | 1590 | esac |
| 1591 | case $ac_var in #( |
| 1592 | _ | IFS | as_nl) ;; #( |
| 1593 | *) $as_unset $ac_var ;; |
| 1594 | esac ;; |
| 1595 | esac |
| 1596 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1597 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1598 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1599 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1600 | sed -n \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1601 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1602 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1603 | ;; #( |
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 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1606 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1607 | esac | |
| 1608 | sort |
| 1609 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1610 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1611 | |
| 1612 | cat <<\_ASBOX |
| 1613 | ## ----------------- ## |
| 1614 | ## Output variables. ## |
| 1615 | ## ----------------- ## |
| 1616 | _ASBOX |
| 1617 | echo |
| 1618 | for ac_var in $ac_subst_vars |
| 1619 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1620 | eval ac_val=\$$ac_var |
| 1621 | case $ac_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1622 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1623 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1624 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1625 | done | sort |
| 1626 | echo |
| 1627 | |
| 1628 | if test -n "$ac_subst_files"; then |
| 1629 | cat <<\_ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1630 | ## ------------------- ## |
| 1631 | ## File substitutions. ## |
| 1632 | ## ------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1633 | _ASBOX |
| 1634 | echo |
| 1635 | for ac_var in $ac_subst_files |
| 1636 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1637 | eval ac_val=\$$ac_var |
| 1638 | case $ac_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1639 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1640 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1641 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1642 | done | sort |
| 1643 | echo |
| 1644 | fi |
| 1645 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1646 | if test -s confdefs.h; then |
| 1647 | cat <<\_ASBOX |
| 1648 | ## ----------- ## |
| 1649 | ## confdefs.h. ## |
| 1650 | ## ----------- ## |
| 1651 | _ASBOX |
| 1652 | echo |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1653 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1654 | echo |
| 1655 | fi |
| 1656 | test "$ac_signal" != 0 && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1657 | echo "$as_me: caught signal $ac_signal" |
| 1658 | echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1659 | } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1660 | rm -f core *.core core.conftest.* && |
| 1661 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1662 | exit $exit_status |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1663 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1664 | for ac_signal in 1 2 13 15; do |
| 1665 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1666 | done |
| 1667 | ac_signal=0 |
| 1668 | |
| 1669 | # 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] | 1670 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1671 | |
| 1672 | # Predefined preprocessor variables. |
| 1673 | |
| 1674 | cat >>confdefs.h <<_ACEOF |
| 1675 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1676 | _ACEOF |
| 1677 | |
| 1678 | |
| 1679 | cat >>confdefs.h <<_ACEOF |
| 1680 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1681 | _ACEOF |
| 1682 | |
| 1683 | |
| 1684 | cat >>confdefs.h <<_ACEOF |
| 1685 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1686 | _ACEOF |
| 1687 | |
| 1688 | |
| 1689 | cat >>confdefs.h <<_ACEOF |
| 1690 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1691 | _ACEOF |
| 1692 | |
| 1693 | |
| 1694 | cat >>confdefs.h <<_ACEOF |
| 1695 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1696 | _ACEOF |
| 1697 | |
| 1698 | |
| 1699 | # 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] | 1700 | # Prefer explicitly selected file to automatically selected ones. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1701 | if test -n "$CONFIG_SITE"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1702 | set x "$CONFIG_SITE" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1703 | elif test "x$prefix" != xNONE; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1704 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1705 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1706 | set x "$ac_default_prefix/share/config.site" \ |
| 1707 | "$ac_default_prefix/etc/config.site" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1708 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1709 | shift |
| 1710 | for ac_site_file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1711 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1712 | if test -r "$ac_site_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1713 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1714 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1715 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1716 | . "$ac_site_file" |
| 1717 | fi |
| 1718 | done |
| 1719 | |
| 1720 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1721 | # Some versions of bash will fail to source /dev/null (special |
| 1722 | # files actually), so we avoid doing that. |
| 1723 | if test -f "$cache_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1724 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1725 | echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1726 | case $cache_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1727 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1728 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1729 | esac |
| 1730 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1731 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1732 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1733 | echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1734 | >$cache_file |
| 1735 | fi |
| 1736 | |
| 1737 | # Check that the precious variables saved in the cache have kept the same |
| 1738 | # value. |
| 1739 | ac_cache_corrupted=false |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1740 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1741 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1742 | eval ac_new_set=\$ac_env_${ac_var}_set |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1743 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1744 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1745 | case $ac_old_set,$ac_new_set in |
| 1746 | set,) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1747 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1748 | 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] | 1749 | ac_cache_corrupted=: ;; |
| 1750 | ,set) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1751 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1752 | 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] | 1753 | ac_cache_corrupted=: ;; |
| 1754 | ,);; |
| 1755 | *) |
| 1756 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1757 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1758 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1759 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1760 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1761 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1762 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1763 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1764 | fi;; |
| 1765 | esac |
| 1766 | # Pass precious variables to config.status. |
| 1767 | if test "$ac_new_set" = set; then |
| 1768 | case $ac_new_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1769 | *\'*) 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] | 1770 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1771 | esac |
| 1772 | case " $ac_configure_args " in |
| 1773 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1774 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1775 | esac |
| 1776 | fi |
| 1777 | done |
| 1778 | if $ac_cache_corrupted; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1779 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1780 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1781 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1782 | 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] | 1783 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1784 | fi |
| 1785 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1786 | |
| 1787 | |
| 1788 | |
| 1789 | |
| 1790 | |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | |
| 1800 | |
| 1801 | |
| 1802 | |
| 1803 | |
| 1804 | |
| 1805 | |
| 1806 | |
| 1807 | |
| 1808 | |
| 1809 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1810 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1811 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1812 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1813 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1814 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1815 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1816 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1817 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1818 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1819 | |
| 1820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1821 | |
Georg Brandl | bcd64a3 | 2009-03-31 21:45:18 +0000 | [diff] [blame] | 1822 | if test "$prefix" != "/"; then |
| 1823 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 1824 | fi |
| 1825 | |
| 1826 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1827 | |
| 1828 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1829 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1830 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1831 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1832 | # with other autoconf-based packages that include Python.h |
| 1833 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1834 | rm confdefs.h |
| 1835 | mv confdefs.h.new confdefs.h |
| 1836 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1837 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1838 | VERSION=2.7 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1839 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1840 | |
| 1841 | SOVERSION=1.0 |
| 1842 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1843 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1844 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1845 | |
| 1846 | cat >>confdefs.h <<\_ACEOF |
| 1847 | #define _GNU_SOURCE 1 |
| 1848 | _ACEOF |
| 1849 | |
| 1850 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1851 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1852 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1853 | # them. |
| 1854 | |
| 1855 | cat >>confdefs.h <<\_ACEOF |
| 1856 | #define _NETBSD_SOURCE 1 |
| 1857 | _ACEOF |
| 1858 | |
| 1859 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1860 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1861 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1862 | # them. |
| 1863 | |
| 1864 | cat >>confdefs.h <<\_ACEOF |
| 1865 | #define __BSD_VISIBLE 1 |
| 1866 | _ACEOF |
| 1867 | |
| 1868 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1869 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1870 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1871 | |
| 1872 | cat >>confdefs.h <<\_ACEOF |
| 1873 | #define _BSD_TYPES 1 |
| 1874 | _ACEOF |
| 1875 | |
| 1876 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1877 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1878 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 1879 | # them. |
| 1880 | |
| 1881 | cat >>confdefs.h <<\_ACEOF |
| 1882 | #define _DARWIN_C_SOURCE 1 |
| 1883 | _ACEOF |
| 1884 | |
| 1885 | |
| 1886 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1887 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1888 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1889 | # Arguments passed to configure. |
| 1890 | |
| 1891 | CONFIG_ARGS="$ac_configure_args" |
| 1892 | |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 1893 | { echo "$as_me:$LINENO: checking for --enable-universalsdk" >&5 |
| 1894 | echo $ECHO_N "checking for --enable-universalsdk... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1895 | # Check whether --enable-universalsdk was given. |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1896 | if test "${enable_universalsdk+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1897 | enableval=$enable_universalsdk; |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1898 | case $enableval in |
| 1899 | yes) |
| 1900 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 1901 | if test ! -d "${enableval}" |
| 1902 | then |
| 1903 | enableval=/ |
| 1904 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1905 | ;; |
| 1906 | esac |
| 1907 | case $enableval in |
| 1908 | no) |
| 1909 | UNIVERSALSDK= |
| 1910 | enable_universalsdk= |
| 1911 | ;; |
| 1912 | *) |
| 1913 | UNIVERSALSDK=$enableval |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 1914 | if test ! -d "${UNIVERSALSDK}" |
| 1915 | then |
| 1916 | { { echo "$as_me:$LINENO: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&5 |
| 1917 | echo "$as_me: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&2;} |
| 1918 | { (exit 1); exit 1; }; } |
| 1919 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1920 | ;; |
| 1921 | esac |
| 1922 | |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 1923 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1924 | else |
| 1925 | |
| 1926 | UNIVERSALSDK= |
| 1927 | enable_universalsdk= |
| 1928 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1929 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1930 | |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 1931 | if test -n "${UNIVERSALSDK}" |
| 1932 | then |
| 1933 | { echo "$as_me:$LINENO: result: ${UNIVERSALSDK}" >&5 |
| 1934 | echo "${ECHO_T}${UNIVERSALSDK}" >&6; } |
| 1935 | else |
| 1936 | { echo "$as_me:$LINENO: result: no" >&5 |
| 1937 | echo "${ECHO_T}no" >&6; } |
| 1938 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1939 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1940 | |
Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 1941 | |
| 1942 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1943 | UNIVERSAL_ARCHS="32-bit" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 1944 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1945 | { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5 |
| 1946 | echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1947 | |
| 1948 | # Check whether --with-universal-archs was given. |
| 1949 | if test "${with_universal_archs+set}" = set; then |
| 1950 | withval=$with_universal_archs; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1951 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 1952 | echo "${ECHO_T}$withval" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1953 | UNIVERSAL_ARCHS="$withval" |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 1954 | if test "${enable_universalsdk}" ; then |
| 1955 | : |
| 1956 | else |
| 1957 | { { echo "$as_me:$LINENO: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&5 |
| 1958 | echo "$as_me: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&2;} |
| 1959 | { (exit 1); exit 1; }; } |
| 1960 | fi |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1961 | |
| 1962 | else |
| 1963 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1964 | { echo "$as_me:$LINENO: result: 32-bit" >&5 |
| 1965 | echo "${ECHO_T}32-bit" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1966 | |
| 1967 | fi |
| 1968 | |
| 1969 | |
| 1970 | |
| 1971 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1972 | |
| 1973 | # Check whether --with-framework-name was given. |
| 1974 | if test "${with_framework_name+set}" = set; then |
| 1975 | withval=$with_framework_name; |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 1976 | if test "${enable_framework}"; then |
| 1977 | : |
| 1978 | else |
| 1979 | { { echo "$as_me:$LINENO: error: --with-framework-name without --enable-framework. See Mac/README" >&5 |
| 1980 | echo "$as_me: error: --with-framework-name without --enable-framework. See Mac/README" >&2;} |
| 1981 | { (exit 1); exit 1; }; } |
| 1982 | fi |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1983 | PYTHONFRAMEWORK=${withval} |
| 1984 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 1985 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 1986 | |
| 1987 | else |
| 1988 | |
| 1989 | PYTHONFRAMEWORK=Python |
| 1990 | PYTHONFRAMEWORKDIR=Python.framework |
| 1991 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 1992 | |
| 1993 | fi |
| 1994 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1995 | # Check whether --enable-framework was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1996 | if test "${enable_framework+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1997 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1998 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1999 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2000 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2001 | esac |
| 2002 | case $enableval in |
| 2003 | no) |
| 2004 | PYTHONFRAMEWORK= |
| 2005 | PYTHONFRAMEWORKDIR=no-framework |
| 2006 | PYTHONFRAMEWORKPREFIX= |
| 2007 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2008 | FRAMEWORKINSTALLFIRST= |
| 2009 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2010 | FRAMEWORKALTINSTALLFIRST= |
| 2011 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2012 | if test "x${prefix}" = "xNONE"; then |
| 2013 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2014 | else |
| 2015 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2016 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2017 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2018 | ;; |
| 2019 | *) |
| 2020 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2021 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2022 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2023 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 2024 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
| 2025 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2026 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2027 | if test "x${prefix}" = "xNONE" ; then |
| 2028 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2029 | else |
| 2030 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2031 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2032 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2033 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2034 | # Add files for Mac specific code to the list of output |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2035 | # files: |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2036 | ac_config_files="$ac_config_files Mac/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2037 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2038 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2039 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2040 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2041 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2042 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 2043 | |
| 2044 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 2045 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2046 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2047 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2048 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2049 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2050 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2051 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2052 | PYTHONFRAMEWORKPREFIX= |
| 2053 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2054 | FRAMEWORKINSTALLFIRST= |
| 2055 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2056 | FRAMEWORKALTINSTALLFIRST= |
| 2057 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2058 | if test "x${prefix}" = "xNONE" ; then |
| 2059 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2060 | else |
| 2061 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2062 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2063 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2064 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2065 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2066 | fi |
| 2067 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2068 | |
| 2069 | |
| 2070 | |
| 2071 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2072 | |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2073 | |
| 2074 | |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2075 | |
| 2076 | |
| 2077 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2078 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2079 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 2080 | ## AC_HELP_STRING(--with-dyld, |
| 2081 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2082 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2083 | # Set name for machine-dependent library files |
| 2084 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2085 | { echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 2086 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2087 | if test -z "$MACHDEP" |
| 2088 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2089 | ac_sys_system=`uname -s` |
Georg Brandl | fe18a11 | 2009-09-04 07:55:14 +0000 | [diff] [blame] | 2090 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2091 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2092 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2093 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2094 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2095 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2096 | ac_md_system=`echo $ac_sys_system | |
| 2097 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 2098 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2099 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2100 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2101 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2102 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2103 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2104 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 2105 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2106 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2107 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2108 | esac |
| 2109 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2110 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2111 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 2112 | # disable features if it is defined, without any means to access these |
| 2113 | # features as extensions. For these systems, we skip the definition of |
| 2114 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 2115 | # some feature, make sure there is no alternative way to access this |
| 2116 | # feature. Also, when using wildcards, make sure you have verified the |
| 2117 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 2118 | # wildcard, and that the wildcard does not include future systems |
| 2119 | # (which may remove their limitations). |
| 2120 | case $ac_sys_system/$ac_sys_release in |
| 2121 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 2122 | # 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] | 2123 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Martin v. Löwis | 7875ef6 | 2010-02-15 21:41:12 +0000 | [diff] [blame] | 2124 | # In addition, Stefan Krah confirms that issue #1244610 exists through |
| 2125 | # OpenBSD 4.6, but is fixed in 4.7. |
| 2126 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123456]) |
Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 2127 | define_xopen_source=no |
| 2128 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2129 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2130 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2131 | |
| 2132 | cat >>confdefs.h <<\_ACEOF |
| 2133 | #define _BSD_SOURCE 1 |
| 2134 | _ACEOF |
| 2135 | |
| 2136 | ;; |
Martin v. Löwis | 7875ef6 | 2010-02-15 21:41:12 +0000 | [diff] [blame] | 2137 | OpenBSD/4.[789]) |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 2138 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2139 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2140 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2141 | |
| 2142 | cat >>confdefs.h <<\_ACEOF |
| 2143 | #define _BSD_SOURCE 1 |
| 2144 | _ACEOF |
| 2145 | |
| 2146 | ;; |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 2147 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 2148 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 2149 | # Marc Recht |
Benjamin Peterson | eac68f4 | 2008-11-16 17:54:55 +0000 | [diff] [blame] | 2150 | 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] | 2151 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 2152 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 2153 | # of union __?sigval. Reported by Stuart Bishop. |
| 2154 | SunOS/5.6) |
| 2155 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2156 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 2157 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2158 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 2159 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2160 | define_xopen_source=no;; |
| 2161 | # 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] | 2162 | # 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] | 2163 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2164 | define_xopen_source=no;; |
Martin v. Löwis | bb86d83 | 2008-11-04 20:40:09 +0000 | [diff] [blame] | 2165 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 2166 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 2167 | FreeBSD/4.*) |
| 2168 | define_xopen_source=no;; |
| 2169 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 2170 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 2171 | # identifies itself as Darwin/7.* |
| 2172 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2173 | # disables platform specific features beyond repair. |
| 2174 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2175 | # has no effect, don't bother defining them |
| 2176 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 2177 | define_xopen_source=no;; |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 2178 | Darwin/1[0-9].*) |
| 2179 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2180 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 2181 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 2182 | # 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] | 2183 | AIX/4) |
| 2184 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2185 | AIX/5) |
| 2186 | if test `uname -r` -eq 1; then |
| 2187 | define_xopen_source=no |
| 2188 | fi |
| 2189 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 2190 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 2191 | # defining NI_NUMERICHOST. |
| 2192 | QNX/6.3.2) |
| 2193 | define_xopen_source=no |
| 2194 | ;; |
Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 2195 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2196 | esac |
| 2197 | |
| 2198 | if test $define_xopen_source = yes |
| 2199 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2200 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 2201 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2202 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 2203 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2204 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2205 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2206 | |
| 2207 | cat >>confdefs.h <<\_ACEOF |
| 2208 | #define _XOPEN_SOURCE 500 |
| 2209 | _ACEOF |
| 2210 | |
| 2211 | ;; |
| 2212 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2213 | |
| 2214 | cat >>confdefs.h <<\_ACEOF |
| 2215 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2216 | _ACEOF |
| 2217 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2218 | ;; |
| 2219 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2220 | |
| 2221 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 2222 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 2223 | # several APIs are not declared. Since this is also needed in some |
| 2224 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2225 | # except for Solaris 10, where it must not be defined, |
| 2226 | # as it implies XPG4.2 |
| 2227 | case $ac_sys_system/$ac_sys_release in |
| 2228 | SunOS/5.10) |
| 2229 | ;; |
| 2230 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2231 | |
| 2232 | cat >>confdefs.h <<\_ACEOF |
| 2233 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 2234 | _ACEOF |
| 2235 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2236 | ;; |
| 2237 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2238 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2239 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2240 | cat >>confdefs.h <<\_ACEOF |
| 2241 | #define _POSIX_C_SOURCE 200112L |
| 2242 | _ACEOF |
| 2243 | |
| 2244 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2245 | fi |
| 2246 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2247 | # |
| 2248 | # SGI compilers allow the specification of the both the ABI and the |
| 2249 | # ISA on the command line. Depending on the values of these switches, |
| 2250 | # different and often incompatable code will be generated. |
| 2251 | # |
| 2252 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 2253 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 2254 | # variable is also adjusted. |
| 2255 | # |
| 2256 | |
| 2257 | if test ! -z "$SGI_ABI" |
| 2258 | then |
| 2259 | CC="cc $SGI_ABI" |
| 2260 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 2261 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 2262 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2263 | { echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 2264 | echo "${ECHO_T}$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2265 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2266 | # And add extra plat-mac for darwin |
| 2267 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2268 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2269 | { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 2270 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2271 | if test -z "$EXTRAPLATDIR" |
| 2272 | then |
| 2273 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2274 | darwin) |
| 2275 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 2276 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 2277 | ;; |
| 2278 | *) |
| 2279 | EXTRAPLATDIR="" |
| 2280 | EXTRAMACHDEPPATH="" |
| 2281 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2282 | esac |
| 2283 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2284 | { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 2285 | echo "${ECHO_T}$EXTRAPLATDIR" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2286 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2287 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 2288 | # it may influence the way we can build extensions, so distutils |
| 2289 | # needs to check it |
| 2290 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2291 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2292 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2293 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2294 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2295 | { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5 |
| 2296 | 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] | 2297 | ac_sys_machine=`uname -m` |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2298 | { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5 |
| 2299 | echo "${ECHO_T}$ac_sys_machine" >&6; } |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 2300 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2301 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2302 | |
| 2303 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 2304 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 2305 | # just to get things to compile and link. Users are free to override OPT |
| 2306 | # when running configure or make. The build should not break if they do. |
| 2307 | # BASECFLAGS should generally not be messed with, however. |
| 2308 | |
| 2309 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 2310 | # on that fiddles with OPT and BASECFLAGS? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2311 | { echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 2312 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2313 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2314 | # Check whether --with-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2315 | if test "${with_gcc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2316 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2317 | case $withval in |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 2318 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2319 | without_gcc=yes;; |
| 2320 | yes) CC=gcc |
| 2321 | without_gcc=no;; |
| 2322 | *) CC=$withval |
| 2323 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2324 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2325 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2326 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2327 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2328 | AIX*) CC=cc_r |
| 2329 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2330 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2331 | case $BE_HOST_CPU in |
| 2332 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2333 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2334 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2335 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 2336 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2337 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2338 | ;; |
| 2339 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2340 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2341 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2342 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2343 | ;; |
| 2344 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2345 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 2346 | 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] | 2347 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2348 | ;; |
| 2349 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2350 | AR="\$(srcdir)/Modules/ar_beos" |
| 2351 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2352 | ;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 2353 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 2354 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2355 | fi |
| 2356 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2357 | { echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 2358 | echo "${ECHO_T}$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2359 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2360 | # If the user switches compilers, we can't believe the cache |
| 2361 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 2362 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2363 | { { 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] | 2364 | (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] | 2365 | 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] | 2366 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 2367 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2368 | fi |
| 2369 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2370 | ac_ext=c |
| 2371 | ac_cpp='$CPP $CPPFLAGS' |
| 2372 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2373 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2374 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2375 | if test -n "$ac_tool_prefix"; then |
| 2376 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2377 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2378 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2380 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2382 | else |
| 2383 | if test -n "$CC"; then |
| 2384 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2385 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2387 | for as_dir in $PATH |
| 2388 | do |
| 2389 | IFS=$as_save_IFS |
| 2390 | test -z "$as_dir" && as_dir=. |
| 2391 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2392 | 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] | 2393 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2394 | 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] | 2395 | break 2 |
| 2396 | fi |
| 2397 | done |
| 2398 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2399 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2400 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2401 | fi |
| 2402 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2403 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2404 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2405 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2406 | echo "${ECHO_T}$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2407 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2408 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2409 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2410 | fi |
| 2411 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2412 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2413 | fi |
| 2414 | if test -z "$ac_cv_prog_CC"; then |
| 2415 | ac_ct_CC=$CC |
| 2416 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2417 | set dummy gcc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2418 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2420 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2422 | else |
| 2423 | if test -n "$ac_ct_CC"; then |
| 2424 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2425 | else |
| 2426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2427 | for as_dir in $PATH |
| 2428 | do |
| 2429 | IFS=$as_save_IFS |
| 2430 | test -z "$as_dir" && as_dir=. |
| 2431 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2432 | 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] | 2433 | ac_cv_prog_ac_ct_CC="gcc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2434 | 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] | 2435 | break 2 |
| 2436 | fi |
| 2437 | done |
| 2438 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2439 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2440 | |
| 2441 | fi |
| 2442 | fi |
| 2443 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2444 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2445 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2446 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2447 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2448 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2449 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2450 | fi |
| 2451 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2452 | if test "x$ac_ct_CC" = x; then |
| 2453 | CC="" |
| 2454 | else |
| 2455 | case $cross_compiling:$ac_tool_warned in |
| 2456 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2457 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2458 | whose name does not start with the host triplet. If you think this |
| 2459 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2460 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2461 | whose name does not start with the host triplet. If you think this |
| 2462 | 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] | 2463 | ac_tool_warned=yes ;; |
| 2464 | esac |
| 2465 | CC=$ac_ct_CC |
| 2466 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2467 | else |
| 2468 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2469 | fi |
| 2470 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2471 | if test -z "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2472 | if test -n "$ac_tool_prefix"; then |
| 2473 | # 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] | 2474 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2475 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2476 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2477 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2479 | else |
| 2480 | if test -n "$CC"; then |
| 2481 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2482 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2484 | for as_dir in $PATH |
| 2485 | do |
| 2486 | IFS=$as_save_IFS |
| 2487 | test -z "$as_dir" && as_dir=. |
| 2488 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2489 | 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] | 2490 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2491 | 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] | 2492 | break 2 |
| 2493 | fi |
| 2494 | done |
| 2495 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2496 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2497 | |
| 2498 | fi |
| 2499 | fi |
| 2500 | CC=$ac_cv_prog_CC |
| 2501 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2502 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2503 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2504 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2505 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2506 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2507 | fi |
| 2508 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2509 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2510 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2511 | fi |
| 2512 | if test -z "$CC"; then |
| 2513 | # Extract the first word of "cc", so it can be a program name with args. |
| 2514 | set dummy cc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2515 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2516 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2517 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2519 | else |
| 2520 | if test -n "$CC"; then |
| 2521 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2522 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2523 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2525 | for as_dir in $PATH |
| 2526 | do |
| 2527 | IFS=$as_save_IFS |
| 2528 | test -z "$as_dir" && as_dir=. |
| 2529 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2530 | 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] | 2531 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2532 | ac_prog_rejected=yes |
| 2533 | continue |
| 2534 | fi |
| 2535 | ac_cv_prog_CC="cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2536 | 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] | 2537 | break 2 |
| 2538 | fi |
| 2539 | done |
| 2540 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2541 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2542 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2543 | if test $ac_prog_rejected = yes; then |
| 2544 | # We found a bogon in the path, so make sure we never use it. |
| 2545 | set dummy $ac_cv_prog_CC |
| 2546 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2547 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2548 | # We chose a different compiler from the bogus one. |
| 2549 | # However, it has the same basename, so the bogon will be chosen |
| 2550 | # first if we set CC to just the basename; use the full file name. |
| 2551 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2552 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2553 | fi |
| 2554 | fi |
| 2555 | fi |
| 2556 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2557 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2558 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2559 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2560 | echo "${ECHO_T}$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2561 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2562 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2563 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2564 | fi |
| 2565 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2566 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2567 | fi |
| 2568 | if test -z "$CC"; then |
| 2569 | if test -n "$ac_tool_prefix"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2570 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2571 | do |
| 2572 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2573 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2574 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2575 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2576 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2578 | else |
| 2579 | if test -n "$CC"; then |
| 2580 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2581 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2583 | for as_dir in $PATH |
| 2584 | do |
| 2585 | IFS=$as_save_IFS |
| 2586 | test -z "$as_dir" && as_dir=. |
| 2587 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2588 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2589 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2590 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2591 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2592 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2593 | done |
| 2594 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2595 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2596 | |
| 2597 | fi |
| 2598 | fi |
| 2599 | CC=$ac_cv_prog_CC |
| 2600 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2601 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2602 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2603 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2604 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2605 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2606 | fi |
| 2607 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2608 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2609 | test -n "$CC" && break |
| 2610 | done |
| 2611 | fi |
| 2612 | if test -z "$CC"; then |
| 2613 | ac_ct_CC=$CC |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2614 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2615 | do |
| 2616 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2617 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2618 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2619 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2620 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2622 | else |
| 2623 | if test -n "$ac_ct_CC"; then |
| 2624 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2625 | else |
| 2626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2627 | for as_dir in $PATH |
| 2628 | do |
| 2629 | IFS=$as_save_IFS |
| 2630 | test -z "$as_dir" && as_dir=. |
| 2631 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2632 | 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] | 2633 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2634 | 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] | 2635 | break 2 |
| 2636 | fi |
| 2637 | done |
| 2638 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2639 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2640 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2641 | fi |
| 2642 | fi |
| 2643 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2644 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2645 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2646 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2647 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2648 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2649 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2650 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2651 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2652 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2653 | test -n "$ac_ct_CC" && break |
| 2654 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2655 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2656 | if test "x$ac_ct_CC" = x; then |
| 2657 | CC="" |
| 2658 | else |
| 2659 | case $cross_compiling:$ac_tool_warned in |
| 2660 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2661 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2662 | whose name does not start with the host triplet. If you think this |
| 2663 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2664 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2665 | whose name does not start with the host triplet. If you think this |
| 2666 | 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] | 2667 | ac_tool_warned=yes ;; |
| 2668 | esac |
| 2669 | CC=$ac_ct_CC |
| 2670 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2671 | fi |
| 2672 | |
| 2673 | fi |
| 2674 | |
| 2675 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2676 | 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] | 2677 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2678 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2679 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2680 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2681 | |
| 2682 | # Provide some information about the compiler. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2683 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2684 | ac_compiler=`set X $ac_compile; echo $2` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2685 | { (ac_try="$ac_compiler --version >&5" |
| 2686 | case "(($ac_try" in |
| 2687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2688 | *) ac_try_echo=$ac_try;; |
| 2689 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2691 | (eval "$ac_compiler --version >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2692 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2694 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2695 | { (ac_try="$ac_compiler -v >&5" |
| 2696 | case "(($ac_try" in |
| 2697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2698 | *) ac_try_echo=$ac_try;; |
| 2699 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2701 | (eval "$ac_compiler -v >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2702 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2704 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2705 | { (ac_try="$ac_compiler -V >&5" |
| 2706 | case "(($ac_try" in |
| 2707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2708 | *) ac_try_echo=$ac_try;; |
| 2709 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2711 | (eval "$ac_compiler -V >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2712 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2714 | (exit $ac_status); } |
| 2715 | |
| 2716 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2717 | /* confdefs.h. */ |
| 2718 | _ACEOF |
| 2719 | cat confdefs.h >>conftest.$ac_ext |
| 2720 | cat >>conftest.$ac_ext <<_ACEOF |
| 2721 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2722 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2723 | int |
| 2724 | main () |
| 2725 | { |
| 2726 | |
| 2727 | ; |
| 2728 | return 0; |
| 2729 | } |
| 2730 | _ACEOF |
| 2731 | ac_clean_files_save=$ac_clean_files |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2732 | 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] | 2733 | # Try to create an executable without -o first, disregard a.out. |
| 2734 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2735 | # of exeext. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2736 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2737 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2738 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2739 | # |
| 2740 | # List of possible output files, starting from the most likely. |
| 2741 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2742 | # only as a last resort. b.out is created by i960 compilers. |
| 2743 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2744 | # |
| 2745 | # The IRIX 6 linker writes into existing files which may not be |
| 2746 | # executable, retaining their permissions. Remove them first so a |
| 2747 | # subsequent execution test works. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2748 | ac_rmfiles= |
| 2749 | for ac_file in $ac_files |
| 2750 | do |
| 2751 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2752 | *.$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] | 2753 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2754 | esac |
| 2755 | done |
| 2756 | rm -f $ac_rmfiles |
| 2757 | |
| 2758 | if { (ac_try="$ac_link_default" |
| 2759 | case "(($ac_try" in |
| 2760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2761 | *) ac_try_echo=$ac_try;; |
| 2762 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2764 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2765 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2767 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2768 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2769 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2770 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2771 | # so that the user can short-circuit this test for compilers unknown to |
| 2772 | # Autoconf. |
| 2773 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2774 | do |
| 2775 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2776 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2777 | *.$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] | 2778 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2779 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2780 | # We found the default executable, but exeext='' is most |
| 2781 | # certainly right. |
| 2782 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2783 | *.* ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2784 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2785 | then :; else |
| 2786 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2787 | fi |
| 2788 | # We set ac_cv_exeext here because the later test for it is not |
| 2789 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2790 | # argument, so we may need to know it at that point already. |
| 2791 | # Even if this section looks crufty: it has the advantage of |
| 2792 | # actually working. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2793 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2794 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2795 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2796 | esac |
| 2797 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2798 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2799 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2800 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2801 | ac_file='' |
| 2802 | fi |
| 2803 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2804 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2805 | echo "${ECHO_T}$ac_file" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2806 | if test -z "$ac_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2807 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2809 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2810 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2811 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2812 | echo "$as_me: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2813 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2814 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2815 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2816 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2817 | ac_exeext=$ac_cv_exeext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2818 | |
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 the C compiler works" >&5 |
| 2822 | 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] | 2823 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2824 | # If not cross compiling, check that we can run a simple program. |
| 2825 | if test "$cross_compiling" != yes; then |
| 2826 | if { ac_try='./$ac_file' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2827 | { (case "(($ac_try" in |
| 2828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2829 | *) ac_try_echo=$ac_try;; |
| 2830 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2832 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2833 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2835 | (exit $ac_status); }; }; then |
| 2836 | cross_compiling=no |
| 2837 | else |
| 2838 | if test "$cross_compiling" = maybe; then |
| 2839 | cross_compiling=yes |
| 2840 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2841 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2842 | If you meant to cross compile, use \`--host'. |
| 2843 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2844 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2845 | If you meant to cross compile, use \`--host'. |
| 2846 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2847 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2848 | fi |
| 2849 | fi |
| 2850 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2851 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2852 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2853 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2854 | 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] | 2855 | ac_clean_files=$ac_clean_files_save |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2856 | # 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] | 2857 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2858 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2859 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2860 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2861 | echo "${ECHO_T}$cross_compiling" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2862 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2863 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2864 | 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] | 2865 | if { (ac_try="$ac_link" |
| 2866 | case "(($ac_try" in |
| 2867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2868 | *) ac_try_echo=$ac_try;; |
| 2869 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2871 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2872 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2874 | (exit $ac_status); }; then |
| 2875 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2876 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2877 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2878 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2879 | for ac_file in conftest.exe conftest conftest.*; do |
| 2880 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2881 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2882 | *.$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] | 2883 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2884 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2885 | * ) break;; |
| 2886 | esac |
| 2887 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2888 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2889 | { { 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] | 2890 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2891 | 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] | 2892 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2893 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2894 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2895 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2896 | rm -f conftest$ac_cv_exeext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2897 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2898 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2899 | |
| 2900 | rm -f conftest.$ac_ext |
| 2901 | EXEEXT=$ac_cv_exeext |
| 2902 | ac_exeext=$EXEEXT |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2903 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2904 | 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] | 2905 | if test "${ac_cv_objext+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2907 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2908 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2909 | /* confdefs.h. */ |
| 2910 | _ACEOF |
| 2911 | cat confdefs.h >>conftest.$ac_ext |
| 2912 | cat >>conftest.$ac_ext <<_ACEOF |
| 2913 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2914 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2915 | int |
| 2916 | main () |
| 2917 | { |
| 2918 | |
| 2919 | ; |
| 2920 | return 0; |
| 2921 | } |
| 2922 | _ACEOF |
| 2923 | rm -f conftest.o conftest.obj |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2924 | if { (ac_try="$ac_compile" |
| 2925 | case "(($ac_try" in |
| 2926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2927 | *) ac_try_echo=$ac_try;; |
| 2928 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2930 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2931 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2933 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2934 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2935 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2936 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2937 | *.$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] | 2938 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2939 | break;; |
| 2940 | esac |
| 2941 | done |
| 2942 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2943 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2945 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2946 | { { 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] | 2947 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2948 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2949 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2950 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2951 | fi |
| 2952 | |
| 2953 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2954 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2955 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2956 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2957 | OBJEXT=$ac_cv_objext |
| 2958 | ac_objext=$OBJEXT |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2959 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2960 | 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] | 2961 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2963 | else |
| 2964 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2965 | /* confdefs.h. */ |
| 2966 | _ACEOF |
| 2967 | cat confdefs.h >>conftest.$ac_ext |
| 2968 | cat >>conftest.$ac_ext <<_ACEOF |
| 2969 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2970 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2971 | int |
| 2972 | main () |
| 2973 | { |
| 2974 | #ifndef __GNUC__ |
| 2975 | choke me |
| 2976 | #endif |
| 2977 | |
| 2978 | ; |
| 2979 | return 0; |
| 2980 | } |
| 2981 | _ACEOF |
| 2982 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2983 | if { (ac_try="$ac_compile" |
| 2984 | case "(($ac_try" in |
| 2985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2986 | *) ac_try_echo=$ac_try;; |
| 2987 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2989 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2990 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2992 | rm -f conftest.er1 |
| 2993 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2995 | (exit $ac_status); } && { |
| 2996 | test -z "$ac_c_werror_flag" || |
| 2997 | test ! -s conftest.err |
| 2998 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2999 | ac_compiler_gnu=yes |
| 3000 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3001 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3003 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3004 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3005 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3006 | |
| 3007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3008 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3009 | |
| 3010 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3011 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3012 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 3013 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3014 | ac_test_CFLAGS=${CFLAGS+set} |
| 3015 | ac_save_CFLAGS=$CFLAGS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3016 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3017 | 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] | 3018 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3020 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3021 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3022 | ac_c_werror_flag=yes |
| 3023 | ac_cv_prog_cc_g=no |
| 3024 | CFLAGS="-g" |
| 3025 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3026 | /* confdefs.h. */ |
| 3027 | _ACEOF |
| 3028 | cat confdefs.h >>conftest.$ac_ext |
| 3029 | cat >>conftest.$ac_ext <<_ACEOF |
| 3030 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3031 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3032 | int |
| 3033 | main () |
| 3034 | { |
| 3035 | |
| 3036 | ; |
| 3037 | return 0; |
| 3038 | } |
| 3039 | _ACEOF |
| 3040 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3041 | if { (ac_try="$ac_compile" |
| 3042 | case "(($ac_try" in |
| 3043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3044 | *) ac_try_echo=$ac_try;; |
| 3045 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3047 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3048 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3050 | rm -f conftest.er1 |
| 3051 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3053 | (exit $ac_status); } && { |
| 3054 | test -z "$ac_c_werror_flag" || |
| 3055 | test ! -s conftest.err |
| 3056 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3057 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3058 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3059 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3061 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3062 | CFLAGS="" |
| 3063 | cat >conftest.$ac_ext <<_ACEOF |
| 3064 | /* confdefs.h. */ |
| 3065 | _ACEOF |
| 3066 | cat confdefs.h >>conftest.$ac_ext |
| 3067 | cat >>conftest.$ac_ext <<_ACEOF |
| 3068 | /* end confdefs.h. */ |
| 3069 | |
| 3070 | int |
| 3071 | main () |
| 3072 | { |
| 3073 | |
| 3074 | ; |
| 3075 | return 0; |
| 3076 | } |
| 3077 | _ACEOF |
| 3078 | rm -f conftest.$ac_objext |
| 3079 | if { (ac_try="$ac_compile" |
| 3080 | case "(($ac_try" in |
| 3081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3082 | *) ac_try_echo=$ac_try;; |
| 3083 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3085 | (eval "$ac_compile") 2>conftest.er1 |
| 3086 | ac_status=$? |
| 3087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3088 | rm -f conftest.er1 |
| 3089 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3091 | (exit $ac_status); } && { |
| 3092 | test -z "$ac_c_werror_flag" || |
| 3093 | test ! -s conftest.err |
| 3094 | } && test -s conftest.$ac_objext; then |
| 3095 | : |
| 3096 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3097 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3099 | |
| 3100 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3101 | CFLAGS="-g" |
| 3102 | cat >conftest.$ac_ext <<_ACEOF |
| 3103 | /* confdefs.h. */ |
| 3104 | _ACEOF |
| 3105 | cat confdefs.h >>conftest.$ac_ext |
| 3106 | cat >>conftest.$ac_ext <<_ACEOF |
| 3107 | /* end confdefs.h. */ |
| 3108 | |
| 3109 | int |
| 3110 | main () |
| 3111 | { |
| 3112 | |
| 3113 | ; |
| 3114 | return 0; |
| 3115 | } |
| 3116 | _ACEOF |
| 3117 | rm -f conftest.$ac_objext |
| 3118 | if { (ac_try="$ac_compile" |
| 3119 | case "(($ac_try" in |
| 3120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3121 | *) ac_try_echo=$ac_try;; |
| 3122 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3124 | (eval "$ac_compile") 2>conftest.er1 |
| 3125 | ac_status=$? |
| 3126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3127 | rm -f conftest.er1 |
| 3128 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3130 | (exit $ac_status); } && { |
| 3131 | test -z "$ac_c_werror_flag" || |
| 3132 | test ! -s conftest.err |
| 3133 | } && test -s conftest.$ac_objext; then |
| 3134 | ac_cv_prog_cc_g=yes |
| 3135 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3136 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3138 | |
| 3139 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3140 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3141 | |
| 3142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3143 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3144 | |
| 3145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3146 | fi |
| 3147 | |
| 3148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3149 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3150 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3151 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3152 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3153 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3154 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3155 | elif test $ac_cv_prog_cc_g = yes; then |
| 3156 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3157 | CFLAGS="-g -O2" |
| 3158 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3159 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3160 | fi |
| 3161 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3162 | if test "$GCC" = yes; then |
| 3163 | CFLAGS="-O2" |
| 3164 | else |
| 3165 | CFLAGS= |
| 3166 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3167 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3168 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3169 | 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] | 3170 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3172 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3173 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3174 | ac_save_CC=$CC |
| 3175 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3176 | /* confdefs.h. */ |
| 3177 | _ACEOF |
| 3178 | cat confdefs.h >>conftest.$ac_ext |
| 3179 | cat >>conftest.$ac_ext <<_ACEOF |
| 3180 | /* end confdefs.h. */ |
| 3181 | #include <stdarg.h> |
| 3182 | #include <stdio.h> |
| 3183 | #include <sys/types.h> |
| 3184 | #include <sys/stat.h> |
| 3185 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3186 | struct buf { int x; }; |
| 3187 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3188 | static char *e (p, i) |
| 3189 | char **p; |
| 3190 | int i; |
| 3191 | { |
| 3192 | return p[i]; |
| 3193 | } |
| 3194 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3195 | { |
| 3196 | char *s; |
| 3197 | va_list v; |
| 3198 | va_start (v,p); |
| 3199 | s = g (p, va_arg (v,int)); |
| 3200 | va_end (v); |
| 3201 | return s; |
| 3202 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3203 | |
| 3204 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3205 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3206 | 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] | 3207 | 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] | 3208 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3209 | 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] | 3210 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3211 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3212 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3213 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3214 | inside strings and character constants. */ |
| 3215 | #define FOO(x) 'x' |
| 3216 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3217 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3218 | int test (int i, double x); |
| 3219 | struct s1 {int (*f) (int a);}; |
| 3220 | struct s2 {int (*f) (double a);}; |
| 3221 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3222 | int argc; |
| 3223 | char **argv; |
| 3224 | int |
| 3225 | main () |
| 3226 | { |
| 3227 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3228 | ; |
| 3229 | return 0; |
| 3230 | } |
| 3231 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3232 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3233 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3234 | do |
| 3235 | CC="$ac_save_CC $ac_arg" |
| 3236 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3237 | if { (ac_try="$ac_compile" |
| 3238 | case "(($ac_try" in |
| 3239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3240 | *) ac_try_echo=$ac_try;; |
| 3241 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3243 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3244 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3245 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3246 | rm -f conftest.er1 |
| 3247 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3249 | (exit $ac_status); } && { |
| 3250 | test -z "$ac_c_werror_flag" || |
| 3251 | test ! -s conftest.err |
| 3252 | } && test -s conftest.$ac_objext; then |
| 3253 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3254 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3255 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3257 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3258 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3259 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3260 | |
| 3261 | rm -f core conftest.err conftest.$ac_objext |
| 3262 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3263 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3264 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3265 | CC=$ac_save_CC |
| 3266 | |
| 3267 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3268 | # AC_CACHE_VAL |
| 3269 | case "x$ac_cv_prog_cc_c89" in |
| 3270 | x) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3271 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3272 | echo "${ECHO_T}none needed" >&6; } ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3273 | xno) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3274 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3275 | echo "${ECHO_T}unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3276 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3277 | CC="$CC $ac_cv_prog_cc_c89" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3278 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3279 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3280 | esac |
| 3281 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3282 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3283 | ac_ext=c |
| 3284 | ac_cpp='$CPP $CPPFLAGS' |
| 3285 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3286 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3287 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3288 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3289 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3290 | |
| 3291 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3292 | { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 3293 | 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] | 3294 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3295 | # Check whether --with-cxx_main was given. |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3296 | if test "${with_cxx_main+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3297 | withval=$with_cxx_main; |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3298 | |
| 3299 | case $withval in |
| 3300 | no) with_cxx_main=no |
| 3301 | MAINCC='$(CC)';; |
| 3302 | yes) with_cxx_main=yes |
| 3303 | MAINCC='$(CXX)';; |
| 3304 | *) with_cxx_main=yes |
| 3305 | MAINCC=$withval |
| 3306 | if test -z "$CXX" |
| 3307 | then |
| 3308 | CXX=$withval |
| 3309 | fi;; |
| 3310 | esac |
| 3311 | else |
| 3312 | |
| 3313 | with_cxx_main=no |
| 3314 | MAINCC='$(CC)' |
| 3315 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3316 | fi |
| 3317 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3318 | { echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 3319 | echo "${ECHO_T}$with_cxx_main" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3320 | |
| 3321 | preset_cxx="$CXX" |
| 3322 | if test -z "$CXX" |
| 3323 | then |
| 3324 | case "$CC" in |
| 3325 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3326 | set dummy g++; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3327 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3328 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3329 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3331 | else |
| 3332 | case $CXX in |
| 3333 | [\\/]* | ?:[\\/]*) |
| 3334 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3335 | ;; |
| 3336 | *) |
| 3337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3338 | for as_dir in notfound |
| 3339 | do |
| 3340 | IFS=$as_save_IFS |
| 3341 | test -z "$as_dir" && as_dir=. |
| 3342 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3343 | 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] | 3344 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3345 | 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] | 3346 | break 2 |
| 3347 | fi |
| 3348 | done |
| 3349 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3350 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3351 | |
| 3352 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 3353 | ;; |
| 3354 | esac |
| 3355 | fi |
| 3356 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3357 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3358 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3359 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3360 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3361 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3362 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3363 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3364 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3365 | ;; |
| 3366 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 3367 | set dummy c++; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3368 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3369 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3370 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3372 | else |
| 3373 | case $CXX in |
| 3374 | [\\/]* | ?:[\\/]*) |
| 3375 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3376 | ;; |
| 3377 | *) |
| 3378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3379 | for as_dir in notfound |
| 3380 | do |
| 3381 | IFS=$as_save_IFS |
| 3382 | test -z "$as_dir" && as_dir=. |
| 3383 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3384 | 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] | 3385 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3386 | 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] | 3387 | break 2 |
| 3388 | fi |
| 3389 | done |
| 3390 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3391 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3392 | |
| 3393 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 3394 | ;; |
| 3395 | esac |
| 3396 | fi |
| 3397 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3398 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3399 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3400 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3401 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3402 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3403 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3404 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3405 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3406 | ;; |
| 3407 | esac |
| 3408 | if test "$CXX" = "notfound" |
| 3409 | then |
| 3410 | CXX="" |
| 3411 | fi |
| 3412 | fi |
| 3413 | if test -z "$CXX" |
| 3414 | then |
| 3415 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 3416 | do |
| 3417 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3418 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3419 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3420 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3421 | if test "${ac_cv_prog_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3423 | else |
| 3424 | if test -n "$CXX"; then |
| 3425 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3426 | else |
| 3427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3428 | for as_dir in $PATH |
| 3429 | do |
| 3430 | IFS=$as_save_IFS |
| 3431 | test -z "$as_dir" && as_dir=. |
| 3432 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3433 | 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] | 3434 | ac_cv_prog_CXX="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3435 | 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] | 3436 | break 2 |
| 3437 | fi |
| 3438 | done |
| 3439 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3440 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3441 | |
| 3442 | fi |
| 3443 | fi |
| 3444 | CXX=$ac_cv_prog_CXX |
| 3445 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3446 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3447 | echo "${ECHO_T}$CXX" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3448 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3449 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3450 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3451 | fi |
| 3452 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3453 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3454 | test -n "$CXX" && break |
| 3455 | done |
| 3456 | test -n "$CXX" || CXX="notfound" |
| 3457 | |
| 3458 | if test "$CXX" = "notfound" |
| 3459 | then |
| 3460 | CXX="" |
| 3461 | fi |
| 3462 | fi |
| 3463 | if test "$preset_cxx" != "$CXX" |
| 3464 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3465 | { echo "$as_me:$LINENO: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3466 | |
| 3467 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3468 | If this is not intended, then set CXX on the configure command line. |
| 3469 | " >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3470 | echo "$as_me: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3471 | |
| 3472 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3473 | If this is not intended, then set CXX on the configure command line. |
| 3474 | " >&2;} |
| 3475 | fi |
| 3476 | |
| 3477 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3478 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3479 | |
| 3480 | ac_ext=c |
| 3481 | ac_cpp='$CPP $CPPFLAGS' |
| 3482 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3485 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3486 | 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] | 3487 | # On Suns, sometimes $CPP names a directory. |
| 3488 | if test -n "$CPP" && test -d "$CPP"; then |
| 3489 | CPP= |
| 3490 | fi |
| 3491 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3492 | if test "${ac_cv_prog_CPP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3494 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3495 | # Double quotes because CPP needs to be expanded |
| 3496 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3497 | do |
| 3498 | ac_preproc_ok=false |
| 3499 | for ac_c_preproc_warn_flag in '' yes |
| 3500 | do |
| 3501 | # Use a header file that comes with gcc, so configuring glibc |
| 3502 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3503 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3504 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3505 | # 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] | 3506 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3507 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3508 | /* confdefs.h. */ |
| 3509 | _ACEOF |
| 3510 | cat confdefs.h >>conftest.$ac_ext |
| 3511 | cat >>conftest.$ac_ext <<_ACEOF |
| 3512 | /* end confdefs.h. */ |
| 3513 | #ifdef __STDC__ |
| 3514 | # include <limits.h> |
| 3515 | #else |
| 3516 | # include <assert.h> |
| 3517 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3518 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3536 | : |
| 3537 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3538 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3539 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3540 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3541 | # Broken: fails on valid input. |
| 3542 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3543 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3544 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3545 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3546 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3547 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3548 | # can be detected and how. |
| 3549 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3550 | /* confdefs.h. */ |
| 3551 | _ACEOF |
| 3552 | cat confdefs.h >>conftest.$ac_ext |
| 3553 | cat >>conftest.$ac_ext <<_ACEOF |
| 3554 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3555 | #include <ac_nonexistent.h> |
| 3556 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3557 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3558 | case "(($ac_try" in |
| 3559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3560 | *) ac_try_echo=$ac_try;; |
| 3561 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3563 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3564 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3565 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3566 | rm -f conftest.er1 |
| 3567 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3569 | (exit $ac_status); } >/dev/null && { |
| 3570 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3571 | test ! -s conftest.err |
| 3572 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3573 | # Broken: success on invalid input. |
| 3574 | continue |
| 3575 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3576 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3578 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3579 | # Passes both tests. |
| 3580 | ac_preproc_ok=: |
| 3581 | break |
| 3582 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3583 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3584 | rm -f conftest.err conftest.$ac_ext |
| 3585 | |
| 3586 | done |
| 3587 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3588 | rm -f conftest.err conftest.$ac_ext |
| 3589 | if $ac_preproc_ok; then |
| 3590 | break |
| 3591 | fi |
| 3592 | |
| 3593 | done |
| 3594 | ac_cv_prog_CPP=$CPP |
| 3595 | |
| 3596 | fi |
| 3597 | CPP=$ac_cv_prog_CPP |
| 3598 | else |
| 3599 | ac_cv_prog_CPP=$CPP |
| 3600 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3601 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3602 | echo "${ECHO_T}$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3603 | ac_preproc_ok=false |
| 3604 | for ac_c_preproc_warn_flag in '' yes |
| 3605 | do |
| 3606 | # Use a header file that comes with gcc, so configuring glibc |
| 3607 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3608 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3609 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3610 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3611 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3612 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3613 | /* confdefs.h. */ |
| 3614 | _ACEOF |
| 3615 | cat confdefs.h >>conftest.$ac_ext |
| 3616 | cat >>conftest.$ac_ext <<_ACEOF |
| 3617 | /* end confdefs.h. */ |
| 3618 | #ifdef __STDC__ |
| 3619 | # include <limits.h> |
| 3620 | #else |
| 3621 | # include <assert.h> |
| 3622 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3623 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | : |
| 3642 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3643 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3645 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3646 | # Broken: fails on valid input. |
| 3647 | continue |
| 3648 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3649 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3650 | rm -f conftest.err conftest.$ac_ext |
| 3651 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3652 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3653 | # can be detected and how. |
| 3654 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3655 | /* confdefs.h. */ |
| 3656 | _ACEOF |
| 3657 | cat confdefs.h >>conftest.$ac_ext |
| 3658 | cat >>conftest.$ac_ext <<_ACEOF |
| 3659 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3660 | #include <ac_nonexistent.h> |
| 3661 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3662 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3663 | case "(($ac_try" in |
| 3664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3665 | *) ac_try_echo=$ac_try;; |
| 3666 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3668 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3669 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3670 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3671 | rm -f conftest.er1 |
| 3672 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3674 | (exit $ac_status); } >/dev/null && { |
| 3675 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3676 | test ! -s conftest.err |
| 3677 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3678 | # Broken: success on invalid input. |
| 3679 | continue |
| 3680 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3681 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3684 | # Passes both tests. |
| 3685 | ac_preproc_ok=: |
| 3686 | break |
| 3687 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3688 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3689 | rm -f conftest.err conftest.$ac_ext |
| 3690 | |
| 3691 | done |
| 3692 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3693 | rm -f conftest.err conftest.$ac_ext |
| 3694 | if $ac_preproc_ok; then |
| 3695 | : |
| 3696 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3697 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3698 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3699 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3700 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3701 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3702 | fi |
| 3703 | |
| 3704 | ac_ext=c |
| 3705 | ac_cpp='$CPP $CPPFLAGS' |
| 3706 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3707 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3708 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3709 | |
| 3710 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3711 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3712 | 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] | 3713 | if test "${ac_cv_path_GREP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3715 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3716 | # Extract the first word of "grep ggrep" to use in msg output |
| 3717 | if test -z "$GREP"; then |
| 3718 | set dummy grep ggrep; ac_prog_name=$2 |
| 3719 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3721 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3722 | ac_path_GREP_found=false |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3723 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3725 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3726 | do |
| 3727 | IFS=$as_save_IFS |
| 3728 | test -z "$as_dir" && as_dir=. |
| 3729 | for ac_prog in grep ggrep; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3730 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3731 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3732 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3733 | # 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] | 3734 | # Check for GNU $ac_path_GREP |
| 3735 | case `"$ac_path_GREP" --version 2>&1` in |
| 3736 | *GNU*) |
| 3737 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3738 | *) |
| 3739 | ac_count=0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3740 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3741 | while : |
| 3742 | do |
| 3743 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3744 | mv "conftest.tmp" "conftest.in" |
| 3745 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3746 | echo 'GREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3747 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3748 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3749 | ac_count=`expr $ac_count + 1` |
| 3750 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3751 | # Best one so far, save it but keep looking for a better one |
| 3752 | ac_cv_path_GREP="$ac_path_GREP" |
| 3753 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3754 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3755 | # 10*(2^10) chars as input seems more than enough |
| 3756 | test $ac_count -gt 10 && break |
| 3757 | done |
| 3758 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3759 | esac |
| 3760 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3761 | |
| 3762 | $ac_path_GREP_found && break 3 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3763 | done |
| 3764 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3765 | |
| 3766 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3767 | IFS=$as_save_IFS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3768 | |
| 3769 | |
| 3770 | fi |
| 3771 | |
| 3772 | GREP="$ac_cv_path_GREP" |
| 3773 | if test -z "$GREP"; then |
| 3774 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3775 | 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] | 3776 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3777 | fi |
| 3778 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3779 | else |
| 3780 | ac_cv_path_GREP=$GREP |
| 3781 | fi |
| 3782 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3783 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3784 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3785 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3786 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3787 | GREP="$ac_cv_path_GREP" |
| 3788 | |
| 3789 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3790 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3791 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3792 | if test "${ac_cv_path_EGREP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3794 | else |
| 3795 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3796 | then ac_cv_path_EGREP="$GREP -E" |
| 3797 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3798 | # Extract the first word of "egrep" to use in msg output |
| 3799 | if test -z "$EGREP"; then |
| 3800 | set dummy egrep; ac_prog_name=$2 |
| 3801 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3803 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3804 | ac_path_EGREP_found=false |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3805 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3807 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3808 | do |
| 3809 | IFS=$as_save_IFS |
| 3810 | test -z "$as_dir" && as_dir=. |
| 3811 | for ac_prog in egrep; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3812 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3813 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3814 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3815 | # 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] | 3816 | # Check for GNU $ac_path_EGREP |
| 3817 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3818 | *GNU*) |
| 3819 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3820 | *) |
| 3821 | ac_count=0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3822 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3823 | while : |
| 3824 | do |
| 3825 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3826 | mv "conftest.tmp" "conftest.in" |
| 3827 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3828 | echo 'EGREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3829 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3830 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3831 | ac_count=`expr $ac_count + 1` |
| 3832 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3833 | # Best one so far, save it but keep looking for a better one |
| 3834 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3835 | ac_path_EGREP_max=$ac_count |
| 3836 | fi |
| 3837 | # 10*(2^10) chars as input seems more than enough |
| 3838 | test $ac_count -gt 10 && break |
| 3839 | done |
| 3840 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3841 | esac |
| 3842 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3843 | |
| 3844 | $ac_path_EGREP_found && break 3 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3845 | done |
| 3846 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3847 | |
| 3848 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3849 | IFS=$as_save_IFS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3850 | |
| 3851 | |
| 3852 | fi |
| 3853 | |
| 3854 | EGREP="$ac_cv_path_EGREP" |
| 3855 | if test -z "$EGREP"; then |
| 3856 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3857 | 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] | 3858 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3859 | fi |
| 3860 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3861 | else |
| 3862 | ac_cv_path_EGREP=$EGREP |
| 3863 | fi |
| 3864 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3865 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3866 | fi |
| 3867 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3868 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3869 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3870 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3871 | |
| 3872 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3873 | |
| 3874 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3875 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
| 3876 | cat >conftest.$ac_ext <<_ACEOF |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3877 | /* confdefs.h. */ |
| 3878 | _ACEOF |
| 3879 | cat confdefs.h >>conftest.$ac_ext |
| 3880 | cat >>conftest.$ac_ext <<_ACEOF |
| 3881 | /* end confdefs.h. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3882 | #ifdef _AIX |
| 3883 | yes |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3884 | #endif |
| 3885 | |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3886 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3887 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3888 | $EGREP "yes" >/dev/null 2>&1; then |
| 3889 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3890 | echo "${ECHO_T}yes" >&6; } |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3891 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3892 | #define _ALL_SOURCE 1 |
| 3893 | _ACEOF |
| 3894 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3895 | else |
| 3896 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3897 | echo "${ECHO_T}no" >&6; } |
| 3898 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 3899 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3900 | |
| 3901 | |
| 3902 | |
| 3903 | # Check for unsupported systems |
| 3904 | case $ac_sys_system/$ac_sys_release in |
| 3905 | atheos*|Linux*/1*) |
| 3906 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3907 | echo See README for details. |
| 3908 | exit 1;; |
| 3909 | esac |
| 3910 | |
| 3911 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3912 | { echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3913 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3914 | |
| 3915 | # Check whether --with-suffix was given. |
| 3916 | if test "${with_suffix+set}" = set; then |
| 3917 | withval=$with_suffix; |
| 3918 | case $withval in |
| 3919 | no) EXEEXT=;; |
| 3920 | yes) EXEEXT=.exe;; |
| 3921 | *) EXEEXT=$withval;; |
| 3922 | esac |
| 3923 | fi |
| 3924 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3925 | { echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3926 | echo "${ECHO_T}$EXEEXT" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3927 | |
| 3928 | # Test whether we're running on a non-case-sensitive system, in which |
| 3929 | # case we give a warning if no ext is given |
| 3930 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3931 | { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3932 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3933 | if test ! -d CaseSensitiveTestDir; then |
| 3934 | mkdir CaseSensitiveTestDir |
| 3935 | fi |
| 3936 | |
| 3937 | if test -d casesensitivetestdir |
| 3938 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3939 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3940 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3941 | BUILDEXEEXT=.exe |
| 3942 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3943 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3944 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3945 | BUILDEXEEXT=$EXEEXT |
| 3946 | fi |
| 3947 | rmdir CaseSensitiveTestDir |
| 3948 | |
| 3949 | case $MACHDEP in |
| 3950 | bsdos*) |
| 3951 | case $CC in |
| 3952 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3953 | esac;; |
| 3954 | esac |
| 3955 | |
| 3956 | case $ac_sys_system in |
| 3957 | hp*|HP*) |
| 3958 | case $CC in |
| 3959 | cc|*/cc) CC="$CC -Ae";; |
| 3960 | esac;; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3961 | SunOS*) |
| 3962 | # Some functions have a prototype only with that define, e.g. confstr |
| 3963 | |
| 3964 | cat >>confdefs.h <<\_ACEOF |
| 3965 | #define __EXTENSIONS__ 1 |
| 3966 | _ACEOF |
| 3967 | |
| 3968 | ;; |
| 3969 | esac |
| 3970 | |
| 3971 | |
| 3972 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3973 | { echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3974 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3975 | if test -z "$LIBRARY" |
| 3976 | then |
| 3977 | LIBRARY='libpython$(VERSION).a' |
| 3978 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3979 | { echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3980 | echo "${ECHO_T}$LIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3981 | |
| 3982 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 3983 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3984 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3985 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3986 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3987 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3988 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3989 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 3990 | # |
| 3991 | # RUNSHARED is used to run shared python without installed libraries |
| 3992 | # |
| 3993 | # INSTSONAME is the name of the shared library that will be use to install |
| 3994 | # on the system - some systems like version suffix, others don't |
| 3995 | |
| 3996 | |
| 3997 | |
| 3998 | |
| 3999 | |
| 4000 | |
| 4001 | LDLIBRARY="$LIBRARY" |
| 4002 | BLDLIBRARY='$(LDLIBRARY)' |
| 4003 | INSTSONAME='$(LDLIBRARY)' |
| 4004 | DLLLIBRARY='' |
| 4005 | LDLIBRARYDIR='' |
| 4006 | RUNSHARED='' |
| 4007 | |
| 4008 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 4009 | # If CXX is set, and if it is needed to link a main function that was |
| 4010 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 4011 | # python might then depend on the C++ runtime |
| 4012 | # This is altered for AIX in order to build the export list before |
| 4013 | # linking. |
| 4014 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4015 | { echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 4016 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4017 | if test -z "$LINKCC" |
| 4018 | then |
| 4019 | LINKCC='$(PURIFY) $(MAINCC)' |
| 4020 | case $ac_sys_system in |
| 4021 | AIX*) |
| 4022 | exp_extra="\"\"" |
| 4023 | if test $ac_sys_release -ge 5 -o \ |
| 4024 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 4025 | exp_extra="." |
| 4026 | fi |
| 4027 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4028 | QNX*) |
| 4029 | # qcc must be used because the other compilers do not |
| 4030 | # support -N. |
| 4031 | LINKCC=qcc;; |
| 4032 | esac |
| 4033 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4034 | { echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 4035 | echo "${ECHO_T}$LINKCC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4036 | |
| 4037 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 4038 | # make sure we default having it set to "no": this is used by |
| 4039 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 4040 | # to linker command lines, and failing to detect GNU ld simply results |
| 4041 | # in the same bahaviour as before. |
| 4042 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4043 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4044 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4045 | ac_prog=ld |
| 4046 | if test "$GCC" = yes; then |
| 4047 | ac_prog=`$CC -print-prog-name=ld` |
| 4048 | fi |
| 4049 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 4050 | *GNU*) |
| 4051 | GNULD=yes;; |
| 4052 | *) |
| 4053 | GNULD=no;; |
| 4054 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4055 | { echo "$as_me:$LINENO: result: $GNULD" >&5 |
| 4056 | echo "${ECHO_T}$GNULD" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4057 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4058 | { echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 4059 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4060 | # Check whether --enable-shared was given. |
| 4061 | if test "${enable_shared+set}" = set; then |
| 4062 | enableval=$enable_shared; |
| 4063 | fi |
| 4064 | |
| 4065 | |
| 4066 | if test -z "$enable_shared" |
| 4067 | then |
| 4068 | case $ac_sys_system in |
| 4069 | CYGWIN* | atheos*) |
| 4070 | enable_shared="yes";; |
| 4071 | *) |
| 4072 | enable_shared="no";; |
| 4073 | esac |
| 4074 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4075 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 4076 | echo "${ECHO_T}$enable_shared" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4077 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4078 | { echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 4079 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4080 | # Check whether --enable-profiling was given. |
| 4081 | if test "${enable_profiling+set}" = set; then |
| 4082 | enableval=$enable_profiling; ac_save_cc="$CC" |
| 4083 | CC="$CC -pg" |
| 4084 | if test "$cross_compiling" = yes; then |
| 4085 | ac_enable_profiling="no" |
| 4086 | else |
| 4087 | cat >conftest.$ac_ext <<_ACEOF |
| 4088 | /* confdefs.h. */ |
| 4089 | _ACEOF |
| 4090 | cat confdefs.h >>conftest.$ac_ext |
| 4091 | cat >>conftest.$ac_ext <<_ACEOF |
| 4092 | /* end confdefs.h. */ |
| 4093 | int main() { return 0; } |
| 4094 | _ACEOF |
| 4095 | rm -f conftest$ac_exeext |
| 4096 | if { (ac_try="$ac_link" |
| 4097 | case "(($ac_try" in |
| 4098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4099 | *) ac_try_echo=$ac_try;; |
| 4100 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4102 | (eval "$ac_link") 2>&5 |
| 4103 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4105 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4106 | { (case "(($ac_try" in |
| 4107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4108 | *) ac_try_echo=$ac_try;; |
| 4109 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4111 | (eval "$ac_try") 2>&5 |
| 4112 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4114 | (exit $ac_status); }; }; then |
| 4115 | ac_enable_profiling="yes" |
| 4116 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4117 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4118 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4120 | |
| 4121 | ( exit $ac_status ) |
| 4122 | ac_enable_profiling="no" |
| 4123 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4124 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4125 | fi |
| 4126 | |
| 4127 | |
| 4128 | CC="$ac_save_cc" |
| 4129 | fi |
| 4130 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4131 | { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 4132 | echo "${ECHO_T}$ac_enable_profiling" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4133 | |
| 4134 | case "$ac_enable_profiling" in |
| 4135 | "yes") |
| 4136 | BASECFLAGS="-pg $BASECFLAGS" |
| 4137 | LDFLAGS="-pg $LDFLAGS" |
| 4138 | ;; |
| 4139 | esac |
| 4140 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4141 | { echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 4142 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4143 | |
| 4144 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4145 | # library that we build, but we do not want to link against it (we |
| 4146 | # will find it with a -framework option). For this reason there is an |
| 4147 | # extra variable BLDLIBRARY against which Python and the extension |
| 4148 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4149 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 4150 | if test "$enable_framework" |
| 4151 | then |
| 4152 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 4153 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 4154 | BLDLIBRARY='' |
| 4155 | else |
| 4156 | BLDLIBRARY='$(LDLIBRARY)' |
| 4157 | fi |
| 4158 | |
| 4159 | # Other platforms follow |
| 4160 | if test $enable_shared = "yes"; then |
| 4161 | |
| 4162 | cat >>confdefs.h <<\_ACEOF |
| 4163 | #define Py_ENABLE_SHARED 1 |
| 4164 | _ACEOF |
| 4165 | |
| 4166 | case $ac_sys_system in |
| 4167 | BeOS*) |
| 4168 | LDLIBRARY='libpython$(VERSION).so' |
| 4169 | ;; |
| 4170 | CYGWIN*) |
| 4171 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4172 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4173 | ;; |
| 4174 | SunOS*) |
| 4175 | LDLIBRARY='libpython$(VERSION).so' |
| 4176 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4177 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4178 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4179 | ;; |
| 4180 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
| 4181 | LDLIBRARY='libpython$(VERSION).so' |
| 4182 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4183 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4184 | case $ac_sys_system in |
| 4185 | FreeBSD*) |
| 4186 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4187 | ;; |
| 4188 | esac |
| 4189 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4190 | ;; |
| 4191 | hp*|HP*) |
| 4192 | case `uname -m` in |
| 4193 | ia64) |
| 4194 | LDLIBRARY='libpython$(VERSION).so' |
| 4195 | ;; |
| 4196 | *) |
| 4197 | LDLIBRARY='libpython$(VERSION).sl' |
| 4198 | ;; |
| 4199 | esac |
| 4200 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4201 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 4202 | ;; |
| 4203 | OSF*) |
| 4204 | LDLIBRARY='libpython$(VERSION).so' |
| 4205 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 4206 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4207 | ;; |
| 4208 | atheos*) |
| 4209 | LDLIBRARY='libpython$(VERSION).so' |
| 4210 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4211 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4212 | ;; |
| 4213 | Darwin*) |
| 4214 | LDLIBRARY='libpython$(VERSION).dylib' |
| 4215 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4216 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 4217 | ;; |
| 4218 | |
| 4219 | esac |
| 4220 | else # shared is disabled |
| 4221 | case $ac_sys_system in |
| 4222 | CYGWIN*) |
| 4223 | BLDLIBRARY='$(LIBRARY)' |
| 4224 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4225 | ;; |
| 4226 | esac |
| 4227 | fi |
| 4228 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4229 | { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 4230 | echo "${ECHO_T}$LDLIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4231 | |
| 4232 | if test -n "$ac_tool_prefix"; then |
| 4233 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4234 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4235 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4236 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4237 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4239 | else |
| 4240 | if test -n "$RANLIB"; then |
| 4241 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4242 | else |
| 4243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4244 | for as_dir in $PATH |
| 4245 | do |
| 4246 | IFS=$as_save_IFS |
| 4247 | test -z "$as_dir" && as_dir=. |
| 4248 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4249 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4250 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4251 | 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] | 4252 | break 2 |
| 4253 | fi |
| 4254 | done |
| 4255 | done |
| 4256 | IFS=$as_save_IFS |
| 4257 | |
| 4258 | fi |
| 4259 | fi |
| 4260 | RANLIB=$ac_cv_prog_RANLIB |
| 4261 | if test -n "$RANLIB"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4262 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4263 | echo "${ECHO_T}$RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4264 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4265 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4266 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4267 | fi |
| 4268 | |
| 4269 | |
| 4270 | fi |
| 4271 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4272 | ac_ct_RANLIB=$RANLIB |
| 4273 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4274 | set dummy ranlib; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4275 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4276 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4277 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4279 | else |
| 4280 | if test -n "$ac_ct_RANLIB"; then |
| 4281 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4282 | else |
| 4283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4284 | for as_dir in $PATH |
| 4285 | do |
| 4286 | IFS=$as_save_IFS |
| 4287 | test -z "$as_dir" && as_dir=. |
| 4288 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4289 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4290 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4291 | 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] | 4292 | break 2 |
| 4293 | fi |
| 4294 | done |
| 4295 | done |
| 4296 | IFS=$as_save_IFS |
| 4297 | |
| 4298 | fi |
| 4299 | fi |
| 4300 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4301 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4302 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4303 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4304 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4305 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4306 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4307 | fi |
| 4308 | |
| 4309 | if test "x$ac_ct_RANLIB" = x; then |
| 4310 | RANLIB=":" |
| 4311 | else |
| 4312 | case $cross_compiling:$ac_tool_warned in |
| 4313 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4314 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4315 | whose name does not start with the host triplet. If you think this |
| 4316 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4317 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4318 | whose name does not start with the host triplet. If you think this |
| 4319 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4320 | ac_tool_warned=yes ;; |
| 4321 | esac |
| 4322 | RANLIB=$ac_ct_RANLIB |
| 4323 | fi |
| 4324 | else |
| 4325 | RANLIB="$ac_cv_prog_RANLIB" |
| 4326 | fi |
| 4327 | |
| 4328 | |
| 4329 | for ac_prog in ar aal |
| 4330 | do |
| 4331 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4332 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4333 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4334 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4335 | if test "${ac_cv_prog_AR+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4337 | else |
| 4338 | if test -n "$AR"; then |
| 4339 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4340 | else |
| 4341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4342 | for as_dir in $PATH |
| 4343 | do |
| 4344 | IFS=$as_save_IFS |
| 4345 | test -z "$as_dir" && as_dir=. |
| 4346 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4347 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4348 | ac_cv_prog_AR="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4349 | 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] | 4350 | break 2 |
| 4351 | fi |
| 4352 | done |
| 4353 | done |
| 4354 | IFS=$as_save_IFS |
| 4355 | |
| 4356 | fi |
| 4357 | fi |
| 4358 | AR=$ac_cv_prog_AR |
| 4359 | if test -n "$AR"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4360 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 4361 | echo "${ECHO_T}$AR" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4362 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4363 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4364 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4365 | fi |
| 4366 | |
| 4367 | |
| 4368 | test -n "$AR" && break |
| 4369 | done |
| 4370 | test -n "$AR" || AR="ar" |
| 4371 | |
| 4372 | |
| 4373 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 4374 | |
| 4375 | if test -z "$ARFLAGS" |
| 4376 | then |
| 4377 | ARFLAGS="rc" |
| 4378 | fi |
| 4379 | |
| 4380 | |
| 4381 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 4382 | set dummy svnversion; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4383 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4384 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4385 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4387 | else |
| 4388 | if test -n "$SVNVERSION"; then |
| 4389 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 4390 | else |
| 4391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4392 | for as_dir in $PATH |
| 4393 | do |
| 4394 | IFS=$as_save_IFS |
| 4395 | test -z "$as_dir" && as_dir=. |
| 4396 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4397 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4398 | ac_cv_prog_SVNVERSION="found" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4399 | 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] | 4400 | break 2 |
| 4401 | fi |
| 4402 | done |
| 4403 | done |
| 4404 | IFS=$as_save_IFS |
| 4405 | |
| 4406 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| 4407 | fi |
| 4408 | fi |
| 4409 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 4410 | if test -n "$SVNVERSION"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4411 | { echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 4412 | echo "${ECHO_T}$SVNVERSION" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4413 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4414 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4415 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4416 | fi |
| 4417 | |
| 4418 | |
| 4419 | if test $SVNVERSION = found |
| 4420 | then |
| 4421 | SVNVERSION="svnversion \$(srcdir)" |
| 4422 | else |
| 4423 | SVNVERSION="echo Unversioned directory" |
| 4424 | fi |
| 4425 | |
| 4426 | case $MACHDEP in |
| 4427 | bsdos*|hp*|HP*) |
| 4428 | # install -d does not work on BSDI or HP-UX |
| 4429 | if test -z "$INSTALL" |
| 4430 | then |
| 4431 | INSTALL="${srcdir}/install-sh -c" |
| 4432 | fi |
| 4433 | esac |
| 4434 | ac_aux_dir= |
| 4435 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 4436 | if test -f "$ac_dir/install-sh"; then |
| 4437 | ac_aux_dir=$ac_dir |
| 4438 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4439 | break |
| 4440 | elif test -f "$ac_dir/install.sh"; then |
| 4441 | ac_aux_dir=$ac_dir |
| 4442 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4443 | break |
| 4444 | elif test -f "$ac_dir/shtool"; then |
| 4445 | ac_aux_dir=$ac_dir |
| 4446 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4447 | break |
| 4448 | fi |
| 4449 | done |
| 4450 | if test -z "$ac_aux_dir"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4451 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 4452 | 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] | 4453 | { (exit 1); exit 1; }; } |
| 4454 | fi |
| 4455 | |
| 4456 | # These three variables are undocumented and unsupported, |
| 4457 | # and are intended to be withdrawn in a future Autoconf release. |
| 4458 | # They can cause serious problems if a builder's source tree is in a directory |
| 4459 | # whose full name contains unusual characters. |
| 4460 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 4461 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 4462 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 4463 | |
| 4464 | |
| 4465 | # Find a good install program. We prefer a C program (faster), |
| 4466 | # so one script is as good as another. But avoid the broken or |
| 4467 | # incompatible versions: |
| 4468 | # SysV /etc/install, /usr/sbin/install |
| 4469 | # SunOS /usr/etc/install |
| 4470 | # IRIX /sbin/install |
| 4471 | # AIX /bin/install |
| 4472 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4473 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4474 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4475 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4476 | # OS/2's system install, which has a completely different semantic |
| 4477 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4478 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4479 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4480 | if test -z "$INSTALL"; then |
| 4481 | if test "${ac_cv_path_install+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4483 | else |
| 4484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4485 | for as_dir in $PATH |
| 4486 | do |
| 4487 | IFS=$as_save_IFS |
| 4488 | test -z "$as_dir" && as_dir=. |
| 4489 | # Account for people who put trailing slashes in PATH elements. |
| 4490 | case $as_dir/ in |
| 4491 | ./ | .// | /cC/* | \ |
| 4492 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4493 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4494 | /usr/ucb/* ) ;; |
| 4495 | *) |
| 4496 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4497 | # Don't use installbsd from OSF since it installs stuff as root |
| 4498 | # by default. |
| 4499 | for ac_prog in ginstall scoinst install; do |
| 4500 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4501 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 4502 | if test $ac_prog = install && |
| 4503 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4504 | # AIX install. It has an incompatible calling convention. |
| 4505 | : |
| 4506 | elif test $ac_prog = install && |
| 4507 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4508 | # program-specific install script used by HP pwplus--don't use. |
| 4509 | : |
| 4510 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4511 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4512 | break 3 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4513 | fi |
| 4514 | fi |
| 4515 | done |
| 4516 | done |
| 4517 | ;; |
| 4518 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4519 | done |
| 4520 | IFS=$as_save_IFS |
| 4521 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4522 | |
| 4523 | fi |
| 4524 | if test "${ac_cv_path_install+set}" = set; then |
| 4525 | INSTALL=$ac_cv_path_install |
| 4526 | else |
| 4527 | # As a last resort, use the slow shell script. Don't cache a |
| 4528 | # value for INSTALL within a source directory, because that will |
| 4529 | # break other packages using the cache if that directory is |
| 4530 | # removed, or if the value is a relative name. |
| 4531 | INSTALL=$ac_install_sh |
| 4532 | fi |
| 4533 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4534 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4535 | echo "${ECHO_T}$INSTALL" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4536 | |
| 4537 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4538 | # It thinks the first close brace ends the variable substitution. |
| 4539 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4540 | |
| 4541 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4542 | |
| 4543 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4544 | |
| 4545 | |
| 4546 | # Not every filesystem supports hard links |
| 4547 | |
| 4548 | if test -z "$LN" ; then |
| 4549 | case $ac_sys_system in |
| 4550 | BeOS*) LN="ln -s";; |
| 4551 | CYGWIN*) LN="ln -s";; |
| 4552 | atheos*) LN="ln -s";; |
| 4553 | *) LN=ln;; |
| 4554 | esac |
| 4555 | fi |
| 4556 | |
| 4557 | # Check for --with-pydebug |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4558 | { echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 4559 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4560 | |
| 4561 | # Check whether --with-pydebug was given. |
| 4562 | if test "${with_pydebug+set}" = set; then |
| 4563 | withval=$with_pydebug; |
| 4564 | if test "$withval" != no |
| 4565 | then |
| 4566 | |
| 4567 | cat >>confdefs.h <<\_ACEOF |
| 4568 | #define Py_DEBUG 1 |
| 4569 | _ACEOF |
| 4570 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4571 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4572 | echo "${ECHO_T}yes" >&6; }; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4573 | Py_DEBUG='true' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4574 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 4575 | echo "${ECHO_T}no" >&6; }; Py_DEBUG='false' |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4576 | fi |
| 4577 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4578 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4579 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4580 | fi |
| 4581 | |
| 4582 | |
| 4583 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 4584 | # merged with this chunk of code? |
| 4585 | |
| 4586 | # Optimizer/debugger flags |
| 4587 | # ------------------------ |
| 4588 | # (The following bit of code is complicated enough - please keep things |
| 4589 | # indented properly. Just pretend you're editing Python code. ;-) |
| 4590 | |
| 4591 | # There are two parallel sets of case statements below, one that checks to |
| 4592 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 4593 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 4594 | # user set OPT. |
| 4595 | |
| 4596 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 4597 | # it on the command line |
| 4598 | |
Benjamin Peterson | 3281067 | 2010-03-09 21:43:36 +0000 | [diff] [blame] | 4599 | if test "${OPT-unset}" == "unset" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4600 | then |
| 4601 | case $GCC in |
| 4602 | yes) |
| 4603 | if test "$CC" != 'g++' ; then |
| 4604 | STRICT_PROTO="-Wstrict-prototypes" |
| 4605 | fi |
| 4606 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 4607 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 4608 | WRAP="-fwrapv" |
| 4609 | fi |
| 4610 | case $ac_cv_prog_cc_g in |
| 4611 | yes) |
| 4612 | if test "$Py_DEBUG" = 'true' ; then |
| 4613 | # Optimization messes up debuggers, so turn it off for |
| 4614 | # debug builds. |
| 4615 | OPT="-g -Wall $STRICT_PROTO" |
| 4616 | else |
| 4617 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 4618 | fi |
| 4619 | ;; |
| 4620 | *) |
| 4621 | OPT="-O3 -Wall $STRICT_PROTO" |
| 4622 | ;; |
| 4623 | esac |
| 4624 | case $ac_sys_system in |
| 4625 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 4626 | ;; |
| 4627 | esac |
| 4628 | ;; |
| 4629 | |
| 4630 | *) |
| 4631 | OPT="-O" |
| 4632 | ;; |
| 4633 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4634 | fi |
| 4635 | |
| 4636 | |
| 4637 | |
| 4638 | # The -arch flags for universal builds on OSX |
| 4639 | UNIVERSAL_ARCH_FLAGS= |
| 4640 | |
| 4641 | |
| 4642 | # tweak BASECFLAGS based on compiler and platform |
| 4643 | case $GCC in |
| 4644 | yes) |
| 4645 | # Python violates C99 rules, by casting between incompatible |
| 4646 | # pointer types. GCC may generate bad code as a result of that, |
| 4647 | # so use -fno-strict-aliasing if supported. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4648 | { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 4649 | 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] | 4650 | ac_save_cc="$CC" |
| 4651 | CC="$CC -fno-strict-aliasing" |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 4652 | if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then |
| 4653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4654 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4655 | cat >conftest.$ac_ext <<_ACEOF |
| 4656 | /* confdefs.h. */ |
| 4657 | _ACEOF |
| 4658 | cat confdefs.h >>conftest.$ac_ext |
| 4659 | cat >>conftest.$ac_ext <<_ACEOF |
| 4660 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4661 | |
| 4662 | int |
| 4663 | main () |
| 4664 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4665 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4666 | ; |
| 4667 | return 0; |
| 4668 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4669 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4670 | rm -f conftest.$ac_objext |
| 4671 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4672 | case "(($ac_try" in |
| 4673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4674 | *) ac_try_echo=$ac_try;; |
| 4675 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4677 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4678 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4679 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4680 | rm -f conftest.er1 |
| 4681 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4683 | (exit $ac_status); } && { |
| 4684 | test -z "$ac_c_werror_flag" || |
| 4685 | test ! -s conftest.err |
| 4686 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4687 | ac_cv_no_strict_aliasing_ok=yes |
| 4688 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4689 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4691 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4692 | ac_cv_no_strict_aliasing_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4693 | fi |
| 4694 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 4696 | fi |
| 4697 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4698 | CC="$ac_save_cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4699 | { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 4700 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4701 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 4702 | then |
| 4703 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 4704 | fi |
| 4705 | |
| 4706 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 4707 | # support. Without this, treatment of subnormals doesn't follow |
| 4708 | # the standard. |
| 4709 | case $ac_sys_machine in |
| 4710 | alpha*) |
| 4711 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4712 | ;; |
| 4713 | esac |
| 4714 | |
| 4715 | case $ac_sys_system in |
| 4716 | SCO_SV*) |
| 4717 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 4718 | ;; |
| 4719 | # is there any other compiler on Darwin besides gcc? |
| 4720 | Darwin*) |
| 4721 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 4722 | # used to be here, but non-Apple gcc doesn't accept them. |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4723 | if test "${CC}" = gcc |
| 4724 | then |
| 4725 | { echo "$as_me:$LINENO: checking which compiler should be used" >&5 |
| 4726 | echo $ECHO_N "checking which compiler should be used... $ECHO_C" >&6; } |
| 4727 | case "${UNIVERSALSDK}" in |
| 4728 | */MacOSX10.4u.sdk) |
| 4729 | # Build using 10.4 SDK, force usage of gcc when the |
| 4730 | # compiler is gcc, otherwise the user will get very |
| 4731 | # confusing error messages when building on OSX 10.6 |
| 4732 | CC=gcc-4.0 |
| 4733 | CPP=cpp-4.0 |
| 4734 | ;; |
| 4735 | esac |
| 4736 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 4737 | echo "${ECHO_T}$CC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4738 | fi |
| 4739 | |
| 4740 | # Calculate the right deployment target for this build. |
| 4741 | # |
| 4742 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4743 | if test ${cur_target} '>' 10.2; then |
| 4744 | cur_target=10.3 |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4745 | if test ${enable_universalsdk}; then |
| 4746 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 4747 | # Ensure that the default platform for a |
| 4748 | # 4-way universal build is OSX 10.5, |
| 4749 | # that's the first OS release where |
| 4750 | # 4-way builds make sense. |
| 4751 | cur_target='10.5' |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 4752 | |
| 4753 | elif test "${UNIVERSAL_ARCHS}" = "3-way"; then |
| 4754 | cur_target='10.5' |
| 4755 | |
| 4756 | elif test "${UNIVERSAL_ARCHS}" = "intel"; then |
| 4757 | cur_target='10.5' |
| 4758 | |
| 4759 | elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then |
| 4760 | cur_target='10.5' |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4761 | fi |
| 4762 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 4763 | if test `/usr/bin/arch` = "i386"; then |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4764 | # On Intel macs default to a deployment |
| 4765 | # target of 10.4, that's the first OSX |
| 4766 | # release with Intel support. |
| 4767 | cur_target="10.4" |
| 4768 | fi |
| 4769 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4770 | fi |
| 4771 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 4772 | |
| 4773 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 4774 | # environment with a value that is the same as what we'll use |
| 4775 | # in the Makefile to ensure that we'll get the same compiler |
| 4776 | # environment during configure and build time. |
| 4777 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 4778 | export MACOSX_DEPLOYMENT_TARGET |
| 4779 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 4780 | |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4781 | if test "${enable_universalsdk}"; then |
| 4782 | UNIVERSAL_ARCH_FLAGS="" |
| 4783 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
| 4784 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 4785 | ARCH_RUN_32BIT="" |
| 4786 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
| 4787 | |
| 4788 | |
| 4789 | # You have to use different flags on various versions of |
| 4790 | # OSX to extract PPC code from an universal binary, basically |
| 4791 | # '-arch ppc' on OSX 10.4 and '-arch ppc7400' on anything |
| 4792 | # newer. |
| 4793 | # Because '-arch pp7400' works on OSX 10.5 or higher this |
| 4794 | # test is only present in the '32-bit' branch, all other |
| 4795 | # branches require OSX 10.5 to compile. |
| 4796 | |
| 4797 | { echo "$as_me:$LINENO: checking lipo flag for extracting ppc code" >&5 |
| 4798 | echo $ECHO_N "checking lipo flag for extracting ppc code... $ECHO_C" >&6; } |
| 4799 | FN="test.$$" |
| 4800 | cat >${FN}.c <<-EOF |
| 4801 | int main() { return 0; } |
| 4802 | EOF |
| 4803 | ${CC} ${CFLAGS} -arch ppc -arch i386 -o ${FN} ${FN}.c -isysroot ${UNIVERSALSDK} |
| 4804 | if test $? != 0 ; then |
| 4805 | rm ${FN} ${FN}.c |
| 4806 | { echo "$as_me:$LINENO: result: failed, assumee -extract ppc7400" >&5 |
| 4807 | echo "${ECHO_T}failed, assumee -extract ppc7400" >&6; } |
| 4808 | else |
| 4809 | lipo -extract -output "${FN}.out" -arch ppc7400 "${FN}" 2>/dev/null |
| 4810 | if test $? != 0 ; then |
| 4811 | LIPO_32BIT_FLAGS="-extract ppc -extract i386" |
| 4812 | { echo "$as_me:$LINENO: result: \"'-extract ppc'\"" >&5 |
| 4813 | echo "${ECHO_T}\"'-extract ppc'\"" >&6; } |
| 4814 | else |
| 4815 | { echo "$as_me:$LINENO: result: \"'-extract ppc7400'\"" >&5 |
| 4816 | echo "${ECHO_T}\"'-extract ppc7400'\"" >&6; } |
| 4817 | fi |
| 4818 | rm -f ${FN} ${FN}.c ${FN}.out |
| 4819 | fi |
| 4820 | |
| 4821 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
| 4822 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 4823 | LIPO_32BIT_FLAGS="" |
| 4824 | ARCH_RUN_32BIT="true" |
| 4825 | |
| 4826 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
| 4827 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 4828 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 4829 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4830 | |
| 4831 | elif test "$UNIVERSAL_ARCHS" = "intel" ; then |
| 4832 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
| 4833 | LIPO_32BIT_FLAGS="-extract i386" |
Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 4834 | ARCH_RUN_32BIT="/usr/bin/arch -i386" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4835 | |
| 4836 | elif test "$UNIVERSAL_ARCHS" = "3-way" ; then |
| 4837 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
| 4838 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
Ronald Oussoren | 9922f17 | 2010-02-11 13:19:34 +0000 | [diff] [blame] | 4839 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4840 | |
| 4841 | else |
| 4842 | { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5 |
| 4843 | echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;} |
| 4844 | { (exit 1); exit 1; }; } |
| 4845 | |
| 4846 | fi |
| 4847 | |
| 4848 | |
| 4849 | BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" |
| 4850 | tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4851 | if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then |
| 4852 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 4853 | CPPFLAGS="-isysroot ${UNIVERSALSDK}" |
| 4854 | fi |
| 4855 | |
| 4856 | fi |
| 4857 | |
| 4858 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4859 | ;; |
| 4860 | OSF*) |
| 4861 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4862 | ;; |
| 4863 | esac |
| 4864 | ;; |
| 4865 | |
| 4866 | *) |
| 4867 | case $ac_sys_system in |
| 4868 | OpenUNIX*|UnixWare*) |
| 4869 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 4870 | ;; |
| 4871 | OSF*) |
| 4872 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 4873 | ;; |
| 4874 | SCO_SV*) |
| 4875 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 4876 | ;; |
| 4877 | esac |
| 4878 | ;; |
| 4879 | esac |
| 4880 | |
| 4881 | if test "$Py_DEBUG" = 'true'; then |
| 4882 | : |
| 4883 | else |
| 4884 | OPT="-DNDEBUG $OPT" |
| 4885 | fi |
| 4886 | |
| 4887 | if test "$ac_arch_flags" |
| 4888 | then |
| 4889 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 4890 | fi |
| 4891 | |
| 4892 | # disable check for icc since it seems to pass, but generates a warning |
| 4893 | if test "$CC" = icc |
| 4894 | then |
| 4895 | ac_cv_opt_olimit_ok=no |
| 4896 | fi |
| 4897 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4898 | { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 4899 | 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] | 4900 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4902 | else |
| 4903 | ac_save_cc="$CC" |
| 4904 | CC="$CC -OPT:Olimit=0" |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4905 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4906 | /* confdefs.h. */ |
| 4907 | _ACEOF |
| 4908 | cat confdefs.h >>conftest.$ac_ext |
| 4909 | cat >>conftest.$ac_ext <<_ACEOF |
| 4910 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4911 | |
| 4912 | int |
| 4913 | main () |
| 4914 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4915 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4916 | ; |
| 4917 | return 0; |
| 4918 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4919 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4920 | rm -f conftest.$ac_objext |
| 4921 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4922 | case "(($ac_try" in |
| 4923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4924 | *) ac_try_echo=$ac_try;; |
| 4925 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4927 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4928 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4930 | rm -f conftest.er1 |
| 4931 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4933 | (exit $ac_status); } && { |
| 4934 | test -z "$ac_c_werror_flag" || |
| 4935 | test ! -s conftest.err |
| 4936 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4937 | ac_cv_opt_olimit_ok=yes |
| 4938 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4939 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4941 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4942 | ac_cv_opt_olimit_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4943 | fi |
| 4944 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4946 | CC="$ac_save_cc" |
| 4947 | fi |
| 4948 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4949 | { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 4950 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4951 | if test $ac_cv_opt_olimit_ok = yes; then |
| 4952 | case $ac_sys_system in |
| 4953 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 4954 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 4955 | # environment? |
| 4956 | Darwin*) |
| 4957 | ;; |
| 4958 | *) |
| 4959 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 4960 | ;; |
| 4961 | esac |
| 4962 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4963 | { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 4964 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4965 | if test "${ac_cv_olimit_ok+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4967 | else |
| 4968 | ac_save_cc="$CC" |
| 4969 | CC="$CC -Olimit 1500" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4970 | cat >conftest.$ac_ext <<_ACEOF |
| 4971 | /* confdefs.h. */ |
| 4972 | _ACEOF |
| 4973 | cat confdefs.h >>conftest.$ac_ext |
| 4974 | cat >>conftest.$ac_ext <<_ACEOF |
| 4975 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4976 | |
| 4977 | int |
| 4978 | main () |
| 4979 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4980 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4981 | ; |
| 4982 | return 0; |
| 4983 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4984 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4985 | rm -f conftest.$ac_objext |
| 4986 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4987 | case "(($ac_try" in |
| 4988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4989 | *) ac_try_echo=$ac_try;; |
| 4990 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4992 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4993 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4995 | rm -f conftest.er1 |
| 4996 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4998 | (exit $ac_status); } && { |
| 4999 | test -z "$ac_c_werror_flag" || |
| 5000 | test ! -s conftest.err |
| 5001 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5002 | ac_cv_olimit_ok=yes |
| 5003 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5004 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5006 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5007 | ac_cv_olimit_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5008 | fi |
| 5009 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5011 | CC="$ac_save_cc" |
| 5012 | fi |
| 5013 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5014 | { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 5015 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5016 | if test $ac_cv_olimit_ok = yes; then |
| 5017 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
| 5018 | fi |
| 5019 | fi |
| 5020 | |
| 5021 | # Check whether GCC supports PyArg_ParseTuple format |
| 5022 | if test "$GCC" = "yes" |
| 5023 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5024 | { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 5025 | echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5026 | save_CFLAGS=$CFLAGS |
| 5027 | CFLAGS="$CFLAGS -Werror" |
| 5028 | cat >conftest.$ac_ext <<_ACEOF |
| 5029 | /* confdefs.h. */ |
| 5030 | _ACEOF |
| 5031 | cat confdefs.h >>conftest.$ac_ext |
| 5032 | cat >>conftest.$ac_ext <<_ACEOF |
| 5033 | /* end confdefs.h. */ |
| 5034 | |
| 5035 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 5036 | |
| 5037 | int |
| 5038 | main () |
| 5039 | { |
| 5040 | |
| 5041 | ; |
| 5042 | return 0; |
| 5043 | } |
| 5044 | _ACEOF |
| 5045 | rm -f conftest.$ac_objext |
| 5046 | if { (ac_try="$ac_compile" |
| 5047 | case "(($ac_try" in |
| 5048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5049 | *) ac_try_echo=$ac_try;; |
| 5050 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5052 | (eval "$ac_compile") 2>conftest.er1 |
| 5053 | ac_status=$? |
| 5054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5055 | rm -f conftest.er1 |
| 5056 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5058 | (exit $ac_status); } && { |
| 5059 | test -z "$ac_c_werror_flag" || |
| 5060 | test ! -s conftest.err |
| 5061 | } && test -s conftest.$ac_objext; then |
| 5062 | |
| 5063 | cat >>confdefs.h <<\_ACEOF |
| 5064 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 5065 | _ACEOF |
| 5066 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5067 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 5068 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5069 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5070 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5072 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5073 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5074 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5075 | |
| 5076 | fi |
| 5077 | |
| 5078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5079 | CFLAGS=$save_CFLAGS |
| 5080 | fi |
| 5081 | |
| 5082 | # On some compilers, pthreads are available without further options |
| 5083 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 5084 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 5085 | # So we have to see first whether pthreads are available without |
| 5086 | # options before we can check whether -Kpthread improves anything. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5087 | { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 5088 | 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] | 5089 | if test "${ac_cv_pthread_is_default+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5091 | else |
| 5092 | if test "$cross_compiling" = yes; then |
| 5093 | ac_cv_pthread_is_default=no |
| 5094 | else |
| 5095 | cat >conftest.$ac_ext <<_ACEOF |
| 5096 | /* confdefs.h. */ |
| 5097 | _ACEOF |
| 5098 | cat confdefs.h >>conftest.$ac_ext |
| 5099 | cat >>conftest.$ac_ext <<_ACEOF |
| 5100 | /* end confdefs.h. */ |
| 5101 | |
| 5102 | #include <pthread.h> |
| 5103 | |
| 5104 | void* routine(void* p){return NULL;} |
| 5105 | |
| 5106 | int main(){ |
| 5107 | pthread_t p; |
| 5108 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5109 | return 1; |
| 5110 | (void)pthread_detach(p); |
| 5111 | return 0; |
| 5112 | } |
| 5113 | |
| 5114 | _ACEOF |
| 5115 | rm -f conftest$ac_exeext |
| 5116 | if { (ac_try="$ac_link" |
| 5117 | case "(($ac_try" in |
| 5118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5119 | *) ac_try_echo=$ac_try;; |
| 5120 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5122 | (eval "$ac_link") 2>&5 |
| 5123 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5125 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5126 | { (case "(($ac_try" in |
| 5127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5128 | *) ac_try_echo=$ac_try;; |
| 5129 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5131 | (eval "$ac_try") 2>&5 |
| 5132 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5134 | (exit $ac_status); }; }; then |
| 5135 | |
| 5136 | ac_cv_pthread_is_default=yes |
| 5137 | ac_cv_kthread=no |
| 5138 | ac_cv_pthread=no |
| 5139 | |
| 5140 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5141 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5142 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5144 | |
| 5145 | ( exit $ac_status ) |
| 5146 | ac_cv_pthread_is_default=no |
| 5147 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5148 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5149 | fi |
| 5150 | |
| 5151 | |
| 5152 | |
| 5153 | fi |
| 5154 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5155 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 5156 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5157 | |
| 5158 | |
| 5159 | if test $ac_cv_pthread_is_default = yes |
| 5160 | then |
| 5161 | ac_cv_kpthread=no |
| 5162 | else |
| 5163 | # -Kpthread, if available, provides the right #defines |
| 5164 | # and linker options to make pthread_create available |
| 5165 | # Some compilers won't report that they do not support -Kpthread, |
| 5166 | # so we need to run a program to see whether it really made the |
| 5167 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5168 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 5169 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5170 | if test "${ac_cv_kpthread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5172 | else |
| 5173 | ac_save_cc="$CC" |
| 5174 | CC="$CC -Kpthread" |
| 5175 | if test "$cross_compiling" = yes; then |
| 5176 | ac_cv_kpthread=no |
| 5177 | else |
| 5178 | cat >conftest.$ac_ext <<_ACEOF |
| 5179 | /* confdefs.h. */ |
| 5180 | _ACEOF |
| 5181 | cat confdefs.h >>conftest.$ac_ext |
| 5182 | cat >>conftest.$ac_ext <<_ACEOF |
| 5183 | /* end confdefs.h. */ |
| 5184 | |
| 5185 | #include <pthread.h> |
| 5186 | |
| 5187 | void* routine(void* p){return NULL;} |
| 5188 | |
| 5189 | int main(){ |
| 5190 | pthread_t p; |
| 5191 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5192 | return 1; |
| 5193 | (void)pthread_detach(p); |
| 5194 | return 0; |
| 5195 | } |
| 5196 | |
| 5197 | _ACEOF |
| 5198 | rm -f conftest$ac_exeext |
| 5199 | if { (ac_try="$ac_link" |
| 5200 | case "(($ac_try" in |
| 5201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5202 | *) ac_try_echo=$ac_try;; |
| 5203 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5205 | (eval "$ac_link") 2>&5 |
| 5206 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5208 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5209 | { (case "(($ac_try" in |
| 5210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5211 | *) ac_try_echo=$ac_try;; |
| 5212 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5214 | (eval "$ac_try") 2>&5 |
| 5215 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5217 | (exit $ac_status); }; }; then |
| 5218 | ac_cv_kpthread=yes |
| 5219 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5220 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5221 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5223 | |
| 5224 | ( exit $ac_status ) |
| 5225 | ac_cv_kpthread=no |
| 5226 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5227 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5228 | fi |
| 5229 | |
| 5230 | |
| 5231 | CC="$ac_save_cc" |
| 5232 | fi |
| 5233 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5234 | { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 5235 | echo "${ECHO_T}$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5236 | fi |
| 5237 | |
| 5238 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 5239 | then |
| 5240 | # -Kthread, if available, provides the right #defines |
| 5241 | # and linker options to make pthread_create available |
| 5242 | # Some compilers won't report that they do not support -Kthread, |
| 5243 | # so we need to run a program to see whether it really made the |
| 5244 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5245 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 5246 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5247 | if test "${ac_cv_kthread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5249 | else |
| 5250 | ac_save_cc="$CC" |
| 5251 | CC="$CC -Kthread" |
| 5252 | if test "$cross_compiling" = yes; then |
| 5253 | ac_cv_kthread=no |
| 5254 | else |
| 5255 | cat >conftest.$ac_ext <<_ACEOF |
| 5256 | /* confdefs.h. */ |
| 5257 | _ACEOF |
| 5258 | cat confdefs.h >>conftest.$ac_ext |
| 5259 | cat >>conftest.$ac_ext <<_ACEOF |
| 5260 | /* end confdefs.h. */ |
| 5261 | |
| 5262 | #include <pthread.h> |
| 5263 | |
| 5264 | void* routine(void* p){return NULL;} |
| 5265 | |
| 5266 | int main(){ |
| 5267 | pthread_t p; |
| 5268 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5269 | return 1; |
| 5270 | (void)pthread_detach(p); |
| 5271 | return 0; |
| 5272 | } |
| 5273 | |
| 5274 | _ACEOF |
| 5275 | rm -f conftest$ac_exeext |
| 5276 | if { (ac_try="$ac_link" |
| 5277 | case "(($ac_try" in |
| 5278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5279 | *) ac_try_echo=$ac_try;; |
| 5280 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5282 | (eval "$ac_link") 2>&5 |
| 5283 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5285 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5286 | { (case "(($ac_try" in |
| 5287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5288 | *) ac_try_echo=$ac_try;; |
| 5289 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5291 | (eval "$ac_try") 2>&5 |
| 5292 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5294 | (exit $ac_status); }; }; then |
| 5295 | ac_cv_kthread=yes |
| 5296 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5297 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5298 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5300 | |
| 5301 | ( exit $ac_status ) |
| 5302 | ac_cv_kthread=no |
| 5303 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5304 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5305 | fi |
| 5306 | |
| 5307 | |
| 5308 | CC="$ac_save_cc" |
| 5309 | fi |
| 5310 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5311 | { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 5312 | echo "${ECHO_T}$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5313 | fi |
| 5314 | |
| 5315 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 5316 | then |
| 5317 | # -pthread, if available, provides the right #defines |
| 5318 | # and linker options to make pthread_create available |
| 5319 | # Some compilers won't report that they do not support -pthread, |
| 5320 | # so we need to run a program to see whether it really made the |
| 5321 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5322 | { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 5323 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5324 | if test "${ac_cv_thread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5326 | else |
| 5327 | ac_save_cc="$CC" |
| 5328 | CC="$CC -pthread" |
| 5329 | if test "$cross_compiling" = yes; then |
| 5330 | ac_cv_pthread=no |
| 5331 | else |
| 5332 | cat >conftest.$ac_ext <<_ACEOF |
| 5333 | /* confdefs.h. */ |
| 5334 | _ACEOF |
| 5335 | cat confdefs.h >>conftest.$ac_ext |
| 5336 | cat >>conftest.$ac_ext <<_ACEOF |
| 5337 | /* end confdefs.h. */ |
| 5338 | |
| 5339 | #include <pthread.h> |
| 5340 | |
| 5341 | void* routine(void* p){return NULL;} |
| 5342 | |
| 5343 | int main(){ |
| 5344 | pthread_t p; |
| 5345 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5346 | return 1; |
| 5347 | (void)pthread_detach(p); |
| 5348 | return 0; |
| 5349 | } |
| 5350 | |
| 5351 | _ACEOF |
| 5352 | rm -f conftest$ac_exeext |
| 5353 | if { (ac_try="$ac_link" |
| 5354 | case "(($ac_try" in |
| 5355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5356 | *) ac_try_echo=$ac_try;; |
| 5357 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5359 | (eval "$ac_link") 2>&5 |
| 5360 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5362 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5363 | { (case "(($ac_try" in |
| 5364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5365 | *) ac_try_echo=$ac_try;; |
| 5366 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5368 | (eval "$ac_try") 2>&5 |
| 5369 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5371 | (exit $ac_status); }; }; then |
| 5372 | ac_cv_pthread=yes |
| 5373 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5374 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5375 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5377 | |
| 5378 | ( exit $ac_status ) |
| 5379 | ac_cv_pthread=no |
| 5380 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5381 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5382 | fi |
| 5383 | |
| 5384 | |
| 5385 | CC="$ac_save_cc" |
| 5386 | fi |
| 5387 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5388 | { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 5389 | echo "${ECHO_T}$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5390 | fi |
| 5391 | |
| 5392 | # If we have set a CC compiler flag for thread support then |
| 5393 | # check if it works for CXX, too. |
| 5394 | ac_cv_cxx_thread=no |
| 5395 | if test ! -z "$CXX" |
| 5396 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5397 | { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 5398 | 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] | 5399 | ac_save_cxx="$CXX" |
| 5400 | |
| 5401 | if test "$ac_cv_kpthread" = "yes" |
| 5402 | then |
| 5403 | CXX="$CXX -Kpthread" |
| 5404 | ac_cv_cxx_thread=yes |
| 5405 | elif test "$ac_cv_kthread" = "yes" |
| 5406 | then |
| 5407 | CXX="$CXX -Kthread" |
| 5408 | ac_cv_cxx_thread=yes |
| 5409 | elif test "$ac_cv_pthread" = "yes" |
| 5410 | then |
| 5411 | CXX="$CXX -pthread" |
| 5412 | ac_cv_cxx_thread=yes |
| 5413 | fi |
| 5414 | |
| 5415 | if test $ac_cv_cxx_thread = yes |
| 5416 | then |
| 5417 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5418 | $CXX -c conftest.$ac_ext 2>&5 |
| 5419 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5420 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5421 | then |
| 5422 | ac_cv_cxx_thread=yes |
| 5423 | else |
| 5424 | ac_cv_cxx_thread=no |
| 5425 | fi |
| 5426 | rm -fr conftest* |
| 5427 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5428 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 5429 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5430 | fi |
| 5431 | CXX="$ac_save_cxx" |
| 5432 | |
| 5433 | |
| 5434 | # checks for header files |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5435 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5436 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5437 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5439 | else |
| 5440 | cat >conftest.$ac_ext <<_ACEOF |
| 5441 | /* confdefs.h. */ |
| 5442 | _ACEOF |
| 5443 | cat confdefs.h >>conftest.$ac_ext |
| 5444 | cat >>conftest.$ac_ext <<_ACEOF |
| 5445 | /* end confdefs.h. */ |
| 5446 | #include <stdlib.h> |
| 5447 | #include <stdarg.h> |
| 5448 | #include <string.h> |
| 5449 | #include <float.h> |
| 5450 | |
| 5451 | int |
| 5452 | main () |
| 5453 | { |
| 5454 | |
| 5455 | ; |
| 5456 | return 0; |
| 5457 | } |
| 5458 | _ACEOF |
| 5459 | rm -f conftest.$ac_objext |
| 5460 | if { (ac_try="$ac_compile" |
| 5461 | case "(($ac_try" in |
| 5462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5463 | *) ac_try_echo=$ac_try;; |
| 5464 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5466 | (eval "$ac_compile") 2>conftest.er1 |
| 5467 | ac_status=$? |
| 5468 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5469 | rm -f conftest.er1 |
| 5470 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5472 | (exit $ac_status); } && { |
| 5473 | test -z "$ac_c_werror_flag" || |
| 5474 | test ! -s conftest.err |
| 5475 | } && test -s conftest.$ac_objext; then |
| 5476 | ac_cv_header_stdc=yes |
| 5477 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5478 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5480 | |
| 5481 | ac_cv_header_stdc=no |
| 5482 | fi |
| 5483 | |
| 5484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5485 | |
| 5486 | if test $ac_cv_header_stdc = yes; then |
| 5487 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5488 | cat >conftest.$ac_ext <<_ACEOF |
| 5489 | /* confdefs.h. */ |
| 5490 | _ACEOF |
| 5491 | cat confdefs.h >>conftest.$ac_ext |
| 5492 | cat >>conftest.$ac_ext <<_ACEOF |
| 5493 | /* end confdefs.h. */ |
| 5494 | #include <string.h> |
| 5495 | |
| 5496 | _ACEOF |
| 5497 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5498 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5499 | : |
| 5500 | else |
| 5501 | ac_cv_header_stdc=no |
| 5502 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 5503 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5504 | |
| 5505 | fi |
| 5506 | |
| 5507 | if test $ac_cv_header_stdc = yes; then |
| 5508 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5509 | cat >conftest.$ac_ext <<_ACEOF |
| 5510 | /* confdefs.h. */ |
| 5511 | _ACEOF |
| 5512 | cat confdefs.h >>conftest.$ac_ext |
| 5513 | cat >>conftest.$ac_ext <<_ACEOF |
| 5514 | /* end confdefs.h. */ |
| 5515 | #include <stdlib.h> |
| 5516 | |
| 5517 | _ACEOF |
| 5518 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5519 | $EGREP "free" >/dev/null 2>&1; then |
| 5520 | : |
| 5521 | else |
| 5522 | ac_cv_header_stdc=no |
| 5523 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 5524 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5525 | |
| 5526 | fi |
| 5527 | |
| 5528 | if test $ac_cv_header_stdc = yes; then |
| 5529 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5530 | if test "$cross_compiling" = yes; then |
| 5531 | : |
| 5532 | else |
| 5533 | cat >conftest.$ac_ext <<_ACEOF |
| 5534 | /* confdefs.h. */ |
| 5535 | _ACEOF |
| 5536 | cat confdefs.h >>conftest.$ac_ext |
| 5537 | cat >>conftest.$ac_ext <<_ACEOF |
| 5538 | /* end confdefs.h. */ |
| 5539 | #include <ctype.h> |
| 5540 | #include <stdlib.h> |
| 5541 | #if ((' ' & 0x0FF) == 0x020) |
| 5542 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5543 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5544 | #else |
| 5545 | # define ISLOWER(c) \ |
| 5546 | (('a' <= (c) && (c) <= 'i') \ |
| 5547 | || ('j' <= (c) && (c) <= 'r') \ |
| 5548 | || ('s' <= (c) && (c) <= 'z')) |
| 5549 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5550 | #endif |
| 5551 | |
| 5552 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5553 | int |
| 5554 | main () |
| 5555 | { |
| 5556 | int i; |
| 5557 | for (i = 0; i < 256; i++) |
| 5558 | if (XOR (islower (i), ISLOWER (i)) |
| 5559 | || toupper (i) != TOUPPER (i)) |
| 5560 | return 2; |
| 5561 | return 0; |
| 5562 | } |
| 5563 | _ACEOF |
| 5564 | rm -f conftest$ac_exeext |
| 5565 | if { (ac_try="$ac_link" |
| 5566 | case "(($ac_try" in |
| 5567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5568 | *) ac_try_echo=$ac_try;; |
| 5569 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5571 | (eval "$ac_link") 2>&5 |
| 5572 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5574 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5575 | { (case "(($ac_try" in |
| 5576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5577 | *) ac_try_echo=$ac_try;; |
| 5578 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5580 | (eval "$ac_try") 2>&5 |
| 5581 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5583 | (exit $ac_status); }; }; then |
| 5584 | : |
| 5585 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5586 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5587 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5589 | |
| 5590 | ( exit $ac_status ) |
| 5591 | ac_cv_header_stdc=no |
| 5592 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5593 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5594 | fi |
| 5595 | |
| 5596 | |
| 5597 | fi |
| 5598 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5599 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5600 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5601 | if test $ac_cv_header_stdc = yes; then |
| 5602 | |
| 5603 | cat >>confdefs.h <<\_ACEOF |
| 5604 | #define STDC_HEADERS 1 |
| 5605 | _ACEOF |
| 5606 | |
| 5607 | fi |
| 5608 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5609 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5610 | |
| 5611 | |
| 5612 | |
| 5613 | |
| 5614 | |
| 5615 | |
| 5616 | |
| 5617 | |
| 5618 | |
| 5619 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5620 | inttypes.h stdint.h unistd.h |
| 5621 | do |
| 5622 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5623 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5624 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5625 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5627 | else |
| 5628 | cat >conftest.$ac_ext <<_ACEOF |
| 5629 | /* confdefs.h. */ |
| 5630 | _ACEOF |
| 5631 | cat confdefs.h >>conftest.$ac_ext |
| 5632 | cat >>conftest.$ac_ext <<_ACEOF |
| 5633 | /* end confdefs.h. */ |
| 5634 | $ac_includes_default |
| 5635 | |
| 5636 | #include <$ac_header> |
| 5637 | _ACEOF |
| 5638 | rm -f conftest.$ac_objext |
| 5639 | if { (ac_try="$ac_compile" |
| 5640 | case "(($ac_try" in |
| 5641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5642 | *) ac_try_echo=$ac_try;; |
| 5643 | esac |
| 5644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5645 | (eval "$ac_compile") 2>conftest.er1 |
| 5646 | ac_status=$? |
| 5647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5648 | rm -f conftest.er1 |
| 5649 | cat conftest.err >&5 |
| 5650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5651 | (exit $ac_status); } && { |
| 5652 | test -z "$ac_c_werror_flag" || |
| 5653 | test ! -s conftest.err |
| 5654 | } && test -s conftest.$ac_objext; then |
| 5655 | eval "$as_ac_Header=yes" |
| 5656 | else |
| 5657 | echo "$as_me: failed program was:" >&5 |
| 5658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5659 | |
| 5660 | eval "$as_ac_Header=no" |
| 5661 | fi |
| 5662 | |
| 5663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5664 | fi |
| 5665 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5666 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5667 | echo "${ECHO_T}$ac_res" >&6; } |
| 5668 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5669 | cat >>confdefs.h <<_ACEOF |
| 5670 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5671 | _ACEOF |
| 5672 | |
| 5673 | fi |
| 5674 | |
| 5675 | done |
| 5676 | |
| 5677 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5678 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5679 | |
| 5680 | |
| 5681 | |
| 5682 | |
| 5683 | |
| 5684 | |
| 5685 | |
| 5686 | |
| 5687 | |
| 5688 | |
| 5689 | |
| 5690 | |
| 5691 | |
| 5692 | |
| 5693 | |
| 5694 | |
| 5695 | |
| 5696 | |
| 5697 | |
| 5698 | |
| 5699 | |
| 5700 | |
| 5701 | |
| 5702 | |
| 5703 | |
| 5704 | |
| 5705 | |
| 5706 | |
| 5707 | |
| 5708 | |
| 5709 | |
| 5710 | |
| 5711 | |
| 5712 | |
| 5713 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 5714 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 5715 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 5716 | |
Martin v. Löwis | 5f5d99c | 2006-05-16 07:05:37 +0000 | [diff] [blame] | 5717 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5718 | |
| 5719 | |
| 5720 | |
| 5721 | |
| 5722 | |
| 5723 | |
| 5724 | |
| 5725 | |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 5726 | |
Christian Heimes | fb2d25a | 2008-01-07 16:12:44 +0000 | [diff] [blame] | 5727 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5728 | |
| 5729 | |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5730 | |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 5731 | |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5732 | |
| 5733 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5734 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 5735 | fcntl.h grp.h \ |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5736 | 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] | 5737 | 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] | 5738 | unistd.h utime.h \ |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5739 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 5740 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5741 | 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] | 5742 | sys/termio.h sys/time.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5743 | 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] | 5744 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5745 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5746 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5747 | 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] | 5748 | 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] | 5749 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5750 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5751 | 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] | 5752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5753 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5754 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5755 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5756 | echo "${ECHO_T}$ac_res" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5757 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5758 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5759 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5760 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5761 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5762 | /* confdefs.h. */ |
| 5763 | _ACEOF |
| 5764 | cat confdefs.h >>conftest.$ac_ext |
| 5765 | cat >>conftest.$ac_ext <<_ACEOF |
| 5766 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5767 | $ac_includes_default |
| 5768 | #include <$ac_header> |
| 5769 | _ACEOF |
| 5770 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5771 | if { (ac_try="$ac_compile" |
| 5772 | case "(($ac_try" in |
| 5773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5774 | *) ac_try_echo=$ac_try;; |
| 5775 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5777 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5778 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5780 | rm -f conftest.er1 |
| 5781 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5783 | (exit $ac_status); } && { |
| 5784 | test -z "$ac_c_werror_flag" || |
| 5785 | test ! -s conftest.err |
| 5786 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5787 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5788 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5789 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5791 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5792 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5793 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5794 | |
| 5795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5796 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5797 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5798 | |
| 5799 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5800 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5801 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5802 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5803 | /* confdefs.h. */ |
| 5804 | _ACEOF |
| 5805 | cat confdefs.h >>conftest.$ac_ext |
| 5806 | cat >>conftest.$ac_ext <<_ACEOF |
| 5807 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5808 | #include <$ac_header> |
| 5809 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5810 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5811 | case "(($ac_try" in |
| 5812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5813 | *) ac_try_echo=$ac_try;; |
| 5814 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5816 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5817 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5818 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5819 | rm -f conftest.er1 |
| 5820 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5822 | (exit $ac_status); } >/dev/null && { |
| 5823 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5824 | test ! -s conftest.err |
| 5825 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5826 | ac_header_preproc=yes |
| 5827 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5828 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5830 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5831 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5832 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5833 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5834 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5835 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5836 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5837 | |
| 5838 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5839 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5840 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5841 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5842 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5843 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5844 | 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] | 5845 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5846 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5847 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5848 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5849 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5850 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5851 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5852 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5853 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5854 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5855 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5856 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5857 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5858 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5859 | 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] | 5860 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 5861 | ## -------------------------------------- ## |
| 5862 | ## Report this to http://bugs.python.org/ ## |
| 5863 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5864 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5865 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5866 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5867 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5868 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5869 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5870 | 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] | 5871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5872 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5873 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5874 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5875 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5876 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5877 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5878 | |
| 5879 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5880 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5881 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5882 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5883 | _ACEOF |
| 5884 | |
| 5885 | fi |
| 5886 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5887 | done |
| 5888 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5889 | |
| 5890 | |
| 5891 | |
| 5892 | |
| 5893 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5894 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5895 | 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] | 5896 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 5897 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 5898 | 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] | 5899 | 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] | 5900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5901 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5902 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5903 | /* confdefs.h. */ |
| 5904 | _ACEOF |
| 5905 | cat confdefs.h >>conftest.$ac_ext |
| 5906 | cat >>conftest.$ac_ext <<_ACEOF |
| 5907 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5908 | #include <sys/types.h> |
| 5909 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5910 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5911 | int |
| 5912 | main () |
| 5913 | { |
| 5914 | if ((DIR *) 0) |
| 5915 | return 0; |
| 5916 | ; |
| 5917 | return 0; |
| 5918 | } |
| 5919 | _ACEOF |
| 5920 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5921 | if { (ac_try="$ac_compile" |
| 5922 | case "(($ac_try" in |
| 5923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5924 | *) ac_try_echo=$ac_try;; |
| 5925 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5927 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5928 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5930 | rm -f conftest.er1 |
| 5931 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5933 | (exit $ac_status); } && { |
| 5934 | test -z "$ac_c_werror_flag" || |
| 5935 | test ! -s conftest.err |
| 5936 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5937 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5938 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5939 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5941 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5942 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5943 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5944 | |
| 5945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5946 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5947 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5948 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5949 | echo "${ECHO_T}$ac_res" >&6; } |
| 5950 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5951 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5952 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5953 | _ACEOF |
| 5954 | |
| 5955 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5956 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5957 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5958 | done |
| 5959 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 5960 | if test $ac_header_dirent = dirent.h; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5961 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5962 | 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] | 5963 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5965 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5966 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5967 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5968 | /* confdefs.h. */ |
| 5969 | _ACEOF |
| 5970 | cat confdefs.h >>conftest.$ac_ext |
| 5971 | cat >>conftest.$ac_ext <<_ACEOF |
| 5972 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5973 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5974 | /* Override any GCC internal prototype to avoid an error. |
| 5975 | Use char because int might match the return type of a GCC |
| 5976 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5977 | #ifdef __cplusplus |
| 5978 | extern "C" |
| 5979 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5980 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5981 | int |
| 5982 | main () |
| 5983 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5984 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5985 | ; |
| 5986 | return 0; |
| 5987 | } |
| 5988 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5989 | for ac_lib in '' dir; do |
| 5990 | if test -z "$ac_lib"; then |
| 5991 | ac_res="none required" |
| 5992 | else |
| 5993 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5994 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5995 | fi |
| 5996 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5997 | if { (ac_try="$ac_link" |
| 5998 | case "(($ac_try" in |
| 5999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6000 | *) ac_try_echo=$ac_try;; |
| 6001 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6003 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6004 | ac_status=$? |
| 6005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6006 | rm -f conftest.er1 |
| 6007 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6009 | (exit $ac_status); } && { |
| 6010 | test -z "$ac_c_werror_flag" || |
| 6011 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6012 | } && test -s conftest$ac_exeext && |
| 6013 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6014 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6015 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6016 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6018 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6019 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6020 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6021 | |
| 6022 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6023 | conftest$ac_exeext |
| 6024 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6025 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6026 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6027 | done |
| 6028 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6029 | : |
| 6030 | else |
| 6031 | ac_cv_search_opendir=no |
| 6032 | fi |
| 6033 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6034 | LIBS=$ac_func_search_save_LIBS |
| 6035 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6036 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6037 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6038 | ac_res=$ac_cv_search_opendir |
| 6039 | if test "$ac_res" != no; then |
| 6040 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6041 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6042 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6043 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6044 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6045 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 6046 | 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] | 6047 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6049 | else |
| 6050 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6051 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6052 | /* confdefs.h. */ |
| 6053 | _ACEOF |
| 6054 | cat confdefs.h >>conftest.$ac_ext |
| 6055 | cat >>conftest.$ac_ext <<_ACEOF |
| 6056 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6057 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6058 | /* Override any GCC internal prototype to avoid an error. |
| 6059 | Use char because int might match the return type of a GCC |
| 6060 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6061 | #ifdef __cplusplus |
| 6062 | extern "C" |
| 6063 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6064 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6065 | int |
| 6066 | main () |
| 6067 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6068 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6069 | ; |
| 6070 | return 0; |
| 6071 | } |
| 6072 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6073 | for ac_lib in '' x; do |
| 6074 | if test -z "$ac_lib"; then |
| 6075 | ac_res="none required" |
| 6076 | else |
| 6077 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6078 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6079 | fi |
| 6080 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6081 | if { (ac_try="$ac_link" |
| 6082 | case "(($ac_try" in |
| 6083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6084 | *) ac_try_echo=$ac_try;; |
| 6085 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6087 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6088 | ac_status=$? |
| 6089 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6090 | rm -f conftest.er1 |
| 6091 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6093 | (exit $ac_status); } && { |
| 6094 | test -z "$ac_c_werror_flag" || |
| 6095 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6096 | } && test -s conftest$ac_exeext && |
| 6097 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6098 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6099 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6100 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6102 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6103 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6104 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6105 | |
| 6106 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6107 | conftest$ac_exeext |
| 6108 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6109 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6110 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6111 | done |
| 6112 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6113 | : |
| 6114 | else |
| 6115 | ac_cv_search_opendir=no |
| 6116 | fi |
| 6117 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6118 | LIBS=$ac_func_search_save_LIBS |
| 6119 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6120 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6121 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6122 | ac_res=$ac_cv_search_opendir |
| 6123 | if test "$ac_res" != no; then |
| 6124 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6125 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6126 | fi |
| 6127 | |
| 6128 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6129 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6130 | { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 6131 | 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] | 6132 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6134 | else |
| 6135 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6136 | /* confdefs.h. */ |
| 6137 | _ACEOF |
| 6138 | cat confdefs.h >>conftest.$ac_ext |
| 6139 | cat >>conftest.$ac_ext <<_ACEOF |
| 6140 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6141 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6142 | int |
| 6143 | main () |
| 6144 | { |
| 6145 | return makedev(0, 0); |
| 6146 | ; |
| 6147 | return 0; |
| 6148 | } |
| 6149 | _ACEOF |
| 6150 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6151 | if { (ac_try="$ac_link" |
| 6152 | case "(($ac_try" in |
| 6153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6154 | *) ac_try_echo=$ac_try;; |
| 6155 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6157 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6158 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6160 | rm -f conftest.er1 |
| 6161 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6163 | (exit $ac_status); } && { |
| 6164 | test -z "$ac_c_werror_flag" || |
| 6165 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6166 | } && test -s conftest$ac_exeext && |
| 6167 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6168 | ac_cv_header_sys_types_h_makedev=yes |
| 6169 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6170 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6172 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6173 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6174 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6175 | |
| 6176 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6177 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6178 | |
| 6179 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6180 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 6181 | 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] | 6182 | |
| 6183 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 6184 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6185 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6186 | 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] | 6187 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6189 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6190 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6191 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6192 | else |
| 6193 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6194 | { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 6195 | 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] | 6196 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6197 | /* confdefs.h. */ |
| 6198 | _ACEOF |
| 6199 | cat confdefs.h >>conftest.$ac_ext |
| 6200 | cat >>conftest.$ac_ext <<_ACEOF |
| 6201 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6202 | $ac_includes_default |
| 6203 | #include <sys/mkdev.h> |
| 6204 | _ACEOF |
| 6205 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6206 | if { (ac_try="$ac_compile" |
| 6207 | case "(($ac_try" in |
| 6208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6209 | *) ac_try_echo=$ac_try;; |
| 6210 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6212 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6213 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6214 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6215 | rm -f conftest.er1 |
| 6216 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6218 | (exit $ac_status); } && { |
| 6219 | test -z "$ac_c_werror_flag" || |
| 6220 | test ! -s conftest.err |
| 6221 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6222 | ac_header_compiler=yes |
| 6223 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6224 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6226 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6227 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6228 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6229 | |
| 6230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6231 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6232 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6233 | |
| 6234 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6235 | { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 6236 | 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] | 6237 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6238 | /* confdefs.h. */ |
| 6239 | _ACEOF |
| 6240 | cat confdefs.h >>conftest.$ac_ext |
| 6241 | cat >>conftest.$ac_ext <<_ACEOF |
| 6242 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6243 | #include <sys/mkdev.h> |
| 6244 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6245 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6246 | case "(($ac_try" in |
| 6247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6248 | *) ac_try_echo=$ac_try;; |
| 6249 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6251 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6252 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6253 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6254 | rm -f conftest.er1 |
| 6255 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6257 | (exit $ac_status); } >/dev/null && { |
| 6258 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6259 | test ! -s conftest.err |
| 6260 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6261 | ac_header_preproc=yes |
| 6262 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6263 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6265 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6266 | ac_header_preproc=no |
| 6267 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6268 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6269 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6270 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6271 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6272 | |
| 6273 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6274 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6275 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6276 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6277 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6278 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 6279 | 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] | 6280 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6281 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6282 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6283 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 6284 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 6285 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 6286 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 6287 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 6288 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 6289 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6290 | echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6291 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 6292 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 6293 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 6294 | 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] | 6295 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6296 | ## -------------------------------------- ## |
| 6297 | ## Report this to http://bugs.python.org/ ## |
| 6298 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6299 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6300 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6301 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6302 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6303 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6304 | 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] | 6305 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6307 | else |
| 6308 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 6309 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6310 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6311 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6312 | |
| 6313 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6314 | if test $ac_cv_header_sys_mkdev_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6315 | |
| 6316 | cat >>confdefs.h <<\_ACEOF |
| 6317 | #define MAJOR_IN_MKDEV 1 |
| 6318 | _ACEOF |
| 6319 | |
| 6320 | fi |
| 6321 | |
| 6322 | |
| 6323 | |
| 6324 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 6325 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6326 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6327 | 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] | 6328 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6330 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6331 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6332 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6333 | else |
| 6334 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6335 | { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 6336 | 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] | 6337 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6338 | /* confdefs.h. */ |
| 6339 | _ACEOF |
| 6340 | cat confdefs.h >>conftest.$ac_ext |
| 6341 | cat >>conftest.$ac_ext <<_ACEOF |
| 6342 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6343 | $ac_includes_default |
| 6344 | #include <sys/sysmacros.h> |
| 6345 | _ACEOF |
| 6346 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6347 | if { (ac_try="$ac_compile" |
| 6348 | case "(($ac_try" in |
| 6349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6350 | *) ac_try_echo=$ac_try;; |
| 6351 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6353 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6354 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6356 | rm -f conftest.er1 |
| 6357 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6359 | (exit $ac_status); } && { |
| 6360 | test -z "$ac_c_werror_flag" || |
| 6361 | test ! -s conftest.err |
| 6362 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6363 | ac_header_compiler=yes |
| 6364 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6365 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6367 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6368 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6369 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6370 | |
| 6371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6372 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6373 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6374 | |
| 6375 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6376 | { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 6377 | 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] | 6378 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6379 | /* confdefs.h. */ |
| 6380 | _ACEOF |
| 6381 | cat confdefs.h >>conftest.$ac_ext |
| 6382 | cat >>conftest.$ac_ext <<_ACEOF |
| 6383 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6384 | #include <sys/sysmacros.h> |
| 6385 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6386 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6387 | case "(($ac_try" in |
| 6388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6389 | *) ac_try_echo=$ac_try;; |
| 6390 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6392 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6393 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6394 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6395 | rm -f conftest.er1 |
| 6396 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6398 | (exit $ac_status); } >/dev/null && { |
| 6399 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6400 | test ! -s conftest.err |
| 6401 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6402 | ac_header_preproc=yes |
| 6403 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6404 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6406 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6407 | ac_header_preproc=no |
| 6408 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6409 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6410 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6411 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6412 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6413 | |
| 6414 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6415 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6416 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6417 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6418 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6419 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 6420 | 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] | 6421 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6422 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6423 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6424 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 6425 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 6426 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 6427 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 6428 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 6429 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 6430 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6431 | echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6432 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 6433 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 6434 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 6435 | 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] | 6436 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6437 | ## -------------------------------------- ## |
| 6438 | ## Report this to http://bugs.python.org/ ## |
| 6439 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6440 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6441 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6442 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6443 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6444 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6445 | 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] | 6446 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6448 | else |
| 6449 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 6450 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6451 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6452 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6453 | |
| 6454 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6455 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6456 | |
| 6457 | cat >>confdefs.h <<\_ACEOF |
| 6458 | #define MAJOR_IN_SYSMACROS 1 |
| 6459 | _ACEOF |
| 6460 | |
| 6461 | fi |
| 6462 | |
| 6463 | |
| 6464 | fi |
| 6465 | fi |
| 6466 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6467 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6468 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6469 | |
| 6470 | for ac_header in term.h |
| 6471 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6472 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6473 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6474 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6475 | 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] | 6476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6477 | else |
| 6478 | cat >conftest.$ac_ext <<_ACEOF |
| 6479 | /* confdefs.h. */ |
| 6480 | _ACEOF |
| 6481 | cat confdefs.h >>conftest.$ac_ext |
| 6482 | cat >>conftest.$ac_ext <<_ACEOF |
| 6483 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6484 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6485 | #ifdef HAVE_CURSES_H |
| 6486 | #include <curses.h> |
| 6487 | #endif |
| 6488 | |
| 6489 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6490 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6491 | _ACEOF |
| 6492 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6493 | if { (ac_try="$ac_compile" |
| 6494 | case "(($ac_try" in |
| 6495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6496 | *) ac_try_echo=$ac_try;; |
| 6497 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6499 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6500 | ac_status=$? |
| 6501 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6502 | rm -f conftest.er1 |
| 6503 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6505 | (exit $ac_status); } && { |
| 6506 | test -z "$ac_c_werror_flag" || |
| 6507 | test ! -s conftest.err |
| 6508 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6509 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6510 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6511 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6513 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6514 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6515 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6516 | |
| 6517 | 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] | 6518 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6519 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6520 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6521 | echo "${ECHO_T}$ac_res" >&6; } |
| 6522 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6523 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6524 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6525 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6526 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6527 | fi |
| 6528 | |
| 6529 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6530 | |
| 6531 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6532 | # On Linux, netlink.h requires asm/types.h |
| 6533 | |
| 6534 | for ac_header in linux/netlink.h |
| 6535 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6536 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6537 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6538 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6539 | 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] | 6540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6541 | else |
| 6542 | cat >conftest.$ac_ext <<_ACEOF |
| 6543 | /* confdefs.h. */ |
| 6544 | _ACEOF |
| 6545 | cat confdefs.h >>conftest.$ac_ext |
| 6546 | cat >>conftest.$ac_ext <<_ACEOF |
| 6547 | /* end confdefs.h. */ |
| 6548 | |
| 6549 | #ifdef HAVE_ASM_TYPES_H |
| 6550 | #include <asm/types.h> |
| 6551 | #endif |
| 6552 | #ifdef HAVE_SYS_SOCKET_H |
| 6553 | #include <sys/socket.h> |
| 6554 | #endif |
| 6555 | |
| 6556 | |
| 6557 | #include <$ac_header> |
| 6558 | _ACEOF |
| 6559 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6560 | if { (ac_try="$ac_compile" |
| 6561 | case "(($ac_try" in |
| 6562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6563 | *) ac_try_echo=$ac_try;; |
| 6564 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6566 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6567 | ac_status=$? |
| 6568 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6569 | rm -f conftest.er1 |
| 6570 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6572 | (exit $ac_status); } && { |
| 6573 | test -z "$ac_c_werror_flag" || |
| 6574 | test ! -s conftest.err |
| 6575 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6576 | eval "$as_ac_Header=yes" |
| 6577 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6578 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6580 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6581 | eval "$as_ac_Header=no" |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6582 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6583 | |
| 6584 | 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] | 6585 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6586 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6587 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6588 | echo "${ECHO_T}$ac_res" >&6; } |
| 6589 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6590 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6591 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6592 | _ACEOF |
| 6593 | |
| 6594 | fi |
| 6595 | |
| 6596 | done |
| 6597 | |
| 6598 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6599 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6600 | was_it_defined=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6601 | { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 6602 | 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] | 6603 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6604 | /* confdefs.h. */ |
| 6605 | _ACEOF |
| 6606 | cat confdefs.h >>conftest.$ac_ext |
| 6607 | cat >>conftest.$ac_ext <<_ACEOF |
| 6608 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6609 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6610 | |
| 6611 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6612 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6613 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6614 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6615 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6616 | |
| 6617 | |
| 6618 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6619 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6620 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6621 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6622 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6623 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 6624 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6625 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6626 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 6627 | echo "${ECHO_T}$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6628 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6629 | # Check whether using makedev requires defining _OSF_SOURCE |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6630 | { echo "$as_me:$LINENO: checking for makedev" >&5 |
| 6631 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6632 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6633 | /* confdefs.h. */ |
| 6634 | _ACEOF |
| 6635 | cat confdefs.h >>conftest.$ac_ext |
| 6636 | cat >>conftest.$ac_ext <<_ACEOF |
| 6637 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6638 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6639 | int |
| 6640 | main () |
| 6641 | { |
| 6642 | makedev(0, 0) |
| 6643 | ; |
| 6644 | return 0; |
| 6645 | } |
| 6646 | _ACEOF |
| 6647 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6648 | if { (ac_try="$ac_link" |
| 6649 | case "(($ac_try" in |
| 6650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6651 | *) ac_try_echo=$ac_try;; |
| 6652 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6654 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6655 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6657 | rm -f conftest.er1 |
| 6658 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6660 | (exit $ac_status); } && { |
| 6661 | test -z "$ac_c_werror_flag" || |
| 6662 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6663 | } && test -s conftest$ac_exeext && |
| 6664 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6665 | ac_cv_has_makedev=yes |
| 6666 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6667 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6669 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6670 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6671 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6672 | |
| 6673 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6674 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6675 | if test "$ac_cv_has_makedev" = "no"; then |
| 6676 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 6677 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6678 | /* confdefs.h. */ |
| 6679 | _ACEOF |
| 6680 | cat confdefs.h >>conftest.$ac_ext |
| 6681 | cat >>conftest.$ac_ext <<_ACEOF |
| 6682 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6683 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6684 | #define _OSF_SOURCE 1 |
| 6685 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6686 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6687 | int |
| 6688 | main () |
| 6689 | { |
| 6690 | makedev(0, 0) |
| 6691 | ; |
| 6692 | return 0; |
| 6693 | } |
| 6694 | _ACEOF |
| 6695 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6696 | if { (ac_try="$ac_link" |
| 6697 | case "(($ac_try" in |
| 6698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6699 | *) ac_try_echo=$ac_try;; |
| 6700 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6702 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6703 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6704 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6705 | rm -f conftest.er1 |
| 6706 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6708 | (exit $ac_status); } && { |
| 6709 | test -z "$ac_c_werror_flag" || |
| 6710 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6711 | } && test -s conftest$ac_exeext && |
| 6712 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6713 | ac_cv_has_makedev=yes |
| 6714 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6715 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6716 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6717 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6718 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6719 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6720 | |
| 6721 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6722 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6723 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6724 | |
| 6725 | cat >>confdefs.h <<\_ACEOF |
| 6726 | #define _OSF_SOURCE 1 |
| 6727 | _ACEOF |
| 6728 | |
| 6729 | fi |
| 6730 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6731 | { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 6732 | echo "${ECHO_T}$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6733 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6734 | |
| 6735 | cat >>confdefs.h <<\_ACEOF |
| 6736 | #define HAVE_MAKEDEV 1 |
| 6737 | _ACEOF |
| 6738 | |
| 6739 | fi |
| 6740 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6741 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6742 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6743 | # defined, but the compiler does not support pragma redefine_extname, |
| 6744 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6745 | # structures (such as rlimit64) without declaring them. As a |
| 6746 | # work-around, disable LFS on such configurations |
| 6747 | |
| 6748 | use_lfs=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6749 | { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 6750 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6751 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6752 | /* confdefs.h. */ |
| 6753 | _ACEOF |
| 6754 | cat confdefs.h >>conftest.$ac_ext |
| 6755 | cat >>conftest.$ac_ext <<_ACEOF |
| 6756 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6757 | |
| 6758 | #define _LARGEFILE_SOURCE 1 |
| 6759 | #define _FILE_OFFSET_BITS 64 |
| 6760 | #include <sys/resource.h> |
| 6761 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6762 | int |
| 6763 | main () |
| 6764 | { |
| 6765 | struct rlimit foo; |
| 6766 | ; |
| 6767 | return 0; |
| 6768 | } |
| 6769 | _ACEOF |
| 6770 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6771 | if { (ac_try="$ac_compile" |
| 6772 | case "(($ac_try" in |
| 6773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6774 | *) ac_try_echo=$ac_try;; |
| 6775 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6777 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6778 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6780 | rm -f conftest.er1 |
| 6781 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6783 | (exit $ac_status); } && { |
| 6784 | test -z "$ac_c_werror_flag" || |
| 6785 | test ! -s conftest.err |
| 6786 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6787 | sol_lfs_bug=no |
| 6788 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6789 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6791 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6792 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6793 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6794 | |
| 6795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6796 | { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 6797 | echo "${ECHO_T}$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6798 | if test "$sol_lfs_bug" = "yes"; then |
| 6799 | use_lfs=no |
| 6800 | fi |
| 6801 | |
| 6802 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6803 | # Two defines needed to enable largefile support on various platforms |
| 6804 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6805 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6806 | cat >>confdefs.h <<\_ACEOF |
| 6807 | #define _LARGEFILE_SOURCE 1 |
| 6808 | _ACEOF |
| 6809 | |
| 6810 | |
| 6811 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6812 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6813 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6814 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6815 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6816 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6817 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6818 | cat >> confdefs.h <<\EOF |
| 6819 | #if defined(SCO_DS) |
| 6820 | #undef _OFF_T |
| 6821 | #endif |
| 6822 | EOF |
| 6823 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6824 | # Type availability checks |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6825 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 6826 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6827 | if test "${ac_cv_type_mode_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6829 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6830 | cat >conftest.$ac_ext <<_ACEOF |
| 6831 | /* confdefs.h. */ |
| 6832 | _ACEOF |
| 6833 | cat confdefs.h >>conftest.$ac_ext |
| 6834 | cat >>conftest.$ac_ext <<_ACEOF |
| 6835 | /* end confdefs.h. */ |
| 6836 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6837 | typedef mode_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6838 | int |
| 6839 | main () |
| 6840 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6841 | if ((ac__type_new_ *) 0) |
| 6842 | return 0; |
| 6843 | if (sizeof (ac__type_new_)) |
| 6844 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6845 | ; |
| 6846 | return 0; |
| 6847 | } |
| 6848 | _ACEOF |
| 6849 | rm -f conftest.$ac_objext |
| 6850 | if { (ac_try="$ac_compile" |
| 6851 | case "(($ac_try" in |
| 6852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6853 | *) ac_try_echo=$ac_try;; |
| 6854 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6856 | (eval "$ac_compile") 2>conftest.er1 |
| 6857 | ac_status=$? |
| 6858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6859 | rm -f conftest.er1 |
| 6860 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6862 | (exit $ac_status); } && { |
| 6863 | test -z "$ac_c_werror_flag" || |
| 6864 | test ! -s conftest.err |
| 6865 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6866 | ac_cv_type_mode_t=yes |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6867 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6868 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6870 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6871 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6872 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6873 | |
| 6874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6875 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6876 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 6877 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
| 6878 | if test $ac_cv_type_mode_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6879 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6880 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6881 | |
| 6882 | cat >>confdefs.h <<_ACEOF |
| 6883 | #define mode_t int |
| 6884 | _ACEOF |
| 6885 | |
| 6886 | fi |
| 6887 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6888 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 6889 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6890 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6892 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6893 | cat >conftest.$ac_ext <<_ACEOF |
| 6894 | /* confdefs.h. */ |
| 6895 | _ACEOF |
| 6896 | cat confdefs.h >>conftest.$ac_ext |
| 6897 | cat >>conftest.$ac_ext <<_ACEOF |
| 6898 | /* end confdefs.h. */ |
| 6899 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6900 | typedef off_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6901 | int |
| 6902 | main () |
| 6903 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6904 | if ((ac__type_new_ *) 0) |
| 6905 | return 0; |
| 6906 | if (sizeof (ac__type_new_)) |
| 6907 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6908 | ; |
| 6909 | return 0; |
| 6910 | } |
| 6911 | _ACEOF |
| 6912 | rm -f conftest.$ac_objext |
| 6913 | if { (ac_try="$ac_compile" |
| 6914 | case "(($ac_try" in |
| 6915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6916 | *) ac_try_echo=$ac_try;; |
| 6917 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6919 | (eval "$ac_compile") 2>conftest.er1 |
| 6920 | ac_status=$? |
| 6921 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6922 | rm -f conftest.er1 |
| 6923 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6925 | (exit $ac_status); } && { |
| 6926 | test -z "$ac_c_werror_flag" || |
| 6927 | test ! -s conftest.err |
| 6928 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6929 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6930 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6931 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6933 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6934 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6935 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6936 | |
| 6937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6938 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6939 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 6940 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 6941 | if test $ac_cv_type_off_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6942 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6943 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6944 | |
| 6945 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6946 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6947 | _ACEOF |
| 6948 | |
| 6949 | fi |
| 6950 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6951 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 6952 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6953 | if test "${ac_cv_type_pid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6955 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6956 | cat >conftest.$ac_ext <<_ACEOF |
| 6957 | /* confdefs.h. */ |
| 6958 | _ACEOF |
| 6959 | cat confdefs.h >>conftest.$ac_ext |
| 6960 | cat >>conftest.$ac_ext <<_ACEOF |
| 6961 | /* end confdefs.h. */ |
| 6962 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6963 | typedef pid_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6964 | int |
| 6965 | main () |
| 6966 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6967 | if ((ac__type_new_ *) 0) |
| 6968 | return 0; |
| 6969 | if (sizeof (ac__type_new_)) |
| 6970 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6971 | ; |
| 6972 | return 0; |
| 6973 | } |
| 6974 | _ACEOF |
| 6975 | rm -f conftest.$ac_objext |
| 6976 | if { (ac_try="$ac_compile" |
| 6977 | case "(($ac_try" in |
| 6978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6979 | *) ac_try_echo=$ac_try;; |
| 6980 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6982 | (eval "$ac_compile") 2>conftest.er1 |
| 6983 | ac_status=$? |
| 6984 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6985 | rm -f conftest.er1 |
| 6986 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6988 | (exit $ac_status); } && { |
| 6989 | test -z "$ac_c_werror_flag" || |
| 6990 | test ! -s conftest.err |
| 6991 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6992 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6993 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6994 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6996 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6997 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6998 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6999 | |
| 7000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7001 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7002 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 7003 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 7004 | if test $ac_cv_type_pid_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7005 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7006 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7007 | |
| 7008 | cat >>confdefs.h <<_ACEOF |
| 7009 | #define pid_t int |
| 7010 | _ACEOF |
| 7011 | |
| 7012 | fi |
| 7013 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7014 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 7015 | 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] | 7016 | if test "${ac_cv_type_signal+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7018 | else |
| 7019 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7020 | /* confdefs.h. */ |
| 7021 | _ACEOF |
| 7022 | cat confdefs.h >>conftest.$ac_ext |
| 7023 | cat >>conftest.$ac_ext <<_ACEOF |
| 7024 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7025 | #include <sys/types.h> |
| 7026 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7027 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7028 | int |
| 7029 | main () |
| 7030 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7031 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7032 | ; |
| 7033 | return 0; |
| 7034 | } |
| 7035 | _ACEOF |
| 7036 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7037 | if { (ac_try="$ac_compile" |
| 7038 | case "(($ac_try" in |
| 7039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7040 | *) ac_try_echo=$ac_try;; |
| 7041 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7043 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7044 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7046 | rm -f conftest.er1 |
| 7047 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7049 | (exit $ac_status); } && { |
| 7050 | test -z "$ac_c_werror_flag" || |
| 7051 | test ! -s conftest.err |
| 7052 | } && test -s conftest.$ac_objext; then |
| 7053 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7054 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7055 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7057 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7058 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7059 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7060 | |
| 7061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7062 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7063 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 7064 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7065 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7066 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7067 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7068 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7069 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7070 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7071 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 7072 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7073 | if test "${ac_cv_type_size_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7075 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7076 | cat >conftest.$ac_ext <<_ACEOF |
| 7077 | /* confdefs.h. */ |
| 7078 | _ACEOF |
| 7079 | cat confdefs.h >>conftest.$ac_ext |
| 7080 | cat >>conftest.$ac_ext <<_ACEOF |
| 7081 | /* end confdefs.h. */ |
| 7082 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7083 | typedef size_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7084 | int |
| 7085 | main () |
| 7086 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7087 | if ((ac__type_new_ *) 0) |
| 7088 | return 0; |
| 7089 | if (sizeof (ac__type_new_)) |
| 7090 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7091 | ; |
| 7092 | return 0; |
| 7093 | } |
| 7094 | _ACEOF |
| 7095 | rm -f conftest.$ac_objext |
| 7096 | if { (ac_try="$ac_compile" |
| 7097 | case "(($ac_try" in |
| 7098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7099 | *) ac_try_echo=$ac_try;; |
| 7100 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7102 | (eval "$ac_compile") 2>conftest.er1 |
| 7103 | ac_status=$? |
| 7104 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7105 | rm -f conftest.er1 |
| 7106 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7108 | (exit $ac_status); } && { |
| 7109 | test -z "$ac_c_werror_flag" || |
| 7110 | test ! -s conftest.err |
| 7111 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7112 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7113 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7114 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7116 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7117 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7118 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7119 | |
| 7120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7121 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7122 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 7123 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 7124 | if test $ac_cv_type_size_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7125 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7126 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7127 | |
| 7128 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7129 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7130 | _ACEOF |
| 7131 | |
| 7132 | fi |
| 7133 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7134 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 7135 | 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] | 7136 | if test "${ac_cv_type_uid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7138 | else |
| 7139 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7140 | /* confdefs.h. */ |
| 7141 | _ACEOF |
| 7142 | cat confdefs.h >>conftest.$ac_ext |
| 7143 | cat >>conftest.$ac_ext <<_ACEOF |
| 7144 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7145 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7146 | |
| 7147 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7148 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7149 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7150 | ac_cv_type_uid_t=yes |
| 7151 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7152 | ac_cv_type_uid_t=no |
| 7153 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 7154 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7155 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7156 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7157 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 7158 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7159 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7160 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7161 | cat >>confdefs.h <<\_ACEOF |
| 7162 | #define uid_t int |
| 7163 | _ACEOF |
| 7164 | |
| 7165 | |
| 7166 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7167 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7168 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7169 | |
| 7170 | fi |
| 7171 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7172 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7173 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 7174 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7175 | if test "${ac_cv_c_uint32_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7177 | else |
| 7178 | ac_cv_c_uint32_t=no |
| 7179 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
| 7180 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7181 | cat >conftest.$ac_ext <<_ACEOF |
| 7182 | /* confdefs.h. */ |
| 7183 | _ACEOF |
| 7184 | cat confdefs.h >>conftest.$ac_ext |
| 7185 | cat >>conftest.$ac_ext <<_ACEOF |
| 7186 | /* end confdefs.h. */ |
| 7187 | $ac_includes_default |
| 7188 | int |
| 7189 | main () |
| 7190 | { |
| 7191 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
| 7192 | test_array [0] = 0 |
| 7193 | |
| 7194 | ; |
| 7195 | return 0; |
| 7196 | } |
| 7197 | _ACEOF |
| 7198 | rm -f conftest.$ac_objext |
| 7199 | if { (ac_try="$ac_compile" |
| 7200 | case "(($ac_try" in |
| 7201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7202 | *) ac_try_echo=$ac_try;; |
| 7203 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7205 | (eval "$ac_compile") 2>conftest.er1 |
| 7206 | ac_status=$? |
| 7207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7208 | rm -f conftest.er1 |
| 7209 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7211 | (exit $ac_status); } && { |
| 7212 | test -z "$ac_c_werror_flag" || |
| 7213 | test ! -s conftest.err |
| 7214 | } && test -s conftest.$ac_objext; then |
| 7215 | case $ac_type in |
| 7216 | uint32_t) ac_cv_c_uint32_t=yes ;; |
| 7217 | *) ac_cv_c_uint32_t=$ac_type ;; |
| 7218 | esac |
| 7219 | |
| 7220 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7221 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7223 | |
| 7224 | |
| 7225 | fi |
| 7226 | |
| 7227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7228 | test "$ac_cv_c_uint32_t" != no && break |
| 7229 | done |
| 7230 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7231 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
| 7232 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7233 | case $ac_cv_c_uint32_t in #( |
| 7234 | no|yes) ;; #( |
| 7235 | *) |
| 7236 | |
| 7237 | cat >>confdefs.h <<\_ACEOF |
| 7238 | #define _UINT32_T 1 |
| 7239 | _ACEOF |
| 7240 | |
| 7241 | |
| 7242 | cat >>confdefs.h <<_ACEOF |
| 7243 | #define uint32_t $ac_cv_c_uint32_t |
| 7244 | _ACEOF |
| 7245 | ;; |
| 7246 | esac |
| 7247 | |
| 7248 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7249 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 7250 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7251 | if test "${ac_cv_c_uint64_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7253 | else |
| 7254 | ac_cv_c_uint64_t=no |
| 7255 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ |
| 7256 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7257 | cat >conftest.$ac_ext <<_ACEOF |
| 7258 | /* confdefs.h. */ |
| 7259 | _ACEOF |
| 7260 | cat confdefs.h >>conftest.$ac_ext |
| 7261 | cat >>conftest.$ac_ext <<_ACEOF |
| 7262 | /* end confdefs.h. */ |
| 7263 | $ac_includes_default |
| 7264 | int |
| 7265 | main () |
| 7266 | { |
| 7267 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
| 7268 | test_array [0] = 0 |
| 7269 | |
| 7270 | ; |
| 7271 | return 0; |
| 7272 | } |
| 7273 | _ACEOF |
| 7274 | rm -f conftest.$ac_objext |
| 7275 | if { (ac_try="$ac_compile" |
| 7276 | case "(($ac_try" in |
| 7277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7278 | *) ac_try_echo=$ac_try;; |
| 7279 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7281 | (eval "$ac_compile") 2>conftest.er1 |
| 7282 | ac_status=$? |
| 7283 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7284 | rm -f conftest.er1 |
| 7285 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7287 | (exit $ac_status); } && { |
| 7288 | test -z "$ac_c_werror_flag" || |
| 7289 | test ! -s conftest.err |
| 7290 | } && test -s conftest.$ac_objext; then |
| 7291 | case $ac_type in |
| 7292 | uint64_t) ac_cv_c_uint64_t=yes ;; |
| 7293 | *) ac_cv_c_uint64_t=$ac_type ;; |
| 7294 | esac |
| 7295 | |
| 7296 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7297 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7299 | |
| 7300 | |
| 7301 | fi |
| 7302 | |
| 7303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7304 | test "$ac_cv_c_uint64_t" != no && break |
| 7305 | done |
| 7306 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7307 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
| 7308 | echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7309 | case $ac_cv_c_uint64_t in #( |
| 7310 | no|yes) ;; #( |
| 7311 | *) |
| 7312 | |
| 7313 | cat >>confdefs.h <<\_ACEOF |
| 7314 | #define _UINT64_T 1 |
| 7315 | _ACEOF |
| 7316 | |
| 7317 | |
| 7318 | cat >>confdefs.h <<_ACEOF |
| 7319 | #define uint64_t $ac_cv_c_uint64_t |
| 7320 | _ACEOF |
| 7321 | ;; |
| 7322 | esac |
| 7323 | |
| 7324 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7325 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
| 7326 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7327 | if test "${ac_cv_c_int32_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7329 | else |
| 7330 | ac_cv_c_int32_t=no |
| 7331 | for ac_type in 'int32_t' 'int' 'long int' \ |
| 7332 | 'long long int' 'short int' 'signed char'; do |
| 7333 | cat >conftest.$ac_ext <<_ACEOF |
| 7334 | /* confdefs.h. */ |
| 7335 | _ACEOF |
| 7336 | cat confdefs.h >>conftest.$ac_ext |
| 7337 | cat >>conftest.$ac_ext <<_ACEOF |
| 7338 | /* end confdefs.h. */ |
| 7339 | $ac_includes_default |
| 7340 | int |
| 7341 | main () |
| 7342 | { |
| 7343 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
| 7344 | test_array [0] = 0 |
| 7345 | |
| 7346 | ; |
| 7347 | return 0; |
| 7348 | } |
| 7349 | _ACEOF |
| 7350 | rm -f conftest.$ac_objext |
| 7351 | if { (ac_try="$ac_compile" |
| 7352 | case "(($ac_try" in |
| 7353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7354 | *) ac_try_echo=$ac_try;; |
| 7355 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7357 | (eval "$ac_compile") 2>conftest.er1 |
| 7358 | ac_status=$? |
| 7359 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7360 | rm -f conftest.er1 |
| 7361 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7363 | (exit $ac_status); } && { |
| 7364 | test -z "$ac_c_werror_flag" || |
| 7365 | test ! -s conftest.err |
| 7366 | } && test -s conftest.$ac_objext; then |
| 7367 | cat >conftest.$ac_ext <<_ACEOF |
| 7368 | /* confdefs.h. */ |
| 7369 | _ACEOF |
| 7370 | cat confdefs.h >>conftest.$ac_ext |
| 7371 | cat >>conftest.$ac_ext <<_ACEOF |
| 7372 | /* end confdefs.h. */ |
| 7373 | $ac_includes_default |
| 7374 | int |
| 7375 | main () |
| 7376 | { |
| 7377 | 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] | 7378 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7379 | test_array [0] = 0 |
| 7380 | |
| 7381 | ; |
| 7382 | return 0; |
| 7383 | } |
| 7384 | _ACEOF |
| 7385 | rm -f conftest.$ac_objext |
| 7386 | if { (ac_try="$ac_compile" |
| 7387 | case "(($ac_try" in |
| 7388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7389 | *) ac_try_echo=$ac_try;; |
| 7390 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7392 | (eval "$ac_compile") 2>conftest.er1 |
| 7393 | ac_status=$? |
| 7394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7395 | rm -f conftest.er1 |
| 7396 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7398 | (exit $ac_status); } && { |
| 7399 | test -z "$ac_c_werror_flag" || |
| 7400 | test ! -s conftest.err |
| 7401 | } && test -s conftest.$ac_objext; then |
| 7402 | : |
| 7403 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7404 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7406 | |
| 7407 | case $ac_type in |
| 7408 | int32_t) ac_cv_c_int32_t=yes ;; |
| 7409 | *) ac_cv_c_int32_t=$ac_type ;; |
| 7410 | esac |
| 7411 | |
| 7412 | fi |
| 7413 | |
| 7414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7415 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7416 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7418 | |
| 7419 | |
| 7420 | fi |
| 7421 | |
| 7422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7423 | test "$ac_cv_c_int32_t" != no && break |
| 7424 | done |
| 7425 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7426 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
| 7427 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7428 | case $ac_cv_c_int32_t in #( |
| 7429 | no|yes) ;; #( |
| 7430 | *) |
| 7431 | |
| 7432 | cat >>confdefs.h <<_ACEOF |
| 7433 | #define int32_t $ac_cv_c_int32_t |
| 7434 | _ACEOF |
| 7435 | ;; |
| 7436 | esac |
| 7437 | |
| 7438 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7439 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 7440 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7441 | if test "${ac_cv_c_int64_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7443 | else |
| 7444 | ac_cv_c_int64_t=no |
| 7445 | for ac_type in 'int64_t' 'int' 'long int' \ |
| 7446 | 'long long int' 'short int' 'signed char'; do |
| 7447 | cat >conftest.$ac_ext <<_ACEOF |
| 7448 | /* confdefs.h. */ |
| 7449 | _ACEOF |
| 7450 | cat confdefs.h >>conftest.$ac_ext |
| 7451 | cat >>conftest.$ac_ext <<_ACEOF |
| 7452 | /* end confdefs.h. */ |
| 7453 | $ac_includes_default |
| 7454 | int |
| 7455 | main () |
| 7456 | { |
| 7457 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
| 7458 | test_array [0] = 0 |
| 7459 | |
| 7460 | ; |
| 7461 | return 0; |
| 7462 | } |
| 7463 | _ACEOF |
| 7464 | rm -f conftest.$ac_objext |
| 7465 | if { (ac_try="$ac_compile" |
| 7466 | case "(($ac_try" in |
| 7467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7468 | *) ac_try_echo=$ac_try;; |
| 7469 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7471 | (eval "$ac_compile") 2>conftest.er1 |
| 7472 | ac_status=$? |
| 7473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7474 | rm -f conftest.er1 |
| 7475 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7477 | (exit $ac_status); } && { |
| 7478 | test -z "$ac_c_werror_flag" || |
| 7479 | test ! -s conftest.err |
| 7480 | } && test -s conftest.$ac_objext; then |
| 7481 | cat >conftest.$ac_ext <<_ACEOF |
| 7482 | /* confdefs.h. */ |
| 7483 | _ACEOF |
| 7484 | cat confdefs.h >>conftest.$ac_ext |
| 7485 | cat >>conftest.$ac_ext <<_ACEOF |
| 7486 | /* end confdefs.h. */ |
| 7487 | $ac_includes_default |
| 7488 | int |
| 7489 | main () |
| 7490 | { |
| 7491 | 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] | 7492 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7493 | test_array [0] = 0 |
| 7494 | |
| 7495 | ; |
| 7496 | return 0; |
| 7497 | } |
| 7498 | _ACEOF |
| 7499 | rm -f conftest.$ac_objext |
| 7500 | if { (ac_try="$ac_compile" |
| 7501 | case "(($ac_try" in |
| 7502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7503 | *) ac_try_echo=$ac_try;; |
| 7504 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7506 | (eval "$ac_compile") 2>conftest.er1 |
| 7507 | ac_status=$? |
| 7508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7509 | rm -f conftest.er1 |
| 7510 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7512 | (exit $ac_status); } && { |
| 7513 | test -z "$ac_c_werror_flag" || |
| 7514 | test ! -s conftest.err |
| 7515 | } && test -s conftest.$ac_objext; then |
| 7516 | : |
| 7517 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7518 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7520 | |
| 7521 | case $ac_type in |
| 7522 | int64_t) ac_cv_c_int64_t=yes ;; |
| 7523 | *) ac_cv_c_int64_t=$ac_type ;; |
| 7524 | esac |
| 7525 | |
| 7526 | fi |
| 7527 | |
| 7528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7529 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7530 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7532 | |
| 7533 | |
| 7534 | fi |
| 7535 | |
| 7536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7537 | test "$ac_cv_c_int64_t" != no && break |
| 7538 | done |
| 7539 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7540 | { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
| 7541 | echo "${ECHO_T}$ac_cv_c_int64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7542 | case $ac_cv_c_int64_t in #( |
| 7543 | no|yes) ;; #( |
| 7544 | *) |
| 7545 | |
| 7546 | cat >>confdefs.h <<_ACEOF |
| 7547 | #define int64_t $ac_cv_c_int64_t |
| 7548 | _ACEOF |
| 7549 | ;; |
| 7550 | esac |
| 7551 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7552 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 7553 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7554 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7556 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7557 | cat >conftest.$ac_ext <<_ACEOF |
| 7558 | /* confdefs.h. */ |
| 7559 | _ACEOF |
| 7560 | cat confdefs.h >>conftest.$ac_ext |
| 7561 | cat >>conftest.$ac_ext <<_ACEOF |
| 7562 | /* end confdefs.h. */ |
| 7563 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7564 | typedef ssize_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7565 | int |
| 7566 | main () |
| 7567 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7568 | if ((ac__type_new_ *) 0) |
| 7569 | return 0; |
| 7570 | if (sizeof (ac__type_new_)) |
| 7571 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7572 | ; |
| 7573 | return 0; |
| 7574 | } |
| 7575 | _ACEOF |
| 7576 | rm -f conftest.$ac_objext |
| 7577 | if { (ac_try="$ac_compile" |
| 7578 | case "(($ac_try" in |
| 7579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7580 | *) ac_try_echo=$ac_try;; |
| 7581 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7583 | (eval "$ac_compile") 2>conftest.er1 |
| 7584 | ac_status=$? |
| 7585 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7586 | rm -f conftest.er1 |
| 7587 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7589 | (exit $ac_status); } && { |
| 7590 | test -z "$ac_c_werror_flag" || |
| 7591 | test ! -s conftest.err |
| 7592 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7593 | ac_cv_type_ssize_t=yes |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7594 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7595 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7597 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7598 | ac_cv_type_ssize_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7599 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7600 | |
| 7601 | 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] | 7602 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7603 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 7604 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
| 7605 | if test $ac_cv_type_ssize_t = yes; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7606 | |
| 7607 | cat >>confdefs.h <<\_ACEOF |
| 7608 | #define HAVE_SSIZE_T 1 |
| 7609 | _ACEOF |
| 7610 | |
| 7611 | fi |
| 7612 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7613 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7614 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 7615 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7616 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 7617 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
| 7618 | if test "${ac_cv_type_int+set}" = set; then |
| 7619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7620 | else |
| 7621 | cat >conftest.$ac_ext <<_ACEOF |
| 7622 | /* confdefs.h. */ |
| 7623 | _ACEOF |
| 7624 | cat confdefs.h >>conftest.$ac_ext |
| 7625 | cat >>conftest.$ac_ext <<_ACEOF |
| 7626 | /* end confdefs.h. */ |
| 7627 | $ac_includes_default |
| 7628 | typedef int ac__type_new_; |
| 7629 | int |
| 7630 | main () |
| 7631 | { |
| 7632 | if ((ac__type_new_ *) 0) |
| 7633 | return 0; |
| 7634 | if (sizeof (ac__type_new_)) |
| 7635 | return 0; |
| 7636 | ; |
| 7637 | return 0; |
| 7638 | } |
| 7639 | _ACEOF |
| 7640 | rm -f conftest.$ac_objext |
| 7641 | if { (ac_try="$ac_compile" |
| 7642 | case "(($ac_try" in |
| 7643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7644 | *) ac_try_echo=$ac_try;; |
| 7645 | esac |
| 7646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7647 | (eval "$ac_compile") 2>conftest.er1 |
| 7648 | ac_status=$? |
| 7649 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7650 | rm -f conftest.er1 |
| 7651 | cat conftest.err >&5 |
| 7652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7653 | (exit $ac_status); } && { |
| 7654 | test -z "$ac_c_werror_flag" || |
| 7655 | test ! -s conftest.err |
| 7656 | } && test -s conftest.$ac_objext; then |
| 7657 | ac_cv_type_int=yes |
| 7658 | else |
| 7659 | echo "$as_me: failed program was:" >&5 |
| 7660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7661 | |
| 7662 | ac_cv_type_int=no |
| 7663 | fi |
| 7664 | |
| 7665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7666 | fi |
| 7667 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 7668 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 7669 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7670 | # The cast to long int works around a bug in the HP C Compiler |
| 7671 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7672 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7673 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7674 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 7675 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7676 | if test "${ac_cv_sizeof_int+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7678 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7679 | if test "$cross_compiling" = yes; then |
| 7680 | # Depending upon the size, compute the lo and hi bounds. |
| 7681 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7682 | /* confdefs.h. */ |
| 7683 | _ACEOF |
| 7684 | cat confdefs.h >>conftest.$ac_ext |
| 7685 | cat >>conftest.$ac_ext <<_ACEOF |
| 7686 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7687 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7688 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7689 | int |
| 7690 | main () |
| 7691 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7692 | 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] | 7693 | test_array [0] = 0 |
| 7694 | |
| 7695 | ; |
| 7696 | return 0; |
| 7697 | } |
| 7698 | _ACEOF |
| 7699 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7700 | if { (ac_try="$ac_compile" |
| 7701 | case "(($ac_try" in |
| 7702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7703 | *) ac_try_echo=$ac_try;; |
| 7704 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7706 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7707 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7709 | rm -f conftest.er1 |
| 7710 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7712 | (exit $ac_status); } && { |
| 7713 | test -z "$ac_c_werror_flag" || |
| 7714 | test ! -s conftest.err |
| 7715 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7716 | ac_lo=0 ac_mid=0 |
| 7717 | while :; do |
| 7718 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7719 | /* confdefs.h. */ |
| 7720 | _ACEOF |
| 7721 | cat confdefs.h >>conftest.$ac_ext |
| 7722 | cat >>conftest.$ac_ext <<_ACEOF |
| 7723 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7724 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7725 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7726 | int |
| 7727 | main () |
| 7728 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7729 | 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] | 7730 | test_array [0] = 0 |
| 7731 | |
| 7732 | ; |
| 7733 | return 0; |
| 7734 | } |
| 7735 | _ACEOF |
| 7736 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7737 | if { (ac_try="$ac_compile" |
| 7738 | case "(($ac_try" in |
| 7739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7740 | *) ac_try_echo=$ac_try;; |
| 7741 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7743 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7744 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7746 | rm -f conftest.er1 |
| 7747 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7749 | (exit $ac_status); } && { |
| 7750 | test -z "$ac_c_werror_flag" || |
| 7751 | test ! -s conftest.err |
| 7752 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7753 | ac_hi=$ac_mid; break |
| 7754 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7755 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7757 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7758 | ac_lo=`expr $ac_mid + 1` |
| 7759 | if test $ac_lo -le $ac_mid; then |
| 7760 | ac_lo= ac_hi= |
| 7761 | break |
| 7762 | fi |
| 7763 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7764 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7765 | |
| 7766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7767 | done |
| 7768 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7769 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7771 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7772 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7773 | /* confdefs.h. */ |
| 7774 | _ACEOF |
| 7775 | cat confdefs.h >>conftest.$ac_ext |
| 7776 | cat >>conftest.$ac_ext <<_ACEOF |
| 7777 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7778 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7779 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7780 | int |
| 7781 | main () |
| 7782 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7783 | 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] | 7784 | test_array [0] = 0 |
| 7785 | |
| 7786 | ; |
| 7787 | return 0; |
| 7788 | } |
| 7789 | _ACEOF |
| 7790 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7791 | if { (ac_try="$ac_compile" |
| 7792 | case "(($ac_try" in |
| 7793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7794 | *) ac_try_echo=$ac_try;; |
| 7795 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7797 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7798 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7799 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7800 | rm -f conftest.er1 |
| 7801 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7803 | (exit $ac_status); } && { |
| 7804 | test -z "$ac_c_werror_flag" || |
| 7805 | test ! -s conftest.err |
| 7806 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7807 | ac_hi=-1 ac_mid=-1 |
| 7808 | while :; do |
| 7809 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7810 | /* confdefs.h. */ |
| 7811 | _ACEOF |
| 7812 | cat confdefs.h >>conftest.$ac_ext |
| 7813 | cat >>conftest.$ac_ext <<_ACEOF |
| 7814 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7815 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7816 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7817 | int |
| 7818 | main () |
| 7819 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7820 | 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] | 7821 | test_array [0] = 0 |
| 7822 | |
| 7823 | ; |
| 7824 | return 0; |
| 7825 | } |
| 7826 | _ACEOF |
| 7827 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7828 | if { (ac_try="$ac_compile" |
| 7829 | case "(($ac_try" in |
| 7830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7831 | *) ac_try_echo=$ac_try;; |
| 7832 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7834 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7835 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7837 | rm -f conftest.er1 |
| 7838 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7840 | (exit $ac_status); } && { |
| 7841 | test -z "$ac_c_werror_flag" || |
| 7842 | test ! -s conftest.err |
| 7843 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7844 | ac_lo=$ac_mid; break |
| 7845 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7846 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7848 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7849 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7850 | if test $ac_mid -le $ac_hi; then |
| 7851 | ac_lo= ac_hi= |
| 7852 | break |
| 7853 | fi |
| 7854 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7855 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7856 | |
| 7857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7858 | done |
| 7859 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7860 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7862 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7863 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7864 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7865 | |
| 7866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7867 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7868 | |
| 7869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7870 | # Binary search between lo and hi bounds. |
| 7871 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7872 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7873 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7874 | /* confdefs.h. */ |
| 7875 | _ACEOF |
| 7876 | cat confdefs.h >>conftest.$ac_ext |
| 7877 | cat >>conftest.$ac_ext <<_ACEOF |
| 7878 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7879 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7880 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7881 | int |
| 7882 | main () |
| 7883 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7884 | 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] | 7885 | test_array [0] = 0 |
| 7886 | |
| 7887 | ; |
| 7888 | return 0; |
| 7889 | } |
| 7890 | _ACEOF |
| 7891 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7892 | if { (ac_try="$ac_compile" |
| 7893 | case "(($ac_try" in |
| 7894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7895 | *) ac_try_echo=$ac_try;; |
| 7896 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7898 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7899 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7901 | rm -f conftest.er1 |
| 7902 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7904 | (exit $ac_status); } && { |
| 7905 | test -z "$ac_c_werror_flag" || |
| 7906 | test ! -s conftest.err |
| 7907 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7908 | ac_hi=$ac_mid |
| 7909 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7910 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7912 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7913 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7914 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7915 | |
| 7916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7917 | done |
| 7918 | case $ac_lo in |
| 7919 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7920 | '') if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7921 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7922 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7923 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7924 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7925 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7926 | else |
| 7927 | ac_cv_sizeof_int=0 |
| 7928 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7929 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7930 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7931 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7932 | /* confdefs.h. */ |
| 7933 | _ACEOF |
| 7934 | cat confdefs.h >>conftest.$ac_ext |
| 7935 | cat >>conftest.$ac_ext <<_ACEOF |
| 7936 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7937 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7938 | typedef int ac__type_sizeof_; |
| 7939 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 7940 | 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] | 7941 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7942 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7943 | int |
| 7944 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7945 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7946 | |
| 7947 | FILE *f = fopen ("conftest.val", "w"); |
| 7948 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7949 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7950 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7951 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7952 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7953 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7954 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7955 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7956 | } |
| 7957 | else |
| 7958 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7959 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7960 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7961 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7962 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7963 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7964 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7965 | |
| 7966 | ; |
| 7967 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7968 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7969 | _ACEOF |
| 7970 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7971 | if { (ac_try="$ac_link" |
| 7972 | case "(($ac_try" in |
| 7973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7974 | *) ac_try_echo=$ac_try;; |
| 7975 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7977 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7978 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7980 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7981 | { (case "(($ac_try" in |
| 7982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7983 | *) ac_try_echo=$ac_try;; |
| 7984 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7986 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7987 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7989 | (exit $ac_status); }; }; then |
| 7990 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7991 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7992 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7993 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7995 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7996 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7997 | if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7998 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7999 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8000 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8001 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8002 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8003 | else |
| 8004 | ac_cv_sizeof_int=0 |
| 8005 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8006 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8007 | 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] | 8008 | fi |
| 8009 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8010 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8011 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 8012 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8013 | |
| 8014 | |
| 8015 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8016 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8017 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8018 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8019 | |
| 8020 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8021 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 8022 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
| 8023 | if test "${ac_cv_type_long+set}" = set; then |
| 8024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8025 | else |
| 8026 | cat >conftest.$ac_ext <<_ACEOF |
| 8027 | /* confdefs.h. */ |
| 8028 | _ACEOF |
| 8029 | cat confdefs.h >>conftest.$ac_ext |
| 8030 | cat >>conftest.$ac_ext <<_ACEOF |
| 8031 | /* end confdefs.h. */ |
| 8032 | $ac_includes_default |
| 8033 | typedef long ac__type_new_; |
| 8034 | int |
| 8035 | main () |
| 8036 | { |
| 8037 | if ((ac__type_new_ *) 0) |
| 8038 | return 0; |
| 8039 | if (sizeof (ac__type_new_)) |
| 8040 | return 0; |
| 8041 | ; |
| 8042 | return 0; |
| 8043 | } |
| 8044 | _ACEOF |
| 8045 | rm -f conftest.$ac_objext |
| 8046 | if { (ac_try="$ac_compile" |
| 8047 | case "(($ac_try" in |
| 8048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8049 | *) ac_try_echo=$ac_try;; |
| 8050 | esac |
| 8051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8052 | (eval "$ac_compile") 2>conftest.er1 |
| 8053 | ac_status=$? |
| 8054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8055 | rm -f conftest.er1 |
| 8056 | cat conftest.err >&5 |
| 8057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8058 | (exit $ac_status); } && { |
| 8059 | test -z "$ac_c_werror_flag" || |
| 8060 | test ! -s conftest.err |
| 8061 | } && test -s conftest.$ac_objext; then |
| 8062 | ac_cv_type_long=yes |
| 8063 | else |
| 8064 | echo "$as_me: failed program was:" >&5 |
| 8065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8066 | |
| 8067 | ac_cv_type_long=no |
| 8068 | fi |
| 8069 | |
| 8070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8071 | fi |
| 8072 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 8073 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 8074 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8075 | # The cast to long int works around a bug in the HP C Compiler |
| 8076 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8077 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8078 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8079 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 8080 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8081 | if test "${ac_cv_sizeof_long+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8083 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8084 | if test "$cross_compiling" = yes; then |
| 8085 | # Depending upon the size, compute the lo and hi bounds. |
| 8086 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8087 | /* confdefs.h. */ |
| 8088 | _ACEOF |
| 8089 | cat confdefs.h >>conftest.$ac_ext |
| 8090 | cat >>conftest.$ac_ext <<_ACEOF |
| 8091 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8092 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8093 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8094 | int |
| 8095 | main () |
| 8096 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8097 | 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] | 8098 | test_array [0] = 0 |
| 8099 | |
| 8100 | ; |
| 8101 | return 0; |
| 8102 | } |
| 8103 | _ACEOF |
| 8104 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8105 | if { (ac_try="$ac_compile" |
| 8106 | case "(($ac_try" in |
| 8107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8108 | *) ac_try_echo=$ac_try;; |
| 8109 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8111 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8112 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8114 | rm -f conftest.er1 |
| 8115 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8117 | (exit $ac_status); } && { |
| 8118 | test -z "$ac_c_werror_flag" || |
| 8119 | test ! -s conftest.err |
| 8120 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8121 | ac_lo=0 ac_mid=0 |
| 8122 | while :; do |
| 8123 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8124 | /* confdefs.h. */ |
| 8125 | _ACEOF |
| 8126 | cat confdefs.h >>conftest.$ac_ext |
| 8127 | cat >>conftest.$ac_ext <<_ACEOF |
| 8128 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8129 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8130 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8131 | int |
| 8132 | main () |
| 8133 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8134 | 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] | 8135 | test_array [0] = 0 |
| 8136 | |
| 8137 | ; |
| 8138 | return 0; |
| 8139 | } |
| 8140 | _ACEOF |
| 8141 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8142 | if { (ac_try="$ac_compile" |
| 8143 | case "(($ac_try" in |
| 8144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8145 | *) ac_try_echo=$ac_try;; |
| 8146 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8148 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8149 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8150 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8151 | rm -f conftest.er1 |
| 8152 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8154 | (exit $ac_status); } && { |
| 8155 | test -z "$ac_c_werror_flag" || |
| 8156 | test ! -s conftest.err |
| 8157 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8158 | ac_hi=$ac_mid; break |
| 8159 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8160 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8162 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8163 | ac_lo=`expr $ac_mid + 1` |
| 8164 | if test $ac_lo -le $ac_mid; then |
| 8165 | ac_lo= ac_hi= |
| 8166 | break |
| 8167 | fi |
| 8168 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8169 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8170 | |
| 8171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8172 | done |
| 8173 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8174 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8175 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8176 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8177 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8178 | /* confdefs.h. */ |
| 8179 | _ACEOF |
| 8180 | cat confdefs.h >>conftest.$ac_ext |
| 8181 | cat >>conftest.$ac_ext <<_ACEOF |
| 8182 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8183 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8184 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8185 | int |
| 8186 | main () |
| 8187 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8188 | 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] | 8189 | test_array [0] = 0 |
| 8190 | |
| 8191 | ; |
| 8192 | return 0; |
| 8193 | } |
| 8194 | _ACEOF |
| 8195 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8196 | if { (ac_try="$ac_compile" |
| 8197 | case "(($ac_try" in |
| 8198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8199 | *) ac_try_echo=$ac_try;; |
| 8200 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8202 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8203 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8204 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8205 | rm -f conftest.er1 |
| 8206 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8208 | (exit $ac_status); } && { |
| 8209 | test -z "$ac_c_werror_flag" || |
| 8210 | test ! -s conftest.err |
| 8211 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8212 | ac_hi=-1 ac_mid=-1 |
| 8213 | while :; do |
| 8214 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8215 | /* confdefs.h. */ |
| 8216 | _ACEOF |
| 8217 | cat confdefs.h >>conftest.$ac_ext |
| 8218 | cat >>conftest.$ac_ext <<_ACEOF |
| 8219 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8220 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8221 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8222 | int |
| 8223 | main () |
| 8224 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8225 | 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] | 8226 | test_array [0] = 0 |
| 8227 | |
| 8228 | ; |
| 8229 | return 0; |
| 8230 | } |
| 8231 | _ACEOF |
| 8232 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8233 | if { (ac_try="$ac_compile" |
| 8234 | case "(($ac_try" in |
| 8235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8236 | *) ac_try_echo=$ac_try;; |
| 8237 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8239 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8240 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8242 | rm -f conftest.er1 |
| 8243 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8245 | (exit $ac_status); } && { |
| 8246 | test -z "$ac_c_werror_flag" || |
| 8247 | test ! -s conftest.err |
| 8248 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8249 | ac_lo=$ac_mid; break |
| 8250 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8251 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8253 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8254 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8255 | if test $ac_mid -le $ac_hi; then |
| 8256 | ac_lo= ac_hi= |
| 8257 | break |
| 8258 | fi |
| 8259 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8260 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8261 | |
| 8262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8263 | done |
| 8264 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8265 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8267 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8268 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8269 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8270 | |
| 8271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8272 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8273 | |
| 8274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8275 | # Binary search between lo and hi bounds. |
| 8276 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8277 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8278 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8279 | /* confdefs.h. */ |
| 8280 | _ACEOF |
| 8281 | cat confdefs.h >>conftest.$ac_ext |
| 8282 | cat >>conftest.$ac_ext <<_ACEOF |
| 8283 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8284 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8285 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8286 | int |
| 8287 | main () |
| 8288 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8289 | 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] | 8290 | test_array [0] = 0 |
| 8291 | |
| 8292 | ; |
| 8293 | return 0; |
| 8294 | } |
| 8295 | _ACEOF |
| 8296 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8297 | if { (ac_try="$ac_compile" |
| 8298 | case "(($ac_try" in |
| 8299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8300 | *) ac_try_echo=$ac_try;; |
| 8301 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8303 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8304 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8306 | rm -f conftest.er1 |
| 8307 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8309 | (exit $ac_status); } && { |
| 8310 | test -z "$ac_c_werror_flag" || |
| 8311 | test ! -s conftest.err |
| 8312 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8313 | ac_hi=$ac_mid |
| 8314 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8315 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8317 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8318 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8319 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8320 | |
| 8321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8322 | done |
| 8323 | case $ac_lo in |
| 8324 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8325 | '') if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8326 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8327 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8328 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8329 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8330 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8331 | else |
| 8332 | ac_cv_sizeof_long=0 |
| 8333 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8334 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8335 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8336 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8337 | /* confdefs.h. */ |
| 8338 | _ACEOF |
| 8339 | cat confdefs.h >>conftest.$ac_ext |
| 8340 | cat >>conftest.$ac_ext <<_ACEOF |
| 8341 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8342 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8343 | typedef long ac__type_sizeof_; |
| 8344 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8345 | 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] | 8346 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8347 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8348 | int |
| 8349 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8350 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8351 | |
| 8352 | FILE *f = fopen ("conftest.val", "w"); |
| 8353 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8354 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8355 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8356 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8357 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8358 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8359 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8360 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8361 | } |
| 8362 | else |
| 8363 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8364 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8365 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8366 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8367 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8368 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8369 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8370 | |
| 8371 | ; |
| 8372 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8373 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8374 | _ACEOF |
| 8375 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8376 | if { (ac_try="$ac_link" |
| 8377 | case "(($ac_try" in |
| 8378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8379 | *) ac_try_echo=$ac_try;; |
| 8380 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8382 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8383 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8385 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8386 | { (case "(($ac_try" in |
| 8387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8388 | *) ac_try_echo=$ac_try;; |
| 8389 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8391 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8392 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8394 | (exit $ac_status); }; }; then |
| 8395 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8396 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8397 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8398 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8399 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8400 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8401 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8402 | if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8403 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8404 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8405 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8406 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8407 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8408 | else |
| 8409 | ac_cv_sizeof_long=0 |
| 8410 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8411 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8412 | 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] | 8413 | fi |
| 8414 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8415 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8416 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 8417 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8418 | |
| 8419 | |
| 8420 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8421 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8422 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8423 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8424 | |
| 8425 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8426 | { echo "$as_me:$LINENO: checking for void *" >&5 |
| 8427 | echo $ECHO_N "checking for void *... $ECHO_C" >&6; } |
| 8428 | if test "${ac_cv_type_void_p+set}" = set; then |
| 8429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8430 | else |
| 8431 | cat >conftest.$ac_ext <<_ACEOF |
| 8432 | /* confdefs.h. */ |
| 8433 | _ACEOF |
| 8434 | cat confdefs.h >>conftest.$ac_ext |
| 8435 | cat >>conftest.$ac_ext <<_ACEOF |
| 8436 | /* end confdefs.h. */ |
| 8437 | $ac_includes_default |
| 8438 | typedef void * ac__type_new_; |
| 8439 | int |
| 8440 | main () |
| 8441 | { |
| 8442 | if ((ac__type_new_ *) 0) |
| 8443 | return 0; |
| 8444 | if (sizeof (ac__type_new_)) |
| 8445 | return 0; |
| 8446 | ; |
| 8447 | return 0; |
| 8448 | } |
| 8449 | _ACEOF |
| 8450 | rm -f conftest.$ac_objext |
| 8451 | if { (ac_try="$ac_compile" |
| 8452 | case "(($ac_try" in |
| 8453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8454 | *) ac_try_echo=$ac_try;; |
| 8455 | esac |
| 8456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8457 | (eval "$ac_compile") 2>conftest.er1 |
| 8458 | ac_status=$? |
| 8459 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8460 | rm -f conftest.er1 |
| 8461 | cat conftest.err >&5 |
| 8462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8463 | (exit $ac_status); } && { |
| 8464 | test -z "$ac_c_werror_flag" || |
| 8465 | test ! -s conftest.err |
| 8466 | } && test -s conftest.$ac_objext; then |
| 8467 | ac_cv_type_void_p=yes |
| 8468 | else |
| 8469 | echo "$as_me: failed program was:" >&5 |
| 8470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8471 | |
| 8472 | ac_cv_type_void_p=no |
| 8473 | fi |
| 8474 | |
| 8475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8476 | fi |
| 8477 | { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 8478 | echo "${ECHO_T}$ac_cv_type_void_p" >&6; } |
| 8479 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8480 | # The cast to long int works around a bug in the HP C Compiler |
| 8481 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8482 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8483 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8484 | { echo "$as_me:$LINENO: checking size of void *" >&5 |
| 8485 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8486 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8488 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8489 | if test "$cross_compiling" = yes; then |
| 8490 | # Depending upon the size, compute the lo and hi bounds. |
| 8491 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8492 | /* confdefs.h. */ |
| 8493 | _ACEOF |
| 8494 | cat confdefs.h >>conftest.$ac_ext |
| 8495 | cat >>conftest.$ac_ext <<_ACEOF |
| 8496 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8497 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8498 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8499 | int |
| 8500 | main () |
| 8501 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8502 | 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] | 8503 | test_array [0] = 0 |
| 8504 | |
| 8505 | ; |
| 8506 | return 0; |
| 8507 | } |
| 8508 | _ACEOF |
| 8509 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8510 | if { (ac_try="$ac_compile" |
| 8511 | case "(($ac_try" in |
| 8512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8513 | *) ac_try_echo=$ac_try;; |
| 8514 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8516 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8517 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8518 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8519 | rm -f conftest.er1 |
| 8520 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8522 | (exit $ac_status); } && { |
| 8523 | test -z "$ac_c_werror_flag" || |
| 8524 | test ! -s conftest.err |
| 8525 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8526 | ac_lo=0 ac_mid=0 |
| 8527 | while :; do |
| 8528 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8529 | /* confdefs.h. */ |
| 8530 | _ACEOF |
| 8531 | cat confdefs.h >>conftest.$ac_ext |
| 8532 | cat >>conftest.$ac_ext <<_ACEOF |
| 8533 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8534 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8535 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8536 | int |
| 8537 | main () |
| 8538 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8539 | 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] | 8540 | test_array [0] = 0 |
| 8541 | |
| 8542 | ; |
| 8543 | return 0; |
| 8544 | } |
| 8545 | _ACEOF |
| 8546 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8547 | if { (ac_try="$ac_compile" |
| 8548 | case "(($ac_try" in |
| 8549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8550 | *) ac_try_echo=$ac_try;; |
| 8551 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8553 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8554 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8555 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8556 | rm -f conftest.er1 |
| 8557 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8559 | (exit $ac_status); } && { |
| 8560 | test -z "$ac_c_werror_flag" || |
| 8561 | test ! -s conftest.err |
| 8562 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8563 | ac_hi=$ac_mid; break |
| 8564 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8565 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8567 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8568 | ac_lo=`expr $ac_mid + 1` |
| 8569 | if test $ac_lo -le $ac_mid; then |
| 8570 | ac_lo= ac_hi= |
| 8571 | break |
| 8572 | fi |
| 8573 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8574 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8575 | |
| 8576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8577 | done |
| 8578 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8579 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8580 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8581 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8582 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8583 | /* confdefs.h. */ |
| 8584 | _ACEOF |
| 8585 | cat confdefs.h >>conftest.$ac_ext |
| 8586 | cat >>conftest.$ac_ext <<_ACEOF |
| 8587 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8588 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8589 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8590 | int |
| 8591 | main () |
| 8592 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8593 | 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] | 8594 | test_array [0] = 0 |
| 8595 | |
| 8596 | ; |
| 8597 | return 0; |
| 8598 | } |
| 8599 | _ACEOF |
| 8600 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8601 | if { (ac_try="$ac_compile" |
| 8602 | case "(($ac_try" in |
| 8603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8604 | *) ac_try_echo=$ac_try;; |
| 8605 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8607 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8608 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8610 | rm -f conftest.er1 |
| 8611 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8613 | (exit $ac_status); } && { |
| 8614 | test -z "$ac_c_werror_flag" || |
| 8615 | test ! -s conftest.err |
| 8616 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8617 | ac_hi=-1 ac_mid=-1 |
| 8618 | while :; do |
| 8619 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8620 | /* confdefs.h. */ |
| 8621 | _ACEOF |
| 8622 | cat confdefs.h >>conftest.$ac_ext |
| 8623 | cat >>conftest.$ac_ext <<_ACEOF |
| 8624 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8625 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8626 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8627 | int |
| 8628 | main () |
| 8629 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8630 | 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] | 8631 | test_array [0] = 0 |
| 8632 | |
| 8633 | ; |
| 8634 | return 0; |
| 8635 | } |
| 8636 | _ACEOF |
| 8637 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8638 | if { (ac_try="$ac_compile" |
| 8639 | case "(($ac_try" in |
| 8640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8641 | *) ac_try_echo=$ac_try;; |
| 8642 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8644 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8645 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8646 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8647 | rm -f conftest.er1 |
| 8648 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8650 | (exit $ac_status); } && { |
| 8651 | test -z "$ac_c_werror_flag" || |
| 8652 | test ! -s conftest.err |
| 8653 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8654 | ac_lo=$ac_mid; break |
| 8655 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8656 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8658 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8659 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8660 | if test $ac_mid -le $ac_hi; then |
| 8661 | ac_lo= ac_hi= |
| 8662 | break |
| 8663 | fi |
| 8664 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8665 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8666 | |
| 8667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8668 | done |
| 8669 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8670 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8672 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8673 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8674 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8675 | |
| 8676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8677 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8678 | |
| 8679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8680 | # Binary search between lo and hi bounds. |
| 8681 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8682 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8683 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8684 | /* confdefs.h. */ |
| 8685 | _ACEOF |
| 8686 | cat confdefs.h >>conftest.$ac_ext |
| 8687 | cat >>conftest.$ac_ext <<_ACEOF |
| 8688 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8689 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8690 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8691 | int |
| 8692 | main () |
| 8693 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8694 | 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] | 8695 | test_array [0] = 0 |
| 8696 | |
| 8697 | ; |
| 8698 | return 0; |
| 8699 | } |
| 8700 | _ACEOF |
| 8701 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8702 | if { (ac_try="$ac_compile" |
| 8703 | case "(($ac_try" in |
| 8704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8705 | *) ac_try_echo=$ac_try;; |
| 8706 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8708 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8709 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8711 | rm -f conftest.er1 |
| 8712 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8714 | (exit $ac_status); } && { |
| 8715 | test -z "$ac_c_werror_flag" || |
| 8716 | test ! -s conftest.err |
| 8717 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8718 | ac_hi=$ac_mid |
| 8719 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8720 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8722 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8723 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8724 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8725 | |
| 8726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8727 | done |
| 8728 | case $ac_lo in |
| 8729 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8730 | '') if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8731 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8732 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8733 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8734 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8735 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8736 | else |
| 8737 | ac_cv_sizeof_void_p=0 |
| 8738 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8739 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8740 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8741 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8742 | /* confdefs.h. */ |
| 8743 | _ACEOF |
| 8744 | cat confdefs.h >>conftest.$ac_ext |
| 8745 | cat >>conftest.$ac_ext <<_ACEOF |
| 8746 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8747 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8748 | typedef void * ac__type_sizeof_; |
| 8749 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8750 | 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] | 8751 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8752 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8753 | int |
| 8754 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8755 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8756 | |
| 8757 | FILE *f = fopen ("conftest.val", "w"); |
| 8758 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8759 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8760 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8761 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8762 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8763 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8764 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8765 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8766 | } |
| 8767 | else |
| 8768 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8769 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8770 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8771 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8772 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8773 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8774 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8775 | |
| 8776 | ; |
| 8777 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8778 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8779 | _ACEOF |
| 8780 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8781 | if { (ac_try="$ac_link" |
| 8782 | case "(($ac_try" in |
| 8783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8784 | *) ac_try_echo=$ac_try;; |
| 8785 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8787 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8788 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8790 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8791 | { (case "(($ac_try" in |
| 8792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8793 | *) ac_try_echo=$ac_try;; |
| 8794 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8796 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8797 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8799 | (exit $ac_status); }; }; then |
| 8800 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8801 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8802 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8803 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8804 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8805 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8806 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8807 | if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8808 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8809 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8810 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8811 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8812 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8813 | else |
| 8814 | ac_cv_sizeof_void_p=0 |
| 8815 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8816 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8817 | 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] | 8818 | fi |
| 8819 | rm -f conftest.val |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8820 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8821 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 8822 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8823 | |
| 8824 | |
| 8825 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8826 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8827 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8828 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8829 | |
| 8830 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8831 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 8832 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
| 8833 | if test "${ac_cv_type_short+set}" = set; then |
| 8834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8835 | else |
| 8836 | cat >conftest.$ac_ext <<_ACEOF |
| 8837 | /* confdefs.h. */ |
| 8838 | _ACEOF |
| 8839 | cat confdefs.h >>conftest.$ac_ext |
| 8840 | cat >>conftest.$ac_ext <<_ACEOF |
| 8841 | /* end confdefs.h. */ |
| 8842 | $ac_includes_default |
| 8843 | typedef short ac__type_new_; |
| 8844 | int |
| 8845 | main () |
| 8846 | { |
| 8847 | if ((ac__type_new_ *) 0) |
| 8848 | return 0; |
| 8849 | if (sizeof (ac__type_new_)) |
| 8850 | return 0; |
| 8851 | ; |
| 8852 | return 0; |
| 8853 | } |
| 8854 | _ACEOF |
| 8855 | rm -f conftest.$ac_objext |
| 8856 | if { (ac_try="$ac_compile" |
| 8857 | case "(($ac_try" in |
| 8858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8859 | *) ac_try_echo=$ac_try;; |
| 8860 | esac |
| 8861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8862 | (eval "$ac_compile") 2>conftest.er1 |
| 8863 | ac_status=$? |
| 8864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8865 | rm -f conftest.er1 |
| 8866 | cat conftest.err >&5 |
| 8867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8868 | (exit $ac_status); } && { |
| 8869 | test -z "$ac_c_werror_flag" || |
| 8870 | test ! -s conftest.err |
| 8871 | } && test -s conftest.$ac_objext; then |
| 8872 | ac_cv_type_short=yes |
| 8873 | else |
| 8874 | echo "$as_me: failed program was:" >&5 |
| 8875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8876 | |
| 8877 | ac_cv_type_short=no |
| 8878 | fi |
| 8879 | |
| 8880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8881 | fi |
| 8882 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 8883 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 8884 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8885 | # The cast to long int works around a bug in the HP C Compiler |
| 8886 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8887 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8888 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8889 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 8890 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8891 | if test "${ac_cv_sizeof_short+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8893 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8894 | if test "$cross_compiling" = yes; then |
| 8895 | # Depending upon the size, compute the lo and hi bounds. |
| 8896 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8897 | /* confdefs.h. */ |
| 8898 | _ACEOF |
| 8899 | cat confdefs.h >>conftest.$ac_ext |
| 8900 | cat >>conftest.$ac_ext <<_ACEOF |
| 8901 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8902 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8903 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8904 | int |
| 8905 | main () |
| 8906 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8907 | 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] | 8908 | test_array [0] = 0 |
| 8909 | |
| 8910 | ; |
| 8911 | return 0; |
| 8912 | } |
| 8913 | _ACEOF |
| 8914 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8915 | if { (ac_try="$ac_compile" |
| 8916 | case "(($ac_try" in |
| 8917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8918 | *) ac_try_echo=$ac_try;; |
| 8919 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8921 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8922 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8924 | rm -f conftest.er1 |
| 8925 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8927 | (exit $ac_status); } && { |
| 8928 | test -z "$ac_c_werror_flag" || |
| 8929 | test ! -s conftest.err |
| 8930 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8931 | ac_lo=0 ac_mid=0 |
| 8932 | while :; do |
| 8933 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8934 | /* confdefs.h. */ |
| 8935 | _ACEOF |
| 8936 | cat confdefs.h >>conftest.$ac_ext |
| 8937 | cat >>conftest.$ac_ext <<_ACEOF |
| 8938 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8939 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8940 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8941 | int |
| 8942 | main () |
| 8943 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8944 | 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] | 8945 | test_array [0] = 0 |
| 8946 | |
| 8947 | ; |
| 8948 | return 0; |
| 8949 | } |
| 8950 | _ACEOF |
| 8951 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8952 | if { (ac_try="$ac_compile" |
| 8953 | case "(($ac_try" in |
| 8954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8955 | *) ac_try_echo=$ac_try;; |
| 8956 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8958 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8959 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8961 | rm -f conftest.er1 |
| 8962 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8964 | (exit $ac_status); } && { |
| 8965 | test -z "$ac_c_werror_flag" || |
| 8966 | test ! -s conftest.err |
| 8967 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8968 | ac_hi=$ac_mid; break |
| 8969 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8970 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8972 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8973 | ac_lo=`expr $ac_mid + 1` |
| 8974 | if test $ac_lo -le $ac_mid; then |
| 8975 | ac_lo= ac_hi= |
| 8976 | break |
| 8977 | fi |
| 8978 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8979 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8980 | |
| 8981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8982 | done |
| 8983 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8984 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8985 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8986 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8987 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8988 | /* confdefs.h. */ |
| 8989 | _ACEOF |
| 8990 | cat confdefs.h >>conftest.$ac_ext |
| 8991 | cat >>conftest.$ac_ext <<_ACEOF |
| 8992 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8993 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8994 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8995 | int |
| 8996 | main () |
| 8997 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8998 | 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] | 8999 | test_array [0] = 0 |
| 9000 | |
| 9001 | ; |
| 9002 | return 0; |
| 9003 | } |
| 9004 | _ACEOF |
| 9005 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9006 | if { (ac_try="$ac_compile" |
| 9007 | case "(($ac_try" in |
| 9008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9009 | *) ac_try_echo=$ac_try;; |
| 9010 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9012 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9013 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9014 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9015 | rm -f conftest.er1 |
| 9016 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9018 | (exit $ac_status); } && { |
| 9019 | test -z "$ac_c_werror_flag" || |
| 9020 | test ! -s conftest.err |
| 9021 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9022 | ac_hi=-1 ac_mid=-1 |
| 9023 | while :; do |
| 9024 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9025 | /* confdefs.h. */ |
| 9026 | _ACEOF |
| 9027 | cat confdefs.h >>conftest.$ac_ext |
| 9028 | cat >>conftest.$ac_ext <<_ACEOF |
| 9029 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9030 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9031 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9032 | int |
| 9033 | main () |
| 9034 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9035 | 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] | 9036 | test_array [0] = 0 |
| 9037 | |
| 9038 | ; |
| 9039 | return 0; |
| 9040 | } |
| 9041 | _ACEOF |
| 9042 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9043 | if { (ac_try="$ac_compile" |
| 9044 | case "(($ac_try" in |
| 9045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9046 | *) ac_try_echo=$ac_try;; |
| 9047 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9049 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9050 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9052 | rm -f conftest.er1 |
| 9053 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9055 | (exit $ac_status); } && { |
| 9056 | test -z "$ac_c_werror_flag" || |
| 9057 | test ! -s conftest.err |
| 9058 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9059 | ac_lo=$ac_mid; break |
| 9060 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9061 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9062 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9063 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9064 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9065 | if test $ac_mid -le $ac_hi; then |
| 9066 | ac_lo= ac_hi= |
| 9067 | break |
| 9068 | fi |
| 9069 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9070 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9071 | |
| 9072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9073 | done |
| 9074 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9075 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9077 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9078 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9079 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9080 | |
| 9081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9082 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9083 | |
| 9084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9085 | # Binary search between lo and hi bounds. |
| 9086 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9087 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9088 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9089 | /* confdefs.h. */ |
| 9090 | _ACEOF |
| 9091 | cat confdefs.h >>conftest.$ac_ext |
| 9092 | cat >>conftest.$ac_ext <<_ACEOF |
| 9093 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9094 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9095 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9096 | int |
| 9097 | main () |
| 9098 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9099 | 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] | 9100 | test_array [0] = 0 |
| 9101 | |
| 9102 | ; |
| 9103 | return 0; |
| 9104 | } |
| 9105 | _ACEOF |
| 9106 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9107 | if { (ac_try="$ac_compile" |
| 9108 | case "(($ac_try" in |
| 9109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9110 | *) ac_try_echo=$ac_try;; |
| 9111 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9113 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9114 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9116 | rm -f conftest.er1 |
| 9117 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9119 | (exit $ac_status); } && { |
| 9120 | test -z "$ac_c_werror_flag" || |
| 9121 | test ! -s conftest.err |
| 9122 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9123 | ac_hi=$ac_mid |
| 9124 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9125 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9127 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9128 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9129 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9130 | |
| 9131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9132 | done |
| 9133 | case $ac_lo in |
| 9134 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9135 | '') if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9136 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9137 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9138 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9139 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9140 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9141 | else |
| 9142 | ac_cv_sizeof_short=0 |
| 9143 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9144 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9145 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9146 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9147 | /* confdefs.h. */ |
| 9148 | _ACEOF |
| 9149 | cat confdefs.h >>conftest.$ac_ext |
| 9150 | cat >>conftest.$ac_ext <<_ACEOF |
| 9151 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9152 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9153 | typedef short ac__type_sizeof_; |
| 9154 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9155 | 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] | 9156 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9157 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9158 | int |
| 9159 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9160 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9161 | |
| 9162 | FILE *f = fopen ("conftest.val", "w"); |
| 9163 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9164 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9165 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9166 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9167 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9168 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9169 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9170 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9171 | } |
| 9172 | else |
| 9173 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9174 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9175 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9176 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9177 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9178 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9179 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9180 | |
| 9181 | ; |
| 9182 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9183 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9184 | _ACEOF |
| 9185 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9186 | if { (ac_try="$ac_link" |
| 9187 | case "(($ac_try" in |
| 9188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9189 | *) ac_try_echo=$ac_try;; |
| 9190 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9192 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9193 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9195 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9196 | { (case "(($ac_try" in |
| 9197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9198 | *) ac_try_echo=$ac_try;; |
| 9199 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9201 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9202 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9204 | (exit $ac_status); }; }; then |
| 9205 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9206 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9207 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9208 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9209 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9210 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9211 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9212 | if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9213 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9214 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9215 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9216 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9217 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9218 | else |
| 9219 | ac_cv_sizeof_short=0 |
| 9220 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9221 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9222 | 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] | 9223 | fi |
| 9224 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9225 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9226 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 9227 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9228 | |
| 9229 | |
| 9230 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9231 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9232 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9233 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9234 | |
| 9235 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9236 | { echo "$as_me:$LINENO: checking for float" >&5 |
| 9237 | echo $ECHO_N "checking for float... $ECHO_C" >&6; } |
| 9238 | if test "${ac_cv_type_float+set}" = set; then |
| 9239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9240 | else |
| 9241 | cat >conftest.$ac_ext <<_ACEOF |
| 9242 | /* confdefs.h. */ |
| 9243 | _ACEOF |
| 9244 | cat confdefs.h >>conftest.$ac_ext |
| 9245 | cat >>conftest.$ac_ext <<_ACEOF |
| 9246 | /* end confdefs.h. */ |
| 9247 | $ac_includes_default |
| 9248 | typedef float ac__type_new_; |
| 9249 | int |
| 9250 | main () |
| 9251 | { |
| 9252 | if ((ac__type_new_ *) 0) |
| 9253 | return 0; |
| 9254 | if (sizeof (ac__type_new_)) |
| 9255 | return 0; |
| 9256 | ; |
| 9257 | return 0; |
| 9258 | } |
| 9259 | _ACEOF |
| 9260 | rm -f conftest.$ac_objext |
| 9261 | if { (ac_try="$ac_compile" |
| 9262 | case "(($ac_try" in |
| 9263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9264 | *) ac_try_echo=$ac_try;; |
| 9265 | esac |
| 9266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9267 | (eval "$ac_compile") 2>conftest.er1 |
| 9268 | ac_status=$? |
| 9269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9270 | rm -f conftest.er1 |
| 9271 | cat conftest.err >&5 |
| 9272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9273 | (exit $ac_status); } && { |
| 9274 | test -z "$ac_c_werror_flag" || |
| 9275 | test ! -s conftest.err |
| 9276 | } && test -s conftest.$ac_objext; then |
| 9277 | ac_cv_type_float=yes |
| 9278 | else |
| 9279 | echo "$as_me: failed program was:" >&5 |
| 9280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9281 | |
| 9282 | ac_cv_type_float=no |
| 9283 | fi |
| 9284 | |
| 9285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9286 | fi |
| 9287 | { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 9288 | echo "${ECHO_T}$ac_cv_type_float" >&6; } |
| 9289 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9290 | # The cast to long int works around a bug in the HP C Compiler |
| 9291 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9292 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9293 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9294 | { echo "$as_me:$LINENO: checking size of float" >&5 |
| 9295 | echo $ECHO_N "checking size of float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9296 | if test "${ac_cv_sizeof_float+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9298 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9299 | if test "$cross_compiling" = yes; then |
| 9300 | # Depending upon the size, compute the lo and hi bounds. |
| 9301 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9302 | /* confdefs.h. */ |
| 9303 | _ACEOF |
| 9304 | cat confdefs.h >>conftest.$ac_ext |
| 9305 | cat >>conftest.$ac_ext <<_ACEOF |
| 9306 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9307 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9308 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9309 | int |
| 9310 | main () |
| 9311 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9312 | 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] | 9313 | test_array [0] = 0 |
| 9314 | |
| 9315 | ; |
| 9316 | return 0; |
| 9317 | } |
| 9318 | _ACEOF |
| 9319 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9320 | if { (ac_try="$ac_compile" |
| 9321 | case "(($ac_try" in |
| 9322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9323 | *) ac_try_echo=$ac_try;; |
| 9324 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9326 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9327 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9329 | rm -f conftest.er1 |
| 9330 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9332 | (exit $ac_status); } && { |
| 9333 | test -z "$ac_c_werror_flag" || |
| 9334 | test ! -s conftest.err |
| 9335 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9336 | ac_lo=0 ac_mid=0 |
| 9337 | while :; do |
| 9338 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9339 | /* confdefs.h. */ |
| 9340 | _ACEOF |
| 9341 | cat confdefs.h >>conftest.$ac_ext |
| 9342 | cat >>conftest.$ac_ext <<_ACEOF |
| 9343 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9344 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9345 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9346 | int |
| 9347 | main () |
| 9348 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9349 | 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] | 9350 | test_array [0] = 0 |
| 9351 | |
| 9352 | ; |
| 9353 | return 0; |
| 9354 | } |
| 9355 | _ACEOF |
| 9356 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9357 | if { (ac_try="$ac_compile" |
| 9358 | case "(($ac_try" in |
| 9359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9360 | *) ac_try_echo=$ac_try;; |
| 9361 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9363 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9364 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9366 | rm -f conftest.er1 |
| 9367 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9369 | (exit $ac_status); } && { |
| 9370 | test -z "$ac_c_werror_flag" || |
| 9371 | test ! -s conftest.err |
| 9372 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9373 | ac_hi=$ac_mid; break |
| 9374 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9375 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9377 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9378 | ac_lo=`expr $ac_mid + 1` |
| 9379 | if test $ac_lo -le $ac_mid; then |
| 9380 | ac_lo= ac_hi= |
| 9381 | break |
| 9382 | fi |
| 9383 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9384 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9385 | |
| 9386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9387 | done |
| 9388 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9389 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9391 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9392 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9393 | /* confdefs.h. */ |
| 9394 | _ACEOF |
| 9395 | cat confdefs.h >>conftest.$ac_ext |
| 9396 | cat >>conftest.$ac_ext <<_ACEOF |
| 9397 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9398 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9399 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9400 | int |
| 9401 | main () |
| 9402 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9403 | 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] | 9404 | test_array [0] = 0 |
| 9405 | |
| 9406 | ; |
| 9407 | return 0; |
| 9408 | } |
| 9409 | _ACEOF |
| 9410 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9411 | if { (ac_try="$ac_compile" |
| 9412 | case "(($ac_try" in |
| 9413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9414 | *) ac_try_echo=$ac_try;; |
| 9415 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9417 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9418 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9419 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9420 | rm -f conftest.er1 |
| 9421 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9423 | (exit $ac_status); } && { |
| 9424 | test -z "$ac_c_werror_flag" || |
| 9425 | test ! -s conftest.err |
| 9426 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9427 | ac_hi=-1 ac_mid=-1 |
| 9428 | while :; do |
| 9429 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9430 | /* confdefs.h. */ |
| 9431 | _ACEOF |
| 9432 | cat confdefs.h >>conftest.$ac_ext |
| 9433 | cat >>conftest.$ac_ext <<_ACEOF |
| 9434 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9435 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9436 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9437 | int |
| 9438 | main () |
| 9439 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9440 | 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] | 9441 | test_array [0] = 0 |
| 9442 | |
| 9443 | ; |
| 9444 | return 0; |
| 9445 | } |
| 9446 | _ACEOF |
| 9447 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9448 | if { (ac_try="$ac_compile" |
| 9449 | case "(($ac_try" in |
| 9450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9451 | *) ac_try_echo=$ac_try;; |
| 9452 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9454 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9455 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9457 | rm -f conftest.er1 |
| 9458 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9460 | (exit $ac_status); } && { |
| 9461 | test -z "$ac_c_werror_flag" || |
| 9462 | test ! -s conftest.err |
| 9463 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9464 | ac_lo=$ac_mid; break |
| 9465 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9466 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9468 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9469 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9470 | if test $ac_mid -le $ac_hi; then |
| 9471 | ac_lo= ac_hi= |
| 9472 | break |
| 9473 | fi |
| 9474 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9475 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9476 | |
| 9477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9478 | done |
| 9479 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9480 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9482 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9483 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9484 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9485 | |
| 9486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9487 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9488 | |
| 9489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9490 | # Binary search between lo and hi bounds. |
| 9491 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9492 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9493 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9494 | /* confdefs.h. */ |
| 9495 | _ACEOF |
| 9496 | cat confdefs.h >>conftest.$ac_ext |
| 9497 | cat >>conftest.$ac_ext <<_ACEOF |
| 9498 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9499 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9500 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9501 | int |
| 9502 | main () |
| 9503 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9504 | 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] | 9505 | test_array [0] = 0 |
| 9506 | |
| 9507 | ; |
| 9508 | return 0; |
| 9509 | } |
| 9510 | _ACEOF |
| 9511 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9512 | if { (ac_try="$ac_compile" |
| 9513 | case "(($ac_try" in |
| 9514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9515 | *) ac_try_echo=$ac_try;; |
| 9516 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9518 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9519 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9521 | rm -f conftest.er1 |
| 9522 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9524 | (exit $ac_status); } && { |
| 9525 | test -z "$ac_c_werror_flag" || |
| 9526 | test ! -s conftest.err |
| 9527 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9528 | ac_hi=$ac_mid |
| 9529 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9530 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9532 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9533 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9534 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9535 | |
| 9536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9537 | done |
| 9538 | case $ac_lo in |
| 9539 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9540 | '') if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9541 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9542 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9543 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9544 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9545 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9546 | else |
| 9547 | ac_cv_sizeof_float=0 |
| 9548 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9549 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9550 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9551 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9552 | /* confdefs.h. */ |
| 9553 | _ACEOF |
| 9554 | cat confdefs.h >>conftest.$ac_ext |
| 9555 | cat >>conftest.$ac_ext <<_ACEOF |
| 9556 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9557 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9558 | typedef float ac__type_sizeof_; |
| 9559 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9560 | 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] | 9561 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9562 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9563 | int |
| 9564 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9565 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9566 | |
| 9567 | FILE *f = fopen ("conftest.val", "w"); |
| 9568 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9569 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9570 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9571 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9572 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9573 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9574 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9575 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9576 | } |
| 9577 | else |
| 9578 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9579 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9580 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9581 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9582 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9583 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9584 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9585 | |
| 9586 | ; |
| 9587 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9588 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9589 | _ACEOF |
| 9590 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9591 | if { (ac_try="$ac_link" |
| 9592 | case "(($ac_try" in |
| 9593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9594 | *) ac_try_echo=$ac_try;; |
| 9595 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9597 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9598 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9600 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9601 | { (case "(($ac_try" in |
| 9602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9603 | *) ac_try_echo=$ac_try;; |
| 9604 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9606 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9607 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9609 | (exit $ac_status); }; }; then |
| 9610 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9611 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9612 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9613 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9615 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9616 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9617 | if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9618 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9619 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9620 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9621 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9622 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9623 | else |
| 9624 | ac_cv_sizeof_float=0 |
| 9625 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9626 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9627 | 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] | 9628 | fi |
| 9629 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9630 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9631 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 9632 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9633 | |
| 9634 | |
| 9635 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9636 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9637 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9638 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9639 | |
| 9640 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9641 | { echo "$as_me:$LINENO: checking for double" >&5 |
| 9642 | echo $ECHO_N "checking for double... $ECHO_C" >&6; } |
| 9643 | if test "${ac_cv_type_double+set}" = set; then |
| 9644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9645 | else |
| 9646 | cat >conftest.$ac_ext <<_ACEOF |
| 9647 | /* confdefs.h. */ |
| 9648 | _ACEOF |
| 9649 | cat confdefs.h >>conftest.$ac_ext |
| 9650 | cat >>conftest.$ac_ext <<_ACEOF |
| 9651 | /* end confdefs.h. */ |
| 9652 | $ac_includes_default |
| 9653 | typedef double ac__type_new_; |
| 9654 | int |
| 9655 | main () |
| 9656 | { |
| 9657 | if ((ac__type_new_ *) 0) |
| 9658 | return 0; |
| 9659 | if (sizeof (ac__type_new_)) |
| 9660 | return 0; |
| 9661 | ; |
| 9662 | return 0; |
| 9663 | } |
| 9664 | _ACEOF |
| 9665 | rm -f conftest.$ac_objext |
| 9666 | if { (ac_try="$ac_compile" |
| 9667 | case "(($ac_try" in |
| 9668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9669 | *) ac_try_echo=$ac_try;; |
| 9670 | esac |
| 9671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9672 | (eval "$ac_compile") 2>conftest.er1 |
| 9673 | ac_status=$? |
| 9674 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9675 | rm -f conftest.er1 |
| 9676 | cat conftest.err >&5 |
| 9677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9678 | (exit $ac_status); } && { |
| 9679 | test -z "$ac_c_werror_flag" || |
| 9680 | test ! -s conftest.err |
| 9681 | } && test -s conftest.$ac_objext; then |
| 9682 | ac_cv_type_double=yes |
| 9683 | else |
| 9684 | echo "$as_me: failed program was:" >&5 |
| 9685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9686 | |
| 9687 | ac_cv_type_double=no |
| 9688 | fi |
| 9689 | |
| 9690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9691 | fi |
| 9692 | { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 9693 | echo "${ECHO_T}$ac_cv_type_double" >&6; } |
| 9694 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9695 | # The cast to long int works around a bug in the HP C Compiler |
| 9696 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9697 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9698 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9699 | { echo "$as_me:$LINENO: checking size of double" >&5 |
| 9700 | echo $ECHO_N "checking size of double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9701 | if test "${ac_cv_sizeof_double+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9703 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9704 | if test "$cross_compiling" = yes; then |
| 9705 | # Depending upon the size, compute the lo and hi bounds. |
| 9706 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9707 | /* confdefs.h. */ |
| 9708 | _ACEOF |
| 9709 | cat confdefs.h >>conftest.$ac_ext |
| 9710 | cat >>conftest.$ac_ext <<_ACEOF |
| 9711 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9712 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9713 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9714 | int |
| 9715 | main () |
| 9716 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9717 | 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] | 9718 | test_array [0] = 0 |
| 9719 | |
| 9720 | ; |
| 9721 | return 0; |
| 9722 | } |
| 9723 | _ACEOF |
| 9724 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9725 | if { (ac_try="$ac_compile" |
| 9726 | case "(($ac_try" in |
| 9727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9728 | *) ac_try_echo=$ac_try;; |
| 9729 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9731 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9732 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9733 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9734 | rm -f conftest.er1 |
| 9735 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9737 | (exit $ac_status); } && { |
| 9738 | test -z "$ac_c_werror_flag" || |
| 9739 | test ! -s conftest.err |
| 9740 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9741 | ac_lo=0 ac_mid=0 |
| 9742 | while :; do |
| 9743 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9744 | /* confdefs.h. */ |
| 9745 | _ACEOF |
| 9746 | cat confdefs.h >>conftest.$ac_ext |
| 9747 | cat >>conftest.$ac_ext <<_ACEOF |
| 9748 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9749 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9750 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9751 | int |
| 9752 | main () |
| 9753 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9754 | 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] | 9755 | test_array [0] = 0 |
| 9756 | |
| 9757 | ; |
| 9758 | return 0; |
| 9759 | } |
| 9760 | _ACEOF |
| 9761 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9762 | if { (ac_try="$ac_compile" |
| 9763 | case "(($ac_try" in |
| 9764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9765 | *) ac_try_echo=$ac_try;; |
| 9766 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9768 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9769 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9770 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9771 | rm -f conftest.er1 |
| 9772 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9774 | (exit $ac_status); } && { |
| 9775 | test -z "$ac_c_werror_flag" || |
| 9776 | test ! -s conftest.err |
| 9777 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9778 | ac_hi=$ac_mid; break |
| 9779 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9780 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9782 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9783 | ac_lo=`expr $ac_mid + 1` |
| 9784 | if test $ac_lo -le $ac_mid; then |
| 9785 | ac_lo= ac_hi= |
| 9786 | break |
| 9787 | fi |
| 9788 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9789 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9790 | |
| 9791 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9792 | done |
| 9793 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9794 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9796 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9797 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9798 | /* confdefs.h. */ |
| 9799 | _ACEOF |
| 9800 | cat confdefs.h >>conftest.$ac_ext |
| 9801 | cat >>conftest.$ac_ext <<_ACEOF |
| 9802 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9803 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9804 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9805 | int |
| 9806 | main () |
| 9807 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9808 | 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] | 9809 | test_array [0] = 0 |
| 9810 | |
| 9811 | ; |
| 9812 | return 0; |
| 9813 | } |
| 9814 | _ACEOF |
| 9815 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9816 | if { (ac_try="$ac_compile" |
| 9817 | case "(($ac_try" in |
| 9818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9819 | *) ac_try_echo=$ac_try;; |
| 9820 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9822 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9823 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9825 | rm -f conftest.er1 |
| 9826 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9828 | (exit $ac_status); } && { |
| 9829 | test -z "$ac_c_werror_flag" || |
| 9830 | test ! -s conftest.err |
| 9831 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9832 | ac_hi=-1 ac_mid=-1 |
| 9833 | while :; do |
| 9834 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9835 | /* confdefs.h. */ |
| 9836 | _ACEOF |
| 9837 | cat confdefs.h >>conftest.$ac_ext |
| 9838 | cat >>conftest.$ac_ext <<_ACEOF |
| 9839 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9840 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9841 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9842 | int |
| 9843 | main () |
| 9844 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9845 | 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] | 9846 | test_array [0] = 0 |
| 9847 | |
| 9848 | ; |
| 9849 | return 0; |
| 9850 | } |
| 9851 | _ACEOF |
| 9852 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9853 | if { (ac_try="$ac_compile" |
| 9854 | case "(($ac_try" in |
| 9855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9856 | *) ac_try_echo=$ac_try;; |
| 9857 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9859 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9860 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9861 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9862 | rm -f conftest.er1 |
| 9863 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9865 | (exit $ac_status); } && { |
| 9866 | test -z "$ac_c_werror_flag" || |
| 9867 | test ! -s conftest.err |
| 9868 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9869 | ac_lo=$ac_mid; break |
| 9870 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9871 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9873 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9874 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9875 | if test $ac_mid -le $ac_hi; then |
| 9876 | ac_lo= ac_hi= |
| 9877 | break |
| 9878 | fi |
| 9879 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9880 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9881 | |
| 9882 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9883 | done |
| 9884 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9885 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9887 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9888 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9889 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9890 | |
| 9891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9892 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9893 | |
| 9894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9895 | # Binary search between lo and hi bounds. |
| 9896 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9897 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9898 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9899 | /* confdefs.h. */ |
| 9900 | _ACEOF |
| 9901 | cat confdefs.h >>conftest.$ac_ext |
| 9902 | cat >>conftest.$ac_ext <<_ACEOF |
| 9903 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9904 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9905 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9906 | int |
| 9907 | main () |
| 9908 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9909 | 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] | 9910 | test_array [0] = 0 |
| 9911 | |
| 9912 | ; |
| 9913 | return 0; |
| 9914 | } |
| 9915 | _ACEOF |
| 9916 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9917 | if { (ac_try="$ac_compile" |
| 9918 | case "(($ac_try" in |
| 9919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9920 | *) ac_try_echo=$ac_try;; |
| 9921 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9923 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9924 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9926 | rm -f conftest.er1 |
| 9927 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9929 | (exit $ac_status); } && { |
| 9930 | test -z "$ac_c_werror_flag" || |
| 9931 | test ! -s conftest.err |
| 9932 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9933 | ac_hi=$ac_mid |
| 9934 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9935 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9937 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9938 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9939 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9940 | |
| 9941 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9942 | done |
| 9943 | case $ac_lo in |
| 9944 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9945 | '') if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9946 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9947 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9948 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9949 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9950 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9951 | else |
| 9952 | ac_cv_sizeof_double=0 |
| 9953 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9954 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9955 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9956 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9957 | /* confdefs.h. */ |
| 9958 | _ACEOF |
| 9959 | cat confdefs.h >>conftest.$ac_ext |
| 9960 | cat >>conftest.$ac_ext <<_ACEOF |
| 9961 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9962 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9963 | typedef double ac__type_sizeof_; |
| 9964 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9965 | 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] | 9966 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9967 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9968 | int |
| 9969 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9970 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9971 | |
| 9972 | FILE *f = fopen ("conftest.val", "w"); |
| 9973 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9974 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9975 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9976 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9977 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9978 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9979 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9980 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9981 | } |
| 9982 | else |
| 9983 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9984 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9985 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9986 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9987 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9988 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9989 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9990 | |
| 9991 | ; |
| 9992 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9993 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9994 | _ACEOF |
| 9995 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9996 | if { (ac_try="$ac_link" |
| 9997 | case "(($ac_try" in |
| 9998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9999 | *) ac_try_echo=$ac_try;; |
| 10000 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10002 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10003 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10005 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10006 | { (case "(($ac_try" in |
| 10007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10008 | *) ac_try_echo=$ac_try;; |
| 10009 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10011 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10012 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10014 | (exit $ac_status); }; }; then |
| 10015 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10016 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10017 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10018 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10020 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10021 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10022 | if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10023 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10024 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10025 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10026 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10027 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10028 | else |
| 10029 | ac_cv_sizeof_double=0 |
| 10030 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10031 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10032 | 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] | 10033 | fi |
| 10034 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10035 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10036 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 10037 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10038 | |
| 10039 | |
| 10040 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10041 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10042 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10043 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10044 | |
| 10045 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10046 | { echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 10047 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; } |
| 10048 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 10049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10050 | else |
| 10051 | cat >conftest.$ac_ext <<_ACEOF |
| 10052 | /* confdefs.h. */ |
| 10053 | _ACEOF |
| 10054 | cat confdefs.h >>conftest.$ac_ext |
| 10055 | cat >>conftest.$ac_ext <<_ACEOF |
| 10056 | /* end confdefs.h. */ |
| 10057 | $ac_includes_default |
| 10058 | typedef fpos_t ac__type_new_; |
| 10059 | int |
| 10060 | main () |
| 10061 | { |
| 10062 | if ((ac__type_new_ *) 0) |
| 10063 | return 0; |
| 10064 | if (sizeof (ac__type_new_)) |
| 10065 | return 0; |
| 10066 | ; |
| 10067 | return 0; |
| 10068 | } |
| 10069 | _ACEOF |
| 10070 | rm -f conftest.$ac_objext |
| 10071 | if { (ac_try="$ac_compile" |
| 10072 | case "(($ac_try" in |
| 10073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10074 | *) ac_try_echo=$ac_try;; |
| 10075 | esac |
| 10076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10077 | (eval "$ac_compile") 2>conftest.er1 |
| 10078 | ac_status=$? |
| 10079 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10080 | rm -f conftest.er1 |
| 10081 | cat conftest.err >&5 |
| 10082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10083 | (exit $ac_status); } && { |
| 10084 | test -z "$ac_c_werror_flag" || |
| 10085 | test ! -s conftest.err |
| 10086 | } && test -s conftest.$ac_objext; then |
| 10087 | ac_cv_type_fpos_t=yes |
| 10088 | else |
| 10089 | echo "$as_me: failed program was:" >&5 |
| 10090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10091 | |
| 10092 | ac_cv_type_fpos_t=no |
| 10093 | fi |
| 10094 | |
| 10095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10096 | fi |
| 10097 | { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 10098 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; } |
| 10099 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10100 | # The cast to long int works around a bug in the HP C Compiler |
| 10101 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10102 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10103 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10104 | { echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 10105 | 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] | 10106 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10108 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10109 | if test "$cross_compiling" = yes; then |
| 10110 | # Depending upon the size, compute the lo and hi bounds. |
| 10111 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10112 | /* confdefs.h. */ |
| 10113 | _ACEOF |
| 10114 | cat confdefs.h >>conftest.$ac_ext |
| 10115 | cat >>conftest.$ac_ext <<_ACEOF |
| 10116 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10117 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10118 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10119 | int |
| 10120 | main () |
| 10121 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10122 | 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] | 10123 | test_array [0] = 0 |
| 10124 | |
| 10125 | ; |
| 10126 | return 0; |
| 10127 | } |
| 10128 | _ACEOF |
| 10129 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10130 | if { (ac_try="$ac_compile" |
| 10131 | case "(($ac_try" in |
| 10132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10133 | *) ac_try_echo=$ac_try;; |
| 10134 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10136 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10137 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10139 | rm -f conftest.er1 |
| 10140 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10142 | (exit $ac_status); } && { |
| 10143 | test -z "$ac_c_werror_flag" || |
| 10144 | test ! -s conftest.err |
| 10145 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10146 | ac_lo=0 ac_mid=0 |
| 10147 | while :; do |
| 10148 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10149 | /* confdefs.h. */ |
| 10150 | _ACEOF |
| 10151 | cat confdefs.h >>conftest.$ac_ext |
| 10152 | cat >>conftest.$ac_ext <<_ACEOF |
| 10153 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10154 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10155 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10156 | int |
| 10157 | main () |
| 10158 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10159 | 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] | 10160 | test_array [0] = 0 |
| 10161 | |
| 10162 | ; |
| 10163 | return 0; |
| 10164 | } |
| 10165 | _ACEOF |
| 10166 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10167 | if { (ac_try="$ac_compile" |
| 10168 | case "(($ac_try" in |
| 10169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10170 | *) ac_try_echo=$ac_try;; |
| 10171 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10173 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10174 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10175 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10176 | rm -f conftest.er1 |
| 10177 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10179 | (exit $ac_status); } && { |
| 10180 | test -z "$ac_c_werror_flag" || |
| 10181 | test ! -s conftest.err |
| 10182 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10183 | ac_hi=$ac_mid; break |
| 10184 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10185 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10187 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10188 | ac_lo=`expr $ac_mid + 1` |
| 10189 | if test $ac_lo -le $ac_mid; then |
| 10190 | ac_lo= ac_hi= |
| 10191 | break |
| 10192 | fi |
| 10193 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10194 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10195 | |
| 10196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10197 | done |
| 10198 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10199 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10201 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10202 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10203 | /* confdefs.h. */ |
| 10204 | _ACEOF |
| 10205 | cat confdefs.h >>conftest.$ac_ext |
| 10206 | cat >>conftest.$ac_ext <<_ACEOF |
| 10207 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10208 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10209 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10210 | int |
| 10211 | main () |
| 10212 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10213 | 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] | 10214 | test_array [0] = 0 |
| 10215 | |
| 10216 | ; |
| 10217 | return 0; |
| 10218 | } |
| 10219 | _ACEOF |
| 10220 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10221 | if { (ac_try="$ac_compile" |
| 10222 | case "(($ac_try" in |
| 10223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10224 | *) ac_try_echo=$ac_try;; |
| 10225 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10227 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10228 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10230 | rm -f conftest.er1 |
| 10231 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10233 | (exit $ac_status); } && { |
| 10234 | test -z "$ac_c_werror_flag" || |
| 10235 | test ! -s conftest.err |
| 10236 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10237 | ac_hi=-1 ac_mid=-1 |
| 10238 | while :; do |
| 10239 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10240 | /* confdefs.h. */ |
| 10241 | _ACEOF |
| 10242 | cat confdefs.h >>conftest.$ac_ext |
| 10243 | cat >>conftest.$ac_ext <<_ACEOF |
| 10244 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10245 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10246 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10247 | int |
| 10248 | main () |
| 10249 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10250 | 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] | 10251 | test_array [0] = 0 |
| 10252 | |
| 10253 | ; |
| 10254 | return 0; |
| 10255 | } |
| 10256 | _ACEOF |
| 10257 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10258 | if { (ac_try="$ac_compile" |
| 10259 | case "(($ac_try" in |
| 10260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10261 | *) ac_try_echo=$ac_try;; |
| 10262 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10264 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10265 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10266 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10267 | rm -f conftest.er1 |
| 10268 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10270 | (exit $ac_status); } && { |
| 10271 | test -z "$ac_c_werror_flag" || |
| 10272 | test ! -s conftest.err |
| 10273 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10274 | ac_lo=$ac_mid; break |
| 10275 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10276 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10277 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10278 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10279 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10280 | if test $ac_mid -le $ac_hi; then |
| 10281 | ac_lo= ac_hi= |
| 10282 | break |
| 10283 | fi |
| 10284 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10285 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10286 | |
| 10287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10288 | done |
| 10289 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10290 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10292 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10293 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10294 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10295 | |
| 10296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10297 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10298 | |
| 10299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10300 | # Binary search between lo and hi bounds. |
| 10301 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10302 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10303 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10304 | /* confdefs.h. */ |
| 10305 | _ACEOF |
| 10306 | cat confdefs.h >>conftest.$ac_ext |
| 10307 | cat >>conftest.$ac_ext <<_ACEOF |
| 10308 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10309 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10310 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10311 | int |
| 10312 | main () |
| 10313 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10314 | 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] | 10315 | test_array [0] = 0 |
| 10316 | |
| 10317 | ; |
| 10318 | return 0; |
| 10319 | } |
| 10320 | _ACEOF |
| 10321 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10322 | if { (ac_try="$ac_compile" |
| 10323 | case "(($ac_try" in |
| 10324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10325 | *) ac_try_echo=$ac_try;; |
| 10326 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10328 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10329 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10330 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10331 | rm -f conftest.er1 |
| 10332 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10334 | (exit $ac_status); } && { |
| 10335 | test -z "$ac_c_werror_flag" || |
| 10336 | test ! -s conftest.err |
| 10337 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10338 | ac_hi=$ac_mid |
| 10339 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10340 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10341 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10342 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10343 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10344 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10345 | |
| 10346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10347 | done |
| 10348 | case $ac_lo in |
| 10349 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10350 | '') if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10351 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10352 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10353 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10354 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10355 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10356 | else |
| 10357 | ac_cv_sizeof_fpos_t=0 |
| 10358 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10359 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10360 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10361 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10362 | /* confdefs.h. */ |
| 10363 | _ACEOF |
| 10364 | cat confdefs.h >>conftest.$ac_ext |
| 10365 | cat >>conftest.$ac_ext <<_ACEOF |
| 10366 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10367 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10368 | typedef fpos_t ac__type_sizeof_; |
| 10369 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10370 | 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] | 10371 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10372 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10373 | int |
| 10374 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10375 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10376 | |
| 10377 | FILE *f = fopen ("conftest.val", "w"); |
| 10378 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10379 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10380 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10381 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10382 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10383 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10384 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10385 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10386 | } |
| 10387 | else |
| 10388 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10389 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10390 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10391 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10392 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10393 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10394 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10395 | |
| 10396 | ; |
| 10397 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10398 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10399 | _ACEOF |
| 10400 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10401 | if { (ac_try="$ac_link" |
| 10402 | case "(($ac_try" in |
| 10403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10404 | *) ac_try_echo=$ac_try;; |
| 10405 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10407 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10408 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10410 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10411 | { (case "(($ac_try" in |
| 10412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10413 | *) ac_try_echo=$ac_try;; |
| 10414 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10416 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10417 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10419 | (exit $ac_status); }; }; then |
| 10420 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10421 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10422 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10423 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10424 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10425 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10426 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10427 | if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10428 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10429 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10430 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10431 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10432 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10433 | else |
| 10434 | ac_cv_sizeof_fpos_t=0 |
| 10435 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10436 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10437 | 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] | 10438 | fi |
| 10439 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10440 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10441 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 10442 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10443 | |
| 10444 | |
| 10445 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10446 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10447 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10448 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10449 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10450 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10451 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 10452 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 10453 | if test "${ac_cv_type_size_t+set}" = set; then |
| 10454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10455 | else |
| 10456 | cat >conftest.$ac_ext <<_ACEOF |
| 10457 | /* confdefs.h. */ |
| 10458 | _ACEOF |
| 10459 | cat confdefs.h >>conftest.$ac_ext |
| 10460 | cat >>conftest.$ac_ext <<_ACEOF |
| 10461 | /* end confdefs.h. */ |
| 10462 | $ac_includes_default |
| 10463 | typedef size_t ac__type_new_; |
| 10464 | int |
| 10465 | main () |
| 10466 | { |
| 10467 | if ((ac__type_new_ *) 0) |
| 10468 | return 0; |
| 10469 | if (sizeof (ac__type_new_)) |
| 10470 | return 0; |
| 10471 | ; |
| 10472 | return 0; |
| 10473 | } |
| 10474 | _ACEOF |
| 10475 | rm -f conftest.$ac_objext |
| 10476 | if { (ac_try="$ac_compile" |
| 10477 | case "(($ac_try" in |
| 10478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10479 | *) ac_try_echo=$ac_try;; |
| 10480 | esac |
| 10481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10482 | (eval "$ac_compile") 2>conftest.er1 |
| 10483 | ac_status=$? |
| 10484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10485 | rm -f conftest.er1 |
| 10486 | cat conftest.err >&5 |
| 10487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10488 | (exit $ac_status); } && { |
| 10489 | test -z "$ac_c_werror_flag" || |
| 10490 | test ! -s conftest.err |
| 10491 | } && test -s conftest.$ac_objext; then |
| 10492 | ac_cv_type_size_t=yes |
| 10493 | else |
| 10494 | echo "$as_me: failed program was:" >&5 |
| 10495 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10496 | |
| 10497 | ac_cv_type_size_t=no |
| 10498 | fi |
| 10499 | |
| 10500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10501 | fi |
| 10502 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 10503 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 10504 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10505 | # The cast to long int works around a bug in the HP C Compiler |
| 10506 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10507 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10508 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10509 | { echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 10510 | 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] | 10511 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10513 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10514 | if test "$cross_compiling" = yes; then |
| 10515 | # Depending upon the size, compute the lo and hi bounds. |
| 10516 | cat >conftest.$ac_ext <<_ACEOF |
| 10517 | /* confdefs.h. */ |
| 10518 | _ACEOF |
| 10519 | cat confdefs.h >>conftest.$ac_ext |
| 10520 | cat >>conftest.$ac_ext <<_ACEOF |
| 10521 | /* end confdefs.h. */ |
| 10522 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10523 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10524 | int |
| 10525 | main () |
| 10526 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10527 | 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] | 10528 | test_array [0] = 0 |
| 10529 | |
| 10530 | ; |
| 10531 | return 0; |
| 10532 | } |
| 10533 | _ACEOF |
| 10534 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10535 | if { (ac_try="$ac_compile" |
| 10536 | case "(($ac_try" in |
| 10537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10538 | *) ac_try_echo=$ac_try;; |
| 10539 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10541 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10542 | ac_status=$? |
| 10543 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10544 | rm -f conftest.er1 |
| 10545 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10547 | (exit $ac_status); } && { |
| 10548 | test -z "$ac_c_werror_flag" || |
| 10549 | test ! -s conftest.err |
| 10550 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10551 | ac_lo=0 ac_mid=0 |
| 10552 | while :; do |
| 10553 | cat >conftest.$ac_ext <<_ACEOF |
| 10554 | /* confdefs.h. */ |
| 10555 | _ACEOF |
| 10556 | cat confdefs.h >>conftest.$ac_ext |
| 10557 | cat >>conftest.$ac_ext <<_ACEOF |
| 10558 | /* end confdefs.h. */ |
| 10559 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10560 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10561 | int |
| 10562 | main () |
| 10563 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10564 | 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] | 10565 | test_array [0] = 0 |
| 10566 | |
| 10567 | ; |
| 10568 | return 0; |
| 10569 | } |
| 10570 | _ACEOF |
| 10571 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10572 | if { (ac_try="$ac_compile" |
| 10573 | case "(($ac_try" in |
| 10574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10575 | *) ac_try_echo=$ac_try;; |
| 10576 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10578 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10579 | ac_status=$? |
| 10580 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10581 | rm -f conftest.er1 |
| 10582 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10584 | (exit $ac_status); } && { |
| 10585 | test -z "$ac_c_werror_flag" || |
| 10586 | test ! -s conftest.err |
| 10587 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10588 | ac_hi=$ac_mid; break |
| 10589 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10590 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10592 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10593 | ac_lo=`expr $ac_mid + 1` |
| 10594 | if test $ac_lo -le $ac_mid; then |
| 10595 | ac_lo= ac_hi= |
| 10596 | break |
| 10597 | fi |
| 10598 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10599 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10600 | |
| 10601 | 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] | 10602 | done |
| 10603 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10604 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10606 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10607 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10608 | /* confdefs.h. */ |
| 10609 | _ACEOF |
| 10610 | cat confdefs.h >>conftest.$ac_ext |
| 10611 | cat >>conftest.$ac_ext <<_ACEOF |
| 10612 | /* end confdefs.h. */ |
| 10613 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10614 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10615 | int |
| 10616 | main () |
| 10617 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10618 | 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] | 10619 | test_array [0] = 0 |
| 10620 | |
| 10621 | ; |
| 10622 | return 0; |
| 10623 | } |
| 10624 | _ACEOF |
| 10625 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10626 | if { (ac_try="$ac_compile" |
| 10627 | case "(($ac_try" in |
| 10628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10629 | *) ac_try_echo=$ac_try;; |
| 10630 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10632 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10633 | ac_status=$? |
| 10634 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10635 | rm -f conftest.er1 |
| 10636 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10638 | (exit $ac_status); } && { |
| 10639 | test -z "$ac_c_werror_flag" || |
| 10640 | test ! -s conftest.err |
| 10641 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10642 | ac_hi=-1 ac_mid=-1 |
| 10643 | while :; do |
| 10644 | cat >conftest.$ac_ext <<_ACEOF |
| 10645 | /* confdefs.h. */ |
| 10646 | _ACEOF |
| 10647 | cat confdefs.h >>conftest.$ac_ext |
| 10648 | cat >>conftest.$ac_ext <<_ACEOF |
| 10649 | /* end confdefs.h. */ |
| 10650 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10651 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10652 | int |
| 10653 | main () |
| 10654 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10655 | 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] | 10656 | test_array [0] = 0 |
| 10657 | |
| 10658 | ; |
| 10659 | return 0; |
| 10660 | } |
| 10661 | _ACEOF |
| 10662 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10663 | if { (ac_try="$ac_compile" |
| 10664 | case "(($ac_try" in |
| 10665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10666 | *) ac_try_echo=$ac_try;; |
| 10667 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10669 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10670 | ac_status=$? |
| 10671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10672 | rm -f conftest.er1 |
| 10673 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10675 | (exit $ac_status); } && { |
| 10676 | test -z "$ac_c_werror_flag" || |
| 10677 | test ! -s conftest.err |
| 10678 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10679 | ac_lo=$ac_mid; break |
| 10680 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10681 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10683 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10684 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10685 | if test $ac_mid -le $ac_hi; then |
| 10686 | ac_lo= ac_hi= |
| 10687 | break |
| 10688 | fi |
| 10689 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10690 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10691 | |
| 10692 | 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] | 10693 | done |
| 10694 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10695 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10697 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10698 | ac_lo= ac_hi= |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10699 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10700 | |
| 10701 | 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] | 10702 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10703 | |
| 10704 | 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] | 10705 | # Binary search between lo and hi bounds. |
| 10706 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10707 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10708 | cat >conftest.$ac_ext <<_ACEOF |
| 10709 | /* confdefs.h. */ |
| 10710 | _ACEOF |
| 10711 | cat confdefs.h >>conftest.$ac_ext |
| 10712 | cat >>conftest.$ac_ext <<_ACEOF |
| 10713 | /* end confdefs.h. */ |
| 10714 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10715 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10716 | int |
| 10717 | main () |
| 10718 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10719 | 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] | 10720 | test_array [0] = 0 |
| 10721 | |
| 10722 | ; |
| 10723 | return 0; |
| 10724 | } |
| 10725 | _ACEOF |
| 10726 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10727 | if { (ac_try="$ac_compile" |
| 10728 | case "(($ac_try" in |
| 10729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10730 | *) ac_try_echo=$ac_try;; |
| 10731 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10733 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10734 | ac_status=$? |
| 10735 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10736 | rm -f conftest.er1 |
| 10737 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10739 | (exit $ac_status); } && { |
| 10740 | test -z "$ac_c_werror_flag" || |
| 10741 | test ! -s conftest.err |
| 10742 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10743 | ac_hi=$ac_mid |
| 10744 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10745 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10747 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10748 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10749 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10750 | |
| 10751 | 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] | 10752 | done |
| 10753 | case $ac_lo in |
| 10754 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10755 | '') if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10756 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10757 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10758 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10759 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10760 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10761 | else |
| 10762 | ac_cv_sizeof_size_t=0 |
| 10763 | fi ;; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10764 | esac |
| 10765 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10766 | cat >conftest.$ac_ext <<_ACEOF |
| 10767 | /* confdefs.h. */ |
| 10768 | _ACEOF |
| 10769 | cat confdefs.h >>conftest.$ac_ext |
| 10770 | cat >>conftest.$ac_ext <<_ACEOF |
| 10771 | /* end confdefs.h. */ |
| 10772 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10773 | typedef size_t ac__type_sizeof_; |
| 10774 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10775 | 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] | 10776 | #include <stdio.h> |
| 10777 | #include <stdlib.h> |
| 10778 | int |
| 10779 | main () |
| 10780 | { |
| 10781 | |
| 10782 | FILE *f = fopen ("conftest.val", "w"); |
| 10783 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10784 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10785 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10786 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10787 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10788 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10789 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10790 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10791 | } |
| 10792 | else |
| 10793 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10794 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10795 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10796 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10797 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10798 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10799 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10800 | |
| 10801 | ; |
| 10802 | return 0; |
| 10803 | } |
| 10804 | _ACEOF |
| 10805 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10806 | if { (ac_try="$ac_link" |
| 10807 | case "(($ac_try" in |
| 10808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10809 | *) ac_try_echo=$ac_try;; |
| 10810 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10812 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10813 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10815 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10816 | { (case "(($ac_try" in |
| 10817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10818 | *) ac_try_echo=$ac_try;; |
| 10819 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10821 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10822 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10824 | (exit $ac_status); }; }; then |
| 10825 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 10826 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10827 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10828 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10830 | |
| 10831 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10832 | if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10833 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10834 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10835 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10836 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10837 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10838 | else |
| 10839 | ac_cv_sizeof_size_t=0 |
| 10840 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10841 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10842 | 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] | 10843 | fi |
| 10844 | rm -f conftest.val |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10845 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10846 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 10847 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10848 | |
| 10849 | |
| 10850 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10851 | cat >>confdefs.h <<_ACEOF |
| 10852 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 10853 | _ACEOF |
| 10854 | |
| 10855 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10856 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 10857 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 10858 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 10859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10860 | else |
| 10861 | cat >conftest.$ac_ext <<_ACEOF |
| 10862 | /* confdefs.h. */ |
| 10863 | _ACEOF |
| 10864 | cat confdefs.h >>conftest.$ac_ext |
| 10865 | cat >>conftest.$ac_ext <<_ACEOF |
| 10866 | /* end confdefs.h. */ |
| 10867 | $ac_includes_default |
| 10868 | typedef pid_t ac__type_new_; |
| 10869 | int |
| 10870 | main () |
| 10871 | { |
| 10872 | if ((ac__type_new_ *) 0) |
| 10873 | return 0; |
| 10874 | if (sizeof (ac__type_new_)) |
| 10875 | return 0; |
| 10876 | ; |
| 10877 | return 0; |
| 10878 | } |
| 10879 | _ACEOF |
| 10880 | rm -f conftest.$ac_objext |
| 10881 | if { (ac_try="$ac_compile" |
| 10882 | case "(($ac_try" in |
| 10883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10884 | *) ac_try_echo=$ac_try;; |
| 10885 | esac |
| 10886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10887 | (eval "$ac_compile") 2>conftest.er1 |
| 10888 | ac_status=$? |
| 10889 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10890 | rm -f conftest.er1 |
| 10891 | cat conftest.err >&5 |
| 10892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10893 | (exit $ac_status); } && { |
| 10894 | test -z "$ac_c_werror_flag" || |
| 10895 | test ! -s conftest.err |
| 10896 | } && test -s conftest.$ac_objext; then |
| 10897 | ac_cv_type_pid_t=yes |
| 10898 | else |
| 10899 | echo "$as_me: failed program was:" >&5 |
| 10900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10901 | |
| 10902 | ac_cv_type_pid_t=no |
| 10903 | fi |
| 10904 | |
| 10905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10906 | fi |
| 10907 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 10908 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 10909 | |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10910 | # The cast to long int works around a bug in the HP C Compiler |
| 10911 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10912 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10913 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10914 | { echo "$as_me:$LINENO: checking size of pid_t" >&5 |
| 10915 | echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10916 | if test "${ac_cv_sizeof_pid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10918 | else |
| 10919 | if test "$cross_compiling" = yes; then |
| 10920 | # Depending upon the size, compute the lo and hi bounds. |
| 10921 | cat >conftest.$ac_ext <<_ACEOF |
| 10922 | /* confdefs.h. */ |
| 10923 | _ACEOF |
| 10924 | cat confdefs.h >>conftest.$ac_ext |
| 10925 | cat >>conftest.$ac_ext <<_ACEOF |
| 10926 | /* end confdefs.h. */ |
| 10927 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10928 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10929 | int |
| 10930 | main () |
| 10931 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10932 | 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] | 10933 | test_array [0] = 0 |
| 10934 | |
| 10935 | ; |
| 10936 | return 0; |
| 10937 | } |
| 10938 | _ACEOF |
| 10939 | rm -f conftest.$ac_objext |
| 10940 | if { (ac_try="$ac_compile" |
| 10941 | case "(($ac_try" in |
| 10942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10943 | *) ac_try_echo=$ac_try;; |
| 10944 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10946 | (eval "$ac_compile") 2>conftest.er1 |
| 10947 | ac_status=$? |
| 10948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10949 | rm -f conftest.er1 |
| 10950 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10952 | (exit $ac_status); } && { |
| 10953 | test -z "$ac_c_werror_flag" || |
| 10954 | test ! -s conftest.err |
| 10955 | } && test -s conftest.$ac_objext; then |
| 10956 | ac_lo=0 ac_mid=0 |
| 10957 | while :; do |
| 10958 | cat >conftest.$ac_ext <<_ACEOF |
| 10959 | /* confdefs.h. */ |
| 10960 | _ACEOF |
| 10961 | cat confdefs.h >>conftest.$ac_ext |
| 10962 | cat >>conftest.$ac_ext <<_ACEOF |
| 10963 | /* end confdefs.h. */ |
| 10964 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10965 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10966 | int |
| 10967 | main () |
| 10968 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10969 | 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] | 10970 | test_array [0] = 0 |
| 10971 | |
| 10972 | ; |
| 10973 | return 0; |
| 10974 | } |
| 10975 | _ACEOF |
| 10976 | rm -f conftest.$ac_objext |
| 10977 | if { (ac_try="$ac_compile" |
| 10978 | case "(($ac_try" in |
| 10979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10980 | *) ac_try_echo=$ac_try;; |
| 10981 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10983 | (eval "$ac_compile") 2>conftest.er1 |
| 10984 | ac_status=$? |
| 10985 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10986 | rm -f conftest.er1 |
| 10987 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10989 | (exit $ac_status); } && { |
| 10990 | test -z "$ac_c_werror_flag" || |
| 10991 | test ! -s conftest.err |
| 10992 | } && test -s conftest.$ac_objext; then |
| 10993 | ac_hi=$ac_mid; break |
| 10994 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10995 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10997 | |
| 10998 | ac_lo=`expr $ac_mid + 1` |
| 10999 | if test $ac_lo -le $ac_mid; then |
| 11000 | ac_lo= ac_hi= |
| 11001 | break |
| 11002 | fi |
| 11003 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11004 | fi |
| 11005 | |
| 11006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11007 | done |
| 11008 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11009 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11011 | |
| 11012 | cat >conftest.$ac_ext <<_ACEOF |
| 11013 | /* confdefs.h. */ |
| 11014 | _ACEOF |
| 11015 | cat confdefs.h >>conftest.$ac_ext |
| 11016 | cat >>conftest.$ac_ext <<_ACEOF |
| 11017 | /* end confdefs.h. */ |
| 11018 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11019 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11020 | int |
| 11021 | main () |
| 11022 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11023 | 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] | 11024 | test_array [0] = 0 |
| 11025 | |
| 11026 | ; |
| 11027 | return 0; |
| 11028 | } |
| 11029 | _ACEOF |
| 11030 | rm -f conftest.$ac_objext |
| 11031 | if { (ac_try="$ac_compile" |
| 11032 | case "(($ac_try" in |
| 11033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11034 | *) ac_try_echo=$ac_try;; |
| 11035 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11037 | (eval "$ac_compile") 2>conftest.er1 |
| 11038 | ac_status=$? |
| 11039 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11040 | rm -f conftest.er1 |
| 11041 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11043 | (exit $ac_status); } && { |
| 11044 | test -z "$ac_c_werror_flag" || |
| 11045 | test ! -s conftest.err |
| 11046 | } && test -s conftest.$ac_objext; then |
| 11047 | ac_hi=-1 ac_mid=-1 |
| 11048 | while :; do |
| 11049 | cat >conftest.$ac_ext <<_ACEOF |
| 11050 | /* confdefs.h. */ |
| 11051 | _ACEOF |
| 11052 | cat confdefs.h >>conftest.$ac_ext |
| 11053 | cat >>conftest.$ac_ext <<_ACEOF |
| 11054 | /* end confdefs.h. */ |
| 11055 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11056 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11057 | int |
| 11058 | main () |
| 11059 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11060 | 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] | 11061 | test_array [0] = 0 |
| 11062 | |
| 11063 | ; |
| 11064 | return 0; |
| 11065 | } |
| 11066 | _ACEOF |
| 11067 | rm -f conftest.$ac_objext |
| 11068 | if { (ac_try="$ac_compile" |
| 11069 | case "(($ac_try" in |
| 11070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11071 | *) ac_try_echo=$ac_try;; |
| 11072 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11074 | (eval "$ac_compile") 2>conftest.er1 |
| 11075 | ac_status=$? |
| 11076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11077 | rm -f conftest.er1 |
| 11078 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11080 | (exit $ac_status); } && { |
| 11081 | test -z "$ac_c_werror_flag" || |
| 11082 | test ! -s conftest.err |
| 11083 | } && test -s conftest.$ac_objext; then |
| 11084 | ac_lo=$ac_mid; break |
| 11085 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11086 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11087 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11088 | |
| 11089 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11090 | if test $ac_mid -le $ac_hi; then |
| 11091 | ac_lo= ac_hi= |
| 11092 | break |
| 11093 | fi |
| 11094 | ac_mid=`expr 2 '*' $ac_mid` |
| 11095 | fi |
| 11096 | |
| 11097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11098 | done |
| 11099 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11100 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11102 | |
| 11103 | ac_lo= ac_hi= |
| 11104 | fi |
| 11105 | |
| 11106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11107 | fi |
| 11108 | |
| 11109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11110 | # Binary search between lo and hi bounds. |
| 11111 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11112 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11113 | cat >conftest.$ac_ext <<_ACEOF |
| 11114 | /* confdefs.h. */ |
| 11115 | _ACEOF |
| 11116 | cat confdefs.h >>conftest.$ac_ext |
| 11117 | cat >>conftest.$ac_ext <<_ACEOF |
| 11118 | /* end confdefs.h. */ |
| 11119 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11120 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11121 | int |
| 11122 | main () |
| 11123 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11124 | 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] | 11125 | test_array [0] = 0 |
| 11126 | |
| 11127 | ; |
| 11128 | return 0; |
| 11129 | } |
| 11130 | _ACEOF |
| 11131 | rm -f conftest.$ac_objext |
| 11132 | if { (ac_try="$ac_compile" |
| 11133 | case "(($ac_try" in |
| 11134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11135 | *) ac_try_echo=$ac_try;; |
| 11136 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11138 | (eval "$ac_compile") 2>conftest.er1 |
| 11139 | ac_status=$? |
| 11140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11141 | rm -f conftest.er1 |
| 11142 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11144 | (exit $ac_status); } && { |
| 11145 | test -z "$ac_c_werror_flag" || |
| 11146 | test ! -s conftest.err |
| 11147 | } && test -s conftest.$ac_objext; then |
| 11148 | ac_hi=$ac_mid |
| 11149 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11150 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11152 | |
| 11153 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11154 | fi |
| 11155 | |
| 11156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11157 | done |
| 11158 | case $ac_lo in |
| 11159 | ?*) ac_cv_sizeof_pid_t=$ac_lo;; |
| 11160 | '') if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11161 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11162 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11163 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11164 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11165 | { (exit 77); exit 77; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11166 | else |
| 11167 | ac_cv_sizeof_pid_t=0 |
| 11168 | fi ;; |
| 11169 | esac |
| 11170 | else |
| 11171 | cat >conftest.$ac_ext <<_ACEOF |
| 11172 | /* confdefs.h. */ |
| 11173 | _ACEOF |
| 11174 | cat confdefs.h >>conftest.$ac_ext |
| 11175 | cat >>conftest.$ac_ext <<_ACEOF |
| 11176 | /* end confdefs.h. */ |
| 11177 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11178 | typedef pid_t ac__type_sizeof_; |
| 11179 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11180 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11181 | #include <stdio.h> |
| 11182 | #include <stdlib.h> |
| 11183 | int |
| 11184 | main () |
| 11185 | { |
| 11186 | |
| 11187 | FILE *f = fopen ("conftest.val", "w"); |
| 11188 | if (! f) |
| 11189 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11190 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11191 | { |
| 11192 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11193 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11194 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11195 | fprintf (f, "%ld\n", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11196 | } |
| 11197 | else |
| 11198 | { |
| 11199 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11200 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11201 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11202 | fprintf (f, "%lu\n", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11203 | } |
| 11204 | return ferror (f) || fclose (f) != 0; |
| 11205 | |
| 11206 | ; |
| 11207 | return 0; |
| 11208 | } |
| 11209 | _ACEOF |
| 11210 | rm -f conftest$ac_exeext |
| 11211 | if { (ac_try="$ac_link" |
| 11212 | case "(($ac_try" in |
| 11213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11214 | *) ac_try_echo=$ac_try;; |
| 11215 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11217 | (eval "$ac_link") 2>&5 |
| 11218 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11220 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11221 | { (case "(($ac_try" in |
| 11222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11223 | *) ac_try_echo=$ac_try;; |
| 11224 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11226 | (eval "$ac_try") 2>&5 |
| 11227 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11229 | (exit $ac_status); }; }; then |
| 11230 | ac_cv_sizeof_pid_t=`cat conftest.val` |
| 11231 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11232 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11233 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11235 | |
| 11236 | ( exit $ac_status ) |
| 11237 | if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11238 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11239 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11240 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11241 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11242 | { (exit 77); exit 77; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11243 | else |
| 11244 | ac_cv_sizeof_pid_t=0 |
| 11245 | fi |
| 11246 | fi |
| 11247 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11248 | fi |
| 11249 | rm -f conftest.val |
| 11250 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11251 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5 |
| 11252 | echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11253 | |
| 11254 | |
| 11255 | |
| 11256 | cat >>confdefs.h <<_ACEOF |
| 11257 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 11258 | _ACEOF |
| 11259 | |
| 11260 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11261 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11262 | { echo "$as_me:$LINENO: checking for long long support" >&5 |
| 11263 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11264 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11265 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11266 | /* confdefs.h. */ |
| 11267 | _ACEOF |
| 11268 | cat confdefs.h >>conftest.$ac_ext |
| 11269 | cat >>conftest.$ac_ext <<_ACEOF |
| 11270 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11271 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11272 | int |
| 11273 | main () |
| 11274 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11275 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11276 | ; |
| 11277 | return 0; |
| 11278 | } |
| 11279 | _ACEOF |
| 11280 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11281 | if { (ac_try="$ac_compile" |
| 11282 | case "(($ac_try" in |
| 11283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11284 | *) ac_try_echo=$ac_try;; |
| 11285 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11287 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11288 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11289 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11290 | rm -f conftest.er1 |
| 11291 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11293 | (exit $ac_status); } && { |
| 11294 | test -z "$ac_c_werror_flag" || |
| 11295 | test ! -s conftest.err |
| 11296 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11297 | |
| 11298 | |
| 11299 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11300 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11301 | _ACEOF |
| 11302 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11303 | have_long_long=yes |
| 11304 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11305 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11306 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11308 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11309 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11310 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11311 | |
| 11312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11313 | { echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 11314 | echo "${ECHO_T}$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 11315 | if test "$have_long_long" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11316 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 11317 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
| 11318 | if test "${ac_cv_type_long_long+set}" = set; then |
| 11319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11320 | else |
| 11321 | cat >conftest.$ac_ext <<_ACEOF |
| 11322 | /* confdefs.h. */ |
| 11323 | _ACEOF |
| 11324 | cat confdefs.h >>conftest.$ac_ext |
| 11325 | cat >>conftest.$ac_ext <<_ACEOF |
| 11326 | /* end confdefs.h. */ |
| 11327 | $ac_includes_default |
| 11328 | typedef long long ac__type_new_; |
| 11329 | int |
| 11330 | main () |
| 11331 | { |
| 11332 | if ((ac__type_new_ *) 0) |
| 11333 | return 0; |
| 11334 | if (sizeof (ac__type_new_)) |
| 11335 | return 0; |
| 11336 | ; |
| 11337 | return 0; |
| 11338 | } |
| 11339 | _ACEOF |
| 11340 | rm -f conftest.$ac_objext |
| 11341 | if { (ac_try="$ac_compile" |
| 11342 | case "(($ac_try" in |
| 11343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11344 | *) ac_try_echo=$ac_try;; |
| 11345 | esac |
| 11346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11347 | (eval "$ac_compile") 2>conftest.er1 |
| 11348 | ac_status=$? |
| 11349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11350 | rm -f conftest.er1 |
| 11351 | cat conftest.err >&5 |
| 11352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11353 | (exit $ac_status); } && { |
| 11354 | test -z "$ac_c_werror_flag" || |
| 11355 | test ! -s conftest.err |
| 11356 | } && test -s conftest.$ac_objext; then |
| 11357 | ac_cv_type_long_long=yes |
| 11358 | else |
| 11359 | echo "$as_me: failed program was:" >&5 |
| 11360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11361 | |
| 11362 | ac_cv_type_long_long=no |
| 11363 | fi |
| 11364 | |
| 11365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11366 | fi |
| 11367 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 11368 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 11369 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11370 | # The cast to long int works around a bug in the HP C Compiler |
| 11371 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11372 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11373 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11374 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 11375 | 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] | 11376 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11378 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11379 | if test "$cross_compiling" = yes; then |
| 11380 | # Depending upon the size, compute the lo and hi bounds. |
| 11381 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11382 | /* confdefs.h. */ |
| 11383 | _ACEOF |
| 11384 | cat confdefs.h >>conftest.$ac_ext |
| 11385 | cat >>conftest.$ac_ext <<_ACEOF |
| 11386 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11387 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11388 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11389 | int |
| 11390 | main () |
| 11391 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11392 | 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] | 11393 | test_array [0] = 0 |
| 11394 | |
| 11395 | ; |
| 11396 | return 0; |
| 11397 | } |
| 11398 | _ACEOF |
| 11399 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11400 | if { (ac_try="$ac_compile" |
| 11401 | case "(($ac_try" in |
| 11402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11403 | *) ac_try_echo=$ac_try;; |
| 11404 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11406 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11407 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11408 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11409 | rm -f conftest.er1 |
| 11410 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11412 | (exit $ac_status); } && { |
| 11413 | test -z "$ac_c_werror_flag" || |
| 11414 | test ! -s conftest.err |
| 11415 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11416 | ac_lo=0 ac_mid=0 |
| 11417 | while :; do |
| 11418 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11419 | /* confdefs.h. */ |
| 11420 | _ACEOF |
| 11421 | cat confdefs.h >>conftest.$ac_ext |
| 11422 | cat >>conftest.$ac_ext <<_ACEOF |
| 11423 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11424 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11425 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11426 | int |
| 11427 | main () |
| 11428 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11429 | 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] | 11430 | test_array [0] = 0 |
| 11431 | |
| 11432 | ; |
| 11433 | return 0; |
| 11434 | } |
| 11435 | _ACEOF |
| 11436 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11437 | if { (ac_try="$ac_compile" |
| 11438 | case "(($ac_try" in |
| 11439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11440 | *) ac_try_echo=$ac_try;; |
| 11441 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11443 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11444 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11446 | rm -f conftest.er1 |
| 11447 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11449 | (exit $ac_status); } && { |
| 11450 | test -z "$ac_c_werror_flag" || |
| 11451 | test ! -s conftest.err |
| 11452 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11453 | ac_hi=$ac_mid; break |
| 11454 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11455 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11457 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11458 | ac_lo=`expr $ac_mid + 1` |
| 11459 | if test $ac_lo -le $ac_mid; then |
| 11460 | ac_lo= ac_hi= |
| 11461 | break |
| 11462 | fi |
| 11463 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11464 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11465 | |
| 11466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11467 | done |
| 11468 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11469 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11471 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11472 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11473 | /* confdefs.h. */ |
| 11474 | _ACEOF |
| 11475 | cat confdefs.h >>conftest.$ac_ext |
| 11476 | cat >>conftest.$ac_ext <<_ACEOF |
| 11477 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11478 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11479 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11480 | int |
| 11481 | main () |
| 11482 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11483 | 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] | 11484 | test_array [0] = 0 |
| 11485 | |
| 11486 | ; |
| 11487 | return 0; |
| 11488 | } |
| 11489 | _ACEOF |
| 11490 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11491 | if { (ac_try="$ac_compile" |
| 11492 | case "(($ac_try" in |
| 11493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11494 | *) ac_try_echo=$ac_try;; |
| 11495 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11497 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11498 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11500 | rm -f conftest.er1 |
| 11501 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11503 | (exit $ac_status); } && { |
| 11504 | test -z "$ac_c_werror_flag" || |
| 11505 | test ! -s conftest.err |
| 11506 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11507 | ac_hi=-1 ac_mid=-1 |
| 11508 | while :; do |
| 11509 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11510 | /* confdefs.h. */ |
| 11511 | _ACEOF |
| 11512 | cat confdefs.h >>conftest.$ac_ext |
| 11513 | cat >>conftest.$ac_ext <<_ACEOF |
| 11514 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11515 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11516 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11517 | int |
| 11518 | main () |
| 11519 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11520 | 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] | 11521 | test_array [0] = 0 |
| 11522 | |
| 11523 | ; |
| 11524 | return 0; |
| 11525 | } |
| 11526 | _ACEOF |
| 11527 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11528 | if { (ac_try="$ac_compile" |
| 11529 | case "(($ac_try" in |
| 11530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11531 | *) ac_try_echo=$ac_try;; |
| 11532 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11534 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11535 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11537 | rm -f conftest.er1 |
| 11538 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11540 | (exit $ac_status); } && { |
| 11541 | test -z "$ac_c_werror_flag" || |
| 11542 | test ! -s conftest.err |
| 11543 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11544 | ac_lo=$ac_mid; break |
| 11545 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11546 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11548 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11549 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11550 | if test $ac_mid -le $ac_hi; then |
| 11551 | ac_lo= ac_hi= |
| 11552 | break |
| 11553 | fi |
| 11554 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11555 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11556 | |
| 11557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11558 | done |
| 11559 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11560 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11562 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11563 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11564 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11565 | |
| 11566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11567 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11568 | |
| 11569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11570 | # Binary search between lo and hi bounds. |
| 11571 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11572 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11573 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11574 | /* confdefs.h. */ |
| 11575 | _ACEOF |
| 11576 | cat confdefs.h >>conftest.$ac_ext |
| 11577 | cat >>conftest.$ac_ext <<_ACEOF |
| 11578 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11579 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11580 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11581 | int |
| 11582 | main () |
| 11583 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11584 | 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] | 11585 | test_array [0] = 0 |
| 11586 | |
| 11587 | ; |
| 11588 | return 0; |
| 11589 | } |
| 11590 | _ACEOF |
| 11591 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11592 | if { (ac_try="$ac_compile" |
| 11593 | case "(($ac_try" in |
| 11594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11595 | *) ac_try_echo=$ac_try;; |
| 11596 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11598 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11599 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11601 | rm -f conftest.er1 |
| 11602 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11604 | (exit $ac_status); } && { |
| 11605 | test -z "$ac_c_werror_flag" || |
| 11606 | test ! -s conftest.err |
| 11607 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11608 | ac_hi=$ac_mid |
| 11609 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11610 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11612 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11613 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11614 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11615 | |
| 11616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11617 | done |
| 11618 | case $ac_lo in |
| 11619 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11620 | '') if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11621 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11622 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11623 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11624 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11625 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11626 | else |
| 11627 | ac_cv_sizeof_long_long=0 |
| 11628 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11629 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11630 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11631 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11632 | /* confdefs.h. */ |
| 11633 | _ACEOF |
| 11634 | cat confdefs.h >>conftest.$ac_ext |
| 11635 | cat >>conftest.$ac_ext <<_ACEOF |
| 11636 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11637 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11638 | typedef long long ac__type_sizeof_; |
| 11639 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11640 | 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] | 11641 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11642 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11643 | int |
| 11644 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11645 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11646 | |
| 11647 | FILE *f = fopen ("conftest.val", "w"); |
| 11648 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11649 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11650 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11651 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11652 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11653 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11654 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11655 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11656 | } |
| 11657 | else |
| 11658 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11659 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11660 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11661 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11662 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11663 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11664 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11665 | |
| 11666 | ; |
| 11667 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11668 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11669 | _ACEOF |
| 11670 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11671 | if { (ac_try="$ac_link" |
| 11672 | case "(($ac_try" in |
| 11673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11674 | *) ac_try_echo=$ac_try;; |
| 11675 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11677 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11678 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11680 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11681 | { (case "(($ac_try" in |
| 11682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11683 | *) ac_try_echo=$ac_try;; |
| 11684 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11686 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11687 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11689 | (exit $ac_status); }; }; then |
| 11690 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11691 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11692 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11693 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11695 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11696 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11697 | if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11698 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11699 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11700 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11701 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11702 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11703 | else |
| 11704 | ac_cv_sizeof_long_long=0 |
| 11705 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11706 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11707 | 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] | 11708 | fi |
| 11709 | rm -f conftest.val |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11710 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11711 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 11712 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11713 | |
| 11714 | |
| 11715 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11716 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11717 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11718 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11719 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11720 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11721 | fi |
| 11722 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11723 | { echo "$as_me:$LINENO: checking for long double support" >&5 |
| 11724 | echo $ECHO_N "checking for long double support... $ECHO_C" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11725 | have_long_double=no |
| 11726 | cat >conftest.$ac_ext <<_ACEOF |
| 11727 | /* confdefs.h. */ |
| 11728 | _ACEOF |
| 11729 | cat confdefs.h >>conftest.$ac_ext |
| 11730 | cat >>conftest.$ac_ext <<_ACEOF |
| 11731 | /* end confdefs.h. */ |
| 11732 | |
| 11733 | int |
| 11734 | main () |
| 11735 | { |
| 11736 | long double x; x = (long double)0.; |
| 11737 | ; |
| 11738 | return 0; |
| 11739 | } |
| 11740 | _ACEOF |
| 11741 | rm -f conftest.$ac_objext |
| 11742 | if { (ac_try="$ac_compile" |
| 11743 | case "(($ac_try" in |
| 11744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11745 | *) ac_try_echo=$ac_try;; |
| 11746 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11748 | (eval "$ac_compile") 2>conftest.er1 |
| 11749 | ac_status=$? |
| 11750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11751 | rm -f conftest.er1 |
| 11752 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11754 | (exit $ac_status); } && { |
| 11755 | test -z "$ac_c_werror_flag" || |
| 11756 | test ! -s conftest.err |
| 11757 | } && test -s conftest.$ac_objext; then |
| 11758 | |
| 11759 | |
| 11760 | cat >>confdefs.h <<\_ACEOF |
| 11761 | #define HAVE_LONG_DOUBLE 1 |
| 11762 | _ACEOF |
| 11763 | |
| 11764 | have_long_double=yes |
| 11765 | |
| 11766 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11767 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11769 | |
| 11770 | |
| 11771 | fi |
| 11772 | |
| 11773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11774 | { echo "$as_me:$LINENO: result: $have_long_double" >&5 |
| 11775 | echo "${ECHO_T}$have_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11776 | if test "$have_long_double" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11777 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 11778 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
| 11779 | if test "${ac_cv_type_long_double+set}" = set; then |
| 11780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11781 | else |
| 11782 | cat >conftest.$ac_ext <<_ACEOF |
| 11783 | /* confdefs.h. */ |
| 11784 | _ACEOF |
| 11785 | cat confdefs.h >>conftest.$ac_ext |
| 11786 | cat >>conftest.$ac_ext <<_ACEOF |
| 11787 | /* end confdefs.h. */ |
| 11788 | $ac_includes_default |
| 11789 | typedef long double ac__type_new_; |
| 11790 | int |
| 11791 | main () |
| 11792 | { |
| 11793 | if ((ac__type_new_ *) 0) |
| 11794 | return 0; |
| 11795 | if (sizeof (ac__type_new_)) |
| 11796 | return 0; |
| 11797 | ; |
| 11798 | return 0; |
| 11799 | } |
| 11800 | _ACEOF |
| 11801 | rm -f conftest.$ac_objext |
| 11802 | if { (ac_try="$ac_compile" |
| 11803 | case "(($ac_try" in |
| 11804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11805 | *) ac_try_echo=$ac_try;; |
| 11806 | esac |
| 11807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11808 | (eval "$ac_compile") 2>conftest.er1 |
| 11809 | ac_status=$? |
| 11810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11811 | rm -f conftest.er1 |
| 11812 | cat conftest.err >&5 |
| 11813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11814 | (exit $ac_status); } && { |
| 11815 | test -z "$ac_c_werror_flag" || |
| 11816 | test ! -s conftest.err |
| 11817 | } && test -s conftest.$ac_objext; then |
| 11818 | ac_cv_type_long_double=yes |
| 11819 | else |
| 11820 | echo "$as_me: failed program was:" >&5 |
| 11821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11822 | |
| 11823 | ac_cv_type_long_double=no |
| 11824 | fi |
| 11825 | |
| 11826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11827 | fi |
| 11828 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 |
| 11829 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } |
| 11830 | |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11831 | # The cast to long int works around a bug in the HP C Compiler |
| 11832 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11833 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11834 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11835 | { echo "$as_me:$LINENO: checking size of long double" >&5 |
| 11836 | echo $ECHO_N "checking size of long double... $ECHO_C" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11837 | if test "${ac_cv_sizeof_long_double+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11839 | else |
| 11840 | if test "$cross_compiling" = yes; then |
| 11841 | # Depending upon the size, compute the lo and hi bounds. |
| 11842 | cat >conftest.$ac_ext <<_ACEOF |
| 11843 | /* confdefs.h. */ |
| 11844 | _ACEOF |
| 11845 | cat confdefs.h >>conftest.$ac_ext |
| 11846 | cat >>conftest.$ac_ext <<_ACEOF |
| 11847 | /* end confdefs.h. */ |
| 11848 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11849 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11850 | int |
| 11851 | main () |
| 11852 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11853 | 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] | 11854 | test_array [0] = 0 |
| 11855 | |
| 11856 | ; |
| 11857 | return 0; |
| 11858 | } |
| 11859 | _ACEOF |
| 11860 | rm -f conftest.$ac_objext |
| 11861 | if { (ac_try="$ac_compile" |
| 11862 | case "(($ac_try" in |
| 11863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11864 | *) ac_try_echo=$ac_try;; |
| 11865 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11867 | (eval "$ac_compile") 2>conftest.er1 |
| 11868 | ac_status=$? |
| 11869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11870 | rm -f conftest.er1 |
| 11871 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11873 | (exit $ac_status); } && { |
| 11874 | test -z "$ac_c_werror_flag" || |
| 11875 | test ! -s conftest.err |
| 11876 | } && test -s conftest.$ac_objext; then |
| 11877 | ac_lo=0 ac_mid=0 |
| 11878 | while :; do |
| 11879 | cat >conftest.$ac_ext <<_ACEOF |
| 11880 | /* confdefs.h. */ |
| 11881 | _ACEOF |
| 11882 | cat confdefs.h >>conftest.$ac_ext |
| 11883 | cat >>conftest.$ac_ext <<_ACEOF |
| 11884 | /* end confdefs.h. */ |
| 11885 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11886 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11887 | int |
| 11888 | main () |
| 11889 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11890 | 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] | 11891 | test_array [0] = 0 |
| 11892 | |
| 11893 | ; |
| 11894 | return 0; |
| 11895 | } |
| 11896 | _ACEOF |
| 11897 | rm -f conftest.$ac_objext |
| 11898 | if { (ac_try="$ac_compile" |
| 11899 | case "(($ac_try" in |
| 11900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11901 | *) ac_try_echo=$ac_try;; |
| 11902 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11904 | (eval "$ac_compile") 2>conftest.er1 |
| 11905 | ac_status=$? |
| 11906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11907 | rm -f conftest.er1 |
| 11908 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11910 | (exit $ac_status); } && { |
| 11911 | test -z "$ac_c_werror_flag" || |
| 11912 | test ! -s conftest.err |
| 11913 | } && test -s conftest.$ac_objext; then |
| 11914 | ac_hi=$ac_mid; break |
| 11915 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11916 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11918 | |
| 11919 | ac_lo=`expr $ac_mid + 1` |
| 11920 | if test $ac_lo -le $ac_mid; then |
| 11921 | ac_lo= ac_hi= |
| 11922 | break |
| 11923 | fi |
| 11924 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11925 | fi |
| 11926 | |
| 11927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11928 | done |
| 11929 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11930 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11932 | |
| 11933 | cat >conftest.$ac_ext <<_ACEOF |
| 11934 | /* confdefs.h. */ |
| 11935 | _ACEOF |
| 11936 | cat confdefs.h >>conftest.$ac_ext |
| 11937 | cat >>conftest.$ac_ext <<_ACEOF |
| 11938 | /* end confdefs.h. */ |
| 11939 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11940 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11941 | int |
| 11942 | main () |
| 11943 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11944 | 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] | 11945 | test_array [0] = 0 |
| 11946 | |
| 11947 | ; |
| 11948 | return 0; |
| 11949 | } |
| 11950 | _ACEOF |
| 11951 | rm -f conftest.$ac_objext |
| 11952 | if { (ac_try="$ac_compile" |
| 11953 | case "(($ac_try" in |
| 11954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11955 | *) ac_try_echo=$ac_try;; |
| 11956 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11958 | (eval "$ac_compile") 2>conftest.er1 |
| 11959 | ac_status=$? |
| 11960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11961 | rm -f conftest.er1 |
| 11962 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11964 | (exit $ac_status); } && { |
| 11965 | test -z "$ac_c_werror_flag" || |
| 11966 | test ! -s conftest.err |
| 11967 | } && test -s conftest.$ac_objext; then |
| 11968 | ac_hi=-1 ac_mid=-1 |
| 11969 | while :; do |
| 11970 | cat >conftest.$ac_ext <<_ACEOF |
| 11971 | /* confdefs.h. */ |
| 11972 | _ACEOF |
| 11973 | cat confdefs.h >>conftest.$ac_ext |
| 11974 | cat >>conftest.$ac_ext <<_ACEOF |
| 11975 | /* end confdefs.h. */ |
| 11976 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11977 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11978 | int |
| 11979 | main () |
| 11980 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11981 | 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] | 11982 | test_array [0] = 0 |
| 11983 | |
| 11984 | ; |
| 11985 | return 0; |
| 11986 | } |
| 11987 | _ACEOF |
| 11988 | rm -f conftest.$ac_objext |
| 11989 | if { (ac_try="$ac_compile" |
| 11990 | case "(($ac_try" in |
| 11991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11992 | *) ac_try_echo=$ac_try;; |
| 11993 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11995 | (eval "$ac_compile") 2>conftest.er1 |
| 11996 | ac_status=$? |
| 11997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11998 | rm -f conftest.er1 |
| 11999 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12001 | (exit $ac_status); } && { |
| 12002 | test -z "$ac_c_werror_flag" || |
| 12003 | test ! -s conftest.err |
| 12004 | } && test -s conftest.$ac_objext; then |
| 12005 | ac_lo=$ac_mid; break |
| 12006 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12007 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12009 | |
| 12010 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12011 | if test $ac_mid -le $ac_hi; then |
| 12012 | ac_lo= ac_hi= |
| 12013 | break |
| 12014 | fi |
| 12015 | ac_mid=`expr 2 '*' $ac_mid` |
| 12016 | fi |
| 12017 | |
| 12018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12019 | done |
| 12020 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12021 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12023 | |
| 12024 | ac_lo= ac_hi= |
| 12025 | fi |
| 12026 | |
| 12027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12028 | fi |
| 12029 | |
| 12030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12031 | # Binary search between lo and hi bounds. |
| 12032 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12033 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12034 | cat >conftest.$ac_ext <<_ACEOF |
| 12035 | /* confdefs.h. */ |
| 12036 | _ACEOF |
| 12037 | cat confdefs.h >>conftest.$ac_ext |
| 12038 | cat >>conftest.$ac_ext <<_ACEOF |
| 12039 | /* end confdefs.h. */ |
| 12040 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12041 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12042 | int |
| 12043 | main () |
| 12044 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12045 | 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] | 12046 | test_array [0] = 0 |
| 12047 | |
| 12048 | ; |
| 12049 | return 0; |
| 12050 | } |
| 12051 | _ACEOF |
| 12052 | rm -f conftest.$ac_objext |
| 12053 | if { (ac_try="$ac_compile" |
| 12054 | case "(($ac_try" in |
| 12055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12056 | *) ac_try_echo=$ac_try;; |
| 12057 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12059 | (eval "$ac_compile") 2>conftest.er1 |
| 12060 | ac_status=$? |
| 12061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12062 | rm -f conftest.er1 |
| 12063 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12065 | (exit $ac_status); } && { |
| 12066 | test -z "$ac_c_werror_flag" || |
| 12067 | test ! -s conftest.err |
| 12068 | } && test -s conftest.$ac_objext; then |
| 12069 | ac_hi=$ac_mid |
| 12070 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12071 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12073 | |
| 12074 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 12075 | fi |
| 12076 | |
| 12077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12078 | done |
| 12079 | case $ac_lo in |
| 12080 | ?*) ac_cv_sizeof_long_double=$ac_lo;; |
| 12081 | '') if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12082 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12083 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12084 | echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12085 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12086 | { (exit 77); exit 77; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12087 | else |
| 12088 | ac_cv_sizeof_long_double=0 |
| 12089 | fi ;; |
| 12090 | esac |
| 12091 | else |
| 12092 | cat >conftest.$ac_ext <<_ACEOF |
| 12093 | /* confdefs.h. */ |
| 12094 | _ACEOF |
| 12095 | cat confdefs.h >>conftest.$ac_ext |
| 12096 | cat >>conftest.$ac_ext <<_ACEOF |
| 12097 | /* end confdefs.h. */ |
| 12098 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12099 | typedef long double ac__type_sizeof_; |
| 12100 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12101 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12102 | #include <stdio.h> |
| 12103 | #include <stdlib.h> |
| 12104 | int |
| 12105 | main () |
| 12106 | { |
| 12107 | |
| 12108 | FILE *f = fopen ("conftest.val", "w"); |
| 12109 | if (! f) |
| 12110 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12111 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12112 | { |
| 12113 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12114 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12115 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12116 | fprintf (f, "%ld\n", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12117 | } |
| 12118 | else |
| 12119 | { |
| 12120 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12121 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12122 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12123 | fprintf (f, "%lu\n", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12124 | } |
| 12125 | return ferror (f) || fclose (f) != 0; |
| 12126 | |
| 12127 | ; |
| 12128 | return 0; |
| 12129 | } |
| 12130 | _ACEOF |
| 12131 | rm -f conftest$ac_exeext |
| 12132 | if { (ac_try="$ac_link" |
| 12133 | case "(($ac_try" in |
| 12134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12135 | *) ac_try_echo=$ac_try;; |
| 12136 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12138 | (eval "$ac_link") 2>&5 |
| 12139 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12141 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12142 | { (case "(($ac_try" in |
| 12143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12144 | *) ac_try_echo=$ac_try;; |
| 12145 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12147 | (eval "$ac_try") 2>&5 |
| 12148 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12150 | (exit $ac_status); }; }; then |
| 12151 | ac_cv_sizeof_long_double=`cat conftest.val` |
| 12152 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12153 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12154 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12155 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12156 | |
| 12157 | ( exit $ac_status ) |
| 12158 | if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12159 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12160 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12161 | echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12162 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12163 | { (exit 77); exit 77; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12164 | else |
| 12165 | ac_cv_sizeof_long_double=0 |
| 12166 | fi |
| 12167 | fi |
| 12168 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12169 | fi |
| 12170 | rm -f conftest.val |
| 12171 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12172 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 |
| 12173 | echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12174 | |
| 12175 | |
| 12176 | |
| 12177 | cat >>confdefs.h <<_ACEOF |
| 12178 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 12179 | _ACEOF |
| 12180 | |
| 12181 | |
| 12182 | fi |
| 12183 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12184 | { echo "$as_me:$LINENO: checking for _Bool support" >&5 |
| 12185 | echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12186 | have_c99_bool=no |
| 12187 | cat >conftest.$ac_ext <<_ACEOF |
| 12188 | /* confdefs.h. */ |
| 12189 | _ACEOF |
| 12190 | cat confdefs.h >>conftest.$ac_ext |
| 12191 | cat >>conftest.$ac_ext <<_ACEOF |
| 12192 | /* end confdefs.h. */ |
| 12193 | |
| 12194 | int |
| 12195 | main () |
| 12196 | { |
| 12197 | _Bool x; x = (_Bool)0; |
| 12198 | ; |
| 12199 | return 0; |
| 12200 | } |
| 12201 | _ACEOF |
| 12202 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12203 | if { (ac_try="$ac_compile" |
| 12204 | case "(($ac_try" in |
| 12205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12206 | *) ac_try_echo=$ac_try;; |
| 12207 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12209 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12210 | ac_status=$? |
| 12211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12212 | rm -f conftest.er1 |
| 12213 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12215 | (exit $ac_status); } && { |
| 12216 | test -z "$ac_c_werror_flag" || |
| 12217 | test ! -s conftest.err |
| 12218 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12219 | |
| 12220 | |
| 12221 | cat >>confdefs.h <<\_ACEOF |
| 12222 | #define HAVE_C99_BOOL 1 |
| 12223 | _ACEOF |
| 12224 | |
| 12225 | have_c99_bool=yes |
| 12226 | |
| 12227 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12228 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12230 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12231 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12232 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12233 | |
| 12234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12235 | { echo "$as_me:$LINENO: result: $have_c99_bool" >&5 |
| 12236 | echo "${ECHO_T}$have_c99_bool" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12237 | if test "$have_c99_bool" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12238 | { echo "$as_me:$LINENO: checking for _Bool" >&5 |
| 12239 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
| 12240 | if test "${ac_cv_type__Bool+set}" = set; then |
| 12241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12242 | else |
| 12243 | cat >conftest.$ac_ext <<_ACEOF |
| 12244 | /* confdefs.h. */ |
| 12245 | _ACEOF |
| 12246 | cat confdefs.h >>conftest.$ac_ext |
| 12247 | cat >>conftest.$ac_ext <<_ACEOF |
| 12248 | /* end confdefs.h. */ |
| 12249 | $ac_includes_default |
| 12250 | typedef _Bool ac__type_new_; |
| 12251 | int |
| 12252 | main () |
| 12253 | { |
| 12254 | if ((ac__type_new_ *) 0) |
| 12255 | return 0; |
| 12256 | if (sizeof (ac__type_new_)) |
| 12257 | return 0; |
| 12258 | ; |
| 12259 | return 0; |
| 12260 | } |
| 12261 | _ACEOF |
| 12262 | rm -f conftest.$ac_objext |
| 12263 | if { (ac_try="$ac_compile" |
| 12264 | case "(($ac_try" in |
| 12265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12266 | *) ac_try_echo=$ac_try;; |
| 12267 | esac |
| 12268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12269 | (eval "$ac_compile") 2>conftest.er1 |
| 12270 | ac_status=$? |
| 12271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12272 | rm -f conftest.er1 |
| 12273 | cat conftest.err >&5 |
| 12274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12275 | (exit $ac_status); } && { |
| 12276 | test -z "$ac_c_werror_flag" || |
| 12277 | test ! -s conftest.err |
| 12278 | } && test -s conftest.$ac_objext; then |
| 12279 | ac_cv_type__Bool=yes |
| 12280 | else |
| 12281 | echo "$as_me: failed program was:" >&5 |
| 12282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12283 | |
| 12284 | ac_cv_type__Bool=no |
| 12285 | fi |
| 12286 | |
| 12287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12288 | fi |
| 12289 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
| 12290 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
| 12291 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12292 | # The cast to long int works around a bug in the HP C Compiler |
| 12293 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12294 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12295 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12296 | { echo "$as_me:$LINENO: checking size of _Bool" >&5 |
| 12297 | echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12298 | if test "${ac_cv_sizeof__Bool+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12300 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12301 | if test "$cross_compiling" = yes; then |
| 12302 | # Depending upon the size, compute the lo and hi bounds. |
| 12303 | cat >conftest.$ac_ext <<_ACEOF |
| 12304 | /* confdefs.h. */ |
| 12305 | _ACEOF |
| 12306 | cat confdefs.h >>conftest.$ac_ext |
| 12307 | cat >>conftest.$ac_ext <<_ACEOF |
| 12308 | /* end confdefs.h. */ |
| 12309 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12310 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12311 | int |
| 12312 | main () |
| 12313 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12314 | 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] | 12315 | test_array [0] = 0 |
| 12316 | |
| 12317 | ; |
| 12318 | return 0; |
| 12319 | } |
| 12320 | _ACEOF |
| 12321 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12322 | if { (ac_try="$ac_compile" |
| 12323 | case "(($ac_try" in |
| 12324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12325 | *) ac_try_echo=$ac_try;; |
| 12326 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12328 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12329 | ac_status=$? |
| 12330 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12331 | rm -f conftest.er1 |
| 12332 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12334 | (exit $ac_status); } && { |
| 12335 | test -z "$ac_c_werror_flag" || |
| 12336 | test ! -s conftest.err |
| 12337 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12338 | ac_lo=0 ac_mid=0 |
| 12339 | while :; do |
| 12340 | cat >conftest.$ac_ext <<_ACEOF |
| 12341 | /* confdefs.h. */ |
| 12342 | _ACEOF |
| 12343 | cat confdefs.h >>conftest.$ac_ext |
| 12344 | cat >>conftest.$ac_ext <<_ACEOF |
| 12345 | /* end confdefs.h. */ |
| 12346 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12347 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12348 | int |
| 12349 | main () |
| 12350 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12351 | 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] | 12352 | test_array [0] = 0 |
| 12353 | |
| 12354 | ; |
| 12355 | return 0; |
| 12356 | } |
| 12357 | _ACEOF |
| 12358 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12359 | if { (ac_try="$ac_compile" |
| 12360 | case "(($ac_try" in |
| 12361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12362 | *) ac_try_echo=$ac_try;; |
| 12363 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12365 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12366 | ac_status=$? |
| 12367 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12368 | rm -f conftest.er1 |
| 12369 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12371 | (exit $ac_status); } && { |
| 12372 | test -z "$ac_c_werror_flag" || |
| 12373 | test ! -s conftest.err |
| 12374 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12375 | ac_hi=$ac_mid; break |
| 12376 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12377 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12379 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12380 | ac_lo=`expr $ac_mid + 1` |
| 12381 | if test $ac_lo -le $ac_mid; then |
| 12382 | ac_lo= ac_hi= |
| 12383 | break |
| 12384 | fi |
| 12385 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12386 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12387 | |
| 12388 | 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] | 12389 | done |
| 12390 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12391 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12393 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12394 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12395 | /* confdefs.h. */ |
| 12396 | _ACEOF |
| 12397 | cat confdefs.h >>conftest.$ac_ext |
| 12398 | cat >>conftest.$ac_ext <<_ACEOF |
| 12399 | /* end confdefs.h. */ |
| 12400 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12401 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12402 | int |
| 12403 | main () |
| 12404 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12405 | 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] | 12406 | test_array [0] = 0 |
| 12407 | |
| 12408 | ; |
| 12409 | return 0; |
| 12410 | } |
| 12411 | _ACEOF |
| 12412 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12413 | if { (ac_try="$ac_compile" |
| 12414 | case "(($ac_try" in |
| 12415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12416 | *) ac_try_echo=$ac_try;; |
| 12417 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12419 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12420 | ac_status=$? |
| 12421 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12422 | rm -f conftest.er1 |
| 12423 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12425 | (exit $ac_status); } && { |
| 12426 | test -z "$ac_c_werror_flag" || |
| 12427 | test ! -s conftest.err |
| 12428 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12429 | ac_hi=-1 ac_mid=-1 |
| 12430 | while :; do |
| 12431 | cat >conftest.$ac_ext <<_ACEOF |
| 12432 | /* confdefs.h. */ |
| 12433 | _ACEOF |
| 12434 | cat confdefs.h >>conftest.$ac_ext |
| 12435 | cat >>conftest.$ac_ext <<_ACEOF |
| 12436 | /* end confdefs.h. */ |
| 12437 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12438 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12439 | int |
| 12440 | main () |
| 12441 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12442 | 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] | 12443 | test_array [0] = 0 |
| 12444 | |
| 12445 | ; |
| 12446 | return 0; |
| 12447 | } |
| 12448 | _ACEOF |
| 12449 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12450 | if { (ac_try="$ac_compile" |
| 12451 | case "(($ac_try" in |
| 12452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12453 | *) ac_try_echo=$ac_try;; |
| 12454 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12456 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12457 | ac_status=$? |
| 12458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12459 | rm -f conftest.er1 |
| 12460 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12462 | (exit $ac_status); } && { |
| 12463 | test -z "$ac_c_werror_flag" || |
| 12464 | test ! -s conftest.err |
| 12465 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12466 | ac_lo=$ac_mid; break |
| 12467 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12468 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12470 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12471 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12472 | if test $ac_mid -le $ac_hi; then |
| 12473 | ac_lo= ac_hi= |
| 12474 | break |
| 12475 | fi |
| 12476 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12477 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12478 | |
| 12479 | 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] | 12480 | done |
| 12481 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12482 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12484 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12485 | ac_lo= ac_hi= |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12486 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12487 | |
| 12488 | 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] | 12489 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12490 | |
| 12491 | 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] | 12492 | # Binary search between lo and hi bounds. |
| 12493 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12494 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12495 | cat >conftest.$ac_ext <<_ACEOF |
| 12496 | /* confdefs.h. */ |
| 12497 | _ACEOF |
| 12498 | cat confdefs.h >>conftest.$ac_ext |
| 12499 | cat >>conftest.$ac_ext <<_ACEOF |
| 12500 | /* end confdefs.h. */ |
| 12501 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12502 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12503 | int |
| 12504 | main () |
| 12505 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12506 | 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] | 12507 | test_array [0] = 0 |
| 12508 | |
| 12509 | ; |
| 12510 | return 0; |
| 12511 | } |
| 12512 | _ACEOF |
| 12513 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12514 | if { (ac_try="$ac_compile" |
| 12515 | case "(($ac_try" in |
| 12516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12517 | *) ac_try_echo=$ac_try;; |
| 12518 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12520 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12521 | ac_status=$? |
| 12522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12523 | rm -f conftest.er1 |
| 12524 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12526 | (exit $ac_status); } && { |
| 12527 | test -z "$ac_c_werror_flag" || |
| 12528 | test ! -s conftest.err |
| 12529 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12530 | ac_hi=$ac_mid |
| 12531 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12532 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12533 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12534 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12535 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12536 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12537 | |
| 12538 | 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] | 12539 | done |
| 12540 | case $ac_lo in |
| 12541 | ?*) ac_cv_sizeof__Bool=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12542 | '') if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12543 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12544 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12545 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12546 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12547 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12548 | else |
| 12549 | ac_cv_sizeof__Bool=0 |
| 12550 | fi ;; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12551 | esac |
| 12552 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12553 | cat >conftest.$ac_ext <<_ACEOF |
| 12554 | /* confdefs.h. */ |
| 12555 | _ACEOF |
| 12556 | cat confdefs.h >>conftest.$ac_ext |
| 12557 | cat >>conftest.$ac_ext <<_ACEOF |
| 12558 | /* end confdefs.h. */ |
| 12559 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12560 | typedef _Bool ac__type_sizeof_; |
| 12561 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12562 | 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] | 12563 | #include <stdio.h> |
| 12564 | #include <stdlib.h> |
| 12565 | int |
| 12566 | main () |
| 12567 | { |
| 12568 | |
| 12569 | FILE *f = fopen ("conftest.val", "w"); |
| 12570 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12571 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12572 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12573 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12574 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12575 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12576 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12577 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12578 | } |
| 12579 | else |
| 12580 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12581 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12582 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12583 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12584 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12585 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12586 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12587 | |
| 12588 | ; |
| 12589 | return 0; |
| 12590 | } |
| 12591 | _ACEOF |
| 12592 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12593 | if { (ac_try="$ac_link" |
| 12594 | case "(($ac_try" in |
| 12595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12596 | *) ac_try_echo=$ac_try;; |
| 12597 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12599 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12600 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12602 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12603 | { (case "(($ac_try" in |
| 12604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12605 | *) ac_try_echo=$ac_try;; |
| 12606 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12608 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12609 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12611 | (exit $ac_status); }; }; then |
| 12612 | ac_cv_sizeof__Bool=`cat conftest.val` |
| 12613 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12614 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12615 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12617 | |
| 12618 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12619 | if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12620 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12621 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12622 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12623 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12624 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12625 | else |
| 12626 | ac_cv_sizeof__Bool=0 |
| 12627 | fi |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12628 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12629 | 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] | 12630 | fi |
| 12631 | rm -f conftest.val |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12632 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12633 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5 |
| 12634 | echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12635 | |
| 12636 | |
| 12637 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12638 | cat >>confdefs.h <<_ACEOF |
| 12639 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 12640 | _ACEOF |
| 12641 | |
| 12642 | |
| 12643 | fi |
| 12644 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12645 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12646 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12647 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12649 | else |
| 12650 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12651 | /* confdefs.h. */ |
| 12652 | _ACEOF |
| 12653 | cat confdefs.h >>conftest.$ac_ext |
| 12654 | cat >>conftest.$ac_ext <<_ACEOF |
| 12655 | /* end confdefs.h. */ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 12656 | #ifdef HAVE_STDINT_H |
| 12657 | #include <stdint.h> |
| 12658 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12659 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12660 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12661 | int |
| 12662 | main () |
| 12663 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12664 | if ((ac__type_new_ *) 0) |
| 12665 | return 0; |
| 12666 | if (sizeof (ac__type_new_)) |
| 12667 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12668 | ; |
| 12669 | return 0; |
| 12670 | } |
| 12671 | _ACEOF |
| 12672 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12673 | if { (ac_try="$ac_compile" |
| 12674 | case "(($ac_try" in |
| 12675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12676 | *) ac_try_echo=$ac_try;; |
| 12677 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12679 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12680 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12682 | rm -f conftest.er1 |
| 12683 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12685 | (exit $ac_status); } && { |
| 12686 | test -z "$ac_c_werror_flag" || |
| 12687 | test ! -s conftest.err |
| 12688 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12689 | ac_cv_type_uintptr_t=yes |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12690 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12691 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12693 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12694 | ac_cv_type_uintptr_t=no |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12695 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12696 | |
| 12697 | 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] | 12698 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12699 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12700 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12701 | if test $ac_cv_type_uintptr_t = yes; then |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12702 | |
| 12703 | cat >>confdefs.h <<_ACEOF |
| 12704 | #define HAVE_UINTPTR_T 1 |
| 12705 | _ACEOF |
| 12706 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12707 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12708 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
| 12709 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 12710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12711 | else |
| 12712 | cat >conftest.$ac_ext <<_ACEOF |
| 12713 | /* confdefs.h. */ |
| 12714 | _ACEOF |
| 12715 | cat confdefs.h >>conftest.$ac_ext |
| 12716 | cat >>conftest.$ac_ext <<_ACEOF |
| 12717 | /* end confdefs.h. */ |
| 12718 | $ac_includes_default |
| 12719 | typedef uintptr_t ac__type_new_; |
| 12720 | int |
| 12721 | main () |
| 12722 | { |
| 12723 | if ((ac__type_new_ *) 0) |
| 12724 | return 0; |
| 12725 | if (sizeof (ac__type_new_)) |
| 12726 | return 0; |
| 12727 | ; |
| 12728 | return 0; |
| 12729 | } |
| 12730 | _ACEOF |
| 12731 | rm -f conftest.$ac_objext |
| 12732 | if { (ac_try="$ac_compile" |
| 12733 | case "(($ac_try" in |
| 12734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12735 | *) ac_try_echo=$ac_try;; |
| 12736 | esac |
| 12737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12738 | (eval "$ac_compile") 2>conftest.er1 |
| 12739 | ac_status=$? |
| 12740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12741 | rm -f conftest.er1 |
| 12742 | cat conftest.err >&5 |
| 12743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12744 | (exit $ac_status); } && { |
| 12745 | test -z "$ac_c_werror_flag" || |
| 12746 | test ! -s conftest.err |
| 12747 | } && test -s conftest.$ac_objext; then |
| 12748 | ac_cv_type_uintptr_t=yes |
| 12749 | else |
| 12750 | echo "$as_me: failed program was:" >&5 |
| 12751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12752 | |
| 12753 | ac_cv_type_uintptr_t=no |
| 12754 | fi |
| 12755 | |
| 12756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12757 | fi |
| 12758 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12759 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12760 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12761 | # The cast to long int works around a bug in the HP C Compiler |
| 12762 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12763 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12764 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12765 | { echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 12766 | 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] | 12767 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12769 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12770 | if test "$cross_compiling" = yes; then |
| 12771 | # Depending upon the size, compute the lo and hi bounds. |
| 12772 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12773 | /* confdefs.h. */ |
| 12774 | _ACEOF |
| 12775 | cat confdefs.h >>conftest.$ac_ext |
| 12776 | cat >>conftest.$ac_ext <<_ACEOF |
| 12777 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12778 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12779 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12780 | int |
| 12781 | main () |
| 12782 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12783 | 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] | 12784 | test_array [0] = 0 |
| 12785 | |
| 12786 | ; |
| 12787 | return 0; |
| 12788 | } |
| 12789 | _ACEOF |
| 12790 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12791 | if { (ac_try="$ac_compile" |
| 12792 | case "(($ac_try" in |
| 12793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12794 | *) ac_try_echo=$ac_try;; |
| 12795 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12797 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12798 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12799 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12800 | rm -f conftest.er1 |
| 12801 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12803 | (exit $ac_status); } && { |
| 12804 | test -z "$ac_c_werror_flag" || |
| 12805 | test ! -s conftest.err |
| 12806 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12807 | ac_lo=0 ac_mid=0 |
| 12808 | while :; do |
| 12809 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12810 | /* confdefs.h. */ |
| 12811 | _ACEOF |
| 12812 | cat confdefs.h >>conftest.$ac_ext |
| 12813 | cat >>conftest.$ac_ext <<_ACEOF |
| 12814 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12815 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12816 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12817 | int |
| 12818 | main () |
| 12819 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12820 | 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] | 12821 | test_array [0] = 0 |
| 12822 | |
| 12823 | ; |
| 12824 | return 0; |
| 12825 | } |
| 12826 | _ACEOF |
| 12827 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12828 | if { (ac_try="$ac_compile" |
| 12829 | case "(($ac_try" in |
| 12830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12831 | *) ac_try_echo=$ac_try;; |
| 12832 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12834 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12835 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12837 | rm -f conftest.er1 |
| 12838 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12840 | (exit $ac_status); } && { |
| 12841 | test -z "$ac_c_werror_flag" || |
| 12842 | test ! -s conftest.err |
| 12843 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12844 | ac_hi=$ac_mid; break |
| 12845 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12846 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12848 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12849 | ac_lo=`expr $ac_mid + 1` |
| 12850 | if test $ac_lo -le $ac_mid; then |
| 12851 | ac_lo= ac_hi= |
| 12852 | break |
| 12853 | fi |
| 12854 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12855 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12856 | |
| 12857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12858 | done |
| 12859 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12860 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12862 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12863 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12864 | /* confdefs.h. */ |
| 12865 | _ACEOF |
| 12866 | cat confdefs.h >>conftest.$ac_ext |
| 12867 | cat >>conftest.$ac_ext <<_ACEOF |
| 12868 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12869 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12870 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12871 | int |
| 12872 | main () |
| 12873 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12874 | 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] | 12875 | test_array [0] = 0 |
| 12876 | |
| 12877 | ; |
| 12878 | return 0; |
| 12879 | } |
| 12880 | _ACEOF |
| 12881 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12882 | if { (ac_try="$ac_compile" |
| 12883 | case "(($ac_try" in |
| 12884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12885 | *) ac_try_echo=$ac_try;; |
| 12886 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12888 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12889 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12890 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12891 | rm -f conftest.er1 |
| 12892 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12894 | (exit $ac_status); } && { |
| 12895 | test -z "$ac_c_werror_flag" || |
| 12896 | test ! -s conftest.err |
| 12897 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12898 | ac_hi=-1 ac_mid=-1 |
| 12899 | while :; do |
| 12900 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12901 | /* confdefs.h. */ |
| 12902 | _ACEOF |
| 12903 | cat confdefs.h >>conftest.$ac_ext |
| 12904 | cat >>conftest.$ac_ext <<_ACEOF |
| 12905 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12906 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12907 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12908 | int |
| 12909 | main () |
| 12910 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12911 | 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] | 12912 | test_array [0] = 0 |
| 12913 | |
| 12914 | ; |
| 12915 | return 0; |
| 12916 | } |
| 12917 | _ACEOF |
| 12918 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12919 | if { (ac_try="$ac_compile" |
| 12920 | case "(($ac_try" in |
| 12921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12922 | *) ac_try_echo=$ac_try;; |
| 12923 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12925 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12926 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12928 | rm -f conftest.er1 |
| 12929 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12931 | (exit $ac_status); } && { |
| 12932 | test -z "$ac_c_werror_flag" || |
| 12933 | test ! -s conftest.err |
| 12934 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12935 | ac_lo=$ac_mid; break |
| 12936 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12937 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12939 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12940 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12941 | if test $ac_mid -le $ac_hi; then |
| 12942 | ac_lo= ac_hi= |
| 12943 | break |
| 12944 | fi |
| 12945 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12946 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12947 | |
| 12948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12949 | done |
| 12950 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12951 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12953 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12954 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12955 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12956 | |
| 12957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12958 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12959 | |
| 12960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12961 | # Binary search between lo and hi bounds. |
| 12962 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12963 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12964 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12965 | /* confdefs.h. */ |
| 12966 | _ACEOF |
| 12967 | cat confdefs.h >>conftest.$ac_ext |
| 12968 | cat >>conftest.$ac_ext <<_ACEOF |
| 12969 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12970 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12971 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12972 | int |
| 12973 | main () |
| 12974 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12975 | 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] | 12976 | test_array [0] = 0 |
| 12977 | |
| 12978 | ; |
| 12979 | return 0; |
| 12980 | } |
| 12981 | _ACEOF |
| 12982 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12983 | if { (ac_try="$ac_compile" |
| 12984 | case "(($ac_try" in |
| 12985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12986 | *) ac_try_echo=$ac_try;; |
| 12987 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12989 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12990 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12992 | rm -f conftest.er1 |
| 12993 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12995 | (exit $ac_status); } && { |
| 12996 | test -z "$ac_c_werror_flag" || |
| 12997 | test ! -s conftest.err |
| 12998 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12999 | ac_hi=$ac_mid |
| 13000 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13001 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13003 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13004 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13005 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13006 | |
| 13007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13008 | done |
| 13009 | case $ac_lo in |
| 13010 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13011 | '') if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13012 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13013 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13014 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13015 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13016 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13017 | else |
| 13018 | ac_cv_sizeof_uintptr_t=0 |
| 13019 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13020 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13021 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13022 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13023 | /* confdefs.h. */ |
| 13024 | _ACEOF |
| 13025 | cat confdefs.h >>conftest.$ac_ext |
| 13026 | cat >>conftest.$ac_ext <<_ACEOF |
| 13027 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13028 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13029 | typedef uintptr_t ac__type_sizeof_; |
| 13030 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13031 | 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] | 13032 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13033 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13034 | int |
| 13035 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13036 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13037 | |
| 13038 | FILE *f = fopen ("conftest.val", "w"); |
| 13039 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13040 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13041 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13042 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13043 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13044 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13045 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13046 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13047 | } |
| 13048 | else |
| 13049 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13050 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13051 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13052 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13053 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13054 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13055 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13056 | |
| 13057 | ; |
| 13058 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13059 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13060 | _ACEOF |
| 13061 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13062 | if { (ac_try="$ac_link" |
| 13063 | case "(($ac_try" in |
| 13064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13065 | *) ac_try_echo=$ac_try;; |
| 13066 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13068 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13069 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13071 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13072 | { (case "(($ac_try" in |
| 13073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13074 | *) ac_try_echo=$ac_try;; |
| 13075 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13077 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13078 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13080 | (exit $ac_status); }; }; then |
| 13081 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13082 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13083 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13084 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13086 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13087 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13088 | if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13089 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13090 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13091 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13092 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13093 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13094 | else |
| 13095 | ac_cv_sizeof_uintptr_t=0 |
| 13096 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13097 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13098 | 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] | 13099 | fi |
| 13100 | rm -f conftest.val |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13101 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13102 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 13103 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13104 | |
| 13105 | |
| 13106 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13107 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13108 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13109 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13110 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13111 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13112 | fi |
| 13113 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 13114 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13115 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 13116 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
| 13117 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13119 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13120 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13121 | /* confdefs.h. */ |
| 13122 | _ACEOF |
| 13123 | cat confdefs.h >>conftest.$ac_ext |
| 13124 | cat >>conftest.$ac_ext <<_ACEOF |
| 13125 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13126 | |
| 13127 | #ifdef HAVE_SYS_TYPES_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13128 | #include <sys/types.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13129 | #endif |
| 13130 | |
| 13131 | |
| 13132 | typedef off_t ac__type_new_; |
| 13133 | int |
| 13134 | main () |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13135 | { |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13136 | if ((ac__type_new_ *) 0) |
| 13137 | return 0; |
| 13138 | if (sizeof (ac__type_new_)) |
| 13139 | return 0; |
| 13140 | ; |
| 13141 | return 0; |
| 13142 | } |
| 13143 | _ACEOF |
| 13144 | rm -f conftest.$ac_objext |
| 13145 | if { (ac_try="$ac_compile" |
| 13146 | case "(($ac_try" in |
| 13147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13148 | *) ac_try_echo=$ac_try;; |
| 13149 | esac |
| 13150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13151 | (eval "$ac_compile") 2>conftest.er1 |
| 13152 | ac_status=$? |
| 13153 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13154 | rm -f conftest.er1 |
| 13155 | cat conftest.err >&5 |
| 13156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13157 | (exit $ac_status); } && { |
| 13158 | test -z "$ac_c_werror_flag" || |
| 13159 | test ! -s conftest.err |
| 13160 | } && test -s conftest.$ac_objext; then |
| 13161 | ac_cv_type_off_t=yes |
| 13162 | else |
| 13163 | echo "$as_me: failed program was:" >&5 |
| 13164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13165 | |
| 13166 | ac_cv_type_off_t=no |
| 13167 | fi |
| 13168 | |
| 13169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13170 | fi |
| 13171 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 13172 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 13173 | |
| 13174 | # The cast to long int works around a bug in the HP C Compiler |
| 13175 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13176 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13177 | # This bug is HP SR number 8606223364. |
| 13178 | { echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 13179 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; } |
| 13180 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 13181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13182 | else |
| 13183 | if test "$cross_compiling" = yes; then |
| 13184 | # Depending upon the size, compute the lo and hi bounds. |
| 13185 | cat >conftest.$ac_ext <<_ACEOF |
| 13186 | /* confdefs.h. */ |
| 13187 | _ACEOF |
| 13188 | cat confdefs.h >>conftest.$ac_ext |
| 13189 | cat >>conftest.$ac_ext <<_ACEOF |
| 13190 | /* end confdefs.h. */ |
| 13191 | |
| 13192 | #ifdef HAVE_SYS_TYPES_H |
| 13193 | #include <sys/types.h> |
| 13194 | #endif |
| 13195 | |
| 13196 | |
| 13197 | typedef off_t ac__type_sizeof_; |
| 13198 | int |
| 13199 | main () |
| 13200 | { |
| 13201 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 13202 | test_array [0] = 0 |
| 13203 | |
| 13204 | ; |
| 13205 | return 0; |
| 13206 | } |
| 13207 | _ACEOF |
| 13208 | rm -f conftest.$ac_objext |
| 13209 | if { (ac_try="$ac_compile" |
| 13210 | case "(($ac_try" in |
| 13211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13212 | *) ac_try_echo=$ac_try;; |
| 13213 | esac |
| 13214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13215 | (eval "$ac_compile") 2>conftest.er1 |
| 13216 | ac_status=$? |
| 13217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13218 | rm -f conftest.er1 |
| 13219 | cat conftest.err >&5 |
| 13220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13221 | (exit $ac_status); } && { |
| 13222 | test -z "$ac_c_werror_flag" || |
| 13223 | test ! -s conftest.err |
| 13224 | } && test -s conftest.$ac_objext; then |
| 13225 | ac_lo=0 ac_mid=0 |
| 13226 | while :; do |
| 13227 | cat >conftest.$ac_ext <<_ACEOF |
| 13228 | /* confdefs.h. */ |
| 13229 | _ACEOF |
| 13230 | cat confdefs.h >>conftest.$ac_ext |
| 13231 | cat >>conftest.$ac_ext <<_ACEOF |
| 13232 | /* end confdefs.h. */ |
| 13233 | |
| 13234 | #ifdef HAVE_SYS_TYPES_H |
| 13235 | #include <sys/types.h> |
| 13236 | #endif |
| 13237 | |
| 13238 | |
| 13239 | typedef off_t ac__type_sizeof_; |
| 13240 | int |
| 13241 | main () |
| 13242 | { |
| 13243 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13244 | test_array [0] = 0 |
| 13245 | |
| 13246 | ; |
| 13247 | return 0; |
| 13248 | } |
| 13249 | _ACEOF |
| 13250 | rm -f conftest.$ac_objext |
| 13251 | if { (ac_try="$ac_compile" |
| 13252 | case "(($ac_try" in |
| 13253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13254 | *) ac_try_echo=$ac_try;; |
| 13255 | esac |
| 13256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13257 | (eval "$ac_compile") 2>conftest.er1 |
| 13258 | ac_status=$? |
| 13259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13260 | rm -f conftest.er1 |
| 13261 | cat conftest.err >&5 |
| 13262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13263 | (exit $ac_status); } && { |
| 13264 | test -z "$ac_c_werror_flag" || |
| 13265 | test ! -s conftest.err |
| 13266 | } && test -s conftest.$ac_objext; then |
| 13267 | ac_hi=$ac_mid; break |
| 13268 | else |
| 13269 | echo "$as_me: failed program was:" >&5 |
| 13270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13271 | |
| 13272 | ac_lo=`expr $ac_mid + 1` |
| 13273 | if test $ac_lo -le $ac_mid; then |
| 13274 | ac_lo= ac_hi= |
| 13275 | break |
| 13276 | fi |
| 13277 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13278 | fi |
| 13279 | |
| 13280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13281 | done |
| 13282 | else |
| 13283 | echo "$as_me: failed program was:" >&5 |
| 13284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13285 | |
| 13286 | cat >conftest.$ac_ext <<_ACEOF |
| 13287 | /* confdefs.h. */ |
| 13288 | _ACEOF |
| 13289 | cat confdefs.h >>conftest.$ac_ext |
| 13290 | cat >>conftest.$ac_ext <<_ACEOF |
| 13291 | /* end confdefs.h. */ |
| 13292 | |
| 13293 | #ifdef HAVE_SYS_TYPES_H |
| 13294 | #include <sys/types.h> |
| 13295 | #endif |
| 13296 | |
| 13297 | |
| 13298 | typedef off_t ac__type_sizeof_; |
| 13299 | int |
| 13300 | main () |
| 13301 | { |
| 13302 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 13303 | test_array [0] = 0 |
| 13304 | |
| 13305 | ; |
| 13306 | return 0; |
| 13307 | } |
| 13308 | _ACEOF |
| 13309 | rm -f conftest.$ac_objext |
| 13310 | if { (ac_try="$ac_compile" |
| 13311 | case "(($ac_try" in |
| 13312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13313 | *) ac_try_echo=$ac_try;; |
| 13314 | esac |
| 13315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13316 | (eval "$ac_compile") 2>conftest.er1 |
| 13317 | ac_status=$? |
| 13318 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13319 | rm -f conftest.er1 |
| 13320 | cat conftest.err >&5 |
| 13321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13322 | (exit $ac_status); } && { |
| 13323 | test -z "$ac_c_werror_flag" || |
| 13324 | test ! -s conftest.err |
| 13325 | } && test -s conftest.$ac_objext; then |
| 13326 | ac_hi=-1 ac_mid=-1 |
| 13327 | while :; do |
| 13328 | cat >conftest.$ac_ext <<_ACEOF |
| 13329 | /* confdefs.h. */ |
| 13330 | _ACEOF |
| 13331 | cat confdefs.h >>conftest.$ac_ext |
| 13332 | cat >>conftest.$ac_ext <<_ACEOF |
| 13333 | /* end confdefs.h. */ |
| 13334 | |
| 13335 | #ifdef HAVE_SYS_TYPES_H |
| 13336 | #include <sys/types.h> |
| 13337 | #endif |
| 13338 | |
| 13339 | |
| 13340 | typedef off_t ac__type_sizeof_; |
| 13341 | int |
| 13342 | main () |
| 13343 | { |
| 13344 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 13345 | test_array [0] = 0 |
| 13346 | |
| 13347 | ; |
| 13348 | return 0; |
| 13349 | } |
| 13350 | _ACEOF |
| 13351 | rm -f conftest.$ac_objext |
| 13352 | if { (ac_try="$ac_compile" |
| 13353 | case "(($ac_try" in |
| 13354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13355 | *) ac_try_echo=$ac_try;; |
| 13356 | esac |
| 13357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13358 | (eval "$ac_compile") 2>conftest.er1 |
| 13359 | ac_status=$? |
| 13360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13361 | rm -f conftest.er1 |
| 13362 | cat conftest.err >&5 |
| 13363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13364 | (exit $ac_status); } && { |
| 13365 | test -z "$ac_c_werror_flag" || |
| 13366 | test ! -s conftest.err |
| 13367 | } && test -s conftest.$ac_objext; then |
| 13368 | ac_lo=$ac_mid; break |
| 13369 | else |
| 13370 | echo "$as_me: failed program was:" >&5 |
| 13371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13372 | |
| 13373 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13374 | if test $ac_mid -le $ac_hi; then |
| 13375 | ac_lo= ac_hi= |
| 13376 | break |
| 13377 | fi |
| 13378 | ac_mid=`expr 2 '*' $ac_mid` |
| 13379 | fi |
| 13380 | |
| 13381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13382 | done |
| 13383 | else |
| 13384 | echo "$as_me: failed program was:" >&5 |
| 13385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13386 | |
| 13387 | ac_lo= ac_hi= |
| 13388 | fi |
| 13389 | |
| 13390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13391 | fi |
| 13392 | |
| 13393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13394 | # Binary search between lo and hi bounds. |
| 13395 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13396 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13397 | cat >conftest.$ac_ext <<_ACEOF |
| 13398 | /* confdefs.h. */ |
| 13399 | _ACEOF |
| 13400 | cat confdefs.h >>conftest.$ac_ext |
| 13401 | cat >>conftest.$ac_ext <<_ACEOF |
| 13402 | /* end confdefs.h. */ |
| 13403 | |
| 13404 | #ifdef HAVE_SYS_TYPES_H |
| 13405 | #include <sys/types.h> |
| 13406 | #endif |
| 13407 | |
| 13408 | |
| 13409 | typedef off_t ac__type_sizeof_; |
| 13410 | int |
| 13411 | main () |
| 13412 | { |
| 13413 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13414 | test_array [0] = 0 |
| 13415 | |
| 13416 | ; |
| 13417 | return 0; |
| 13418 | } |
| 13419 | _ACEOF |
| 13420 | rm -f conftest.$ac_objext |
| 13421 | if { (ac_try="$ac_compile" |
| 13422 | case "(($ac_try" in |
| 13423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13424 | *) ac_try_echo=$ac_try;; |
| 13425 | esac |
| 13426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13427 | (eval "$ac_compile") 2>conftest.er1 |
| 13428 | ac_status=$? |
| 13429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13430 | rm -f conftest.er1 |
| 13431 | cat conftest.err >&5 |
| 13432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13433 | (exit $ac_status); } && { |
| 13434 | test -z "$ac_c_werror_flag" || |
| 13435 | test ! -s conftest.err |
| 13436 | } && test -s conftest.$ac_objext; then |
| 13437 | ac_hi=$ac_mid |
| 13438 | else |
| 13439 | echo "$as_me: failed program was:" >&5 |
| 13440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13441 | |
| 13442 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13443 | fi |
| 13444 | |
| 13445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13446 | done |
| 13447 | case $ac_lo in |
| 13448 | ?*) ac_cv_sizeof_off_t=$ac_lo;; |
| 13449 | '') if test "$ac_cv_type_off_t" = yes; then |
| 13450 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13451 | See \`config.log' for more details." >&5 |
| 13452 | echo "$as_me: error: cannot compute sizeof (off_t) |
| 13453 | See \`config.log' for more details." >&2;} |
| 13454 | { (exit 77); exit 77; }; } |
| 13455 | else |
| 13456 | ac_cv_sizeof_off_t=0 |
| 13457 | fi ;; |
| 13458 | esac |
| 13459 | else |
| 13460 | cat >conftest.$ac_ext <<_ACEOF |
| 13461 | /* confdefs.h. */ |
| 13462 | _ACEOF |
| 13463 | cat confdefs.h >>conftest.$ac_ext |
| 13464 | cat >>conftest.$ac_ext <<_ACEOF |
| 13465 | /* end confdefs.h. */ |
| 13466 | |
| 13467 | #ifdef HAVE_SYS_TYPES_H |
| 13468 | #include <sys/types.h> |
| 13469 | #endif |
| 13470 | |
| 13471 | |
| 13472 | typedef off_t ac__type_sizeof_; |
| 13473 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13474 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13475 | #include <stdio.h> |
| 13476 | #include <stdlib.h> |
| 13477 | int |
| 13478 | main () |
| 13479 | { |
| 13480 | |
| 13481 | FILE *f = fopen ("conftest.val", "w"); |
| 13482 | if (! f) |
| 13483 | return 1; |
| 13484 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 13485 | { |
| 13486 | long int i = longval (); |
| 13487 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13488 | return 1; |
| 13489 | fprintf (f, "%ld\n", i); |
| 13490 | } |
| 13491 | else |
| 13492 | { |
| 13493 | unsigned long int i = ulongval (); |
| 13494 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13495 | return 1; |
| 13496 | fprintf (f, "%lu\n", i); |
| 13497 | } |
| 13498 | return ferror (f) || fclose (f) != 0; |
| 13499 | |
| 13500 | ; |
| 13501 | return 0; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13502 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13503 | _ACEOF |
| 13504 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13505 | if { (ac_try="$ac_link" |
| 13506 | case "(($ac_try" in |
| 13507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13508 | *) ac_try_echo=$ac_try;; |
| 13509 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13511 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13512 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13514 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13515 | { (case "(($ac_try" in |
| 13516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13517 | *) ac_try_echo=$ac_try;; |
| 13518 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13520 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13521 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13523 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13524 | ac_cv_sizeof_off_t=`cat conftest.val` |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13525 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13526 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13527 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13529 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13530 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13531 | if test "$ac_cv_type_off_t" = yes; then |
| 13532 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13533 | See \`config.log' for more details." >&5 |
| 13534 | echo "$as_me: error: cannot compute sizeof (off_t) |
| 13535 | See \`config.log' for more details." >&2;} |
| 13536 | { (exit 77); exit 77; }; } |
| 13537 | else |
| 13538 | ac_cv_sizeof_off_t=0 |
| 13539 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13540 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13541 | 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] | 13542 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13543 | rm -f conftest.val |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13544 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13545 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 13546 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13547 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13548 | |
| 13549 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13550 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13551 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13552 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13553 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13554 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13555 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13556 | { echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 13557 | 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] | 13558 | if test "$have_long_long" = yes |
| 13559 | then |
| 13560 | 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] | 13561 | "$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] | 13562 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13563 | cat >>confdefs.h <<\_ACEOF |
| 13564 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 13565 | _ACEOF |
| 13566 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13567 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13568 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13569 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13570 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13571 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13572 | fi |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 13573 | else |
| 13574 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13575 | echo "${ECHO_T}no" >&6; } |
| 13576 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13577 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13578 | { echo "$as_me:$LINENO: checking for time_t" >&5 |
| 13579 | echo $ECHO_N "checking for time_t... $ECHO_C" >&6; } |
| 13580 | if test "${ac_cv_type_time_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13582 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13583 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13584 | /* confdefs.h. */ |
| 13585 | _ACEOF |
| 13586 | cat confdefs.h >>conftest.$ac_ext |
| 13587 | cat >>conftest.$ac_ext <<_ACEOF |
| 13588 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13589 | |
| 13590 | #ifdef HAVE_SYS_TYPES_H |
| 13591 | #include <sys/types.h> |
| 13592 | #endif |
| 13593 | #ifdef HAVE_TIME_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13594 | #include <time.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13595 | #endif |
| 13596 | |
| 13597 | |
| 13598 | typedef time_t ac__type_new_; |
| 13599 | int |
| 13600 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13601 | { |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13602 | if ((ac__type_new_ *) 0) |
| 13603 | return 0; |
| 13604 | if (sizeof (ac__type_new_)) |
| 13605 | return 0; |
| 13606 | ; |
| 13607 | return 0; |
| 13608 | } |
| 13609 | _ACEOF |
| 13610 | rm -f conftest.$ac_objext |
| 13611 | if { (ac_try="$ac_compile" |
| 13612 | case "(($ac_try" in |
| 13613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13614 | *) ac_try_echo=$ac_try;; |
| 13615 | esac |
| 13616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13617 | (eval "$ac_compile") 2>conftest.er1 |
| 13618 | ac_status=$? |
| 13619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13620 | rm -f conftest.er1 |
| 13621 | cat conftest.err >&5 |
| 13622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13623 | (exit $ac_status); } && { |
| 13624 | test -z "$ac_c_werror_flag" || |
| 13625 | test ! -s conftest.err |
| 13626 | } && test -s conftest.$ac_objext; then |
| 13627 | ac_cv_type_time_t=yes |
| 13628 | else |
| 13629 | echo "$as_me: failed program was:" >&5 |
| 13630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13631 | |
| 13632 | ac_cv_type_time_t=no |
| 13633 | fi |
| 13634 | |
| 13635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13636 | fi |
| 13637 | { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5 |
| 13638 | echo "${ECHO_T}$ac_cv_type_time_t" >&6; } |
| 13639 | |
| 13640 | # The cast to long int works around a bug in the HP C Compiler |
| 13641 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13642 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13643 | # This bug is HP SR number 8606223364. |
| 13644 | { echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 13645 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; } |
| 13646 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 13647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13648 | else |
| 13649 | if test "$cross_compiling" = yes; then |
| 13650 | # Depending upon the size, compute the lo and hi bounds. |
| 13651 | cat >conftest.$ac_ext <<_ACEOF |
| 13652 | /* confdefs.h. */ |
| 13653 | _ACEOF |
| 13654 | cat confdefs.h >>conftest.$ac_ext |
| 13655 | cat >>conftest.$ac_ext <<_ACEOF |
| 13656 | /* end confdefs.h. */ |
| 13657 | |
| 13658 | #ifdef HAVE_SYS_TYPES_H |
| 13659 | #include <sys/types.h> |
| 13660 | #endif |
| 13661 | #ifdef HAVE_TIME_H |
| 13662 | #include <time.h> |
| 13663 | #endif |
| 13664 | |
| 13665 | |
| 13666 | typedef time_t ac__type_sizeof_; |
| 13667 | int |
| 13668 | main () |
| 13669 | { |
| 13670 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 13671 | test_array [0] = 0 |
| 13672 | |
| 13673 | ; |
| 13674 | return 0; |
| 13675 | } |
| 13676 | _ACEOF |
| 13677 | rm -f conftest.$ac_objext |
| 13678 | if { (ac_try="$ac_compile" |
| 13679 | case "(($ac_try" in |
| 13680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13681 | *) ac_try_echo=$ac_try;; |
| 13682 | esac |
| 13683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13684 | (eval "$ac_compile") 2>conftest.er1 |
| 13685 | ac_status=$? |
| 13686 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13687 | rm -f conftest.er1 |
| 13688 | cat conftest.err >&5 |
| 13689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13690 | (exit $ac_status); } && { |
| 13691 | test -z "$ac_c_werror_flag" || |
| 13692 | test ! -s conftest.err |
| 13693 | } && test -s conftest.$ac_objext; then |
| 13694 | ac_lo=0 ac_mid=0 |
| 13695 | while :; do |
| 13696 | cat >conftest.$ac_ext <<_ACEOF |
| 13697 | /* confdefs.h. */ |
| 13698 | _ACEOF |
| 13699 | cat confdefs.h >>conftest.$ac_ext |
| 13700 | cat >>conftest.$ac_ext <<_ACEOF |
| 13701 | /* end confdefs.h. */ |
| 13702 | |
| 13703 | #ifdef HAVE_SYS_TYPES_H |
| 13704 | #include <sys/types.h> |
| 13705 | #endif |
| 13706 | #ifdef HAVE_TIME_H |
| 13707 | #include <time.h> |
| 13708 | #endif |
| 13709 | |
| 13710 | |
| 13711 | typedef time_t ac__type_sizeof_; |
| 13712 | int |
| 13713 | main () |
| 13714 | { |
| 13715 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13716 | test_array [0] = 0 |
| 13717 | |
| 13718 | ; |
| 13719 | return 0; |
| 13720 | } |
| 13721 | _ACEOF |
| 13722 | rm -f conftest.$ac_objext |
| 13723 | if { (ac_try="$ac_compile" |
| 13724 | case "(($ac_try" in |
| 13725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13726 | *) ac_try_echo=$ac_try;; |
| 13727 | esac |
| 13728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13729 | (eval "$ac_compile") 2>conftest.er1 |
| 13730 | ac_status=$? |
| 13731 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13732 | rm -f conftest.er1 |
| 13733 | cat conftest.err >&5 |
| 13734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13735 | (exit $ac_status); } && { |
| 13736 | test -z "$ac_c_werror_flag" || |
| 13737 | test ! -s conftest.err |
| 13738 | } && test -s conftest.$ac_objext; then |
| 13739 | ac_hi=$ac_mid; break |
| 13740 | else |
| 13741 | echo "$as_me: failed program was:" >&5 |
| 13742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13743 | |
| 13744 | ac_lo=`expr $ac_mid + 1` |
| 13745 | if test $ac_lo -le $ac_mid; then |
| 13746 | ac_lo= ac_hi= |
| 13747 | break |
| 13748 | fi |
| 13749 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13750 | fi |
| 13751 | |
| 13752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13753 | done |
| 13754 | else |
| 13755 | echo "$as_me: failed program was:" >&5 |
| 13756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13757 | |
| 13758 | cat >conftest.$ac_ext <<_ACEOF |
| 13759 | /* confdefs.h. */ |
| 13760 | _ACEOF |
| 13761 | cat confdefs.h >>conftest.$ac_ext |
| 13762 | cat >>conftest.$ac_ext <<_ACEOF |
| 13763 | /* end confdefs.h. */ |
| 13764 | |
| 13765 | #ifdef HAVE_SYS_TYPES_H |
| 13766 | #include <sys/types.h> |
| 13767 | #endif |
| 13768 | #ifdef HAVE_TIME_H |
| 13769 | #include <time.h> |
| 13770 | #endif |
| 13771 | |
| 13772 | |
| 13773 | typedef time_t ac__type_sizeof_; |
| 13774 | int |
| 13775 | main () |
| 13776 | { |
| 13777 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 13778 | test_array [0] = 0 |
| 13779 | |
| 13780 | ; |
| 13781 | return 0; |
| 13782 | } |
| 13783 | _ACEOF |
| 13784 | rm -f conftest.$ac_objext |
| 13785 | if { (ac_try="$ac_compile" |
| 13786 | case "(($ac_try" in |
| 13787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13788 | *) ac_try_echo=$ac_try;; |
| 13789 | esac |
| 13790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13791 | (eval "$ac_compile") 2>conftest.er1 |
| 13792 | ac_status=$? |
| 13793 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13794 | rm -f conftest.er1 |
| 13795 | cat conftest.err >&5 |
| 13796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13797 | (exit $ac_status); } && { |
| 13798 | test -z "$ac_c_werror_flag" || |
| 13799 | test ! -s conftest.err |
| 13800 | } && test -s conftest.$ac_objext; then |
| 13801 | ac_hi=-1 ac_mid=-1 |
| 13802 | while :; do |
| 13803 | cat >conftest.$ac_ext <<_ACEOF |
| 13804 | /* confdefs.h. */ |
| 13805 | _ACEOF |
| 13806 | cat confdefs.h >>conftest.$ac_ext |
| 13807 | cat >>conftest.$ac_ext <<_ACEOF |
| 13808 | /* end confdefs.h. */ |
| 13809 | |
| 13810 | #ifdef HAVE_SYS_TYPES_H |
| 13811 | #include <sys/types.h> |
| 13812 | #endif |
| 13813 | #ifdef HAVE_TIME_H |
| 13814 | #include <time.h> |
| 13815 | #endif |
| 13816 | |
| 13817 | |
| 13818 | typedef time_t ac__type_sizeof_; |
| 13819 | int |
| 13820 | main () |
| 13821 | { |
| 13822 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 13823 | test_array [0] = 0 |
| 13824 | |
| 13825 | ; |
| 13826 | return 0; |
| 13827 | } |
| 13828 | _ACEOF |
| 13829 | rm -f conftest.$ac_objext |
| 13830 | if { (ac_try="$ac_compile" |
| 13831 | case "(($ac_try" in |
| 13832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13833 | *) ac_try_echo=$ac_try;; |
| 13834 | esac |
| 13835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13836 | (eval "$ac_compile") 2>conftest.er1 |
| 13837 | ac_status=$? |
| 13838 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13839 | rm -f conftest.er1 |
| 13840 | cat conftest.err >&5 |
| 13841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13842 | (exit $ac_status); } && { |
| 13843 | test -z "$ac_c_werror_flag" || |
| 13844 | test ! -s conftest.err |
| 13845 | } && test -s conftest.$ac_objext; then |
| 13846 | ac_lo=$ac_mid; break |
| 13847 | else |
| 13848 | echo "$as_me: failed program was:" >&5 |
| 13849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13850 | |
| 13851 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13852 | if test $ac_mid -le $ac_hi; then |
| 13853 | ac_lo= ac_hi= |
| 13854 | break |
| 13855 | fi |
| 13856 | ac_mid=`expr 2 '*' $ac_mid` |
| 13857 | fi |
| 13858 | |
| 13859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13860 | done |
| 13861 | else |
| 13862 | echo "$as_me: failed program was:" >&5 |
| 13863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13864 | |
| 13865 | ac_lo= ac_hi= |
| 13866 | fi |
| 13867 | |
| 13868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13869 | fi |
| 13870 | |
| 13871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13872 | # Binary search between lo and hi bounds. |
| 13873 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13874 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13875 | cat >conftest.$ac_ext <<_ACEOF |
| 13876 | /* confdefs.h. */ |
| 13877 | _ACEOF |
| 13878 | cat confdefs.h >>conftest.$ac_ext |
| 13879 | cat >>conftest.$ac_ext <<_ACEOF |
| 13880 | /* end confdefs.h. */ |
| 13881 | |
| 13882 | #ifdef HAVE_SYS_TYPES_H |
| 13883 | #include <sys/types.h> |
| 13884 | #endif |
| 13885 | #ifdef HAVE_TIME_H |
| 13886 | #include <time.h> |
| 13887 | #endif |
| 13888 | |
| 13889 | |
| 13890 | typedef time_t ac__type_sizeof_; |
| 13891 | int |
| 13892 | main () |
| 13893 | { |
| 13894 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13895 | test_array [0] = 0 |
| 13896 | |
| 13897 | ; |
| 13898 | return 0; |
| 13899 | } |
| 13900 | _ACEOF |
| 13901 | rm -f conftest.$ac_objext |
| 13902 | if { (ac_try="$ac_compile" |
| 13903 | case "(($ac_try" in |
| 13904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13905 | *) ac_try_echo=$ac_try;; |
| 13906 | esac |
| 13907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13908 | (eval "$ac_compile") 2>conftest.er1 |
| 13909 | ac_status=$? |
| 13910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13911 | rm -f conftest.er1 |
| 13912 | cat conftest.err >&5 |
| 13913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13914 | (exit $ac_status); } && { |
| 13915 | test -z "$ac_c_werror_flag" || |
| 13916 | test ! -s conftest.err |
| 13917 | } && test -s conftest.$ac_objext; then |
| 13918 | ac_hi=$ac_mid |
| 13919 | else |
| 13920 | echo "$as_me: failed program was:" >&5 |
| 13921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13922 | |
| 13923 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13924 | fi |
| 13925 | |
| 13926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13927 | done |
| 13928 | case $ac_lo in |
| 13929 | ?*) ac_cv_sizeof_time_t=$ac_lo;; |
| 13930 | '') if test "$ac_cv_type_time_t" = yes; then |
| 13931 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 13932 | See \`config.log' for more details." >&5 |
| 13933 | echo "$as_me: error: cannot compute sizeof (time_t) |
| 13934 | See \`config.log' for more details." >&2;} |
| 13935 | { (exit 77); exit 77; }; } |
| 13936 | else |
| 13937 | ac_cv_sizeof_time_t=0 |
| 13938 | fi ;; |
| 13939 | esac |
| 13940 | else |
| 13941 | cat >conftest.$ac_ext <<_ACEOF |
| 13942 | /* confdefs.h. */ |
| 13943 | _ACEOF |
| 13944 | cat confdefs.h >>conftest.$ac_ext |
| 13945 | cat >>conftest.$ac_ext <<_ACEOF |
| 13946 | /* end confdefs.h. */ |
| 13947 | |
| 13948 | #ifdef HAVE_SYS_TYPES_H |
| 13949 | #include <sys/types.h> |
| 13950 | #endif |
| 13951 | #ifdef HAVE_TIME_H |
| 13952 | #include <time.h> |
| 13953 | #endif |
| 13954 | |
| 13955 | |
| 13956 | typedef time_t ac__type_sizeof_; |
| 13957 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13958 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13959 | #include <stdio.h> |
| 13960 | #include <stdlib.h> |
| 13961 | int |
| 13962 | main () |
| 13963 | { |
| 13964 | |
| 13965 | FILE *f = fopen ("conftest.val", "w"); |
| 13966 | if (! f) |
| 13967 | return 1; |
| 13968 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 13969 | { |
| 13970 | long int i = longval (); |
| 13971 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13972 | return 1; |
| 13973 | fprintf (f, "%ld\n", i); |
| 13974 | } |
| 13975 | else |
| 13976 | { |
| 13977 | unsigned long int i = ulongval (); |
| 13978 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13979 | return 1; |
| 13980 | fprintf (f, "%lu\n", i); |
| 13981 | } |
| 13982 | return ferror (f) || fclose (f) != 0; |
| 13983 | |
| 13984 | ; |
| 13985 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13986 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13987 | _ACEOF |
| 13988 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13989 | if { (ac_try="$ac_link" |
| 13990 | case "(($ac_try" in |
| 13991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13992 | *) ac_try_echo=$ac_try;; |
| 13993 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13995 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13996 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13998 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13999 | { (case "(($ac_try" in |
| 14000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14001 | *) ac_try_echo=$ac_try;; |
| 14002 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14004 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14005 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14007 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14008 | ac_cv_sizeof_time_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14009 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14010 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14011 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14013 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14014 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14015 | if test "$ac_cv_type_time_t" = yes; then |
| 14016 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 14017 | See \`config.log' for more details." >&5 |
| 14018 | echo "$as_me: error: cannot compute sizeof (time_t) |
| 14019 | See \`config.log' for more details." >&2;} |
| 14020 | { (exit 77); exit 77; }; } |
| 14021 | else |
| 14022 | ac_cv_sizeof_time_t=0 |
| 14023 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14024 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14025 | 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] | 14026 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14027 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14028 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14029 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 14030 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14031 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14032 | |
| 14033 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14034 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14035 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14036 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14037 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14038 | |
| 14039 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14040 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14041 | ac_save_cc="$CC" |
| 14042 | if test "$ac_cv_kpthread" = "yes" |
| 14043 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 14044 | elif test "$ac_cv_kthread" = "yes" |
| 14045 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14046 | elif test "$ac_cv_pthread" = "yes" |
| 14047 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14048 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14049 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 14050 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14051 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14052 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14053 | /* confdefs.h. */ |
| 14054 | _ACEOF |
| 14055 | cat confdefs.h >>conftest.$ac_ext |
| 14056 | cat >>conftest.$ac_ext <<_ACEOF |
| 14057 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14058 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14059 | int |
| 14060 | main () |
| 14061 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 14062 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14063 | ; |
| 14064 | return 0; |
| 14065 | } |
| 14066 | _ACEOF |
| 14067 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14068 | if { (ac_try="$ac_compile" |
| 14069 | case "(($ac_try" in |
| 14070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14071 | *) ac_try_echo=$ac_try;; |
| 14072 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14074 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14075 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14077 | rm -f conftest.er1 |
| 14078 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14080 | (exit $ac_status); } && { |
| 14081 | test -z "$ac_c_werror_flag" || |
| 14082 | test ! -s conftest.err |
| 14083 | } && test -s conftest.$ac_objext; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14084 | have_pthread_t=yes |
| 14085 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14086 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14087 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14088 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14089 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14090 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14091 | |
| 14092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14093 | { echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 14094 | echo "${ECHO_T}$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14095 | if test "$have_pthread_t" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14096 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 14097 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
| 14098 | if test "${ac_cv_type_pthread_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14100 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14101 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14102 | /* confdefs.h. */ |
| 14103 | _ACEOF |
| 14104 | cat confdefs.h >>conftest.$ac_ext |
| 14105 | cat >>conftest.$ac_ext <<_ACEOF |
| 14106 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14107 | |
| 14108 | #ifdef HAVE_PTHREAD_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14109 | #include <pthread.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14110 | #endif |
| 14111 | |
| 14112 | |
| 14113 | typedef pthread_t ac__type_new_; |
| 14114 | int |
| 14115 | main () |
| 14116 | { |
| 14117 | if ((ac__type_new_ *) 0) |
| 14118 | return 0; |
| 14119 | if (sizeof (ac__type_new_)) |
| 14120 | return 0; |
| 14121 | ; |
| 14122 | return 0; |
| 14123 | } |
| 14124 | _ACEOF |
| 14125 | rm -f conftest.$ac_objext |
| 14126 | if { (ac_try="$ac_compile" |
| 14127 | case "(($ac_try" in |
| 14128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14129 | *) ac_try_echo=$ac_try;; |
| 14130 | esac |
| 14131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14132 | (eval "$ac_compile") 2>conftest.er1 |
| 14133 | ac_status=$? |
| 14134 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14135 | rm -f conftest.er1 |
| 14136 | cat conftest.err >&5 |
| 14137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14138 | (exit $ac_status); } && { |
| 14139 | test -z "$ac_c_werror_flag" || |
| 14140 | test ! -s conftest.err |
| 14141 | } && test -s conftest.$ac_objext; then |
| 14142 | ac_cv_type_pthread_t=yes |
| 14143 | else |
| 14144 | echo "$as_me: failed program was:" >&5 |
| 14145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14146 | |
| 14147 | ac_cv_type_pthread_t=no |
| 14148 | fi |
| 14149 | |
| 14150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14151 | fi |
| 14152 | { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5 |
| 14153 | echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; } |
| 14154 | |
| 14155 | # The cast to long int works around a bug in the HP C Compiler |
| 14156 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14157 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14158 | # This bug is HP SR number 8606223364. |
| 14159 | { echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 14160 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; } |
| 14161 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 14162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14163 | else |
| 14164 | if test "$cross_compiling" = yes; then |
| 14165 | # Depending upon the size, compute the lo and hi bounds. |
| 14166 | cat >conftest.$ac_ext <<_ACEOF |
| 14167 | /* confdefs.h. */ |
| 14168 | _ACEOF |
| 14169 | cat confdefs.h >>conftest.$ac_ext |
| 14170 | cat >>conftest.$ac_ext <<_ACEOF |
| 14171 | /* end confdefs.h. */ |
| 14172 | |
| 14173 | #ifdef HAVE_PTHREAD_H |
| 14174 | #include <pthread.h> |
| 14175 | #endif |
| 14176 | |
| 14177 | |
| 14178 | typedef pthread_t ac__type_sizeof_; |
| 14179 | int |
| 14180 | main () |
| 14181 | { |
| 14182 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 14183 | test_array [0] = 0 |
| 14184 | |
| 14185 | ; |
| 14186 | return 0; |
| 14187 | } |
| 14188 | _ACEOF |
| 14189 | rm -f conftest.$ac_objext |
| 14190 | if { (ac_try="$ac_compile" |
| 14191 | case "(($ac_try" in |
| 14192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14193 | *) ac_try_echo=$ac_try;; |
| 14194 | esac |
| 14195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14196 | (eval "$ac_compile") 2>conftest.er1 |
| 14197 | ac_status=$? |
| 14198 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14199 | rm -f conftest.er1 |
| 14200 | cat conftest.err >&5 |
| 14201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14202 | (exit $ac_status); } && { |
| 14203 | test -z "$ac_c_werror_flag" || |
| 14204 | test ! -s conftest.err |
| 14205 | } && test -s conftest.$ac_objext; then |
| 14206 | ac_lo=0 ac_mid=0 |
| 14207 | while :; do |
| 14208 | cat >conftest.$ac_ext <<_ACEOF |
| 14209 | /* confdefs.h. */ |
| 14210 | _ACEOF |
| 14211 | cat confdefs.h >>conftest.$ac_ext |
| 14212 | cat >>conftest.$ac_ext <<_ACEOF |
| 14213 | /* end confdefs.h. */ |
| 14214 | |
| 14215 | #ifdef HAVE_PTHREAD_H |
| 14216 | #include <pthread.h> |
| 14217 | #endif |
| 14218 | |
| 14219 | |
| 14220 | typedef pthread_t ac__type_sizeof_; |
| 14221 | int |
| 14222 | main () |
| 14223 | { |
| 14224 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 14225 | test_array [0] = 0 |
| 14226 | |
| 14227 | ; |
| 14228 | return 0; |
| 14229 | } |
| 14230 | _ACEOF |
| 14231 | rm -f conftest.$ac_objext |
| 14232 | if { (ac_try="$ac_compile" |
| 14233 | case "(($ac_try" in |
| 14234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14235 | *) ac_try_echo=$ac_try;; |
| 14236 | esac |
| 14237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14238 | (eval "$ac_compile") 2>conftest.er1 |
| 14239 | ac_status=$? |
| 14240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14241 | rm -f conftest.er1 |
| 14242 | cat conftest.err >&5 |
| 14243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14244 | (exit $ac_status); } && { |
| 14245 | test -z "$ac_c_werror_flag" || |
| 14246 | test ! -s conftest.err |
| 14247 | } && test -s conftest.$ac_objext; then |
| 14248 | ac_hi=$ac_mid; break |
| 14249 | else |
| 14250 | echo "$as_me: failed program was:" >&5 |
| 14251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14252 | |
| 14253 | ac_lo=`expr $ac_mid + 1` |
| 14254 | if test $ac_lo -le $ac_mid; then |
| 14255 | ac_lo= ac_hi= |
| 14256 | break |
| 14257 | fi |
| 14258 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 14259 | fi |
| 14260 | |
| 14261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14262 | done |
| 14263 | else |
| 14264 | echo "$as_me: failed program was:" >&5 |
| 14265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14266 | |
| 14267 | cat >conftest.$ac_ext <<_ACEOF |
| 14268 | /* confdefs.h. */ |
| 14269 | _ACEOF |
| 14270 | cat confdefs.h >>conftest.$ac_ext |
| 14271 | cat >>conftest.$ac_ext <<_ACEOF |
| 14272 | /* end confdefs.h. */ |
| 14273 | |
| 14274 | #ifdef HAVE_PTHREAD_H |
| 14275 | #include <pthread.h> |
| 14276 | #endif |
| 14277 | |
| 14278 | |
| 14279 | typedef pthread_t ac__type_sizeof_; |
| 14280 | int |
| 14281 | main () |
| 14282 | { |
| 14283 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 14284 | test_array [0] = 0 |
| 14285 | |
| 14286 | ; |
| 14287 | return 0; |
| 14288 | } |
| 14289 | _ACEOF |
| 14290 | rm -f conftest.$ac_objext |
| 14291 | if { (ac_try="$ac_compile" |
| 14292 | case "(($ac_try" in |
| 14293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14294 | *) ac_try_echo=$ac_try;; |
| 14295 | esac |
| 14296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14297 | (eval "$ac_compile") 2>conftest.er1 |
| 14298 | ac_status=$? |
| 14299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14300 | rm -f conftest.er1 |
| 14301 | cat conftest.err >&5 |
| 14302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14303 | (exit $ac_status); } && { |
| 14304 | test -z "$ac_c_werror_flag" || |
| 14305 | test ! -s conftest.err |
| 14306 | } && test -s conftest.$ac_objext; then |
| 14307 | ac_hi=-1 ac_mid=-1 |
| 14308 | while :; do |
| 14309 | cat >conftest.$ac_ext <<_ACEOF |
| 14310 | /* confdefs.h. */ |
| 14311 | _ACEOF |
| 14312 | cat confdefs.h >>conftest.$ac_ext |
| 14313 | cat >>conftest.$ac_ext <<_ACEOF |
| 14314 | /* end confdefs.h. */ |
| 14315 | |
| 14316 | #ifdef HAVE_PTHREAD_H |
| 14317 | #include <pthread.h> |
| 14318 | #endif |
| 14319 | |
| 14320 | |
| 14321 | typedef pthread_t ac__type_sizeof_; |
| 14322 | int |
| 14323 | main () |
| 14324 | { |
| 14325 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 14326 | test_array [0] = 0 |
| 14327 | |
| 14328 | ; |
| 14329 | return 0; |
| 14330 | } |
| 14331 | _ACEOF |
| 14332 | rm -f conftest.$ac_objext |
| 14333 | if { (ac_try="$ac_compile" |
| 14334 | case "(($ac_try" in |
| 14335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14336 | *) ac_try_echo=$ac_try;; |
| 14337 | esac |
| 14338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14339 | (eval "$ac_compile") 2>conftest.er1 |
| 14340 | ac_status=$? |
| 14341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14342 | rm -f conftest.er1 |
| 14343 | cat conftest.err >&5 |
| 14344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14345 | (exit $ac_status); } && { |
| 14346 | test -z "$ac_c_werror_flag" || |
| 14347 | test ! -s conftest.err |
| 14348 | } && test -s conftest.$ac_objext; then |
| 14349 | ac_lo=$ac_mid; break |
| 14350 | else |
| 14351 | echo "$as_me: failed program was:" >&5 |
| 14352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14353 | |
| 14354 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14355 | if test $ac_mid -le $ac_hi; then |
| 14356 | ac_lo= ac_hi= |
| 14357 | break |
| 14358 | fi |
| 14359 | ac_mid=`expr 2 '*' $ac_mid` |
| 14360 | fi |
| 14361 | |
| 14362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14363 | done |
| 14364 | else |
| 14365 | echo "$as_me: failed program was:" >&5 |
| 14366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14367 | |
| 14368 | ac_lo= ac_hi= |
| 14369 | fi |
| 14370 | |
| 14371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14372 | fi |
| 14373 | |
| 14374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14375 | # Binary search between lo and hi bounds. |
| 14376 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14377 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14378 | cat >conftest.$ac_ext <<_ACEOF |
| 14379 | /* confdefs.h. */ |
| 14380 | _ACEOF |
| 14381 | cat confdefs.h >>conftest.$ac_ext |
| 14382 | cat >>conftest.$ac_ext <<_ACEOF |
| 14383 | /* end confdefs.h. */ |
| 14384 | |
| 14385 | #ifdef HAVE_PTHREAD_H |
| 14386 | #include <pthread.h> |
| 14387 | #endif |
| 14388 | |
| 14389 | |
| 14390 | typedef pthread_t ac__type_sizeof_; |
| 14391 | int |
| 14392 | main () |
| 14393 | { |
| 14394 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 14395 | test_array [0] = 0 |
| 14396 | |
| 14397 | ; |
| 14398 | return 0; |
| 14399 | } |
| 14400 | _ACEOF |
| 14401 | rm -f conftest.$ac_objext |
| 14402 | if { (ac_try="$ac_compile" |
| 14403 | case "(($ac_try" in |
| 14404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14405 | *) ac_try_echo=$ac_try;; |
| 14406 | esac |
| 14407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14408 | (eval "$ac_compile") 2>conftest.er1 |
| 14409 | ac_status=$? |
| 14410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14411 | rm -f conftest.er1 |
| 14412 | cat conftest.err >&5 |
| 14413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14414 | (exit $ac_status); } && { |
| 14415 | test -z "$ac_c_werror_flag" || |
| 14416 | test ! -s conftest.err |
| 14417 | } && test -s conftest.$ac_objext; then |
| 14418 | ac_hi=$ac_mid |
| 14419 | else |
| 14420 | echo "$as_me: failed program was:" >&5 |
| 14421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14422 | |
| 14423 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 14424 | fi |
| 14425 | |
| 14426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14427 | done |
| 14428 | case $ac_lo in |
| 14429 | ?*) ac_cv_sizeof_pthread_t=$ac_lo;; |
| 14430 | '') if test "$ac_cv_type_pthread_t" = yes; then |
| 14431 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14432 | See \`config.log' for more details." >&5 |
| 14433 | echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14434 | See \`config.log' for more details." >&2;} |
| 14435 | { (exit 77); exit 77; }; } |
| 14436 | else |
| 14437 | ac_cv_sizeof_pthread_t=0 |
| 14438 | fi ;; |
| 14439 | esac |
| 14440 | else |
| 14441 | cat >conftest.$ac_ext <<_ACEOF |
| 14442 | /* confdefs.h. */ |
| 14443 | _ACEOF |
| 14444 | cat confdefs.h >>conftest.$ac_ext |
| 14445 | cat >>conftest.$ac_ext <<_ACEOF |
| 14446 | /* end confdefs.h. */ |
| 14447 | |
| 14448 | #ifdef HAVE_PTHREAD_H |
| 14449 | #include <pthread.h> |
| 14450 | #endif |
| 14451 | |
| 14452 | |
| 14453 | typedef pthread_t ac__type_sizeof_; |
| 14454 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14455 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14456 | #include <stdio.h> |
| 14457 | #include <stdlib.h> |
| 14458 | int |
| 14459 | main () |
| 14460 | { |
| 14461 | |
| 14462 | FILE *f = fopen ("conftest.val", "w"); |
| 14463 | if (! f) |
| 14464 | return 1; |
| 14465 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 14466 | { |
| 14467 | long int i = longval (); |
| 14468 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14469 | return 1; |
| 14470 | fprintf (f, "%ld\n", i); |
| 14471 | } |
| 14472 | else |
| 14473 | { |
| 14474 | unsigned long int i = ulongval (); |
| 14475 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14476 | return 1; |
| 14477 | fprintf (f, "%lu\n", i); |
| 14478 | } |
| 14479 | return ferror (f) || fclose (f) != 0; |
| 14480 | |
| 14481 | ; |
| 14482 | return 0; |
| 14483 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14484 | _ACEOF |
| 14485 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14486 | if { (ac_try="$ac_link" |
| 14487 | case "(($ac_try" in |
| 14488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14489 | *) ac_try_echo=$ac_try;; |
| 14490 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14492 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14493 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14495 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14496 | { (case "(($ac_try" in |
| 14497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14498 | *) ac_try_echo=$ac_try;; |
| 14499 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14501 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14502 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14504 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14505 | ac_cv_sizeof_pthread_t=`cat conftest.val` |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14506 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14507 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14508 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14510 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14511 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14512 | if test "$ac_cv_type_pthread_t" = yes; then |
| 14513 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14514 | See \`config.log' for more details." >&5 |
| 14515 | echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14516 | See \`config.log' for more details." >&2;} |
| 14517 | { (exit 77); exit 77; }; } |
| 14518 | else |
| 14519 | ac_cv_sizeof_pthread_t=0 |
| 14520 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14521 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14522 | 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] | 14523 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14524 | rm -f conftest.val |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14525 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14526 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14527 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14528 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14529 | |
| 14530 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14531 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14532 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14533 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14534 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14535 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14536 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14537 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14538 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14539 | { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 14540 | 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] | 14541 | # Check whether --enable-toolbox-glue was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14542 | if test "${enable_toolbox_glue+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14543 | enableval=$enable_toolbox_glue; |
| 14544 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14545 | |
| 14546 | |
| 14547 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14548 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14549 | case $ac_sys_system/$ac_sys_release in |
| 14550 | Darwin/*) |
| 14551 | enable_toolbox_glue="yes";; |
| 14552 | *) |
| 14553 | enable_toolbox_glue="no";; |
| 14554 | esac |
| 14555 | fi |
| 14556 | case "$enable_toolbox_glue" in |
| 14557 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14558 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14559 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14560 | |
| 14561 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14562 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14563 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14564 | |
| 14565 | ;; |
| 14566 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14567 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 14568 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14569 | ;; |
| 14570 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14571 | { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 14572 | echo "${ECHO_T}$enable_toolbox_glue" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14573 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14574 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 14575 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14576 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14577 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14578 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 14579 | ;; |
| 14580 | Darwin/*) |
| 14581 | OTHER_LIBTOOL_OPT="" |
| 14582 | ;; |
| 14583 | esac |
| 14584 | |
| 14585 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14586 | ARCH_RUN_32BIT="" |
| 14587 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14588 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14589 | Darwin/[01567]\..*) |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14590 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 14591 | if test "${enable_universalsdk}"; then |
| 14592 | : |
| 14593 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 14594 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14595 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14596 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14597 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 14598 | Darwin/*) |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 14599 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14600 | if test ${gcc_version} '<' 4.0 |
| 14601 | then |
| 14602 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 14603 | else |
| 14604 | LIBTOOL_CRUFT="" |
| 14605 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14606 | if test "$cross_compiling" = yes; then |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14607 | ac_osx_32bit=yes |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14608 | else |
| 14609 | cat >conftest.$ac_ext <<_ACEOF |
| 14610 | /* confdefs.h. */ |
| 14611 | _ACEOF |
| 14612 | cat confdefs.h >>conftest.$ac_ext |
| 14613 | cat >>conftest.$ac_ext <<_ACEOF |
| 14614 | /* end confdefs.h. */ |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14615 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14616 | #include <unistd.h> |
| 14617 | int main(int argc, char*argv[]) |
| 14618 | { |
| 14619 | if (sizeof(long) == 4) { |
| 14620 | return 0; |
| 14621 | } else { |
| 14622 | return 1; |
| 14623 | } |
Ronald Oussoren | 84ddd72 | 2009-09-08 07:17:10 +0000 | [diff] [blame] | 14624 | } |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14625 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14626 | _ACEOF |
| 14627 | rm -f conftest$ac_exeext |
| 14628 | if { (ac_try="$ac_link" |
| 14629 | case "(($ac_try" in |
| 14630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14631 | *) ac_try_echo=$ac_try;; |
| 14632 | esac |
| 14633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14634 | (eval "$ac_link") 2>&5 |
| 14635 | ac_status=$? |
| 14636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14637 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14638 | { (case "(($ac_try" in |
| 14639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14640 | *) ac_try_echo=$ac_try;; |
| 14641 | esac |
| 14642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14643 | (eval "$ac_try") 2>&5 |
| 14644 | ac_status=$? |
| 14645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14646 | (exit $ac_status); }; }; then |
| 14647 | ac_osx_32bit=yes |
| 14648 | else |
| 14649 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14650 | echo "$as_me: failed program was:" >&5 |
| 14651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14652 | |
| 14653 | ( exit $ac_status ) |
| 14654 | ac_osx_32bit=no |
| 14655 | fi |
| 14656 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14657 | fi |
| 14658 | |
| 14659 | |
| 14660 | |
| 14661 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 14662 | case `/usr/bin/arch` in |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14663 | i386) |
| 14664 | MACOSX_DEFAULT_ARCH="i386" |
| 14665 | ;; |
| 14666 | ppc) |
| 14667 | MACOSX_DEFAULT_ARCH="ppc" |
| 14668 | ;; |
| 14669 | *) |
| 14670 | { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5 |
| 14671 | echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;} |
| 14672 | { (exit 1); exit 1; }; } |
| 14673 | ;; |
| 14674 | esac |
| 14675 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 14676 | case `/usr/bin/arch` in |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14677 | i386) |
| 14678 | MACOSX_DEFAULT_ARCH="x86_64" |
| 14679 | ;; |
| 14680 | ppc) |
| 14681 | MACOSX_DEFAULT_ARCH="ppc64" |
| 14682 | ;; |
| 14683 | *) |
| 14684 | { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5 |
| 14685 | echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;} |
| 14686 | { (exit 1); exit 1; }; } |
| 14687 | ;; |
| 14688 | esac |
| 14689 | |
| 14690 | #ARCH_RUN_32BIT="true" |
| 14691 | fi |
| 14692 | |
| 14693 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14694 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14695 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14696 | esac |
| 14697 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14698 | { echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 14699 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14700 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14701 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 14702 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14703 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14704 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14705 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14706 | cat >>confdefs.h <<\_ACEOF |
| 14707 | #define WITH_NEXT_FRAMEWORK 1 |
| 14708 | _ACEOF |
| 14709 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14710 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14711 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 14712 | if test $enable_shared = "yes" |
| 14713 | then |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 14714 | { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&5 |
| 14715 | 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] | 14716 | { (exit 1); exit 1; }; } |
| 14717 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14718 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14719 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14720 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14721 | fi |
| 14722 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14723 | { echo "$as_me:$LINENO: checking for dyld" >&5 |
| 14724 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14725 | case $ac_sys_system/$ac_sys_release in |
| 14726 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14727 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14728 | cat >>confdefs.h <<\_ACEOF |
| 14729 | #define WITH_DYLD 1 |
| 14730 | _ACEOF |
| 14731 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14732 | { echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 14733 | echo "${ECHO_T}always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14734 | ;; |
| 14735 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14736 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14737 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14738 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14739 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14740 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14741 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14742 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14743 | |
| 14744 | |
| 14745 | |
| 14746 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14747 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14748 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14749 | { echo "$as_me:$LINENO: checking SO" >&5 |
| 14750 | echo $ECHO_N "checking SO... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14751 | if test -z "$SO" |
| 14752 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14753 | case $ac_sys_system in |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14754 | hp*|HP*) |
| 14755 | case `uname -m` in |
| 14756 | ia64) SO=.so;; |
| 14757 | *) SO=.sl;; |
| 14758 | esac |
| 14759 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14760 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14761 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14762 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 14763 | else |
| 14764 | # this might also be a termcap variable, see #610332 |
| 14765 | echo |
| 14766 | echo '=====================================================================' |
| 14767 | echo '+ +' |
| 14768 | echo '+ WARNING: You have set SO in your environment. +' |
| 14769 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 14770 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 14771 | echo '+ +' |
| 14772 | echo '=====================================================================' |
| 14773 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14774 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14775 | { echo "$as_me:$LINENO: result: $SO" >&5 |
| 14776 | echo "${ECHO_T}$SO" >&6; } |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14777 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 14778 | |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14779 | cat >>confdefs.h <<_ACEOF |
| 14780 | #define SHLIB_EXT "$SO" |
| 14781 | _ACEOF |
| 14782 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14783 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 14784 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14785 | # (Shared libraries in this instance are shared modules to be loaded into |
| 14786 | # Python, as opposed to building Python itself as a shared library.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14787 | { echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 14788 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14789 | if test -z "$LDSHARED" |
| 14790 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14791 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14792 | AIX*) |
| 14793 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14794 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14795 | ;; |
| 14796 | BeOS*) |
| 14797 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14798 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14799 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14800 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 14801 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14802 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 14803 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 14804 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 14805 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 14806 | fi ;; |
Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 14807 | hp*|HP*) |
| 14808 | if test "$GCC" = "yes" |
| 14809 | then LDSHARED='$(CC) -shared' |
| 14810 | else LDSHARED='ld -b'; |
| 14811 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14812 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14813 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14814 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14815 | if test "$enable_framework" ; then |
| 14816 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14817 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14818 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14819 | else |
| 14820 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14821 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14822 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14823 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14824 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14825 | if test "$enable_framework" ; then |
| 14826 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14827 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14828 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14829 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 14830 | # No framework, use the Python app as bundle-loader |
| 14831 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 14832 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14833 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14834 | Darwin/*) |
| 14835 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 14836 | # This allows an extension to be used in any Python |
Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 14837 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 14838 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14839 | then |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14840 | if test "${enable_universalsdk}"; then |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 14841 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14842 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14843 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 14844 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14845 | else |
| 14846 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14847 | if test "$enable_framework" ; then |
| 14848 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14849 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14850 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14851 | else |
| 14852 | # No framework, use the Python app as bundle-loader |
| 14853 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 14854 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 14855 | fi |
| 14856 | fi |
| 14857 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 14858 | Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 14859 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14860 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 14861 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14862 | then |
Benjamin Peterson | 3b2abe9 | 2010-03-14 15:06:14 +0000 | [diff] [blame^] | 14863 | LDSHARED='$(CC) -shared ${LDFLAGS}' |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14864 | else |
| 14865 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14866 | fi;; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14867 | OpenBSD*) |
| 14868 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 14869 | then |
| 14870 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 14871 | else |
| 14872 | case `uname -r` in |
| 14873 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 14874 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14875 | ;; |
| 14876 | *) |
| 14877 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 14878 | ;; |
| 14879 | esac |
| 14880 | fi;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14881 | NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14882 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14883 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 14884 | then LDSHARED='$(CC) -shared' |
| 14885 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14886 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 14887 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14888 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14889 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14890 | *) LDSHARED="ld";; |
| 14891 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14892 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14893 | { echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 14894 | echo "${ECHO_T}$LDSHARED" >&6; } |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14895 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14896 | # 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] | 14897 | # library (module) -- this is only needed for a few systems |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14898 | { echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 14899 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14900 | if test -z "$CCSHARED" |
| 14901 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14902 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 14903 | SunOS*) if test "$GCC" = yes; |
Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 14904 | then CCSHARED="-fPIC"; |
| 14905 | elif test `uname -p` = sparc; |
| 14906 | then CCSHARED="-xcode=pic32"; |
| 14907 | else CCSHARED="-Kpic"; |
| 14908 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14909 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 14910 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14911 | else CCSHARED="+z"; |
| 14912 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14913 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14914 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14915 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14916 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14917 | if test "$GCC" = "yes" |
| 14918 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14919 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14920 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 14921 | SCO_SV*) |
| 14922 | if test "$GCC" = "yes" |
| 14923 | then CCSHARED="-fPIC" |
| 14924 | else CCSHARED="-Kpic -belf" |
| 14925 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14926 | IRIX*/6*) case $CC in |
| 14927 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 14928 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14929 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14930 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14931 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14932 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14933 | { echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 14934 | echo "${ECHO_T}$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14935 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14936 | # the python executable -- this is only needed for a few systems |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14937 | { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 14938 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14939 | if test -z "$LINKFORSHARED" |
| 14940 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14941 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14942 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 14943 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14944 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 14945 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14946 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14947 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14948 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14949 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14950 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 14951 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14952 | # not used by the core itself but which needs to be in the core so |
| 14953 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 14954 | # -prebind is no longer used, because it actually seems to give a |
| 14955 | # slowdown in stead of a speedup, maybe due to the large number of |
| 14956 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14957 | |
| 14958 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14959 | if test "$enable_framework" |
| 14960 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14961 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14962 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14963 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14964 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 14965 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 14966 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14967 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 14968 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 14969 | then |
| 14970 | LINKFORSHARED="-Wl,--export-dynamic" |
| 14971 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14972 | SunOS/5*) case $CC in |
| 14973 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 14974 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 14975 | then |
| 14976 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14977 | fi;; |
| 14978 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 14979 | CYGWIN*) |
| 14980 | if test $enable_shared = "no" |
| 14981 | then |
| 14982 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 14983 | fi;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 14984 | QNX*) |
| 14985 | # -Wl,-E causes the symbols to be added to the dynamic |
| 14986 | # symbol table so that they can be found when a module |
| 14987 | # is loaded. -N 2048K causes the stack size to be set |
| 14988 | # to 2048 kilobytes so that the stack doesn't overflow |
| 14989 | # when running test_compile.py. |
| 14990 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14991 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14992 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14993 | { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 14994 | echo "${ECHO_T}$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14995 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14996 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 14997 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14998 | { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 14999 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15000 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 15001 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 15002 | case $ac_sys_system in |
| 15003 | CYGWIN*) |
| 15004 | # Cygwin needs CCSHARED when building extension DLLs |
| 15005 | # but not when building the interpreter DLL. |
| 15006 | CFLAGSFORSHARED='';; |
| 15007 | *) |
| 15008 | CFLAGSFORSHARED='$(CCSHARED)' |
| 15009 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15010 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15011 | { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 15012 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15013 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15014 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 15015 | # library (with --enable-shared). |
| 15016 | # 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] | 15017 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 15018 | # if it is not required, since it creates a dependency of the shared library |
| 15019 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 15020 | # don't need to link LIBS explicitly. The default should be only changed |
| 15021 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15022 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15023 | { echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 15024 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15025 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15026 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 15027 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15028 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15029 | { echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 15030 | echo "${ECHO_T}$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15031 | |
| 15032 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15033 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15034 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15035 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 15036 | 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] | 15037 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15039 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15040 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15041 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15042 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15043 | /* confdefs.h. */ |
| 15044 | _ACEOF |
| 15045 | cat confdefs.h >>conftest.$ac_ext |
| 15046 | cat >>conftest.$ac_ext <<_ACEOF |
| 15047 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15048 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15049 | /* Override any GCC internal prototype to avoid an error. |
| 15050 | Use char because int might match the return type of a GCC |
| 15051 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15052 | #ifdef __cplusplus |
| 15053 | extern "C" |
| 15054 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15055 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15056 | int |
| 15057 | main () |
| 15058 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15059 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15060 | ; |
| 15061 | return 0; |
| 15062 | } |
| 15063 | _ACEOF |
| 15064 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15065 | if { (ac_try="$ac_link" |
| 15066 | case "(($ac_try" in |
| 15067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15068 | *) ac_try_echo=$ac_try;; |
| 15069 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15071 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15072 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15074 | rm -f conftest.er1 |
| 15075 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15077 | (exit $ac_status); } && { |
| 15078 | test -z "$ac_c_werror_flag" || |
| 15079 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15080 | } && test -s conftest$ac_exeext && |
| 15081 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15082 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15083 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15084 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15086 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15087 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15088 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15089 | |
| 15090 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15091 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15092 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15093 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15094 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 15095 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 15096 | if test $ac_cv_lib_dl_dlopen = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15097 | cat >>confdefs.h <<_ACEOF |
| 15098 | #define HAVE_LIBDL 1 |
| 15099 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15100 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15101 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15102 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15103 | fi |
| 15104 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15105 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15106 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 15107 | 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] | 15108 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15110 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15111 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15112 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15113 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15114 | /* confdefs.h. */ |
| 15115 | _ACEOF |
| 15116 | cat confdefs.h >>conftest.$ac_ext |
| 15117 | cat >>conftest.$ac_ext <<_ACEOF |
| 15118 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15119 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15120 | /* Override any GCC internal prototype to avoid an error. |
| 15121 | Use char because int might match the return type of a GCC |
| 15122 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15123 | #ifdef __cplusplus |
| 15124 | extern "C" |
| 15125 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15126 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15127 | int |
| 15128 | main () |
| 15129 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15130 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15131 | ; |
| 15132 | return 0; |
| 15133 | } |
| 15134 | _ACEOF |
| 15135 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15136 | if { (ac_try="$ac_link" |
| 15137 | case "(($ac_try" in |
| 15138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15139 | *) ac_try_echo=$ac_try;; |
| 15140 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15142 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15143 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15144 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15145 | rm -f conftest.er1 |
| 15146 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15148 | (exit $ac_status); } && { |
| 15149 | test -z "$ac_c_werror_flag" || |
| 15150 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15151 | } && test -s conftest$ac_exeext && |
| 15152 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15153 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15154 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15155 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15157 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15158 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15159 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15160 | |
| 15161 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15162 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15163 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15164 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15165 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 15166 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 15167 | if test $ac_cv_lib_dld_shl_load = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15168 | cat >>confdefs.h <<_ACEOF |
| 15169 | #define HAVE_LIBDLD 1 |
| 15170 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15171 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15172 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15173 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15174 | fi |
| 15175 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15176 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 15177 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15178 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15179 | { echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 15180 | 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] | 15181 | if test "${ac_cv_search_sem_init+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15183 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15184 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15185 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15186 | /* confdefs.h. */ |
| 15187 | _ACEOF |
| 15188 | cat confdefs.h >>conftest.$ac_ext |
| 15189 | cat >>conftest.$ac_ext <<_ACEOF |
| 15190 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15191 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15192 | /* Override any GCC internal prototype to avoid an error. |
| 15193 | Use char because int might match the return type of a GCC |
| 15194 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15195 | #ifdef __cplusplus |
| 15196 | extern "C" |
| 15197 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15198 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15199 | int |
| 15200 | main () |
| 15201 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15202 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15203 | ; |
| 15204 | return 0; |
| 15205 | } |
| 15206 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15207 | for ac_lib in '' pthread rt posix4; do |
| 15208 | if test -z "$ac_lib"; then |
| 15209 | ac_res="none required" |
| 15210 | else |
| 15211 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15212 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15213 | fi |
| 15214 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15215 | if { (ac_try="$ac_link" |
| 15216 | case "(($ac_try" in |
| 15217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15218 | *) ac_try_echo=$ac_try;; |
| 15219 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15221 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15222 | ac_status=$? |
| 15223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15224 | rm -f conftest.er1 |
| 15225 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15227 | (exit $ac_status); } && { |
| 15228 | test -z "$ac_c_werror_flag" || |
| 15229 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15230 | } && test -s conftest$ac_exeext && |
| 15231 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15232 | ac_cv_search_sem_init=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15233 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15234 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15236 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15237 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15238 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15239 | |
| 15240 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15241 | conftest$ac_exeext |
| 15242 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 15243 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15244 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15245 | done |
| 15246 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 15247 | : |
| 15248 | else |
| 15249 | ac_cv_search_sem_init=no |
| 15250 | fi |
| 15251 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15252 | LIBS=$ac_func_search_save_LIBS |
| 15253 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15254 | { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 15255 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15256 | ac_res=$ac_cv_search_sem_init |
| 15257 | if test "$ac_res" != no; then |
| 15258 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15259 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15260 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 15261 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15262 | # posix4 on Solaris 2.6 |
| 15263 | # pthread (first!) on Linux |
| 15264 | fi |
| 15265 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15266 | # check if we need libintl for locale functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15267 | { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 15268 | 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] | 15269 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15271 | else |
| 15272 | ac_check_lib_save_LIBS=$LIBS |
| 15273 | LIBS="-lintl $LIBS" |
| 15274 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15275 | /* confdefs.h. */ |
| 15276 | _ACEOF |
| 15277 | cat confdefs.h >>conftest.$ac_ext |
| 15278 | cat >>conftest.$ac_ext <<_ACEOF |
| 15279 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15280 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15281 | /* Override any GCC internal prototype to avoid an error. |
| 15282 | Use char because int might match the return type of a GCC |
| 15283 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15284 | #ifdef __cplusplus |
| 15285 | extern "C" |
| 15286 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15287 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15288 | int |
| 15289 | main () |
| 15290 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15291 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15292 | ; |
| 15293 | return 0; |
| 15294 | } |
| 15295 | _ACEOF |
| 15296 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15297 | if { (ac_try="$ac_link" |
| 15298 | case "(($ac_try" in |
| 15299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15300 | *) ac_try_echo=$ac_try;; |
| 15301 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15303 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15304 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15306 | rm -f conftest.er1 |
| 15307 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15309 | (exit $ac_status); } && { |
| 15310 | test -z "$ac_c_werror_flag" || |
| 15311 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15312 | } && test -s conftest$ac_exeext && |
| 15313 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15314 | ac_cv_lib_intl_textdomain=yes |
| 15315 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15316 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15317 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15318 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15319 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15320 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15321 | |
| 15322 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15323 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15324 | LIBS=$ac_check_lib_save_LIBS |
| 15325 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15326 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 15327 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; } |
| 15328 | if test $ac_cv_lib_intl_textdomain = yes; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15329 | |
| 15330 | cat >>confdefs.h <<\_ACEOF |
| 15331 | #define WITH_LIBINTL 1 |
| 15332 | _ACEOF |
| 15333 | |
| 15334 | fi |
| 15335 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15336 | |
| 15337 | # checks for system dependent C++ extensions support |
| 15338 | case "$ac_sys_system" in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15339 | AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 15340 | 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] | 15341 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15342 | /* confdefs.h. */ |
| 15343 | _ACEOF |
| 15344 | cat confdefs.h >>conftest.$ac_ext |
| 15345 | cat >>conftest.$ac_ext <<_ACEOF |
| 15346 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15347 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15348 | int |
| 15349 | main () |
| 15350 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15351 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15352 | ; |
| 15353 | return 0; |
| 15354 | } |
| 15355 | _ACEOF |
| 15356 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15357 | if { (ac_try="$ac_link" |
| 15358 | case "(($ac_try" in |
| 15359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15360 | *) ac_try_echo=$ac_try;; |
| 15361 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15363 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15364 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15366 | rm -f conftest.er1 |
| 15367 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15369 | (exit $ac_status); } && { |
| 15370 | test -z "$ac_c_werror_flag" || |
| 15371 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15372 | } && test -s conftest$ac_exeext && |
| 15373 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15374 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15375 | cat >>confdefs.h <<\_ACEOF |
| 15376 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 15377 | _ACEOF |
| 15378 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15379 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15380 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15381 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15382 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15384 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15385 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15386 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15387 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15388 | |
| 15389 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15390 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15391 | *) ;; |
| 15392 | esac |
| 15393 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15394 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15395 | # BeOS' sockets are stashed in libnet. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15396 | { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 15397 | 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] | 15398 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15400 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15401 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15402 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15403 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15404 | /* confdefs.h. */ |
| 15405 | _ACEOF |
| 15406 | cat confdefs.h >>conftest.$ac_ext |
| 15407 | cat >>conftest.$ac_ext <<_ACEOF |
| 15408 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15409 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15410 | /* Override any GCC internal prototype to avoid an error. |
| 15411 | Use char because int might match the return type of a GCC |
| 15412 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15413 | #ifdef __cplusplus |
| 15414 | extern "C" |
| 15415 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15416 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15417 | int |
| 15418 | main () |
| 15419 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15420 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15421 | ; |
| 15422 | return 0; |
| 15423 | } |
| 15424 | _ACEOF |
| 15425 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15426 | if { (ac_try="$ac_link" |
| 15427 | case "(($ac_try" in |
| 15428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15429 | *) ac_try_echo=$ac_try;; |
| 15430 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15432 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15433 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15434 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15435 | rm -f conftest.er1 |
| 15436 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15438 | (exit $ac_status); } && { |
| 15439 | test -z "$ac_c_werror_flag" || |
| 15440 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15441 | } && test -s conftest$ac_exeext && |
| 15442 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15443 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15444 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15445 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15447 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15448 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15449 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15450 | |
| 15451 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15452 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15453 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15454 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15455 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 15456 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; } |
| 15457 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15458 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15459 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 15460 | # SVR4 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15461 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 15462 | 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] | 15463 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15465 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15466 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15467 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15468 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15469 | /* confdefs.h. */ |
| 15470 | _ACEOF |
| 15471 | cat confdefs.h >>conftest.$ac_ext |
| 15472 | cat >>conftest.$ac_ext <<_ACEOF |
| 15473 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15474 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15475 | /* Override any GCC internal prototype to avoid an error. |
| 15476 | Use char because int might match the return type of a GCC |
| 15477 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15478 | #ifdef __cplusplus |
| 15479 | extern "C" |
| 15480 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15481 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15482 | int |
| 15483 | main () |
| 15484 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15485 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15486 | ; |
| 15487 | return 0; |
| 15488 | } |
| 15489 | _ACEOF |
| 15490 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15491 | if { (ac_try="$ac_link" |
| 15492 | case "(($ac_try" in |
| 15493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15494 | *) ac_try_echo=$ac_try;; |
| 15495 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15497 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15498 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15500 | rm -f conftest.er1 |
| 15501 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15503 | (exit $ac_status); } && { |
| 15504 | test -z "$ac_c_werror_flag" || |
| 15505 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15506 | } && test -s conftest$ac_exeext && |
| 15507 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15508 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15509 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15510 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15512 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15513 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15514 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15515 | |
| 15516 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15517 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15518 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15519 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15520 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 15521 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
| 15522 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15523 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15524 | fi |
| 15525 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 15526 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 15527 | case "$ac_sys_system" in |
| 15528 | BeOS*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15529 | { echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 15530 | 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] | 15531 | if test "${ac_cv_lib_net_socket+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15533 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15534 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15535 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15536 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15537 | /* confdefs.h. */ |
| 15538 | _ACEOF |
| 15539 | cat confdefs.h >>conftest.$ac_ext |
| 15540 | cat >>conftest.$ac_ext <<_ACEOF |
| 15541 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15542 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15543 | /* Override any GCC internal prototype to avoid an error. |
| 15544 | Use char because int might match the return type of a GCC |
| 15545 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15546 | #ifdef __cplusplus |
| 15547 | extern "C" |
| 15548 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15549 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15550 | int |
| 15551 | main () |
| 15552 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15553 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15554 | ; |
| 15555 | return 0; |
| 15556 | } |
| 15557 | _ACEOF |
| 15558 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15559 | if { (ac_try="$ac_link" |
| 15560 | case "(($ac_try" in |
| 15561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15562 | *) ac_try_echo=$ac_try;; |
| 15563 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15565 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15566 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15568 | rm -f conftest.er1 |
| 15569 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15571 | (exit $ac_status); } && { |
| 15572 | test -z "$ac_c_werror_flag" || |
| 15573 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15574 | } && test -s conftest$ac_exeext && |
| 15575 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15576 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15577 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15578 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15580 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15581 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15582 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15583 | |
| 15584 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15585 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15586 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15587 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15588 | { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 15589 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; } |
| 15590 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15591 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15592 | fi |
| 15593 | # BeOS |
| 15594 | ;; |
| 15595 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15596 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15597 | { echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 15598 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15599 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15600 | # Check whether --with-libs was given. |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15601 | if test "${with_libs+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15602 | withval=$with_libs; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15603 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15604 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15605 | LIBS="$withval $LIBS" |
| 15606 | |
| 15607 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15608 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15609 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15610 | fi |
| 15611 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15612 | |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 15613 | if test -n "$ac_tool_prefix"; then |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 15614 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 15615 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 15616 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15617 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 15618 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 15619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15620 | else |
| 15621 | case $PKG_CONFIG in |
| 15622 | [\\/]* | ?:[\\/]*) |
| 15623 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 15624 | ;; |
| 15625 | *) |
| 15626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15627 | for as_dir in $PATH |
| 15628 | do |
| 15629 | IFS=$as_save_IFS |
| 15630 | test -z "$as_dir" && as_dir=. |
| 15631 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15632 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15633 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 15634 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15635 | break 2 |
| 15636 | fi |
| 15637 | done |
| 15638 | done |
| 15639 | IFS=$as_save_IFS |
| 15640 | |
| 15641 | ;; |
| 15642 | esac |
| 15643 | fi |
| 15644 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 15645 | if test -n "$PKG_CONFIG"; then |
| 15646 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 15647 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
| 15648 | else |
| 15649 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15650 | echo "${ECHO_T}no" >&6; } |
| 15651 | fi |
| 15652 | |
| 15653 | |
| 15654 | fi |
| 15655 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 15656 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 15657 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 15658 | set dummy pkg-config; ac_word=$2 |
| 15659 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15660 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 15661 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
| 15662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15663 | else |
| 15664 | case $ac_pt_PKG_CONFIG in |
| 15665 | [\\/]* | ?:[\\/]*) |
| 15666 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 15667 | ;; |
| 15668 | *) |
| 15669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15670 | for as_dir in $PATH |
| 15671 | do |
| 15672 | IFS=$as_save_IFS |
| 15673 | test -z "$as_dir" && as_dir=. |
| 15674 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15675 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15676 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 15677 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15678 | break 2 |
| 15679 | fi |
| 15680 | done |
| 15681 | done |
| 15682 | IFS=$as_save_IFS |
| 15683 | |
| 15684 | ;; |
| 15685 | esac |
| 15686 | fi |
| 15687 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 15688 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 15689 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
| 15690 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } |
| 15691 | else |
| 15692 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15693 | echo "${ECHO_T}no" >&6; } |
| 15694 | fi |
| 15695 | |
| 15696 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 15697 | PKG_CONFIG="" |
| 15698 | else |
| 15699 | case $cross_compiling:$ac_tool_warned in |
| 15700 | yes:) |
| 15701 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 15702 | whose name does not start with the host triplet. If you think this |
| 15703 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 15704 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 15705 | whose name does not start with the host triplet. If you think this |
| 15706 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 15707 | ac_tool_warned=yes ;; |
| 15708 | esac |
| 15709 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 15710 | fi |
| 15711 | else |
| 15712 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 15713 | fi |
| 15714 | |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 15715 | |
| 15716 | # Check for use of the system expat library |
| 15717 | { echo "$as_me:$LINENO: checking for --with-system-expat" >&5 |
| 15718 | echo $ECHO_N "checking for --with-system-expat... $ECHO_C" >&6; } |
| 15719 | |
| 15720 | # Check whether --with-system_expat was given. |
| 15721 | if test "${with_system_expat+set}" = set; then |
| 15722 | withval=$with_system_expat; |
| 15723 | fi |
| 15724 | |
| 15725 | |
| 15726 | { echo "$as_me:$LINENO: result: $with_system_expat" >&5 |
| 15727 | echo "${ECHO_T}$with_system_expat" >&6; } |
| 15728 | |
| 15729 | # Check for use of the system libffi library |
| 15730 | { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 15731 | echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; } |
| 15732 | |
| 15733 | # Check whether --with-system_ffi was given. |
| 15734 | if test "${with_system_ffi+set}" = set; then |
| 15735 | withval=$with_system_ffi; |
| 15736 | fi |
| 15737 | |
| 15738 | |
| 15739 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 15740 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
| 15741 | else |
| 15742 | LIBFFI_INCLUDEDIR="" |
| 15743 | fi |
| 15744 | |
| 15745 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15746 | { echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 15747 | echo "${ECHO_T}$with_system_ffi" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15748 | |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15749 | # Check for --with-dbmliborder |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15750 | { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5 |
| 15751 | echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15752 | |
| 15753 | # Check whether --with-dbmliborder was given. |
| 15754 | if test "${with_dbmliborder+set}" = set; then |
| 15755 | withval=$with_dbmliborder; |
| 15756 | if test x$with_dbmliborder = xyes |
| 15757 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15758 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15759 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15760 | { (exit 1); exit 1; }; } |
| 15761 | else |
| 15762 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 15763 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 15764 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15765 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15766 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15767 | { (exit 1); exit 1; }; } |
| 15768 | fi |
| 15769 | done |
| 15770 | fi |
| 15771 | fi |
| 15772 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15773 | { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5 |
| 15774 | echo "${ECHO_T}$with_dbmliborder" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15775 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 15776 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15777 | |
| 15778 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15779 | { echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 15780 | 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] | 15781 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15782 | # Check whether --with-signal-module was given. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15783 | if test "${with_signal_module+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15784 | withval=$with_signal_module; |
| 15785 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15786 | |
| 15787 | |
| 15788 | if test -z "$with_signal_module" |
| 15789 | then with_signal_module="yes" |
| 15790 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15791 | { echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 15792 | echo "${ECHO_T}$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15793 | |
| 15794 | if test "${with_signal_module}" = "yes"; then |
| 15795 | USE_SIGNAL_MODULE="" |
| 15796 | SIGNAL_OBJS="" |
| 15797 | else |
| 15798 | USE_SIGNAL_MODULE="#" |
| 15799 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 15800 | fi |
| 15801 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 15802 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15803 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15804 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15805 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15806 | { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 15807 | 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] | 15808 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15809 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15810 | # Check whether --with-dec-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15811 | if test "${with_dec_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15812 | withval=$with_dec_threads; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15813 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15814 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15815 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15816 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15817 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15818 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15819 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15820 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15821 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15822 | fi |
| 15823 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15824 | |
| 15825 | # Templates for things AC_DEFINEd more than once. |
| 15826 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15827 | |
| 15828 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15829 | |
| 15830 | |
| 15831 | |
| 15832 | |
| 15833 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15834 | { echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 15835 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15836 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15837 | # Check whether --with-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15838 | if test "${with_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15839 | withval=$with_threads; |
| 15840 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15841 | |
| 15842 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15843 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15844 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15845 | # Check whether --with-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15846 | if test "${with_thread+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15847 | withval=$with_thread; with_threads=$with_thread |
| 15848 | fi |
| 15849 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15850 | |
| 15851 | if test -z "$with_threads" |
| 15852 | then with_threads="yes" |
| 15853 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15854 | { echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 15855 | echo "${ECHO_T}$with_threads" >&6; } |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15856 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15857 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15858 | if test "$with_threads" = "no" |
| 15859 | then |
| 15860 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15861 | elif test "$ac_cv_pthread_is_default" = yes |
| 15862 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15863 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15864 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15865 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15866 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15867 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15868 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15869 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15870 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15871 | |
| 15872 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15873 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15874 | elif test "$ac_cv_kpthread" = "yes" |
| 15875 | then |
| 15876 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15877 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15878 | CXX="$CXX -Kpthread" |
| 15879 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15880 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15881 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15882 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15883 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15884 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15885 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15886 | elif test "$ac_cv_kthread" = "yes" |
| 15887 | then |
| 15888 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15889 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15890 | CXX="$CXX -Kthread" |
| 15891 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15892 | cat >>confdefs.h <<\_ACEOF |
| 15893 | #define WITH_THREAD 1 |
| 15894 | _ACEOF |
| 15895 | |
| 15896 | posix_threads=yes |
| 15897 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15898 | elif test "$ac_cv_pthread" = "yes" |
| 15899 | then |
| 15900 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15901 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15902 | CXX="$CXX -pthread" |
| 15903 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15904 | cat >>confdefs.h <<\_ACEOF |
| 15905 | #define WITH_THREAD 1 |
| 15906 | _ACEOF |
| 15907 | |
| 15908 | posix_threads=yes |
| 15909 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15910 | else |
| 15911 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 15912 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 15913 | fi |
| 15914 | if test ! -z "$withval" -a -d "$withval" |
| 15915 | then LDFLAGS="$LDFLAGS -L$withval" |
| 15916 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15917 | |
| 15918 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 15919 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 15920 | # (e.g. gnu pth with pthread emulation) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15921 | { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 15922 | 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] | 15923 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15924 | /* confdefs.h. */ |
| 15925 | _ACEOF |
| 15926 | cat confdefs.h >>conftest.$ac_ext |
| 15927 | cat >>conftest.$ac_ext <<_ACEOF |
| 15928 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15929 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15930 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15931 | #ifdef _POSIX_THREADS |
| 15932 | yes |
| 15933 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15934 | |
| 15935 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15936 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15937 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15938 | unistd_defines_pthreads=yes |
| 15939 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15940 | unistd_defines_pthreads=no |
| 15941 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 15942 | rm -f conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15943 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15944 | { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 15945 | echo "${ECHO_T}$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15946 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15947 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 15948 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15949 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 15950 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15951 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15952 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 15953 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15954 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15956 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15957 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 15958 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15959 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15960 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15961 | { echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 15962 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15963 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15964 | /* confdefs.h. */ |
| 15965 | _ACEOF |
| 15966 | cat confdefs.h >>conftest.$ac_ext |
| 15967 | cat >>conftest.$ac_ext <<_ACEOF |
| 15968 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15969 | $ac_includes_default |
| 15970 | #include <cthreads.h> |
| 15971 | _ACEOF |
| 15972 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15973 | if { (ac_try="$ac_compile" |
| 15974 | case "(($ac_try" in |
| 15975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15976 | *) ac_try_echo=$ac_try;; |
| 15977 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15979 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15980 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15982 | rm -f conftest.er1 |
| 15983 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15985 | (exit $ac_status); } && { |
| 15986 | test -z "$ac_c_werror_flag" || |
| 15987 | test ! -s conftest.err |
| 15988 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15989 | ac_header_compiler=yes |
| 15990 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15991 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15993 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15994 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15995 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15996 | |
| 15997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15998 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15999 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16000 | |
| 16001 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16002 | { echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 16003 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16004 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16005 | /* confdefs.h. */ |
| 16006 | _ACEOF |
| 16007 | cat confdefs.h >>conftest.$ac_ext |
| 16008 | cat >>conftest.$ac_ext <<_ACEOF |
| 16009 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16010 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16011 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16012 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16013 | case "(($ac_try" in |
| 16014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16015 | *) ac_try_echo=$ac_try;; |
| 16016 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16018 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16019 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16020 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16021 | rm -f conftest.er1 |
| 16022 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16024 | (exit $ac_status); } >/dev/null && { |
| 16025 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16026 | test ! -s conftest.err |
| 16027 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16028 | ac_header_preproc=yes |
| 16029 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16030 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16033 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16034 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16035 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16036 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16037 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16038 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16039 | |
| 16040 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16041 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16042 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16043 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16044 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16045 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 16046 | 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] | 16047 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16048 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16049 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16050 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 16051 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 16052 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 16053 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 16054 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 16055 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 16056 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16057 | echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16058 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 16059 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 16060 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 16061 | 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] | 16062 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16063 | ## -------------------------------------- ## |
| 16064 | ## Report this to http://bugs.python.org/ ## |
| 16065 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16066 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16067 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16068 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16069 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16070 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 16071 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16072 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16074 | else |
| 16075 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16076 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16077 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 16078 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16079 | |
| 16080 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16081 | if test $ac_cv_header_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16082 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16083 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16084 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16085 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16086 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16087 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16088 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16090 | |
| 16091 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16092 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16093 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16094 | |
| 16095 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16096 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16097 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16099 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16100 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 16101 | 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] | 16102 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16104 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16105 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 16106 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16107 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16108 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16109 | { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 16110 | 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] | 16111 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16112 | /* confdefs.h. */ |
| 16113 | _ACEOF |
| 16114 | cat confdefs.h >>conftest.$ac_ext |
| 16115 | cat >>conftest.$ac_ext <<_ACEOF |
| 16116 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16117 | $ac_includes_default |
| 16118 | #include <mach/cthreads.h> |
| 16119 | _ACEOF |
| 16120 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16121 | if { (ac_try="$ac_compile" |
| 16122 | case "(($ac_try" in |
| 16123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16124 | *) ac_try_echo=$ac_try;; |
| 16125 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16127 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16128 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16130 | rm -f conftest.er1 |
| 16131 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16133 | (exit $ac_status); } && { |
| 16134 | test -z "$ac_c_werror_flag" || |
| 16135 | test ! -s conftest.err |
| 16136 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16137 | ac_header_compiler=yes |
| 16138 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16139 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16141 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16142 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16143 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16144 | |
| 16145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16146 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16147 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16148 | |
| 16149 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16150 | { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 16151 | 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] | 16152 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16153 | /* confdefs.h. */ |
| 16154 | _ACEOF |
| 16155 | cat confdefs.h >>conftest.$ac_ext |
| 16156 | cat >>conftest.$ac_ext <<_ACEOF |
| 16157 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16158 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16159 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16160 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16161 | case "(($ac_try" in |
| 16162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16163 | *) ac_try_echo=$ac_try;; |
| 16164 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16166 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16167 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16168 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16169 | rm -f conftest.er1 |
| 16170 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16172 | (exit $ac_status); } >/dev/null && { |
| 16173 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16174 | test ! -s conftest.err |
| 16175 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16176 | ac_header_preproc=yes |
| 16177 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16178 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16180 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16181 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16182 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16183 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16184 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16185 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16186 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16187 | |
| 16188 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16189 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16190 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16191 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16192 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16193 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 16194 | 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] | 16195 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16196 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16197 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16198 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 16199 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 16200 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 16201 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 16202 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 16203 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 16204 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16205 | echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16206 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 16207 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 16208 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 16209 | 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] | 16210 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16211 | ## -------------------------------------- ## |
| 16212 | ## Report this to http://bugs.python.org/ ## |
| 16213 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16214 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16215 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16216 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16217 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16218 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 16219 | 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] | 16220 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16222 | else |
| 16223 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16224 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16225 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 16226 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16227 | |
| 16228 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16229 | if test $ac_cv_header_mach_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16230 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16231 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16232 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16233 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16234 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16235 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16236 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16237 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16238 | |
| 16239 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16240 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16241 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16242 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16243 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16244 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16245 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16246 | { echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 16247 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16248 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16249 | # Check whether --with-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16250 | if test "${with_pth+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16251 | withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5 |
| 16252 | echo "${ECHO_T}$withval" >&6; } |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 16253 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16254 | #define WITH_THREAD 1 |
| 16255 | _ACEOF |
| 16256 | |
| 16257 | |
| 16258 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16259 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16260 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16261 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 16262 | LIBS="-lpth $LIBS" |
| 16263 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16264 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16265 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16266 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16267 | |
| 16268 | # Just looking for pthread_create in libpthread is not enough: |
| 16269 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 16270 | # So we really have to include pthread.h, and then link. |
| 16271 | _libs=$LIBS |
| 16272 | LIBS="$LIBS -lpthread" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16273 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 16274 | 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] | 16275 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16276 | /* confdefs.h. */ |
| 16277 | _ACEOF |
| 16278 | cat confdefs.h >>conftest.$ac_ext |
| 16279 | cat >>conftest.$ac_ext <<_ACEOF |
| 16280 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16281 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16282 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16283 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16284 | int |
| 16285 | main () |
| 16286 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16287 | |
| 16288 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16289 | ; |
| 16290 | return 0; |
| 16291 | } |
| 16292 | _ACEOF |
| 16293 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16294 | if { (ac_try="$ac_link" |
| 16295 | case "(($ac_try" in |
| 16296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16297 | *) ac_try_echo=$ac_try;; |
| 16298 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16300 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16301 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16303 | rm -f conftest.er1 |
| 16304 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16306 | (exit $ac_status); } && { |
| 16307 | test -z "$ac_c_werror_flag" || |
| 16308 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16309 | } && test -s conftest$ac_exeext && |
| 16310 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16311 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16312 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16313 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16314 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16315 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16316 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16317 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16318 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16319 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16320 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16321 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16323 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16324 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16325 | LIBS=$_libs |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16326 | { echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 16327 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16328 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16330 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16331 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16332 | /* confdefs.h. */ |
| 16333 | _ACEOF |
| 16334 | cat confdefs.h >>conftest.$ac_ext |
| 16335 | cat >>conftest.$ac_ext <<_ACEOF |
| 16336 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16337 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 16338 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16339 | #define pthread_detach innocuous_pthread_detach |
| 16340 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16341 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16342 | which can conflict with char pthread_detach (); below. |
| 16343 | 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] | 16344 | <limits.h> exists even on freestanding compilers. */ |
| 16345 | |
| 16346 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16347 | # include <limits.h> |
| 16348 | #else |
| 16349 | # include <assert.h> |
| 16350 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16351 | |
| 16352 | #undef pthread_detach |
| 16353 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16354 | /* Override any GCC internal prototype to avoid an error. |
| 16355 | Use char because int might match the return type of a GCC |
| 16356 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16357 | #ifdef __cplusplus |
| 16358 | extern "C" |
| 16359 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16360 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16361 | /* The GNU C library defines this for functions which it implements |
| 16362 | to always fail with ENOSYS. Some functions are actually named |
| 16363 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16364 | #if defined __stub_pthread_detach || defined __stub___pthread_detach |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16365 | choke me |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16366 | #endif |
| 16367 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16368 | int |
| 16369 | main () |
| 16370 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16371 | return pthread_detach (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16372 | ; |
| 16373 | return 0; |
| 16374 | } |
| 16375 | _ACEOF |
| 16376 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16377 | if { (ac_try="$ac_link" |
| 16378 | case "(($ac_try" in |
| 16379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16380 | *) ac_try_echo=$ac_try;; |
| 16381 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16383 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16384 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16385 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16386 | rm -f conftest.er1 |
| 16387 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16389 | (exit $ac_status); } && { |
| 16390 | test -z "$ac_c_werror_flag" || |
| 16391 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16392 | } && test -s conftest$ac_exeext && |
| 16393 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16394 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16395 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16396 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16397 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16398 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16399 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16400 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16401 | |
| 16402 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16403 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16404 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16405 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 16406 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; } |
| 16407 | if test $ac_cv_func_pthread_detach = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16408 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16409 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16410 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16411 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16412 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16413 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16414 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16415 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16416 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16417 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16418 | 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] | 16419 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16421 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16422 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16423 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16424 | else |
| 16425 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16426 | { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 16427 | 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] | 16428 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16429 | /* confdefs.h. */ |
| 16430 | _ACEOF |
| 16431 | cat confdefs.h >>conftest.$ac_ext |
| 16432 | cat >>conftest.$ac_ext <<_ACEOF |
| 16433 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16434 | $ac_includes_default |
| 16435 | #include <atheos/threads.h> |
| 16436 | _ACEOF |
| 16437 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16438 | if { (ac_try="$ac_compile" |
| 16439 | case "(($ac_try" in |
| 16440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16441 | *) ac_try_echo=$ac_try;; |
| 16442 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16444 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16445 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16447 | rm -f conftest.er1 |
| 16448 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16450 | (exit $ac_status); } && { |
| 16451 | test -z "$ac_c_werror_flag" || |
| 16452 | test ! -s conftest.err |
| 16453 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16454 | ac_header_compiler=yes |
| 16455 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16456 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16457 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16458 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16459 | ac_header_compiler=no |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16460 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16461 | |
| 16462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16463 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16464 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16465 | |
| 16466 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16467 | { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 16468 | 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] | 16469 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16470 | /* confdefs.h. */ |
| 16471 | _ACEOF |
| 16472 | cat confdefs.h >>conftest.$ac_ext |
| 16473 | cat >>conftest.$ac_ext <<_ACEOF |
| 16474 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16475 | #include <atheos/threads.h> |
| 16476 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16477 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16478 | case "(($ac_try" in |
| 16479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16480 | *) ac_try_echo=$ac_try;; |
| 16481 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16483 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16484 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16485 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16486 | rm -f conftest.er1 |
| 16487 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16489 | (exit $ac_status); } >/dev/null && { |
| 16490 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16491 | test ! -s conftest.err |
| 16492 | }; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16493 | ac_header_preproc=yes |
| 16494 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16495 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16496 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16497 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16498 | ac_header_preproc=no |
| 16499 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16500 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16501 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16502 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16503 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16504 | |
| 16505 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16506 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16507 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16508 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16509 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16510 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 16511 | 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] | 16512 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16513 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16514 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16515 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 16516 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 16517 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 16518 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 16519 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 16520 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 16521 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16522 | echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16523 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 16524 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 16525 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 16526 | 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] | 16527 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16528 | ## -------------------------------------- ## |
| 16529 | ## Report this to http://bugs.python.org/ ## |
| 16530 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16531 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16532 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16533 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16534 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16535 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16536 | 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] | 16537 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16539 | else |
| 16540 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 16541 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16542 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16543 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16544 | |
| 16545 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16546 | if test $ac_cv_header_atheos_threads_h = yes; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16547 | cat >>confdefs.h <<\_ACEOF |
| 16548 | #define WITH_THREAD 1 |
| 16549 | _ACEOF |
| 16550 | |
| 16551 | |
| 16552 | cat >>confdefs.h <<\_ACEOF |
| 16553 | #define ATHEOS_THREADS 1 |
| 16554 | _ACEOF |
| 16555 | |
| 16556 | THREADOBJ="Python/thread.o" |
| 16557 | else |
| 16558 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16559 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16560 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 16561 | 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] | 16562 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16564 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16565 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 16566 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16567 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16568 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16569 | { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 16570 | 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] | 16571 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16572 | /* confdefs.h. */ |
| 16573 | _ACEOF |
| 16574 | cat confdefs.h >>conftest.$ac_ext |
| 16575 | cat >>conftest.$ac_ext <<_ACEOF |
| 16576 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16577 | $ac_includes_default |
| 16578 | #include <kernel/OS.h> |
| 16579 | _ACEOF |
| 16580 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16581 | if { (ac_try="$ac_compile" |
| 16582 | case "(($ac_try" in |
| 16583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16584 | *) ac_try_echo=$ac_try;; |
| 16585 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16587 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16588 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16589 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16590 | rm -f conftest.er1 |
| 16591 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16593 | (exit $ac_status); } && { |
| 16594 | test -z "$ac_c_werror_flag" || |
| 16595 | test ! -s conftest.err |
| 16596 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16597 | ac_header_compiler=yes |
| 16598 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16599 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16601 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16602 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16603 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16604 | |
| 16605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16606 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16607 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16608 | |
| 16609 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16610 | { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 16611 | 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] | 16612 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16613 | /* confdefs.h. */ |
| 16614 | _ACEOF |
| 16615 | cat confdefs.h >>conftest.$ac_ext |
| 16616 | cat >>conftest.$ac_ext <<_ACEOF |
| 16617 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16618 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16619 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16620 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16621 | case "(($ac_try" in |
| 16622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16623 | *) ac_try_echo=$ac_try;; |
| 16624 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16626 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16627 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16628 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16629 | rm -f conftest.er1 |
| 16630 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16632 | (exit $ac_status); } >/dev/null && { |
| 16633 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16634 | test ! -s conftest.err |
| 16635 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16636 | ac_header_preproc=yes |
| 16637 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16638 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16639 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16640 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16641 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16642 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16643 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16644 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16645 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16646 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16647 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16648 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16649 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16650 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16651 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16652 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16653 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 16654 | 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] | 16655 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16656 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16657 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16658 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 16659 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 16660 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 16661 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 16662 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 16663 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 16664 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16665 | echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16666 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 16667 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 16668 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 16669 | 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] | 16670 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16671 | ## -------------------------------------- ## |
| 16672 | ## Report this to http://bugs.python.org/ ## |
| 16673 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16674 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16675 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16676 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16677 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16678 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 16679 | 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] | 16680 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16682 | else |
| 16683 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 16684 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16685 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 16686 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16687 | |
| 16688 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16689 | if test $ac_cv_header_kernel_OS_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16690 | cat >>confdefs.h <<\_ACEOF |
| 16691 | #define WITH_THREAD 1 |
| 16692 | _ACEOF |
| 16693 | |
| 16694 | |
| 16695 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16696 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16697 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16698 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16699 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16700 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16701 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16702 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 16703 | 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] | 16704 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16706 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16707 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16708 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16709 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16710 | /* confdefs.h. */ |
| 16711 | _ACEOF |
| 16712 | cat confdefs.h >>conftest.$ac_ext |
| 16713 | cat >>conftest.$ac_ext <<_ACEOF |
| 16714 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16715 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16716 | /* Override any GCC internal prototype to avoid an error. |
| 16717 | Use char because int might match the return type of a GCC |
| 16718 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16719 | #ifdef __cplusplus |
| 16720 | extern "C" |
| 16721 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16722 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16723 | int |
| 16724 | main () |
| 16725 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16726 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16727 | ; |
| 16728 | return 0; |
| 16729 | } |
| 16730 | _ACEOF |
| 16731 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16732 | if { (ac_try="$ac_link" |
| 16733 | case "(($ac_try" in |
| 16734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16735 | *) ac_try_echo=$ac_try;; |
| 16736 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16738 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16739 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16741 | rm -f conftest.er1 |
| 16742 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16744 | (exit $ac_status); } && { |
| 16745 | test -z "$ac_c_werror_flag" || |
| 16746 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16747 | } && test -s conftest$ac_exeext && |
| 16748 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16749 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16750 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16751 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16753 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16754 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16755 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16756 | |
| 16757 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16758 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16759 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16760 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16761 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 16762 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; } |
| 16763 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16764 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16765 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16766 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16767 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16768 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16769 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16770 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16771 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16772 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16773 | { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 16774 | 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] | 16775 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16777 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16778 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16779 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16780 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16781 | /* confdefs.h. */ |
| 16782 | _ACEOF |
| 16783 | cat confdefs.h >>conftest.$ac_ext |
| 16784 | cat >>conftest.$ac_ext <<_ACEOF |
| 16785 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16786 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16787 | /* Override any GCC internal prototype to avoid an error. |
| 16788 | Use char because int might match the return type of a GCC |
| 16789 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16790 | #ifdef __cplusplus |
| 16791 | extern "C" |
| 16792 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16793 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16794 | int |
| 16795 | main () |
| 16796 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16797 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16798 | ; |
| 16799 | return 0; |
| 16800 | } |
| 16801 | _ACEOF |
| 16802 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16803 | if { (ac_try="$ac_link" |
| 16804 | case "(($ac_try" in |
| 16805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16806 | *) ac_try_echo=$ac_try;; |
| 16807 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16809 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16810 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16812 | rm -f conftest.er1 |
| 16813 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16815 | (exit $ac_status); } && { |
| 16816 | test -z "$ac_c_werror_flag" || |
| 16817 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16818 | } && test -s conftest$ac_exeext && |
| 16819 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16820 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16821 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16822 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16824 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16825 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16826 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16827 | |
| 16828 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16829 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16830 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16831 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16832 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 16833 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; } |
| 16834 | 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] | 16835 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16836 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16837 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16838 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16839 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16840 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16841 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16842 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16843 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16844 | { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 16845 | 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] | 16846 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16848 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16849 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16850 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16851 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16852 | /* confdefs.h. */ |
| 16853 | _ACEOF |
| 16854 | cat confdefs.h >>conftest.$ac_ext |
| 16855 | cat >>conftest.$ac_ext <<_ACEOF |
| 16856 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16857 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16858 | /* Override any GCC internal prototype to avoid an error. |
| 16859 | Use char because int might match the return type of a GCC |
| 16860 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16861 | #ifdef __cplusplus |
| 16862 | extern "C" |
| 16863 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16864 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16865 | int |
| 16866 | main () |
| 16867 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16868 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16869 | ; |
| 16870 | return 0; |
| 16871 | } |
| 16872 | _ACEOF |
| 16873 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16874 | if { (ac_try="$ac_link" |
| 16875 | case "(($ac_try" in |
| 16876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16877 | *) ac_try_echo=$ac_try;; |
| 16878 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16880 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16881 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16882 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16883 | rm -f conftest.er1 |
| 16884 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16886 | (exit $ac_status); } && { |
| 16887 | test -z "$ac_c_werror_flag" || |
| 16888 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16889 | } && test -s conftest$ac_exeext && |
| 16890 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16891 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16892 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16893 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16894 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16895 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16896 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16897 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16898 | |
| 16899 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16900 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16901 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16902 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16903 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 16904 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; } |
| 16905 | 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] | 16906 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16907 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16908 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16909 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16910 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16911 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16912 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16913 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16914 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16915 | { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 16916 | 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] | 16917 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16919 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16920 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16921 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16922 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16923 | /* confdefs.h. */ |
| 16924 | _ACEOF |
| 16925 | cat confdefs.h >>conftest.$ac_ext |
| 16926 | cat >>conftest.$ac_ext <<_ACEOF |
| 16927 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16928 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16929 | /* Override any GCC internal prototype to avoid an error. |
| 16930 | Use char because int might match the return type of a GCC |
| 16931 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16932 | #ifdef __cplusplus |
| 16933 | extern "C" |
| 16934 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16935 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16936 | int |
| 16937 | main () |
| 16938 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16939 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16940 | ; |
| 16941 | return 0; |
| 16942 | } |
| 16943 | _ACEOF |
| 16944 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16945 | if { (ac_try="$ac_link" |
| 16946 | case "(($ac_try" in |
| 16947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16948 | *) ac_try_echo=$ac_try;; |
| 16949 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16951 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16952 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16954 | rm -f conftest.er1 |
| 16955 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16957 | (exit $ac_status); } && { |
| 16958 | test -z "$ac_c_werror_flag" || |
| 16959 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16960 | } && test -s conftest$ac_exeext && |
| 16961 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16962 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16963 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16964 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16966 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16967 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16968 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16969 | |
| 16970 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16971 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16972 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16973 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16974 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 16975 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; } |
| 16976 | if test $ac_cv_lib_cma_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16977 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16978 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16979 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16980 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16981 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16982 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16983 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16984 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 16985 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16986 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 16987 | fi |
| 16988 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16989 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16990 | fi |
| 16991 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 16992 | fi |
| 16993 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16994 | fi |
| 16995 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16996 | fi |
| 16997 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16998 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16999 | fi |
| 17000 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 17001 | |
| 17002 | fi |
| 17003 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 17004 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17005 | |
| 17006 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17007 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17008 | fi |
| 17009 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17010 | fi |
| 17011 | |
| 17012 | |
| 17013 | fi |
| 17014 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 17015 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17016 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17017 | { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 17018 | 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] | 17019 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17021 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17022 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17023 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17024 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17025 | /* confdefs.h. */ |
| 17026 | _ACEOF |
| 17027 | cat confdefs.h >>conftest.$ac_ext |
| 17028 | cat >>conftest.$ac_ext <<_ACEOF |
| 17029 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17030 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17031 | /* Override any GCC internal prototype to avoid an error. |
| 17032 | Use char because int might match the return type of a GCC |
| 17033 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17034 | #ifdef __cplusplus |
| 17035 | extern "C" |
| 17036 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17037 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17038 | int |
| 17039 | main () |
| 17040 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17041 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17042 | ; |
| 17043 | return 0; |
| 17044 | } |
| 17045 | _ACEOF |
| 17046 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17047 | if { (ac_try="$ac_link" |
| 17048 | case "(($ac_try" in |
| 17049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17050 | *) ac_try_echo=$ac_try;; |
| 17051 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17053 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17054 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17055 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17056 | rm -f conftest.er1 |
| 17057 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17059 | (exit $ac_status); } && { |
| 17060 | test -z "$ac_c_werror_flag" || |
| 17061 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17062 | } && test -s conftest$ac_exeext && |
| 17063 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17064 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17065 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17066 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17068 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17069 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17070 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17071 | |
| 17072 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17073 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17074 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17075 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17076 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 17077 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; } |
| 17078 | if test $ac_cv_lib_mpc_usconfig = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17079 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17080 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17081 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17082 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17083 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 17084 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17085 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17086 | fi |
| 17087 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17088 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 17089 | if test "$posix_threads" != "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17090 | { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 17091 | 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] | 17092 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17094 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17095 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17096 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17097 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17098 | /* confdefs.h. */ |
| 17099 | _ACEOF |
| 17100 | cat confdefs.h >>conftest.$ac_ext |
| 17101 | cat >>conftest.$ac_ext <<_ACEOF |
| 17102 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17103 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17104 | /* Override any GCC internal prototype to avoid an error. |
| 17105 | Use char because int might match the return type of a GCC |
| 17106 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17107 | #ifdef __cplusplus |
| 17108 | extern "C" |
| 17109 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17110 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17111 | int |
| 17112 | main () |
| 17113 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17114 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17115 | ; |
| 17116 | return 0; |
| 17117 | } |
| 17118 | _ACEOF |
| 17119 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17120 | if { (ac_try="$ac_link" |
| 17121 | case "(($ac_try" in |
| 17122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17123 | *) ac_try_echo=$ac_try;; |
| 17124 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17126 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17127 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17128 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17129 | rm -f conftest.er1 |
| 17130 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17132 | (exit $ac_status); } && { |
| 17133 | test -z "$ac_c_werror_flag" || |
| 17134 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17135 | } && test -s conftest$ac_exeext && |
| 17136 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17137 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17138 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17139 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17141 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17142 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17143 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17144 | |
| 17145 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17146 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17147 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17148 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17149 | { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 17150 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; } |
| 17151 | if test $ac_cv_lib_thread_thr_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17152 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17153 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17154 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17155 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17156 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 17157 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17158 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17159 | fi |
| 17160 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17161 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17162 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17163 | if test "$USE_THREAD_MODULE" != "#" |
| 17164 | then |
| 17165 | # If the above checks didn't disable threads, (at least) OSF1 |
| 17166 | # needs this '-threads' argument during linking. |
| 17167 | case $ac_sys_system in |
| 17168 | OSF1) LDLAST=-threads;; |
| 17169 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 17170 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17171 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17172 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17173 | if test "$posix_threads" = "yes"; then |
| 17174 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17175 | |
| 17176 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17177 | #define _POSIX_THREADS 1 |
| 17178 | _ACEOF |
| 17179 | |
| 17180 | fi |
| 17181 | |
| 17182 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 17183 | case $ac_sys_system/$ac_sys_release in |
| 17184 | SunOS/5.6) |
| 17185 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17186 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 17187 | _ACEOF |
| 17188 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17189 | ;; |
| 17190 | SunOS/5.8) |
| 17191 | cat >>confdefs.h <<\_ACEOF |
| 17192 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 17193 | _ACEOF |
| 17194 | |
| 17195 | ;; |
Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 17196 | AIX/5) |
| 17197 | cat >>confdefs.h <<\_ACEOF |
| 17198 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 17199 | _ACEOF |
| 17200 | |
| 17201 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17202 | esac |
| 17203 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17204 | { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 17205 | 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] | 17206 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17208 | else |
| 17209 | if test "$cross_compiling" = yes; then |
| 17210 | ac_cv_pthread_system_supported=no |
| 17211 | else |
| 17212 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17213 | /* confdefs.h. */ |
| 17214 | _ACEOF |
| 17215 | cat confdefs.h >>conftest.$ac_ext |
| 17216 | cat >>conftest.$ac_ext <<_ACEOF |
| 17217 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17218 | #include <pthread.h> |
| 17219 | void *foo(void *parm) { |
| 17220 | return NULL; |
| 17221 | } |
| 17222 | main() { |
| 17223 | pthread_attr_t attr; |
| 17224 | pthread_t id; |
| 17225 | if (pthread_attr_init(&attr)) exit(-1); |
| 17226 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 17227 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 17228 | exit(0); |
| 17229 | } |
| 17230 | _ACEOF |
| 17231 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17232 | if { (ac_try="$ac_link" |
| 17233 | case "(($ac_try" in |
| 17234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17235 | *) ac_try_echo=$ac_try;; |
| 17236 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17238 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17239 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17241 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17242 | { (case "(($ac_try" in |
| 17243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17244 | *) ac_try_echo=$ac_try;; |
| 17245 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17247 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17248 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17250 | (exit $ac_status); }; }; then |
| 17251 | ac_cv_pthread_system_supported=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 | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17257 | ( exit $ac_status ) |
| 17258 | ac_cv_pthread_system_supported=no |
| 17259 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17260 | 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] | 17261 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17262 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17263 | |
| 17264 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17265 | fi |
| 17266 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17267 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 17268 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17269 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 17270 | |
| 17271 | cat >>confdefs.h <<\_ACEOF |
| 17272 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 17273 | _ACEOF |
| 17274 | |
| 17275 | fi |
| 17276 | |
| 17277 | for ac_func in pthread_sigmask |
| 17278 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17279 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17280 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17281 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17282 | 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] | 17283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17284 | else |
| 17285 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17286 | /* confdefs.h. */ |
| 17287 | _ACEOF |
| 17288 | cat confdefs.h >>conftest.$ac_ext |
| 17289 | cat >>conftest.$ac_ext <<_ACEOF |
| 17290 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17291 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17292 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17293 | #define $ac_func innocuous_$ac_func |
| 17294 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17295 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17296 | which can conflict with char $ac_func (); below. |
| 17297 | 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] | 17298 | <limits.h> exists even on freestanding compilers. */ |
| 17299 | |
| 17300 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17301 | # include <limits.h> |
| 17302 | #else |
| 17303 | # include <assert.h> |
| 17304 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17305 | |
| 17306 | #undef $ac_func |
| 17307 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17308 | /* Override any GCC internal prototype to avoid an error. |
| 17309 | Use char because int might match the return type of a GCC |
| 17310 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17311 | #ifdef __cplusplus |
| 17312 | extern "C" |
| 17313 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17314 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17315 | /* The GNU C library defines this for functions which it implements |
| 17316 | to always fail with ENOSYS. Some functions are actually named |
| 17317 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17318 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17319 | choke me |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17320 | #endif |
| 17321 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17322 | int |
| 17323 | main () |
| 17324 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17325 | return $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17326 | ; |
| 17327 | return 0; |
| 17328 | } |
| 17329 | _ACEOF |
| 17330 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17331 | if { (ac_try="$ac_link" |
| 17332 | case "(($ac_try" in |
| 17333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17334 | *) ac_try_echo=$ac_try;; |
| 17335 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17337 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17338 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17339 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17340 | rm -f conftest.er1 |
| 17341 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17343 | (exit $ac_status); } && { |
| 17344 | test -z "$ac_c_werror_flag" || |
| 17345 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17346 | } && test -s conftest$ac_exeext && |
| 17347 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17348 | eval "$as_ac_var=yes" |
| 17349 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17350 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17352 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17353 | eval "$as_ac_var=no" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17354 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17355 | |
| 17356 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17357 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17358 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17359 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17360 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17361 | echo "${ECHO_T}$ac_res" >&6; } |
| 17362 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17363 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17364 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17365 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 17366 | case $ac_sys_system in |
| 17367 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17368 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 17369 | cat >>confdefs.h <<\_ACEOF |
| 17370 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 17371 | _ACEOF |
| 17372 | |
| 17373 | ;; |
| 17374 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17375 | fi |
| 17376 | done |
| 17377 | |
| 17378 | fi |
| 17379 | |
| 17380 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17381 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17382 | |
| 17383 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17384 | { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 17385 | 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] | 17386 | # Check whether --enable-ipv6 was given. |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17387 | if test "${enable_ipv6+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17388 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17389 | no) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17390 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17391 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17392 | ipv6=no |
| 17393 | ;; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17394 | *) { echo "$as_me:$LINENO: result: yes" >&5 |
| 17395 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17396 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17397 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17398 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17399 | |
| 17400 | ipv6=yes |
| 17401 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17402 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17403 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17404 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17405 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17406 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17407 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17408 | ipv6=no |
| 17409 | |
| 17410 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17411 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17412 | /* confdefs.h. */ |
| 17413 | _ACEOF |
| 17414 | cat confdefs.h >>conftest.$ac_ext |
| 17415 | cat >>conftest.$ac_ext <<_ACEOF |
| 17416 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17417 | /* AF_INET6 available check */ |
| 17418 | #include <sys/types.h> |
| 17419 | #include <sys/socket.h> |
| 17420 | main() |
| 17421 | { |
| 17422 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 17423 | exit(1); |
| 17424 | else |
| 17425 | exit(0); |
| 17426 | } |
| 17427 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17428 | _ACEOF |
| 17429 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17430 | if { (ac_try="$ac_link" |
| 17431 | case "(($ac_try" in |
| 17432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17433 | *) ac_try_echo=$ac_try;; |
| 17434 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17436 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17437 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17439 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17440 | { (case "(($ac_try" in |
| 17441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17442 | *) ac_try_echo=$ac_try;; |
| 17443 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17445 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17446 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17448 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17449 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17450 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17451 | ipv6=yes |
| 17452 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17453 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17454 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17456 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17457 | ( exit $ac_status ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17458 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17459 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17460 | ipv6=no |
| 17461 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17462 | 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] | 17463 | fi |
| 17464 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17465 | |
| 17466 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17467 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17468 | { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 17469 | 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] | 17470 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17471 | /* confdefs.h. */ |
| 17472 | _ACEOF |
| 17473 | cat confdefs.h >>conftest.$ac_ext |
| 17474 | cat >>conftest.$ac_ext <<_ACEOF |
| 17475 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17476 | #include <sys/types.h> |
| 17477 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17478 | int |
| 17479 | main () |
| 17480 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17481 | struct sockaddr_in6 x; |
| 17482 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17483 | ; |
| 17484 | return 0; |
| 17485 | } |
| 17486 | _ACEOF |
| 17487 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17488 | if { (ac_try="$ac_compile" |
| 17489 | case "(($ac_try" in |
| 17490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17491 | *) ac_try_echo=$ac_try;; |
| 17492 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17494 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17495 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17496 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17497 | rm -f conftest.er1 |
| 17498 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17500 | (exit $ac_status); } && { |
| 17501 | test -z "$ac_c_werror_flag" || |
| 17502 | test ! -s conftest.err |
| 17503 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17504 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17505 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17506 | ipv6=yes |
| 17507 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17508 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17510 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17511 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17512 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17513 | ipv6=no |
| 17514 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17515 | |
| 17516 | 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] | 17517 | fi |
| 17518 | |
| 17519 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17520 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17521 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17522 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17523 | |
| 17524 | fi |
| 17525 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17526 | fi |
| 17527 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17528 | |
| 17529 | ipv6type=unknown |
| 17530 | ipv6lib=none |
| 17531 | ipv6trylibc=no |
| 17532 | |
| 17533 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17534 | { echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 17535 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 17536 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 17537 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17538 | case $i in |
| 17539 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17540 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17541 | /* confdefs.h. */ |
| 17542 | _ACEOF |
| 17543 | cat confdefs.h >>conftest.$ac_ext |
| 17544 | cat >>conftest.$ac_ext <<_ACEOF |
| 17545 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17546 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17547 | #include <netinet/in.h> |
| 17548 | #ifdef IPV6_INRIA_VERSION |
| 17549 | yes |
| 17550 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17551 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17552 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17553 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17554 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17555 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 17556 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17557 | |
| 17558 | ;; |
| 17559 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17560 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17561 | /* confdefs.h. */ |
| 17562 | _ACEOF |
| 17563 | cat confdefs.h >>conftest.$ac_ext |
| 17564 | cat >>conftest.$ac_ext <<_ACEOF |
| 17565 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17566 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17567 | #include <netinet/in.h> |
| 17568 | #ifdef __KAME__ |
| 17569 | yes |
| 17570 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17571 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17572 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17573 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17574 | ipv6type=$i; |
| 17575 | ipv6lib=inet6 |
| 17576 | ipv6libdir=/usr/local/v6/lib |
| 17577 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17578 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 17579 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17580 | |
| 17581 | ;; |
| 17582 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17583 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17584 | /* confdefs.h. */ |
| 17585 | _ACEOF |
| 17586 | cat confdefs.h >>conftest.$ac_ext |
| 17587 | cat >>conftest.$ac_ext <<_ACEOF |
| 17588 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17589 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17590 | #include <features.h> |
| 17591 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 17592 | yes |
| 17593 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17594 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17595 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17596 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17597 | ipv6type=$i; |
| 17598 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17599 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 17600 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17601 | |
| 17602 | ;; |
| 17603 | linux-inet6) |
| 17604 | if test -d /usr/inet6; then |
| 17605 | ipv6type=$i |
| 17606 | ipv6lib=inet6 |
| 17607 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17608 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17609 | fi |
| 17610 | ;; |
| 17611 | solaris) |
| 17612 | if test -f /etc/netconfig; then |
| 17613 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 17614 | ipv6type=$i |
| 17615 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17616 | fi |
| 17617 | fi |
| 17618 | ;; |
| 17619 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17620 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17621 | /* confdefs.h. */ |
| 17622 | _ACEOF |
| 17623 | cat confdefs.h >>conftest.$ac_ext |
| 17624 | cat >>conftest.$ac_ext <<_ACEOF |
| 17625 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17626 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17627 | #include <sys/param.h> |
| 17628 | #ifdef _TOSHIBA_INET6 |
| 17629 | yes |
| 17630 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17631 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17632 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17633 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17634 | ipv6type=$i; |
| 17635 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17636 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17637 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 17638 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17639 | |
| 17640 | ;; |
| 17641 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17642 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17643 | /* confdefs.h. */ |
| 17644 | _ACEOF |
| 17645 | cat confdefs.h >>conftest.$ac_ext |
| 17646 | cat >>conftest.$ac_ext <<_ACEOF |
| 17647 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17648 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17649 | #include </usr/local/v6/include/sys/v6config.h> |
| 17650 | #ifdef __V6D__ |
| 17651 | yes |
| 17652 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17653 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17654 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17655 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17656 | ipv6type=$i; |
| 17657 | ipv6lib=v6; |
| 17658 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17659 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17660 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 17661 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17662 | |
| 17663 | ;; |
| 17664 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17665 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17666 | /* confdefs.h. */ |
| 17667 | _ACEOF |
| 17668 | cat confdefs.h >>conftest.$ac_ext |
| 17669 | cat >>conftest.$ac_ext <<_ACEOF |
| 17670 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17671 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17672 | #include <sys/param.h> |
| 17673 | #ifdef _ZETA_MINAMI_INET6 |
| 17674 | yes |
| 17675 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17676 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17677 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17678 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17679 | ipv6type=$i; |
| 17680 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17681 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17682 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 17683 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17684 | |
| 17685 | ;; |
| 17686 | esac |
| 17687 | if test "$ipv6type" != "unknown"; then |
| 17688 | break |
| 17689 | fi |
| 17690 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17691 | { echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 17692 | echo "${ECHO_T}$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17693 | fi |
| 17694 | |
| 17695 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 17696 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 17697 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 17698 | echo "using lib$ipv6lib" |
| 17699 | else |
| 17700 | if test $ipv6trylibc = "yes"; then |
| 17701 | echo "using libc" |
| 17702 | else |
| 17703 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 17704 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 17705 | echo 'ipv6 kit and compile beforehand.' |
| 17706 | exit 1 |
| 17707 | fi |
| 17708 | fi |
| 17709 | fi |
| 17710 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17711 | { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5 |
| 17712 | 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] | 17713 | cat >conftest.$ac_ext <<_ACEOF |
| 17714 | /* confdefs.h. */ |
| 17715 | _ACEOF |
| 17716 | cat confdefs.h >>conftest.$ac_ext |
| 17717 | cat >>conftest.$ac_ext <<_ACEOF |
| 17718 | /* end confdefs.h. */ |
| 17719 | #include <Carbon/Carbon.h> |
| 17720 | int |
| 17721 | main () |
| 17722 | { |
| 17723 | FSIORefNum fRef = 0 |
| 17724 | ; |
| 17725 | return 0; |
| 17726 | } |
| 17727 | _ACEOF |
| 17728 | rm -f conftest.$ac_objext |
| 17729 | if { (ac_try="$ac_compile" |
| 17730 | case "(($ac_try" in |
| 17731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17732 | *) ac_try_echo=$ac_try;; |
| 17733 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17735 | (eval "$ac_compile") 2>conftest.er1 |
| 17736 | ac_status=$? |
| 17737 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17738 | rm -f conftest.er1 |
| 17739 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17741 | (exit $ac_status); } && { |
| 17742 | test -z "$ac_c_werror_flag" || |
| 17743 | test ! -s conftest.err |
| 17744 | } && test -s conftest.$ac_objext; then |
| 17745 | |
| 17746 | cat >>confdefs.h <<\_ACEOF |
| 17747 | #define HAVE_OSX105_SDK 1 |
| 17748 | _ACEOF |
| 17749 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17750 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17751 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17752 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17753 | echo "$as_me: failed program was:" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17755 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17756 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17757 | echo "${ECHO_T}no" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17758 | |
| 17759 | fi |
| 17760 | |
| 17761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17762 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17763 | # Check for --with-doc-strings |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17764 | { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 17765 | 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] | 17766 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17767 | # Check whether --with-doc-strings was given. |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17768 | if test "${with_doc_strings+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17769 | withval=$with_doc_strings; |
| 17770 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17771 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17772 | |
| 17773 | if test -z "$with_doc_strings" |
| 17774 | then with_doc_strings="yes" |
| 17775 | fi |
| 17776 | if test "$with_doc_strings" != "no" |
| 17777 | then |
| 17778 | |
| 17779 | cat >>confdefs.h <<\_ACEOF |
| 17780 | #define WITH_DOC_STRINGS 1 |
| 17781 | _ACEOF |
| 17782 | |
| 17783 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17784 | { echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 17785 | echo "${ECHO_T}$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17786 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17787 | # Check for Python-specific malloc support |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17788 | { echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 17789 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17790 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17791 | # Check whether --with-tsc was given. |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17792 | if test "${with_tsc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17793 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17794 | if test "$withval" != no |
| 17795 | then |
| 17796 | |
| 17797 | cat >>confdefs.h <<\_ACEOF |
| 17798 | #define WITH_TSC 1 |
| 17799 | _ACEOF |
| 17800 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17801 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17802 | echo "${ECHO_T}yes" >&6; } |
| 17803 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 17804 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17805 | fi |
| 17806 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17807 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17808 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17809 | fi |
| 17810 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17811 | |
| 17812 | # Check for Python-specific malloc support |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17813 | { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 17814 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17815 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17816 | # Check whether --with-pymalloc was given. |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17817 | if test "${with_pymalloc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17818 | withval=$with_pymalloc; |
| 17819 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17820 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17821 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17822 | if test -z "$with_pymalloc" |
| 17823 | then with_pymalloc="yes" |
| 17824 | fi |
| 17825 | if test "$with_pymalloc" != "no" |
| 17826 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17827 | |
| 17828 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17829 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17830 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17831 | |
| 17832 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17833 | { echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 17834 | echo "${ECHO_T}$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17835 | |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 17836 | # Check for Valgrind support |
| 17837 | { echo "$as_me:$LINENO: checking for --with-valgrind" >&5 |
| 17838 | echo $ECHO_N "checking for --with-valgrind... $ECHO_C" >&6; } |
| 17839 | |
| 17840 | # Check whether --with-valgrind was given. |
| 17841 | if test "${with_valgrind+set}" = set; then |
| 17842 | withval=$with_valgrind; |
| 17843 | else |
| 17844 | with_valgrind=no |
| 17845 | fi |
| 17846 | |
| 17847 | { echo "$as_me:$LINENO: result: $with_valgrind" >&5 |
| 17848 | echo "${ECHO_T}$with_valgrind" >&6; } |
| 17849 | if test "$with_valgrind" != no; then |
| 17850 | if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 17851 | { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5 |
| 17852 | echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; } |
| 17853 | if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 17854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17855 | fi |
| 17856 | { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5 |
| 17857 | echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; } |
| 17858 | else |
| 17859 | # Is the header compilable? |
| 17860 | { echo "$as_me:$LINENO: checking valgrind/valgrind.h usability" >&5 |
| 17861 | echo $ECHO_N "checking valgrind/valgrind.h usability... $ECHO_C" >&6; } |
| 17862 | cat >conftest.$ac_ext <<_ACEOF |
| 17863 | /* confdefs.h. */ |
| 17864 | _ACEOF |
| 17865 | cat confdefs.h >>conftest.$ac_ext |
| 17866 | cat >>conftest.$ac_ext <<_ACEOF |
| 17867 | /* end confdefs.h. */ |
| 17868 | $ac_includes_default |
| 17869 | #include <valgrind/valgrind.h> |
| 17870 | _ACEOF |
| 17871 | rm -f conftest.$ac_objext |
| 17872 | if { (ac_try="$ac_compile" |
| 17873 | case "(($ac_try" in |
| 17874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17875 | *) ac_try_echo=$ac_try;; |
| 17876 | esac |
| 17877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17878 | (eval "$ac_compile") 2>conftest.er1 |
| 17879 | ac_status=$? |
| 17880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17881 | rm -f conftest.er1 |
| 17882 | cat conftest.err >&5 |
| 17883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17884 | (exit $ac_status); } && { |
| 17885 | test -z "$ac_c_werror_flag" || |
| 17886 | test ! -s conftest.err |
| 17887 | } && test -s conftest.$ac_objext; then |
| 17888 | ac_header_compiler=yes |
| 17889 | else |
| 17890 | echo "$as_me: failed program was:" >&5 |
| 17891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17892 | |
| 17893 | ac_header_compiler=no |
| 17894 | fi |
| 17895 | |
| 17896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17897 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17898 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 17899 | |
| 17900 | # Is the header present? |
| 17901 | { echo "$as_me:$LINENO: checking valgrind/valgrind.h presence" >&5 |
| 17902 | echo $ECHO_N "checking valgrind/valgrind.h presence... $ECHO_C" >&6; } |
| 17903 | cat >conftest.$ac_ext <<_ACEOF |
| 17904 | /* confdefs.h. */ |
| 17905 | _ACEOF |
| 17906 | cat confdefs.h >>conftest.$ac_ext |
| 17907 | cat >>conftest.$ac_ext <<_ACEOF |
| 17908 | /* end confdefs.h. */ |
| 17909 | #include <valgrind/valgrind.h> |
| 17910 | _ACEOF |
| 17911 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17912 | case "(($ac_try" in |
| 17913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17914 | *) ac_try_echo=$ac_try;; |
| 17915 | esac |
| 17916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17917 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 17918 | ac_status=$? |
| 17919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17920 | rm -f conftest.er1 |
| 17921 | cat conftest.err >&5 |
| 17922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17923 | (exit $ac_status); } >/dev/null && { |
| 17924 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 17925 | test ! -s conftest.err |
| 17926 | }; then |
| 17927 | ac_header_preproc=yes |
| 17928 | else |
| 17929 | echo "$as_me: failed program was:" >&5 |
| 17930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17931 | |
| 17932 | ac_header_preproc=no |
| 17933 | fi |
| 17934 | |
| 17935 | rm -f conftest.err conftest.$ac_ext |
| 17936 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17937 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 17938 | |
| 17939 | # So? What about this header? |
| 17940 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17941 | yes:no: ) |
| 17942 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17943 | echo "$as_me: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17944 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&5 |
| 17945 | echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&2;} |
| 17946 | ac_header_preproc=yes |
| 17947 | ;; |
| 17948 | no:yes:* ) |
| 17949 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&5 |
| 17950 | echo "$as_me: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&2;} |
| 17951 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&5 |
| 17952 | echo "$as_me: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&2;} |
| 17953 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&5 |
| 17954 | echo "$as_me: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&2;} |
| 17955 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 17956 | echo "$as_me: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17957 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&5 |
| 17958 | echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&2;} |
| 17959 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&5 |
| 17960 | echo "$as_me: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&2;} |
| 17961 | ( cat <<\_ASBOX |
| 17962 | ## -------------------------------------- ## |
| 17963 | ## Report this to http://bugs.python.org/ ## |
| 17964 | ## -------------------------------------- ## |
| 17965 | _ASBOX |
| 17966 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 17967 | ;; |
| 17968 | esac |
| 17969 | { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5 |
| 17970 | echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; } |
| 17971 | if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 17972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17973 | else |
| 17974 | ac_cv_header_valgrind_valgrind_h=$ac_header_preproc |
| 17975 | fi |
| 17976 | { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5 |
| 17977 | echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; } |
| 17978 | |
| 17979 | fi |
| 17980 | if test $ac_cv_header_valgrind_valgrind_h = yes; then |
| 17981 | |
| 17982 | cat >>confdefs.h <<\_ACEOF |
| 17983 | #define WITH_VALGRIND 1 |
| 17984 | _ACEOF |
| 17985 | |
| 17986 | else |
| 17987 | { { echo "$as_me:$LINENO: error: Valgrind support requested but headers not available" >&5 |
| 17988 | echo "$as_me: error: Valgrind support requested but headers not available" >&2;} |
| 17989 | { (exit 1); exit 1; }; } |
| 17990 | |
| 17991 | fi |
| 17992 | |
| 17993 | |
| 17994 | fi |
| 17995 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17996 | # Check for --with-wctype-functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17997 | { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 17998 | 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] | 17999 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18000 | # Check whether --with-wctype-functions was given. |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18001 | if test "${with_wctype_functions+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18002 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18003 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18004 | then |
| 18005 | |
| 18006 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18007 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18008 | _ACEOF |
| 18009 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18010 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18011 | echo "${ECHO_T}yes" >&6; } |
| 18012 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 18013 | echo "${ECHO_T}no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18014 | fi |
| 18015 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18016 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18017 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18018 | fi |
| 18019 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18020 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18021 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18022 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 18023 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18024 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18025 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 18026 | # 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] | 18027 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18028 | for ac_func in dlopen |
| 18029 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18030 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18031 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18032 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18033 | 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] | 18034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18035 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18036 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18037 | /* confdefs.h. */ |
| 18038 | _ACEOF |
| 18039 | cat confdefs.h >>conftest.$ac_ext |
| 18040 | cat >>conftest.$ac_ext <<_ACEOF |
| 18041 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18042 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18043 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18044 | #define $ac_func innocuous_$ac_func |
| 18045 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18046 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18047 | which can conflict with char $ac_func (); below. |
| 18048 | 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] | 18049 | <limits.h> exists even on freestanding compilers. */ |
| 18050 | |
| 18051 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18052 | # include <limits.h> |
| 18053 | #else |
| 18054 | # include <assert.h> |
| 18055 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18056 | |
| 18057 | #undef $ac_func |
| 18058 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18059 | /* Override any GCC internal prototype to avoid an error. |
| 18060 | Use char because int might match the return type of a GCC |
| 18061 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18062 | #ifdef __cplusplus |
| 18063 | extern "C" |
| 18064 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18065 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18066 | /* The GNU C library defines this for functions which it implements |
| 18067 | to always fail with ENOSYS. Some functions are actually named |
| 18068 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18069 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18070 | choke me |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18071 | #endif |
| 18072 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18073 | int |
| 18074 | main () |
| 18075 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18076 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18077 | ; |
| 18078 | return 0; |
| 18079 | } |
| 18080 | _ACEOF |
| 18081 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18082 | if { (ac_try="$ac_link" |
| 18083 | case "(($ac_try" in |
| 18084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18085 | *) ac_try_echo=$ac_try;; |
| 18086 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18088 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18089 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18090 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18091 | rm -f conftest.er1 |
| 18092 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18094 | (exit $ac_status); } && { |
| 18095 | test -z "$ac_c_werror_flag" || |
| 18096 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18097 | } && test -s conftest$ac_exeext && |
| 18098 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18099 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18100 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18101 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18103 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18104 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18105 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18106 | |
| 18107 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18108 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18109 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18110 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18111 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18112 | echo "${ECHO_T}$ac_res" >&6; } |
| 18113 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18114 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18115 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18116 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18117 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18118 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18119 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18120 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18121 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18122 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 18123 | # loading of modules. |
| 18124 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18125 | { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 18126 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18127 | if test -z "$DYNLOADFILE" |
| 18128 | then |
| 18129 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 18130 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 18131 | if test "$ac_cv_func_dlopen" = yes |
| 18132 | then DYNLOADFILE="dynload_shlib.o" |
| 18133 | else DYNLOADFILE="dynload_aix.o" |
| 18134 | fi |
| 18135 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18136 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 18137 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 18138 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 18139 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 18140 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18141 | *) |
| 18142 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 18143 | # out any dynamic loading |
| 18144 | if test "$ac_cv_func_dlopen" = yes |
| 18145 | then DYNLOADFILE="dynload_shlib.o" |
| 18146 | else DYNLOADFILE="dynload_stub.o" |
| 18147 | fi |
| 18148 | ;; |
| 18149 | esac |
| 18150 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18151 | { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 18152 | echo "${ECHO_T}$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18153 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 18154 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18155 | |
| 18156 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18157 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18158 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18159 | |
| 18160 | fi |
| 18161 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18162 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 18163 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18164 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18165 | { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 18166 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18167 | if test -z "$MACHDEP_OBJS" |
| 18168 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 18169 | MACHDEP_OBJS=$extra_machdep_objs |
| 18170 | else |
| 18171 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18172 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18173 | { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 18174 | echo "${ECHO_T}MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18175 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18176 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18177 | |
| 18178 | |
| 18179 | |
| 18180 | |
| 18181 | |
| 18182 | |
| 18183 | |
| 18184 | |
| 18185 | |
| 18186 | |
| 18187 | |
| 18188 | |
| 18189 | |
| 18190 | |
| 18191 | |
| 18192 | |
| 18193 | |
| 18194 | |
| 18195 | |
| 18196 | |
| 18197 | |
| 18198 | |
| 18199 | |
| 18200 | |
| 18201 | |
| 18202 | |
| 18203 | |
| 18204 | |
| 18205 | |
| 18206 | |
| 18207 | |
| 18208 | |
| 18209 | |
| 18210 | |
| 18211 | |
| 18212 | |
| 18213 | |
| 18214 | |
| 18215 | |
| 18216 | |
| 18217 | |
| 18218 | |
| 18219 | |
| 18220 | |
| 18221 | |
| 18222 | |
| 18223 | |
| 18224 | |
| 18225 | |
| 18226 | |
| 18227 | |
| 18228 | |
| 18229 | |
| 18230 | |
| 18231 | |
| 18232 | |
| 18233 | |
| 18234 | |
| 18235 | |
| 18236 | |
| 18237 | |
| 18238 | |
| 18239 | |
| 18240 | |
| 18241 | |
| 18242 | |
| 18243 | |
| 18244 | |
| 18245 | |
| 18246 | |
| 18247 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 18248 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 18249 | |
| 18250 | |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 18251 | |
| 18252 | |
Martin v. Löwis | 382abef | 2007-02-19 10:55:19 +0000 | [diff] [blame] | 18253 | |
| 18254 | |
Christian Heimes | 3628187 | 2007-11-30 21:11:28 +0000 | [diff] [blame] | 18255 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 18256 | |
| 18257 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 18258 | |
| 18259 | |
| 18260 | |
| 18261 | |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 18262 | |
| 18263 | |
| 18264 | |
| 18265 | |
| 18266 | |
| 18267 | |
| 18268 | |
| 18269 | |
| 18270 | |
| 18271 | |
| 18272 | |
| 18273 | |
| 18274 | |
Antoine Pitrou | 30b3b35 | 2009-12-02 20:37:54 +0000 | [diff] [blame] | 18275 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 18276 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 18277 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 18278 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 18279 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ |
Antoine Pitrou | 30b3b35 | 2009-12-02 20:37:54 +0000 | [diff] [blame] | 18280 | initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 18281 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 18282 | putenv readlink realpath \ |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 18283 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ |
| 18284 | setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 18285 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 18286 | setlocale setregid setreuid setresuid setresgid \ |
| 18287 | setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 18288 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 18289 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 18290 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18291 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18292 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18293 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18294 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18295 | 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] | 18296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18297 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18298 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18299 | /* confdefs.h. */ |
| 18300 | _ACEOF |
| 18301 | cat confdefs.h >>conftest.$ac_ext |
| 18302 | cat >>conftest.$ac_ext <<_ACEOF |
| 18303 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18304 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18305 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18306 | #define $ac_func innocuous_$ac_func |
| 18307 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18308 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18309 | which can conflict with char $ac_func (); below. |
| 18310 | 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] | 18311 | <limits.h> exists even on freestanding compilers. */ |
| 18312 | |
| 18313 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18314 | # include <limits.h> |
| 18315 | #else |
| 18316 | # include <assert.h> |
| 18317 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18318 | |
| 18319 | #undef $ac_func |
| 18320 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18321 | /* Override any GCC internal prototype to avoid an error. |
| 18322 | Use char because int might match the return type of a GCC |
| 18323 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18324 | #ifdef __cplusplus |
| 18325 | extern "C" |
| 18326 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18327 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18328 | /* The GNU C library defines this for functions which it implements |
| 18329 | to always fail with ENOSYS. Some functions are actually named |
| 18330 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18331 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18332 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18333 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18334 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18335 | int |
| 18336 | main () |
| 18337 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18338 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18339 | ; |
| 18340 | return 0; |
| 18341 | } |
| 18342 | _ACEOF |
| 18343 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18344 | if { (ac_try="$ac_link" |
| 18345 | case "(($ac_try" in |
| 18346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18347 | *) ac_try_echo=$ac_try;; |
| 18348 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18350 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18351 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18353 | rm -f conftest.er1 |
| 18354 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18356 | (exit $ac_status); } && { |
| 18357 | test -z "$ac_c_werror_flag" || |
| 18358 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18359 | } && test -s conftest$ac_exeext && |
| 18360 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18361 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18362 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18363 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18365 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18366 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18367 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18368 | |
| 18369 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18370 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18371 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18372 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18373 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18374 | echo "${ECHO_T}$ac_res" >&6; } |
| 18375 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18376 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18377 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18378 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18379 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18380 | fi |
| 18381 | done |
| 18382 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18383 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18384 | # For some functions, having a definition is not sufficient, since |
| 18385 | # we want to take their address. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18386 | { echo "$as_me:$LINENO: checking for chroot" >&5 |
| 18387 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18388 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18389 | /* confdefs.h. */ |
| 18390 | _ACEOF |
| 18391 | cat confdefs.h >>conftest.$ac_ext |
| 18392 | cat >>conftest.$ac_ext <<_ACEOF |
| 18393 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18394 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18395 | int |
| 18396 | main () |
| 18397 | { |
| 18398 | void *x=chroot |
| 18399 | ; |
| 18400 | return 0; |
| 18401 | } |
| 18402 | _ACEOF |
| 18403 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18404 | if { (ac_try="$ac_compile" |
| 18405 | case "(($ac_try" in |
| 18406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18407 | *) ac_try_echo=$ac_try;; |
| 18408 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18410 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18411 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18413 | rm -f conftest.er1 |
| 18414 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18416 | (exit $ac_status); } && { |
| 18417 | test -z "$ac_c_werror_flag" || |
| 18418 | test ! -s conftest.err |
| 18419 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18420 | |
| 18421 | cat >>confdefs.h <<\_ACEOF |
| 18422 | #define HAVE_CHROOT 1 |
| 18423 | _ACEOF |
| 18424 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18425 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18426 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18427 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18428 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18429 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18430 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18431 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18432 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18433 | |
| 18434 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18435 | |
| 18436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18437 | { echo "$as_me:$LINENO: checking for link" >&5 |
| 18438 | echo $ECHO_N "checking for link... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18439 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18440 | /* confdefs.h. */ |
| 18441 | _ACEOF |
| 18442 | cat confdefs.h >>conftest.$ac_ext |
| 18443 | cat >>conftest.$ac_ext <<_ACEOF |
| 18444 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18445 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18446 | int |
| 18447 | main () |
| 18448 | { |
| 18449 | void *x=link |
| 18450 | ; |
| 18451 | return 0; |
| 18452 | } |
| 18453 | _ACEOF |
| 18454 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18455 | if { (ac_try="$ac_compile" |
| 18456 | case "(($ac_try" in |
| 18457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18458 | *) ac_try_echo=$ac_try;; |
| 18459 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18461 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18462 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18463 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18464 | rm -f conftest.er1 |
| 18465 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18467 | (exit $ac_status); } && { |
| 18468 | test -z "$ac_c_werror_flag" || |
| 18469 | test ! -s conftest.err |
| 18470 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18471 | |
| 18472 | cat >>confdefs.h <<\_ACEOF |
| 18473 | #define HAVE_LINK 1 |
| 18474 | _ACEOF |
| 18475 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18476 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18477 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18478 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18479 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18481 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18482 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18483 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18484 | |
| 18485 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18486 | |
| 18487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18488 | { echo "$as_me:$LINENO: checking for symlink" >&5 |
| 18489 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18490 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18491 | /* confdefs.h. */ |
| 18492 | _ACEOF |
| 18493 | cat confdefs.h >>conftest.$ac_ext |
| 18494 | cat >>conftest.$ac_ext <<_ACEOF |
| 18495 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18496 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18497 | int |
| 18498 | main () |
| 18499 | { |
| 18500 | void *x=symlink |
| 18501 | ; |
| 18502 | return 0; |
| 18503 | } |
| 18504 | _ACEOF |
| 18505 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18506 | if { (ac_try="$ac_compile" |
| 18507 | case "(($ac_try" in |
| 18508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18509 | *) ac_try_echo=$ac_try;; |
| 18510 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18512 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18513 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18514 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18515 | rm -f conftest.er1 |
| 18516 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18518 | (exit $ac_status); } && { |
| 18519 | test -z "$ac_c_werror_flag" || |
| 18520 | test ! -s conftest.err |
| 18521 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18522 | |
| 18523 | cat >>confdefs.h <<\_ACEOF |
| 18524 | #define HAVE_SYMLINK 1 |
| 18525 | _ACEOF |
| 18526 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18527 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18528 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18529 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18530 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18532 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18533 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18534 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18535 | |
| 18536 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18537 | |
| 18538 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18539 | { echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 18540 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18541 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18542 | /* confdefs.h. */ |
| 18543 | _ACEOF |
| 18544 | cat confdefs.h >>conftest.$ac_ext |
| 18545 | cat >>conftest.$ac_ext <<_ACEOF |
| 18546 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18547 | #include <unistd.h> |
| 18548 | int |
| 18549 | main () |
| 18550 | { |
| 18551 | void *x=fchdir |
| 18552 | ; |
| 18553 | return 0; |
| 18554 | } |
| 18555 | _ACEOF |
| 18556 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18557 | if { (ac_try="$ac_compile" |
| 18558 | case "(($ac_try" in |
| 18559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18560 | *) ac_try_echo=$ac_try;; |
| 18561 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18563 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18564 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18566 | rm -f conftest.er1 |
| 18567 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18569 | (exit $ac_status); } && { |
| 18570 | test -z "$ac_c_werror_flag" || |
| 18571 | test ! -s conftest.err |
| 18572 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18573 | |
| 18574 | cat >>confdefs.h <<\_ACEOF |
| 18575 | #define HAVE_FCHDIR 1 |
| 18576 | _ACEOF |
| 18577 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18578 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18579 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18580 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18581 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18583 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18584 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18585 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18586 | |
| 18587 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18588 | |
| 18589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18590 | { echo "$as_me:$LINENO: checking for fsync" >&5 |
| 18591 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18592 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18593 | /* confdefs.h. */ |
| 18594 | _ACEOF |
| 18595 | cat confdefs.h >>conftest.$ac_ext |
| 18596 | cat >>conftest.$ac_ext <<_ACEOF |
| 18597 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18598 | #include <unistd.h> |
| 18599 | int |
| 18600 | main () |
| 18601 | { |
| 18602 | void *x=fsync |
| 18603 | ; |
| 18604 | return 0; |
| 18605 | } |
| 18606 | _ACEOF |
| 18607 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18608 | if { (ac_try="$ac_compile" |
| 18609 | case "(($ac_try" in |
| 18610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18611 | *) ac_try_echo=$ac_try;; |
| 18612 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18614 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18615 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18616 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18617 | rm -f conftest.er1 |
| 18618 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18620 | (exit $ac_status); } && { |
| 18621 | test -z "$ac_c_werror_flag" || |
| 18622 | test ! -s conftest.err |
| 18623 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18624 | |
| 18625 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18626 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18627 | _ACEOF |
| 18628 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18629 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18630 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18631 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18632 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18634 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18635 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18636 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18637 | |
| 18638 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18639 | |
| 18640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18641 | { echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 18642 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18643 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18644 | /* confdefs.h. */ |
| 18645 | _ACEOF |
| 18646 | cat confdefs.h >>conftest.$ac_ext |
| 18647 | cat >>conftest.$ac_ext <<_ACEOF |
| 18648 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18649 | #include <unistd.h> |
| 18650 | int |
| 18651 | main () |
| 18652 | { |
| 18653 | void *x=fdatasync |
| 18654 | ; |
| 18655 | return 0; |
| 18656 | } |
| 18657 | _ACEOF |
| 18658 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18659 | if { (ac_try="$ac_compile" |
| 18660 | case "(($ac_try" in |
| 18661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18662 | *) ac_try_echo=$ac_try;; |
| 18663 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18665 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18666 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18668 | rm -f conftest.er1 |
| 18669 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18671 | (exit $ac_status); } && { |
| 18672 | test -z "$ac_c_werror_flag" || |
| 18673 | test ! -s conftest.err |
| 18674 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18675 | |
| 18676 | cat >>confdefs.h <<\_ACEOF |
| 18677 | #define HAVE_FDATASYNC 1 |
| 18678 | _ACEOF |
| 18679 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18680 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18681 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18682 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18683 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18685 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18686 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18687 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18688 | |
| 18689 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18690 | |
| 18691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18692 | { echo "$as_me:$LINENO: checking for epoll" >&5 |
| 18693 | echo $ECHO_N "checking for epoll... $ECHO_C" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18694 | cat >conftest.$ac_ext <<_ACEOF |
| 18695 | /* confdefs.h. */ |
| 18696 | _ACEOF |
| 18697 | cat confdefs.h >>conftest.$ac_ext |
| 18698 | cat >>conftest.$ac_ext <<_ACEOF |
| 18699 | /* end confdefs.h. */ |
| 18700 | #include <sys/epoll.h> |
| 18701 | int |
| 18702 | main () |
| 18703 | { |
| 18704 | void *x=epoll_create |
| 18705 | ; |
| 18706 | return 0; |
| 18707 | } |
| 18708 | _ACEOF |
| 18709 | rm -f conftest.$ac_objext |
| 18710 | if { (ac_try="$ac_compile" |
| 18711 | case "(($ac_try" in |
| 18712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18713 | *) ac_try_echo=$ac_try;; |
| 18714 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18716 | (eval "$ac_compile") 2>conftest.er1 |
| 18717 | ac_status=$? |
| 18718 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18719 | rm -f conftest.er1 |
| 18720 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18722 | (exit $ac_status); } && { |
| 18723 | test -z "$ac_c_werror_flag" || |
| 18724 | test ! -s conftest.err |
| 18725 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18726 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18727 | cat >>confdefs.h <<\_ACEOF |
| 18728 | #define HAVE_EPOLL 1 |
| 18729 | _ACEOF |
| 18730 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18731 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18732 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18733 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18734 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18736 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18737 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18738 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18739 | |
| 18740 | fi |
| 18741 | |
| 18742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18743 | { echo "$as_me:$LINENO: checking for kqueue" >&5 |
| 18744 | echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18745 | cat >conftest.$ac_ext <<_ACEOF |
| 18746 | /* confdefs.h. */ |
| 18747 | _ACEOF |
| 18748 | cat confdefs.h >>conftest.$ac_ext |
| 18749 | cat >>conftest.$ac_ext <<_ACEOF |
| 18750 | /* end confdefs.h. */ |
| 18751 | |
| 18752 | #include <sys/types.h> |
| 18753 | #include <sys/event.h> |
| 18754 | |
| 18755 | int |
| 18756 | main () |
| 18757 | { |
| 18758 | int x=kqueue() |
| 18759 | ; |
| 18760 | return 0; |
| 18761 | } |
| 18762 | _ACEOF |
| 18763 | rm -f conftest.$ac_objext |
| 18764 | if { (ac_try="$ac_compile" |
| 18765 | case "(($ac_try" in |
| 18766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18767 | *) ac_try_echo=$ac_try;; |
| 18768 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18770 | (eval "$ac_compile") 2>conftest.er1 |
| 18771 | ac_status=$? |
| 18772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18773 | rm -f conftest.er1 |
| 18774 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18776 | (exit $ac_status); } && { |
| 18777 | test -z "$ac_c_werror_flag" || |
| 18778 | test ! -s conftest.err |
| 18779 | } && test -s conftest.$ac_objext; then |
| 18780 | |
| 18781 | cat >>confdefs.h <<\_ACEOF |
| 18782 | #define HAVE_KQUEUE 1 |
| 18783 | _ACEOF |
| 18784 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18785 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18786 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18787 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18788 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18790 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18791 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18792 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18793 | |
| 18794 | fi |
| 18795 | |
| 18796 | 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] | 18797 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 18798 | # functions ctermid_r, setgroups in the library, but no prototype |
| 18799 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 18800 | # address to avoid compiler warnings and potential miscompilations |
| 18801 | # because of the missing prototypes. |
| 18802 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18803 | { echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 18804 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18805 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18806 | /* confdefs.h. */ |
| 18807 | _ACEOF |
| 18808 | cat confdefs.h >>conftest.$ac_ext |
| 18809 | cat >>conftest.$ac_ext <<_ACEOF |
| 18810 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18811 | |
| 18812 | #include "confdefs.h" |
| 18813 | #include <stdio.h> |
| 18814 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18815 | int |
| 18816 | main () |
| 18817 | { |
| 18818 | void* p = ctermid_r |
| 18819 | ; |
| 18820 | return 0; |
| 18821 | } |
| 18822 | _ACEOF |
| 18823 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18824 | if { (ac_try="$ac_compile" |
| 18825 | case "(($ac_try" in |
| 18826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18827 | *) ac_try_echo=$ac_try;; |
| 18828 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18830 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18831 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18833 | rm -f conftest.er1 |
| 18834 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18836 | (exit $ac_status); } && { |
| 18837 | test -z "$ac_c_werror_flag" || |
| 18838 | test ! -s conftest.err |
| 18839 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18840 | |
| 18841 | cat >>confdefs.h <<\_ACEOF |
| 18842 | #define HAVE_CTERMID_R 1 |
| 18843 | _ACEOF |
| 18844 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18845 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18846 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18847 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18848 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18850 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18851 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18852 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18853 | |
| 18854 | fi |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18855 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18857 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18858 | { echo "$as_me:$LINENO: checking for flock" >&5 |
| 18859 | echo $ECHO_N "checking for flock... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18860 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18861 | /* confdefs.h. */ |
| 18862 | _ACEOF |
| 18863 | cat confdefs.h >>conftest.$ac_ext |
| 18864 | cat >>conftest.$ac_ext <<_ACEOF |
| 18865 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18866 | |
| 18867 | #include "confdefs.h" |
| 18868 | #include <sys/file.h> |
| 18869 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18870 | int |
| 18871 | main () |
| 18872 | { |
| 18873 | void* p = flock |
| 18874 | ; |
| 18875 | return 0; |
| 18876 | } |
| 18877 | _ACEOF |
| 18878 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18879 | if { (ac_try="$ac_compile" |
| 18880 | case "(($ac_try" in |
| 18881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18882 | *) ac_try_echo=$ac_try;; |
| 18883 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18885 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18886 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18887 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18888 | rm -f conftest.er1 |
| 18889 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18891 | (exit $ac_status); } && { |
| 18892 | test -z "$ac_c_werror_flag" || |
| 18893 | test ! -s conftest.err |
| 18894 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18895 | |
| 18896 | cat >>confdefs.h <<\_ACEOF |
| 18897 | #define HAVE_FLOCK 1 |
| 18898 | _ACEOF |
| 18899 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18900 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18901 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18902 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18903 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18905 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18906 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18907 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18908 | |
| 18909 | fi |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18910 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18912 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18913 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 18914 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18915 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18916 | /* confdefs.h. */ |
| 18917 | _ACEOF |
| 18918 | cat confdefs.h >>conftest.$ac_ext |
| 18919 | cat >>conftest.$ac_ext <<_ACEOF |
| 18920 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18921 | |
| 18922 | #include "confdefs.h" |
| 18923 | #include <unistd.h> |
| 18924 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18925 | int |
| 18926 | main () |
| 18927 | { |
| 18928 | void* p = getpagesize |
| 18929 | ; |
| 18930 | return 0; |
| 18931 | } |
| 18932 | _ACEOF |
| 18933 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18934 | if { (ac_try="$ac_compile" |
| 18935 | case "(($ac_try" in |
| 18936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18937 | *) ac_try_echo=$ac_try;; |
| 18938 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18940 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18941 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18942 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18943 | rm -f conftest.er1 |
| 18944 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18946 | (exit $ac_status); } && { |
| 18947 | test -z "$ac_c_werror_flag" || |
| 18948 | test ! -s conftest.err |
| 18949 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18950 | |
| 18951 | cat >>confdefs.h <<\_ACEOF |
| 18952 | #define HAVE_GETPAGESIZE 1 |
| 18953 | _ACEOF |
| 18954 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18955 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18956 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18957 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18958 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18960 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18961 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18962 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18963 | |
| 18964 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18965 | |
| 18966 | 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] | 18967 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18968 | for ac_prog in true |
| 18969 | do |
| 18970 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 18971 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18972 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18973 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18974 | if test "${ac_cv_prog_TRUE+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18976 | else |
| 18977 | if test -n "$TRUE"; then |
| 18978 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 18979 | else |
| 18980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18981 | for as_dir in $PATH |
| 18982 | do |
| 18983 | IFS=$as_save_IFS |
| 18984 | test -z "$as_dir" && as_dir=. |
| 18985 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18986 | 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] | 18987 | ac_cv_prog_TRUE="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18988 | 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] | 18989 | break 2 |
| 18990 | fi |
| 18991 | done |
| 18992 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18993 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18994 | |
| 18995 | fi |
| 18996 | fi |
| 18997 | TRUE=$ac_cv_prog_TRUE |
| 18998 | if test -n "$TRUE"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18999 | { echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 19000 | echo "${ECHO_T}$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19001 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19002 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19003 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19004 | fi |
| 19005 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19006 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19007 | test -n "$TRUE" && break |
| 19008 | done |
| 19009 | test -n "$TRUE" || TRUE="/bin/true" |
| 19010 | |
| 19011 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19012 | { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 19013 | 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] | 19014 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19016 | else |
| 19017 | ac_check_lib_save_LIBS=$LIBS |
| 19018 | LIBS="-lc $LIBS" |
| 19019 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19020 | /* confdefs.h. */ |
| 19021 | _ACEOF |
| 19022 | cat confdefs.h >>conftest.$ac_ext |
| 19023 | cat >>conftest.$ac_ext <<_ACEOF |
| 19024 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19025 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19026 | /* Override any GCC internal prototype to avoid an error. |
| 19027 | Use char because int might match the return type of a GCC |
| 19028 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19029 | #ifdef __cplusplus |
| 19030 | extern "C" |
| 19031 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19032 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19033 | int |
| 19034 | main () |
| 19035 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19036 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19037 | ; |
| 19038 | return 0; |
| 19039 | } |
| 19040 | _ACEOF |
| 19041 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19042 | if { (ac_try="$ac_link" |
| 19043 | case "(($ac_try" in |
| 19044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19045 | *) ac_try_echo=$ac_try;; |
| 19046 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19048 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19049 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19050 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19051 | rm -f conftest.er1 |
| 19052 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19054 | (exit $ac_status); } && { |
| 19055 | test -z "$ac_c_werror_flag" || |
| 19056 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19057 | } && test -s conftest$ac_exeext && |
| 19058 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19059 | ac_cv_lib_c_inet_aton=yes |
| 19060 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19061 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19062 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19063 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19064 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19065 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19066 | |
| 19067 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19068 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19069 | LIBS=$ac_check_lib_save_LIBS |
| 19070 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19071 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 19072 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; } |
| 19073 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19074 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19075 | else |
| 19076 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19077 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 19078 | 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] | 19079 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19081 | else |
| 19082 | ac_check_lib_save_LIBS=$LIBS |
| 19083 | LIBS="-lresolv $LIBS" |
| 19084 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19085 | /* confdefs.h. */ |
| 19086 | _ACEOF |
| 19087 | cat confdefs.h >>conftest.$ac_ext |
| 19088 | cat >>conftest.$ac_ext <<_ACEOF |
| 19089 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19090 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19091 | /* Override any GCC internal prototype to avoid an error. |
| 19092 | Use char because int might match the return type of a GCC |
| 19093 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19094 | #ifdef __cplusplus |
| 19095 | extern "C" |
| 19096 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19097 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19098 | int |
| 19099 | main () |
| 19100 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19101 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19102 | ; |
| 19103 | return 0; |
| 19104 | } |
| 19105 | _ACEOF |
| 19106 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19107 | if { (ac_try="$ac_link" |
| 19108 | case "(($ac_try" in |
| 19109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19110 | *) ac_try_echo=$ac_try;; |
| 19111 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19113 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19114 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19116 | rm -f conftest.er1 |
| 19117 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19119 | (exit $ac_status); } && { |
| 19120 | test -z "$ac_c_werror_flag" || |
| 19121 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19122 | } && test -s conftest$ac_exeext && |
| 19123 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19124 | ac_cv_lib_resolv_inet_aton=yes |
| 19125 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19126 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19128 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19129 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19130 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19131 | |
| 19132 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19133 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19134 | LIBS=$ac_check_lib_save_LIBS |
| 19135 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19136 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 19137 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
| 19138 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19139 | cat >>confdefs.h <<_ACEOF |
| 19140 | #define HAVE_LIBRESOLV 1 |
| 19141 | _ACEOF |
| 19142 | |
| 19143 | LIBS="-lresolv $LIBS" |
| 19144 | |
| 19145 | fi |
| 19146 | |
| 19147 | |
| 19148 | fi |
| 19149 | |
| 19150 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19151 | # On Tru64, chflags seems to be present, but calling it will |
| 19152 | # exit Python |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19153 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 19154 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19155 | if test "${ac_cv_have_chflags+set}" = set; then |
| 19156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19157 | else |
| 19158 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19159 | ac_cv_have_chflags=cross |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19160 | else |
| 19161 | cat >conftest.$ac_ext <<_ACEOF |
| 19162 | /* confdefs.h. */ |
| 19163 | _ACEOF |
| 19164 | cat confdefs.h >>conftest.$ac_ext |
| 19165 | cat >>conftest.$ac_ext <<_ACEOF |
| 19166 | /* end confdefs.h. */ |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19167 | [ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19168 | #include <sys/stat.h> |
| 19169 | #include <unistd.h> |
| 19170 | int main(int argc, char*argv[]) |
| 19171 | { |
| 19172 | if(chflags(argv[0], 0) != 0) |
| 19173 | return 1; |
| 19174 | return 0; |
| 19175 | } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19176 | ] |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19177 | _ACEOF |
| 19178 | rm -f conftest$ac_exeext |
| 19179 | if { (ac_try="$ac_link" |
| 19180 | case "(($ac_try" in |
| 19181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19182 | *) ac_try_echo=$ac_try;; |
| 19183 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19185 | (eval "$ac_link") 2>&5 |
| 19186 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19188 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19189 | { (case "(($ac_try" in |
| 19190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19191 | *) ac_try_echo=$ac_try;; |
| 19192 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19194 | (eval "$ac_try") 2>&5 |
| 19195 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19197 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19198 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19199 | else |
| 19200 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19201 | echo "$as_me: failed program was:" >&5 |
| 19202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19203 | |
| 19204 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19205 | ac_cv_have_chflags=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19206 | fi |
| 19207 | 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] | 19208 | fi |
| 19209 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19210 | |
| 19211 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19212 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19213 | { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5 |
| 19214 | echo "${ECHO_T}$ac_cv_have_chflags" >&6; } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19215 | if test "$ac_cv_have_chflags" = cross ; then |
| 19216 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 19217 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
| 19218 | if test "${ac_cv_func_chflags+set}" = set; then |
| 19219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19220 | else |
| 19221 | cat >conftest.$ac_ext <<_ACEOF |
| 19222 | /* confdefs.h. */ |
| 19223 | _ACEOF |
| 19224 | cat confdefs.h >>conftest.$ac_ext |
| 19225 | cat >>conftest.$ac_ext <<_ACEOF |
| 19226 | /* end confdefs.h. */ |
| 19227 | /* Define chflags to an innocuous variant, in case <limits.h> declares chflags. |
| 19228 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19229 | #define chflags innocuous_chflags |
| 19230 | |
| 19231 | /* System header to define __stub macros and hopefully few prototypes, |
| 19232 | which can conflict with char chflags (); below. |
| 19233 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19234 | <limits.h> exists even on freestanding compilers. */ |
| 19235 | |
| 19236 | #ifdef __STDC__ |
| 19237 | # include <limits.h> |
| 19238 | #else |
| 19239 | # include <assert.h> |
| 19240 | #endif |
| 19241 | |
| 19242 | #undef chflags |
| 19243 | |
| 19244 | /* Override any GCC internal prototype to avoid an error. |
| 19245 | Use char because int might match the return type of a GCC |
| 19246 | builtin and then its argument prototype would still apply. */ |
| 19247 | #ifdef __cplusplus |
| 19248 | extern "C" |
| 19249 | #endif |
| 19250 | char chflags (); |
| 19251 | /* The GNU C library defines this for functions which it implements |
| 19252 | to always fail with ENOSYS. Some functions are actually named |
| 19253 | something starting with __ and the normal name is an alias. */ |
| 19254 | #if defined __stub_chflags || defined __stub___chflags |
| 19255 | choke me |
| 19256 | #endif |
| 19257 | |
| 19258 | int |
| 19259 | main () |
| 19260 | { |
| 19261 | return chflags (); |
| 19262 | ; |
| 19263 | return 0; |
| 19264 | } |
| 19265 | _ACEOF |
| 19266 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19267 | if { (ac_try="$ac_link" |
| 19268 | case "(($ac_try" in |
| 19269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19270 | *) ac_try_echo=$ac_try;; |
| 19271 | esac |
| 19272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19273 | (eval "$ac_link") 2>conftest.er1 |
| 19274 | ac_status=$? |
| 19275 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19276 | rm -f conftest.er1 |
| 19277 | cat conftest.err >&5 |
| 19278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19279 | (exit $ac_status); } && { |
| 19280 | test -z "$ac_c_werror_flag" || |
| 19281 | test ! -s conftest.err |
| 19282 | } && test -s conftest$ac_exeext && |
| 19283 | $as_test_x conftest$ac_exeext; then |
| 19284 | ac_cv_func_chflags=yes |
| 19285 | else |
| 19286 | echo "$as_me: failed program was:" >&5 |
| 19287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19288 | |
| 19289 | ac_cv_func_chflags=no |
| 19290 | fi |
| 19291 | |
| 19292 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19293 | conftest$ac_exeext conftest.$ac_ext |
| 19294 | fi |
| 19295 | { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5 |
| 19296 | echo "${ECHO_T}$ac_cv_func_chflags" >&6; } |
| 19297 | if test $ac_cv_func_chflags = yes; then |
| 19298 | ac_cv_have_chflags="yes" |
| 19299 | else |
| 19300 | ac_cv_have_chflags="no" |
| 19301 | fi |
| 19302 | |
| 19303 | fi |
| 19304 | if test "$ac_cv_have_chflags" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19305 | |
| 19306 | cat >>confdefs.h <<\_ACEOF |
| 19307 | #define HAVE_CHFLAGS 1 |
| 19308 | _ACEOF |
| 19309 | |
| 19310 | fi |
| 19311 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19312 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 19313 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19314 | if test "${ac_cv_have_lchflags+set}" = set; then |
| 19315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19316 | else |
| 19317 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19318 | ac_cv_have_lchflags=cross |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19319 | else |
| 19320 | cat >conftest.$ac_ext <<_ACEOF |
| 19321 | /* confdefs.h. */ |
| 19322 | _ACEOF |
| 19323 | cat confdefs.h >>conftest.$ac_ext |
| 19324 | cat >>conftest.$ac_ext <<_ACEOF |
| 19325 | /* end confdefs.h. */ |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19326 | [ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19327 | #include <sys/stat.h> |
| 19328 | #include <unistd.h> |
| 19329 | int main(int argc, char*argv[]) |
| 19330 | { |
| 19331 | if(lchflags(argv[0], 0) != 0) |
| 19332 | return 1; |
| 19333 | return 0; |
| 19334 | } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19335 | ] |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19336 | _ACEOF |
| 19337 | rm -f conftest$ac_exeext |
| 19338 | if { (ac_try="$ac_link" |
| 19339 | case "(($ac_try" in |
| 19340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19341 | *) ac_try_echo=$ac_try;; |
| 19342 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19344 | (eval "$ac_link") 2>&5 |
| 19345 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19347 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19348 | { (case "(($ac_try" in |
| 19349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19350 | *) ac_try_echo=$ac_try;; |
| 19351 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19353 | (eval "$ac_try") 2>&5 |
| 19354 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19356 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19357 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19358 | else |
| 19359 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19360 | echo "$as_me: failed program was:" >&5 |
| 19361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19362 | |
| 19363 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19364 | ac_cv_have_lchflags=no |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19365 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19366 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 19367 | fi |
| 19368 | |
| 19369 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19370 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19371 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19372 | { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5 |
| 19373 | echo "${ECHO_T}$ac_cv_have_lchflags" >&6; } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19374 | if test "$ac_cv_have_lchflags" = cross ; then |
| 19375 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 19376 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
| 19377 | if test "${ac_cv_func_lchflags+set}" = set; then |
| 19378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19379 | else |
| 19380 | cat >conftest.$ac_ext <<_ACEOF |
| 19381 | /* confdefs.h. */ |
| 19382 | _ACEOF |
| 19383 | cat confdefs.h >>conftest.$ac_ext |
| 19384 | cat >>conftest.$ac_ext <<_ACEOF |
| 19385 | /* end confdefs.h. */ |
| 19386 | /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags. |
| 19387 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19388 | #define lchflags innocuous_lchflags |
| 19389 | |
| 19390 | /* System header to define __stub macros and hopefully few prototypes, |
| 19391 | which can conflict with char lchflags (); below. |
| 19392 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19393 | <limits.h> exists even on freestanding compilers. */ |
| 19394 | |
| 19395 | #ifdef __STDC__ |
| 19396 | # include <limits.h> |
| 19397 | #else |
| 19398 | # include <assert.h> |
| 19399 | #endif |
| 19400 | |
| 19401 | #undef lchflags |
| 19402 | |
| 19403 | /* Override any GCC internal prototype to avoid an error. |
| 19404 | Use char because int might match the return type of a GCC |
| 19405 | builtin and then its argument prototype would still apply. */ |
| 19406 | #ifdef __cplusplus |
| 19407 | extern "C" |
| 19408 | #endif |
| 19409 | char lchflags (); |
| 19410 | /* The GNU C library defines this for functions which it implements |
| 19411 | to always fail with ENOSYS. Some functions are actually named |
| 19412 | something starting with __ and the normal name is an alias. */ |
| 19413 | #if defined __stub_lchflags || defined __stub___lchflags |
| 19414 | choke me |
| 19415 | #endif |
| 19416 | |
| 19417 | int |
| 19418 | main () |
| 19419 | { |
| 19420 | return lchflags (); |
| 19421 | ; |
| 19422 | return 0; |
| 19423 | } |
| 19424 | _ACEOF |
| 19425 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19426 | if { (ac_try="$ac_link" |
| 19427 | case "(($ac_try" in |
| 19428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19429 | *) ac_try_echo=$ac_try;; |
| 19430 | esac |
| 19431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19432 | (eval "$ac_link") 2>conftest.er1 |
| 19433 | ac_status=$? |
| 19434 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19435 | rm -f conftest.er1 |
| 19436 | cat conftest.err >&5 |
| 19437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19438 | (exit $ac_status); } && { |
| 19439 | test -z "$ac_c_werror_flag" || |
| 19440 | test ! -s conftest.err |
| 19441 | } && test -s conftest$ac_exeext && |
| 19442 | $as_test_x conftest$ac_exeext; then |
| 19443 | ac_cv_func_lchflags=yes |
| 19444 | else |
| 19445 | echo "$as_me: failed program was:" >&5 |
| 19446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19447 | |
| 19448 | ac_cv_func_lchflags=no |
| 19449 | fi |
| 19450 | |
| 19451 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19452 | conftest$ac_exeext conftest.$ac_ext |
| 19453 | fi |
| 19454 | { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5 |
| 19455 | echo "${ECHO_T}$ac_cv_func_lchflags" >&6; } |
| 19456 | if test $ac_cv_func_lchflags = yes; then |
| 19457 | ac_cv_have_lchflags="yes" |
| 19458 | else |
| 19459 | ac_cv_have_lchflags="no" |
| 19460 | fi |
| 19461 | |
| 19462 | fi |
| 19463 | if test "$ac_cv_have_lchflags" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19464 | |
| 19465 | cat >>confdefs.h <<\_ACEOF |
| 19466 | #define HAVE_LCHFLAGS 1 |
| 19467 | _ACEOF |
| 19468 | |
| 19469 | fi |
| 19470 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 19471 | case $ac_sys_system/$ac_sys_release in |
| 19472 | Darwin/*) |
| 19473 | _CUR_CFLAGS="${CFLAGS}" |
| 19474 | _CUR_LDFLAGS="${LDFLAGS}" |
| 19475 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 19476 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 19477 | ;; |
| 19478 | esac |
| 19479 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19480 | { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 19481 | echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; } |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19482 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19484 | else |
| 19485 | ac_check_lib_save_LIBS=$LIBS |
| 19486 | LIBS="-lz $LIBS" |
| 19487 | cat >conftest.$ac_ext <<_ACEOF |
| 19488 | /* confdefs.h. */ |
| 19489 | _ACEOF |
| 19490 | cat confdefs.h >>conftest.$ac_ext |
| 19491 | cat >>conftest.$ac_ext <<_ACEOF |
| 19492 | /* end confdefs.h. */ |
| 19493 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19494 | /* Override any GCC internal prototype to avoid an error. |
| 19495 | Use char because int might match the return type of a GCC |
| 19496 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19497 | #ifdef __cplusplus |
| 19498 | extern "C" |
| 19499 | #endif |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19500 | char inflateCopy (); |
| 19501 | int |
| 19502 | main () |
| 19503 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19504 | return inflateCopy (); |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19505 | ; |
| 19506 | return 0; |
| 19507 | } |
| 19508 | _ACEOF |
| 19509 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19510 | if { (ac_try="$ac_link" |
| 19511 | case "(($ac_try" in |
| 19512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19513 | *) ac_try_echo=$ac_try;; |
| 19514 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19516 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19517 | ac_status=$? |
| 19518 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19519 | rm -f conftest.er1 |
| 19520 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19522 | (exit $ac_status); } && { |
| 19523 | test -z "$ac_c_werror_flag" || |
| 19524 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19525 | } && test -s conftest$ac_exeext && |
| 19526 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19527 | ac_cv_lib_z_inflateCopy=yes |
| 19528 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19529 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19531 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19532 | ac_cv_lib_z_inflateCopy=no |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19533 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19534 | |
| 19535 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19536 | conftest$ac_exeext conftest.$ac_ext |
| 19537 | LIBS=$ac_check_lib_save_LIBS |
| 19538 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19539 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 19540 | echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; } |
| 19541 | if test $ac_cv_lib_z_inflateCopy = yes; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19542 | |
| 19543 | cat >>confdefs.h <<\_ACEOF |
| 19544 | #define HAVE_ZLIB_COPY 1 |
| 19545 | _ACEOF |
| 19546 | |
| 19547 | fi |
| 19548 | |
| 19549 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 19550 | case $ac_sys_system/$ac_sys_release in |
| 19551 | Darwin/*) |
| 19552 | CFLAGS="${_CUR_CFLAGS}" |
| 19553 | LDFLAGS="${_CUR_LDFLAGS}" |
| 19554 | ;; |
| 19555 | esac |
| 19556 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19557 | { echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 19558 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19559 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19560 | /* confdefs.h. */ |
| 19561 | _ACEOF |
| 19562 | cat confdefs.h >>conftest.$ac_ext |
| 19563 | cat >>conftest.$ac_ext <<_ACEOF |
| 19564 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19565 | |
| 19566 | #include "confdefs.h" |
| 19567 | #include <netdb.h> |
| 19568 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19569 | int |
| 19570 | main () |
| 19571 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19572 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19573 | ; |
| 19574 | return 0; |
| 19575 | } |
| 19576 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19577 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19578 | if { (ac_try="$ac_link" |
| 19579 | case "(($ac_try" in |
| 19580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19581 | *) ac_try_echo=$ac_try;; |
| 19582 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19584 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19585 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19587 | rm -f conftest.er1 |
| 19588 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19590 | (exit $ac_status); } && { |
| 19591 | test -z "$ac_c_werror_flag" || |
| 19592 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19593 | } && test -s conftest$ac_exeext && |
| 19594 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19595 | |
| 19596 | cat >>confdefs.h <<\_ACEOF |
| 19597 | #define HAVE_HSTRERROR 1 |
| 19598 | _ACEOF |
| 19599 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19600 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19601 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19602 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19603 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19605 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19606 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19607 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19608 | |
| 19609 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19610 | |
| 19611 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19612 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19613 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19614 | { echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 19615 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19616 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19617 | /* confdefs.h. */ |
| 19618 | _ACEOF |
| 19619 | cat confdefs.h >>conftest.$ac_ext |
| 19620 | cat >>conftest.$ac_ext <<_ACEOF |
| 19621 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19622 | |
| 19623 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 19624 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19625 | #include <sys/socket.h> |
| 19626 | #include <netinet/in.h> |
| 19627 | #include <arpa/inet.h> |
| 19628 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19629 | int |
| 19630 | main () |
| 19631 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19632 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19633 | ; |
| 19634 | return 0; |
| 19635 | } |
| 19636 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19637 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19638 | if { (ac_try="$ac_link" |
| 19639 | case "(($ac_try" in |
| 19640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19641 | *) ac_try_echo=$ac_try;; |
| 19642 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19644 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19645 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19646 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19647 | rm -f conftest.er1 |
| 19648 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19650 | (exit $ac_status); } && { |
| 19651 | test -z "$ac_c_werror_flag" || |
| 19652 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19653 | } && test -s conftest$ac_exeext && |
| 19654 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19655 | |
| 19656 | cat >>confdefs.h <<\_ACEOF |
| 19657 | #define HAVE_INET_ATON 1 |
| 19658 | _ACEOF |
| 19659 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19660 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19661 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19662 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19663 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19665 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19666 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19667 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19668 | |
| 19669 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19670 | |
| 19671 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19672 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19673 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19674 | { echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 19675 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19676 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19677 | /* confdefs.h. */ |
| 19678 | _ACEOF |
| 19679 | cat confdefs.h >>conftest.$ac_ext |
| 19680 | cat >>conftest.$ac_ext <<_ACEOF |
| 19681 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19682 | |
| 19683 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 19684 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19685 | #include <sys/socket.h> |
| 19686 | #include <netinet/in.h> |
| 19687 | #include <arpa/inet.h> |
| 19688 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19689 | int |
| 19690 | main () |
| 19691 | { |
| 19692 | void* p = inet_pton |
| 19693 | ; |
| 19694 | return 0; |
| 19695 | } |
| 19696 | _ACEOF |
| 19697 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19698 | if { (ac_try="$ac_compile" |
| 19699 | case "(($ac_try" in |
| 19700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19701 | *) ac_try_echo=$ac_try;; |
| 19702 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19704 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19705 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19707 | rm -f conftest.er1 |
| 19708 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19710 | (exit $ac_status); } && { |
| 19711 | test -z "$ac_c_werror_flag" || |
| 19712 | test ! -s conftest.err |
| 19713 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19714 | |
| 19715 | cat >>confdefs.h <<\_ACEOF |
| 19716 | #define HAVE_INET_PTON 1 |
| 19717 | _ACEOF |
| 19718 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19719 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19720 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19721 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19722 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19724 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19725 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19726 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19727 | |
| 19728 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19729 | |
| 19730 | 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] | 19731 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 19732 | # 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] | 19733 | { echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 19734 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19735 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19736 | /* confdefs.h. */ |
| 19737 | _ACEOF |
| 19738 | cat confdefs.h >>conftest.$ac_ext |
| 19739 | cat >>conftest.$ac_ext <<_ACEOF |
| 19740 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19741 | |
| 19742 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 19743 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 19744 | #ifdef HAVE_GRP_H |
| 19745 | #include <grp.h> |
| 19746 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19747 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19748 | int |
| 19749 | main () |
| 19750 | { |
| 19751 | void* p = setgroups |
| 19752 | ; |
| 19753 | return 0; |
| 19754 | } |
| 19755 | _ACEOF |
| 19756 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19757 | if { (ac_try="$ac_compile" |
| 19758 | case "(($ac_try" in |
| 19759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19760 | *) ac_try_echo=$ac_try;; |
| 19761 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19763 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19764 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19766 | rm -f conftest.er1 |
| 19767 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19769 | (exit $ac_status); } && { |
| 19770 | test -z "$ac_c_werror_flag" || |
| 19771 | test ! -s conftest.err |
| 19772 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19773 | |
| 19774 | cat >>confdefs.h <<\_ACEOF |
| 19775 | #define HAVE_SETGROUPS 1 |
| 19776 | _ACEOF |
| 19777 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19778 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19779 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19780 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19781 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19783 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19784 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19785 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19786 | |
| 19787 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19788 | |
| 19789 | 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] | 19790 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19791 | # check for openpty and forkpty |
| 19792 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19793 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19794 | for ac_func in openpty |
| 19795 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19796 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19797 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19798 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19799 | 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] | 19800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19801 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19802 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19803 | /* confdefs.h. */ |
| 19804 | _ACEOF |
| 19805 | cat confdefs.h >>conftest.$ac_ext |
| 19806 | cat >>conftest.$ac_ext <<_ACEOF |
| 19807 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19808 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19809 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19810 | #define $ac_func innocuous_$ac_func |
| 19811 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19812 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19813 | which can conflict with char $ac_func (); below. |
| 19814 | 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] | 19815 | <limits.h> exists even on freestanding compilers. */ |
| 19816 | |
| 19817 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19818 | # include <limits.h> |
| 19819 | #else |
| 19820 | # include <assert.h> |
| 19821 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19822 | |
| 19823 | #undef $ac_func |
| 19824 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19825 | /* Override any GCC internal prototype to avoid an error. |
| 19826 | Use char because int might match the return type of a GCC |
| 19827 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19828 | #ifdef __cplusplus |
| 19829 | extern "C" |
| 19830 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19831 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19832 | /* The GNU C library defines this for functions which it implements |
| 19833 | to always fail with ENOSYS. Some functions are actually named |
| 19834 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19835 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19836 | choke me |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19837 | #endif |
| 19838 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19839 | int |
| 19840 | main () |
| 19841 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19842 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19843 | ; |
| 19844 | return 0; |
| 19845 | } |
| 19846 | _ACEOF |
| 19847 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19848 | if { (ac_try="$ac_link" |
| 19849 | case "(($ac_try" in |
| 19850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19851 | *) ac_try_echo=$ac_try;; |
| 19852 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19854 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19855 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19857 | rm -f conftest.er1 |
| 19858 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19860 | (exit $ac_status); } && { |
| 19861 | test -z "$ac_c_werror_flag" || |
| 19862 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19863 | } && test -s conftest$ac_exeext && |
| 19864 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19865 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19866 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19867 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19869 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19870 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19871 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19872 | |
| 19873 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19874 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19875 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19876 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19877 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19878 | echo "${ECHO_T}$ac_res" >&6; } |
| 19879 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19880 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19881 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19882 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19883 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19884 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19885 | { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 19886 | 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] | 19887 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19889 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19890 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19891 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19892 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19893 | /* confdefs.h. */ |
| 19894 | _ACEOF |
| 19895 | cat confdefs.h >>conftest.$ac_ext |
| 19896 | cat >>conftest.$ac_ext <<_ACEOF |
| 19897 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19898 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19899 | /* Override any GCC internal prototype to avoid an error. |
| 19900 | Use char because int might match the return type of a GCC |
| 19901 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19902 | #ifdef __cplusplus |
| 19903 | extern "C" |
| 19904 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19905 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19906 | int |
| 19907 | main () |
| 19908 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19909 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19910 | ; |
| 19911 | return 0; |
| 19912 | } |
| 19913 | _ACEOF |
| 19914 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19915 | if { (ac_try="$ac_link" |
| 19916 | case "(($ac_try" in |
| 19917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19918 | *) ac_try_echo=$ac_try;; |
| 19919 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19921 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19922 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19924 | rm -f conftest.er1 |
| 19925 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19927 | (exit $ac_status); } && { |
| 19928 | test -z "$ac_c_werror_flag" || |
| 19929 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19930 | } && test -s conftest$ac_exeext && |
| 19931 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19932 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19933 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19934 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19936 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19937 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19938 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19939 | |
| 19940 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19941 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19942 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19943 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19944 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 19945 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } |
| 19946 | if test $ac_cv_lib_util_openpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19947 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19948 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19949 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19950 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19951 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19952 | { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 19953 | 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] | 19954 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19956 | else |
| 19957 | ac_check_lib_save_LIBS=$LIBS |
| 19958 | LIBS="-lbsd $LIBS" |
| 19959 | cat >conftest.$ac_ext <<_ACEOF |
| 19960 | /* confdefs.h. */ |
| 19961 | _ACEOF |
| 19962 | cat confdefs.h >>conftest.$ac_ext |
| 19963 | cat >>conftest.$ac_ext <<_ACEOF |
| 19964 | /* end confdefs.h. */ |
| 19965 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19966 | /* Override any GCC internal prototype to avoid an error. |
| 19967 | Use char because int might match the return type of a GCC |
| 19968 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19969 | #ifdef __cplusplus |
| 19970 | extern "C" |
| 19971 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19972 | char openpty (); |
| 19973 | int |
| 19974 | main () |
| 19975 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19976 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19977 | ; |
| 19978 | return 0; |
| 19979 | } |
| 19980 | _ACEOF |
| 19981 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19982 | if { (ac_try="$ac_link" |
| 19983 | case "(($ac_try" in |
| 19984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19985 | *) ac_try_echo=$ac_try;; |
| 19986 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19988 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19989 | ac_status=$? |
| 19990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19991 | rm -f conftest.er1 |
| 19992 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19994 | (exit $ac_status); } && { |
| 19995 | test -z "$ac_c_werror_flag" || |
| 19996 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19997 | } && test -s conftest$ac_exeext && |
| 19998 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19999 | ac_cv_lib_bsd_openpty=yes |
| 20000 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20001 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20003 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20004 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20005 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20006 | |
| 20007 | 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] | 20008 | conftest$ac_exeext conftest.$ac_ext |
| 20009 | LIBS=$ac_check_lib_save_LIBS |
| 20010 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20011 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 20012 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; } |
| 20013 | if test $ac_cv_lib_bsd_openpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20014 | cat >>confdefs.h <<\_ACEOF |
| 20015 | #define HAVE_OPENPTY 1 |
| 20016 | _ACEOF |
| 20017 | LIBS="$LIBS -lbsd" |
| 20018 | fi |
| 20019 | |
| 20020 | |
| 20021 | fi |
| 20022 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20023 | |
| 20024 | fi |
| 20025 | done |
| 20026 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20027 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20028 | for ac_func in forkpty |
| 20029 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20030 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20031 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20032 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20033 | 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] | 20034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20035 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20036 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20037 | /* confdefs.h. */ |
| 20038 | _ACEOF |
| 20039 | cat confdefs.h >>conftest.$ac_ext |
| 20040 | cat >>conftest.$ac_ext <<_ACEOF |
| 20041 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20042 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20043 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20044 | #define $ac_func innocuous_$ac_func |
| 20045 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20046 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20047 | which can conflict with char $ac_func (); below. |
| 20048 | 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] | 20049 | <limits.h> exists even on freestanding compilers. */ |
| 20050 | |
| 20051 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20052 | # include <limits.h> |
| 20053 | #else |
| 20054 | # include <assert.h> |
| 20055 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20056 | |
| 20057 | #undef $ac_func |
| 20058 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20059 | /* Override any GCC internal prototype to avoid an error. |
| 20060 | Use char because int might match the return type of a GCC |
| 20061 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20062 | #ifdef __cplusplus |
| 20063 | extern "C" |
| 20064 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20065 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20066 | /* The GNU C library defines this for functions which it implements |
| 20067 | to always fail with ENOSYS. Some functions are actually named |
| 20068 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20069 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20070 | choke me |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20071 | #endif |
| 20072 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20073 | int |
| 20074 | main () |
| 20075 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20076 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20077 | ; |
| 20078 | return 0; |
| 20079 | } |
| 20080 | _ACEOF |
| 20081 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20082 | if { (ac_try="$ac_link" |
| 20083 | case "(($ac_try" in |
| 20084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20085 | *) ac_try_echo=$ac_try;; |
| 20086 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20088 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20089 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20090 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20091 | rm -f conftest.er1 |
| 20092 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20094 | (exit $ac_status); } && { |
| 20095 | test -z "$ac_c_werror_flag" || |
| 20096 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20097 | } && test -s conftest$ac_exeext && |
| 20098 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20099 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20100 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20101 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20103 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20104 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20105 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20106 | |
| 20107 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20108 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20109 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20110 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20111 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20112 | echo "${ECHO_T}$ac_res" >&6; } |
| 20113 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20114 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20115 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20116 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20117 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20118 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20119 | { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 20120 | 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] | 20121 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20123 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20124 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20125 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20126 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20127 | /* confdefs.h. */ |
| 20128 | _ACEOF |
| 20129 | cat confdefs.h >>conftest.$ac_ext |
| 20130 | cat >>conftest.$ac_ext <<_ACEOF |
| 20131 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20132 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20133 | /* Override any GCC internal prototype to avoid an error. |
| 20134 | Use char because int might match the return type of a GCC |
| 20135 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20136 | #ifdef __cplusplus |
| 20137 | extern "C" |
| 20138 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20139 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20140 | int |
| 20141 | main () |
| 20142 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20143 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20144 | ; |
| 20145 | return 0; |
| 20146 | } |
| 20147 | _ACEOF |
| 20148 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20149 | if { (ac_try="$ac_link" |
| 20150 | case "(($ac_try" in |
| 20151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20152 | *) ac_try_echo=$ac_try;; |
| 20153 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20155 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20156 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20158 | rm -f conftest.er1 |
| 20159 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20161 | (exit $ac_status); } && { |
| 20162 | test -z "$ac_c_werror_flag" || |
| 20163 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20164 | } && test -s conftest$ac_exeext && |
| 20165 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20166 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20167 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20168 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20170 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20171 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20172 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20173 | |
| 20174 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20175 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20176 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20177 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20178 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 20179 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; } |
| 20180 | if test $ac_cv_lib_util_forkpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20181 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20182 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20183 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20184 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20185 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20186 | { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 20187 | 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] | 20188 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20190 | else |
| 20191 | ac_check_lib_save_LIBS=$LIBS |
| 20192 | LIBS="-lbsd $LIBS" |
| 20193 | cat >conftest.$ac_ext <<_ACEOF |
| 20194 | /* confdefs.h. */ |
| 20195 | _ACEOF |
| 20196 | cat confdefs.h >>conftest.$ac_ext |
| 20197 | cat >>conftest.$ac_ext <<_ACEOF |
| 20198 | /* end confdefs.h. */ |
| 20199 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20200 | /* Override any GCC internal prototype to avoid an error. |
| 20201 | Use char because int might match the return type of a GCC |
| 20202 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20203 | #ifdef __cplusplus |
| 20204 | extern "C" |
| 20205 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20206 | char forkpty (); |
| 20207 | int |
| 20208 | main () |
| 20209 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20210 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20211 | ; |
| 20212 | return 0; |
| 20213 | } |
| 20214 | _ACEOF |
| 20215 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20216 | if { (ac_try="$ac_link" |
| 20217 | case "(($ac_try" in |
| 20218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20219 | *) ac_try_echo=$ac_try;; |
| 20220 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20222 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20223 | ac_status=$? |
| 20224 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20225 | rm -f conftest.er1 |
| 20226 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20228 | (exit $ac_status); } && { |
| 20229 | test -z "$ac_c_werror_flag" || |
| 20230 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20231 | } && test -s conftest$ac_exeext && |
| 20232 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20233 | ac_cv_lib_bsd_forkpty=yes |
| 20234 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20235 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20237 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20238 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20239 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20240 | |
| 20241 | 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] | 20242 | conftest$ac_exeext conftest.$ac_ext |
| 20243 | LIBS=$ac_check_lib_save_LIBS |
| 20244 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20245 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 20246 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; } |
| 20247 | if test $ac_cv_lib_bsd_forkpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20248 | cat >>confdefs.h <<\_ACEOF |
| 20249 | #define HAVE_FORKPTY 1 |
| 20250 | _ACEOF |
| 20251 | LIBS="$LIBS -lbsd" |
| 20252 | fi |
| 20253 | |
| 20254 | |
| 20255 | fi |
| 20256 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20257 | |
| 20258 | fi |
| 20259 | done |
| 20260 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20261 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20262 | # Stuff for expat. |
| 20263 | |
| 20264 | for ac_func in memmove |
| 20265 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20266 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20267 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20268 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20269 | 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] | 20270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20271 | else |
| 20272 | cat >conftest.$ac_ext <<_ACEOF |
| 20273 | /* confdefs.h. */ |
| 20274 | _ACEOF |
| 20275 | cat confdefs.h >>conftest.$ac_ext |
| 20276 | cat >>conftest.$ac_ext <<_ACEOF |
| 20277 | /* end confdefs.h. */ |
| 20278 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20279 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20280 | #define $ac_func innocuous_$ac_func |
| 20281 | |
| 20282 | /* System header to define __stub macros and hopefully few prototypes, |
| 20283 | which can conflict with char $ac_func (); below. |
| 20284 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20285 | <limits.h> exists even on freestanding compilers. */ |
| 20286 | |
| 20287 | #ifdef __STDC__ |
| 20288 | # include <limits.h> |
| 20289 | #else |
| 20290 | # include <assert.h> |
| 20291 | #endif |
| 20292 | |
| 20293 | #undef $ac_func |
| 20294 | |
| 20295 | /* Override any GCC internal prototype to avoid an error. |
| 20296 | Use char because int might match the return type of a GCC |
| 20297 | builtin and then its argument prototype would still apply. */ |
| 20298 | #ifdef __cplusplus |
| 20299 | extern "C" |
| 20300 | #endif |
| 20301 | char $ac_func (); |
| 20302 | /* The GNU C library defines this for functions which it implements |
| 20303 | to always fail with ENOSYS. Some functions are actually named |
| 20304 | something starting with __ and the normal name is an alias. */ |
| 20305 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20306 | choke me |
| 20307 | #endif |
| 20308 | |
| 20309 | int |
| 20310 | main () |
| 20311 | { |
| 20312 | return $ac_func (); |
| 20313 | ; |
| 20314 | return 0; |
| 20315 | } |
| 20316 | _ACEOF |
| 20317 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20318 | if { (ac_try="$ac_link" |
| 20319 | case "(($ac_try" in |
| 20320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20321 | *) ac_try_echo=$ac_try;; |
| 20322 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20324 | (eval "$ac_link") 2>conftest.er1 |
| 20325 | ac_status=$? |
| 20326 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20327 | rm -f conftest.er1 |
| 20328 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20330 | (exit $ac_status); } && { |
| 20331 | test -z "$ac_c_werror_flag" || |
| 20332 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20333 | } && test -s conftest$ac_exeext && |
| 20334 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20335 | eval "$as_ac_var=yes" |
| 20336 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20337 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20339 | |
| 20340 | eval "$as_ac_var=no" |
| 20341 | fi |
| 20342 | |
| 20343 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20344 | conftest$ac_exeext conftest.$ac_ext |
| 20345 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20346 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20347 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20348 | echo "${ECHO_T}$ac_res" >&6; } |
| 20349 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20350 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20351 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20352 | _ACEOF |
| 20353 | |
| 20354 | fi |
| 20355 | done |
| 20356 | |
| 20357 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20358 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20359 | |
| 20360 | |
| 20361 | |
| 20362 | |
| 20363 | |
| 20364 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20365 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 20366 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20367 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20368 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20369 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20370 | 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] | 20371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20372 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20373 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20374 | /* confdefs.h. */ |
| 20375 | _ACEOF |
| 20376 | cat confdefs.h >>conftest.$ac_ext |
| 20377 | cat >>conftest.$ac_ext <<_ACEOF |
| 20378 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20379 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20380 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20381 | #define $ac_func innocuous_$ac_func |
| 20382 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20383 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20384 | which can conflict with char $ac_func (); below. |
| 20385 | 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] | 20386 | <limits.h> exists even on freestanding compilers. */ |
| 20387 | |
| 20388 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20389 | # include <limits.h> |
| 20390 | #else |
| 20391 | # include <assert.h> |
| 20392 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20393 | |
| 20394 | #undef $ac_func |
| 20395 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20396 | /* Override any GCC internal prototype to avoid an error. |
| 20397 | Use char because int might match the return type of a GCC |
| 20398 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20399 | #ifdef __cplusplus |
| 20400 | extern "C" |
| 20401 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20402 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20403 | /* The GNU C library defines this for functions which it implements |
| 20404 | to always fail with ENOSYS. Some functions are actually named |
| 20405 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20406 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20407 | choke me |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20408 | #endif |
| 20409 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20410 | int |
| 20411 | main () |
| 20412 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20413 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20414 | ; |
| 20415 | return 0; |
| 20416 | } |
| 20417 | _ACEOF |
| 20418 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20419 | if { (ac_try="$ac_link" |
| 20420 | case "(($ac_try" in |
| 20421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20422 | *) ac_try_echo=$ac_try;; |
| 20423 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20425 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20426 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20427 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20428 | rm -f conftest.er1 |
| 20429 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20431 | (exit $ac_status); } && { |
| 20432 | test -z "$ac_c_werror_flag" || |
| 20433 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20434 | } && test -s conftest$ac_exeext && |
| 20435 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20436 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20437 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20438 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20440 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20441 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20442 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20443 | |
| 20444 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20445 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20446 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20447 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20448 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20449 | echo "${ECHO_T}$ac_res" >&6; } |
| 20450 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20451 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20452 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20453 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20454 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20455 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20456 | done |
| 20457 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20458 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20459 | |
| 20460 | |
| 20461 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20462 | for ac_func in dup2 getcwd strdup |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20463 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20464 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20465 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20466 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20467 | 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] | 20468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20469 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20470 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20471 | /* confdefs.h. */ |
| 20472 | _ACEOF |
| 20473 | cat confdefs.h >>conftest.$ac_ext |
| 20474 | cat >>conftest.$ac_ext <<_ACEOF |
| 20475 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20476 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20477 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20478 | #define $ac_func innocuous_$ac_func |
| 20479 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20480 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20481 | which can conflict with char $ac_func (); below. |
| 20482 | 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] | 20483 | <limits.h> exists even on freestanding compilers. */ |
| 20484 | |
| 20485 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20486 | # include <limits.h> |
| 20487 | #else |
| 20488 | # include <assert.h> |
| 20489 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20490 | |
| 20491 | #undef $ac_func |
| 20492 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20493 | /* Override any GCC internal prototype to avoid an error. |
| 20494 | Use char because int might match the return type of a GCC |
| 20495 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20496 | #ifdef __cplusplus |
| 20497 | extern "C" |
| 20498 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20499 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20500 | /* The GNU C library defines this for functions which it implements |
| 20501 | to always fail with ENOSYS. Some functions are actually named |
| 20502 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20503 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20504 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20505 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20506 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20507 | int |
| 20508 | main () |
| 20509 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20510 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20511 | ; |
| 20512 | return 0; |
| 20513 | } |
| 20514 | _ACEOF |
| 20515 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20516 | if { (ac_try="$ac_link" |
| 20517 | case "(($ac_try" in |
| 20518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20519 | *) ac_try_echo=$ac_try;; |
| 20520 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20522 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20523 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20524 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20525 | rm -f conftest.er1 |
| 20526 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20528 | (exit $ac_status); } && { |
| 20529 | test -z "$ac_c_werror_flag" || |
| 20530 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20531 | } && test -s conftest$ac_exeext && |
| 20532 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20533 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20534 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20535 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20537 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20538 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20539 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20540 | |
| 20541 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20542 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20543 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20544 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20545 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20546 | echo "${ECHO_T}$ac_res" >&6; } |
| 20547 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20548 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20549 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20550 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20551 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20552 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20553 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20554 | *" $ac_func.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20555 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 20556 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20557 | esac |
| 20558 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20559 | fi |
| 20560 | done |
| 20561 | |
| 20562 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20563 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20564 | for ac_func in getpgrp |
| 20565 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20566 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20567 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20568 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20569 | 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] | 20570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20571 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20572 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20573 | /* confdefs.h. */ |
| 20574 | _ACEOF |
| 20575 | cat confdefs.h >>conftest.$ac_ext |
| 20576 | cat >>conftest.$ac_ext <<_ACEOF |
| 20577 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20578 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20579 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20580 | #define $ac_func innocuous_$ac_func |
| 20581 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20582 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20583 | which can conflict with char $ac_func (); below. |
| 20584 | 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] | 20585 | <limits.h> exists even on freestanding compilers. */ |
| 20586 | |
| 20587 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20588 | # include <limits.h> |
| 20589 | #else |
| 20590 | # include <assert.h> |
| 20591 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20592 | |
| 20593 | #undef $ac_func |
| 20594 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20595 | /* Override any GCC internal prototype to avoid an error. |
| 20596 | Use char because int might match the return type of a GCC |
| 20597 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20598 | #ifdef __cplusplus |
| 20599 | extern "C" |
| 20600 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20601 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20602 | /* The GNU C library defines this for functions which it implements |
| 20603 | to always fail with ENOSYS. Some functions are actually named |
| 20604 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20605 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20606 | choke me |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20607 | #endif |
| 20608 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20609 | int |
| 20610 | main () |
| 20611 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20612 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20613 | ; |
| 20614 | return 0; |
| 20615 | } |
| 20616 | _ACEOF |
| 20617 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20618 | if { (ac_try="$ac_link" |
| 20619 | case "(($ac_try" in |
| 20620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20621 | *) ac_try_echo=$ac_try;; |
| 20622 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20624 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20625 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20626 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20627 | rm -f conftest.er1 |
| 20628 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20630 | (exit $ac_status); } && { |
| 20631 | test -z "$ac_c_werror_flag" || |
| 20632 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20633 | } && test -s conftest$ac_exeext && |
| 20634 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20635 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20636 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20637 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20639 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20640 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20641 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20642 | |
| 20643 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20644 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20645 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20646 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20647 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20648 | echo "${ECHO_T}$ac_res" >&6; } |
| 20649 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20650 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20651 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20652 | _ACEOF |
| 20653 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20654 | /* confdefs.h. */ |
| 20655 | _ACEOF |
| 20656 | cat confdefs.h >>conftest.$ac_ext |
| 20657 | cat >>conftest.$ac_ext <<_ACEOF |
| 20658 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20659 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20660 | int |
| 20661 | main () |
| 20662 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20663 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20664 | ; |
| 20665 | return 0; |
| 20666 | } |
| 20667 | _ACEOF |
| 20668 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20669 | if { (ac_try="$ac_compile" |
| 20670 | case "(($ac_try" in |
| 20671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20672 | *) ac_try_echo=$ac_try;; |
| 20673 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20675 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20676 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20678 | rm -f conftest.er1 |
| 20679 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20681 | (exit $ac_status); } && { |
| 20682 | test -z "$ac_c_werror_flag" || |
| 20683 | test ! -s conftest.err |
| 20684 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20685 | |
| 20686 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20687 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20688 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20690 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20691 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20692 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20694 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20695 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20696 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20697 | |
| 20698 | 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] | 20699 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20700 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20701 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20702 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20703 | |
| 20704 | for ac_func in setpgrp |
| 20705 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20706 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20707 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20708 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20709 | 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] | 20710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20711 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20712 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20713 | /* confdefs.h. */ |
| 20714 | _ACEOF |
| 20715 | cat confdefs.h >>conftest.$ac_ext |
| 20716 | cat >>conftest.$ac_ext <<_ACEOF |
| 20717 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20718 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20719 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20720 | #define $ac_func innocuous_$ac_func |
| 20721 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20722 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20723 | which can conflict with char $ac_func (); below. |
| 20724 | 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] | 20725 | <limits.h> exists even on freestanding compilers. */ |
| 20726 | |
| 20727 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20728 | # include <limits.h> |
| 20729 | #else |
| 20730 | # include <assert.h> |
| 20731 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20732 | |
| 20733 | #undef $ac_func |
| 20734 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20735 | /* Override any GCC internal prototype to avoid an error. |
| 20736 | Use char because int might match the return type of a GCC |
| 20737 | builtin and then its argument prototype would still apply. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20738 | #ifdef __cplusplus |
| 20739 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20740 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20741 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20742 | /* The GNU C library defines this for functions which it implements |
| 20743 | to always fail with ENOSYS. Some functions are actually named |
| 20744 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20745 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20746 | choke me |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20747 | #endif |
| 20748 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20749 | int |
| 20750 | main () |
| 20751 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20752 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20753 | ; |
| 20754 | return 0; |
| 20755 | } |
| 20756 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20757 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20758 | if { (ac_try="$ac_link" |
| 20759 | case "(($ac_try" in |
| 20760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20761 | *) ac_try_echo=$ac_try;; |
| 20762 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20764 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20765 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20766 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20767 | rm -f conftest.er1 |
| 20768 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20770 | (exit $ac_status); } && { |
| 20771 | test -z "$ac_c_werror_flag" || |
| 20772 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20773 | } && test -s conftest$ac_exeext && |
| 20774 | $as_test_x conftest$ac_exeext; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20775 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20776 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20777 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20779 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20780 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20781 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20782 | |
| 20783 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20784 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20785 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20786 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20787 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20788 | echo "${ECHO_T}$ac_res" >&6; } |
| 20789 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20790 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20791 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20792 | _ACEOF |
| 20793 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20794 | /* confdefs.h. */ |
| 20795 | _ACEOF |
| 20796 | cat confdefs.h >>conftest.$ac_ext |
| 20797 | cat >>conftest.$ac_ext <<_ACEOF |
| 20798 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20799 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20800 | int |
| 20801 | main () |
| 20802 | { |
| 20803 | setpgrp(0,0); |
| 20804 | ; |
| 20805 | return 0; |
| 20806 | } |
| 20807 | _ACEOF |
| 20808 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20809 | if { (ac_try="$ac_compile" |
| 20810 | case "(($ac_try" in |
| 20811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20812 | *) ac_try_echo=$ac_try;; |
| 20813 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20815 | (eval "$ac_compile") 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20816 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20818 | rm -f conftest.er1 |
| 20819 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20821 | (exit $ac_status); } && { |
| 20822 | test -z "$ac_c_werror_flag" || |
| 20823 | test ! -s conftest.err |
| 20824 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20825 | |
| 20826 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20827 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20828 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20829 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20830 | |
| 20831 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20832 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20834 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20835 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20836 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20837 | |
| 20838 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20839 | |
| 20840 | fi |
| 20841 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20842 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20843 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20844 | for ac_func in gettimeofday |
| 20845 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20846 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20847 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20848 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20849 | 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] | 20850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20851 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20852 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20853 | /* confdefs.h. */ |
| 20854 | _ACEOF |
| 20855 | cat confdefs.h >>conftest.$ac_ext |
| 20856 | cat >>conftest.$ac_ext <<_ACEOF |
| 20857 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20858 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20859 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20860 | #define $ac_func innocuous_$ac_func |
| 20861 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20862 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20863 | which can conflict with char $ac_func (); below. |
| 20864 | 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] | 20865 | <limits.h> exists even on freestanding compilers. */ |
| 20866 | |
| 20867 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20868 | # include <limits.h> |
| 20869 | #else |
| 20870 | # include <assert.h> |
| 20871 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20872 | |
| 20873 | #undef $ac_func |
| 20874 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20875 | /* Override any GCC internal prototype to avoid an error. |
| 20876 | Use char because int might match the return type of a GCC |
| 20877 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20878 | #ifdef __cplusplus |
| 20879 | extern "C" |
| 20880 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20881 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20882 | /* The GNU C library defines this for functions which it implements |
| 20883 | to always fail with ENOSYS. Some functions are actually named |
| 20884 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20885 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20886 | choke me |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20887 | #endif |
| 20888 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20889 | int |
| 20890 | main () |
| 20891 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20892 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20893 | ; |
| 20894 | return 0; |
| 20895 | } |
| 20896 | _ACEOF |
| 20897 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20898 | if { (ac_try="$ac_link" |
| 20899 | case "(($ac_try" in |
| 20900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20901 | *) ac_try_echo=$ac_try;; |
| 20902 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20904 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20905 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20907 | rm -f conftest.er1 |
| 20908 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20910 | (exit $ac_status); } && { |
| 20911 | test -z "$ac_c_werror_flag" || |
| 20912 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20913 | } && test -s conftest$ac_exeext && |
| 20914 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20915 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20916 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20917 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20919 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20920 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20921 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20922 | |
| 20923 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20924 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20925 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20926 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20927 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20928 | echo "${ECHO_T}$ac_res" >&6; } |
| 20929 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20930 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20931 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20932 | _ACEOF |
| 20933 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20934 | /* confdefs.h. */ |
| 20935 | _ACEOF |
| 20936 | cat confdefs.h >>conftest.$ac_ext |
| 20937 | cat >>conftest.$ac_ext <<_ACEOF |
| 20938 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20939 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20940 | int |
| 20941 | main () |
| 20942 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20943 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20944 | ; |
| 20945 | return 0; |
| 20946 | } |
| 20947 | _ACEOF |
| 20948 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20949 | if { (ac_try="$ac_compile" |
| 20950 | case "(($ac_try" in |
| 20951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20952 | *) ac_try_echo=$ac_try;; |
| 20953 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20955 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20956 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20958 | rm -f conftest.er1 |
| 20959 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20961 | (exit $ac_status); } && { |
| 20962 | test -z "$ac_c_werror_flag" || |
| 20963 | test ! -s conftest.err |
| 20964 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20965 | : |
| 20966 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20967 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20969 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20970 | |
| 20971 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20972 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20973 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20974 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20975 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20976 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20977 | |
| 20978 | 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] | 20979 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20980 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20981 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20982 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20983 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20984 | { echo "$as_me:$LINENO: checking for major" >&5 |
| 20985 | echo $ECHO_N "checking for major... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20986 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20987 | /* confdefs.h. */ |
| 20988 | _ACEOF |
| 20989 | cat confdefs.h >>conftest.$ac_ext |
| 20990 | cat >>conftest.$ac_ext <<_ACEOF |
| 20991 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20992 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 20993 | #if defined(MAJOR_IN_MKDEV) |
| 20994 | #include <sys/mkdev.h> |
| 20995 | #elif defined(MAJOR_IN_SYSMACROS) |
| 20996 | #include <sys/sysmacros.h> |
| 20997 | #else |
| 20998 | #include <sys/types.h> |
| 20999 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21000 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21001 | int |
| 21002 | main () |
| 21003 | { |
| 21004 | |
| 21005 | makedev(major(0),minor(0)); |
| 21006 | |
| 21007 | ; |
| 21008 | return 0; |
| 21009 | } |
| 21010 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 21011 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21012 | if { (ac_try="$ac_link" |
| 21013 | case "(($ac_try" in |
| 21014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21015 | *) ac_try_echo=$ac_try;; |
| 21016 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21018 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21019 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21021 | rm -f conftest.er1 |
| 21022 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21024 | (exit $ac_status); } && { |
| 21025 | test -z "$ac_c_werror_flag" || |
| 21026 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21027 | } && test -s conftest$ac_exeext && |
| 21028 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21029 | |
| 21030 | |
| 21031 | cat >>confdefs.h <<\_ACEOF |
| 21032 | #define HAVE_DEVICE_MACROS 1 |
| 21033 | _ACEOF |
| 21034 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21035 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21036 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21037 | |
| 21038 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21039 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21041 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21042 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21043 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21044 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21045 | |
| 21046 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21047 | |
| 21048 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21049 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21050 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21051 | # 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] | 21052 | # for [no]getaddrinfo in netdb.h. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21053 | { echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 21054 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21055 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21056 | /* confdefs.h. */ |
| 21057 | _ACEOF |
| 21058 | cat confdefs.h >>conftest.$ac_ext |
| 21059 | cat >>conftest.$ac_ext <<_ACEOF |
| 21060 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21061 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 21062 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21063 | #include <sys/socket.h> |
| 21064 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 21065 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21066 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21067 | int |
| 21068 | main () |
| 21069 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21070 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21071 | ; |
| 21072 | return 0; |
| 21073 | } |
| 21074 | _ACEOF |
| 21075 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21076 | if { (ac_try="$ac_link" |
| 21077 | case "(($ac_try" in |
| 21078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21079 | *) ac_try_echo=$ac_try;; |
| 21080 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21082 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21083 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21084 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21085 | rm -f conftest.er1 |
| 21086 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21088 | (exit $ac_status); } && { |
| 21089 | test -z "$ac_c_werror_flag" || |
| 21090 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21091 | } && test -s conftest$ac_exeext && |
| 21092 | $as_test_x conftest$ac_exeext; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21093 | have_getaddrinfo=yes |
| 21094 | else |
| 21095 | echo "$as_me: failed program was:" >&5 |
| 21096 | sed 's/^/| /' conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21097 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21098 | have_getaddrinfo=no |
| 21099 | fi |
| 21100 | |
| 21101 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 21102 | conftest$ac_exeext conftest.$ac_ext |
| 21103 | { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5 |
| 21104 | echo "${ECHO_T}$have_getaddrinfo" >&6; } |
| 21105 | if test $have_getaddrinfo = yes |
| 21106 | then |
| 21107 | { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21108 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21109 | if test "${ac_cv_buggy_getaddrinfo+set}" = set; then |
| 21110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21111 | else |
| 21112 | if test "$cross_compiling" = yes; then |
| 21113 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21114 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21115 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21116 | /* confdefs.h. */ |
| 21117 | _ACEOF |
| 21118 | cat confdefs.h >>conftest.$ac_ext |
| 21119 | cat >>conftest.$ac_ext <<_ACEOF |
| 21120 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21121 | |
| 21122 | #include <sys/types.h> |
| 21123 | #include <netdb.h> |
| 21124 | #include <string.h> |
| 21125 | #include <sys/socket.h> |
| 21126 | #include <netinet/in.h> |
| 21127 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21128 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21129 | { |
| 21130 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 21131 | struct addrinfo hints, *ai, *aitop; |
| 21132 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 21133 | |
| 21134 | for (passive = 0; passive <= 1; passive++) { |
| 21135 | memset(&hints, 0, sizeof(hints)); |
| 21136 | hints.ai_family = AF_UNSPEC; |
| 21137 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 21138 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 21139 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21140 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 21141 | (void)gai_strerror(gaierr); |
| 21142 | goto bad; |
| 21143 | } |
| 21144 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 21145 | if (ai->ai_addr == NULL || |
| 21146 | ai->ai_addrlen == 0 || |
| 21147 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 21148 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 21149 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 21150 | goto bad; |
| 21151 | } |
| 21152 | switch (ai->ai_family) { |
| 21153 | case AF_INET: |
| 21154 | if (strcmp(strport, "54321") != 0) { |
| 21155 | goto bad; |
| 21156 | } |
| 21157 | if (passive) { |
| 21158 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 21159 | goto bad; |
| 21160 | } |
| 21161 | } else { |
| 21162 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 21163 | goto bad; |
| 21164 | } |
| 21165 | } |
| 21166 | inet4++; |
| 21167 | break; |
| 21168 | case AF_INET6: |
| 21169 | if (strcmp(strport, "54321") != 0) { |
| 21170 | goto bad; |
| 21171 | } |
| 21172 | if (passive) { |
| 21173 | if (strcmp(straddr, "::") != 0) { |
| 21174 | goto bad; |
| 21175 | } |
| 21176 | } else { |
| 21177 | if (strcmp(straddr, "::1") != 0) { |
| 21178 | goto bad; |
| 21179 | } |
| 21180 | } |
| 21181 | inet6++; |
| 21182 | break; |
| 21183 | case AF_UNSPEC: |
| 21184 | goto bad; |
| 21185 | break; |
| 21186 | default: |
| 21187 | /* another family support? */ |
| 21188 | break; |
| 21189 | } |
| 21190 | } |
| 21191 | } |
| 21192 | |
| 21193 | if (!(inet4 == 0 || inet4 == 2)) |
| 21194 | goto bad; |
| 21195 | if (!(inet6 == 0 || inet6 == 2)) |
| 21196 | goto bad; |
| 21197 | |
| 21198 | if (aitop) |
| 21199 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21200 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21201 | |
| 21202 | bad: |
| 21203 | if (aitop) |
| 21204 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21205 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21206 | } |
| 21207 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21208 | _ACEOF |
| 21209 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21210 | if { (ac_try="$ac_link" |
| 21211 | case "(($ac_try" in |
| 21212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21213 | *) ac_try_echo=$ac_try;; |
| 21214 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21216 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21217 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21219 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21220 | { (case "(($ac_try" in |
| 21221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21222 | *) ac_try_echo=$ac_try;; |
| 21223 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21225 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21226 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21228 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21229 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21230 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21231 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21232 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21234 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21235 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21236 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21237 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21238 | 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] | 21239 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21240 | |
| 21241 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21242 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21243 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21244 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21245 | |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 21246 | if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21247 | then |
| 21248 | if test $ipv6 = yes |
| 21249 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21250 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 21251 | echo ' or you can specify "--disable-ipv6"'. |
| 21252 | exit 1 |
| 21253 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21254 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21255 | |
| 21256 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21257 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21258 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21259 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21260 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21261 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 21262 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21263 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21264 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21265 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21266 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21267 | 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] | 21268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21269 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21270 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21271 | /* confdefs.h. */ |
| 21272 | _ACEOF |
| 21273 | cat confdefs.h >>conftest.$ac_ext |
| 21274 | cat >>conftest.$ac_ext <<_ACEOF |
| 21275 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21276 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21277 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21278 | #define $ac_func innocuous_$ac_func |
| 21279 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21280 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21281 | which can conflict with char $ac_func (); below. |
| 21282 | 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] | 21283 | <limits.h> exists even on freestanding compilers. */ |
| 21284 | |
| 21285 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21286 | # include <limits.h> |
| 21287 | #else |
| 21288 | # include <assert.h> |
| 21289 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21290 | |
| 21291 | #undef $ac_func |
| 21292 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21293 | /* Override any GCC internal prototype to avoid an error. |
| 21294 | Use char because int might match the return type of a GCC |
| 21295 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21296 | #ifdef __cplusplus |
| 21297 | extern "C" |
| 21298 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21299 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21300 | /* The GNU C library defines this for functions which it implements |
| 21301 | to always fail with ENOSYS. Some functions are actually named |
| 21302 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21303 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21304 | choke me |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21305 | #endif |
| 21306 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21307 | int |
| 21308 | main () |
| 21309 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21310 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21311 | ; |
| 21312 | return 0; |
| 21313 | } |
| 21314 | _ACEOF |
| 21315 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21316 | if { (ac_try="$ac_link" |
| 21317 | case "(($ac_try" in |
| 21318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21319 | *) ac_try_echo=$ac_try;; |
| 21320 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21322 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21323 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21324 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21325 | rm -f conftest.er1 |
| 21326 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21328 | (exit $ac_status); } && { |
| 21329 | test -z "$ac_c_werror_flag" || |
| 21330 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21331 | } && test -s conftest$ac_exeext && |
| 21332 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21333 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21334 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21335 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21337 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21338 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21339 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21340 | |
| 21341 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21342 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21343 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21344 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 21345 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21346 | echo "${ECHO_T}$ac_res" >&6; } |
| 21347 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21348 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21349 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21350 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21351 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21352 | fi |
| 21353 | done |
| 21354 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21355 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21356 | # checks for structures |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21357 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 21358 | 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] | 21359 | if test "${ac_cv_header_time+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21361 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21362 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21363 | /* confdefs.h. */ |
| 21364 | _ACEOF |
| 21365 | cat confdefs.h >>conftest.$ac_ext |
| 21366 | cat >>conftest.$ac_ext <<_ACEOF |
| 21367 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21368 | #include <sys/types.h> |
| 21369 | #include <sys/time.h> |
| 21370 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21371 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21372 | int |
| 21373 | main () |
| 21374 | { |
| 21375 | if ((struct tm *) 0) |
| 21376 | return 0; |
| 21377 | ; |
| 21378 | return 0; |
| 21379 | } |
| 21380 | _ACEOF |
| 21381 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21382 | if { (ac_try="$ac_compile" |
| 21383 | case "(($ac_try" in |
| 21384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21385 | *) ac_try_echo=$ac_try;; |
| 21386 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21388 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21389 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21391 | rm -f conftest.er1 |
| 21392 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21394 | (exit $ac_status); } && { |
| 21395 | test -z "$ac_c_werror_flag" || |
| 21396 | test ! -s conftest.err |
| 21397 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21398 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21399 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21400 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21402 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21403 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21404 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21405 | |
| 21406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21407 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21408 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 21409 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21410 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21411 | |
| 21412 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21413 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21414 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21415 | |
| 21416 | fi |
| 21417 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21418 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 21419 | 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] | 21420 | if test "${ac_cv_struct_tm+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21422 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21423 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21424 | /* confdefs.h. */ |
| 21425 | _ACEOF |
| 21426 | cat confdefs.h >>conftest.$ac_ext |
| 21427 | cat >>conftest.$ac_ext <<_ACEOF |
| 21428 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21429 | #include <sys/types.h> |
| 21430 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21431 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21432 | int |
| 21433 | main () |
| 21434 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21435 | struct tm tm; |
| 21436 | int *p = &tm.tm_sec; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21437 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21438 | ; |
| 21439 | return 0; |
| 21440 | } |
| 21441 | _ACEOF |
| 21442 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21443 | if { (ac_try="$ac_compile" |
| 21444 | case "(($ac_try" in |
| 21445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21446 | *) ac_try_echo=$ac_try;; |
| 21447 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21449 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21450 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21452 | rm -f conftest.er1 |
| 21453 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21455 | (exit $ac_status); } && { |
| 21456 | test -z "$ac_c_werror_flag" || |
| 21457 | test ! -s conftest.err |
| 21458 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21459 | ac_cv_struct_tm=time.h |
| 21460 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21461 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21463 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21464 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21465 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21466 | |
| 21467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21468 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21469 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 21470 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21471 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21472 | |
| 21473 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21474 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21475 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21476 | |
| 21477 | fi |
| 21478 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21479 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 21480 | 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] | 21481 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21483 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21484 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21485 | /* confdefs.h. */ |
| 21486 | _ACEOF |
| 21487 | cat confdefs.h >>conftest.$ac_ext |
| 21488 | cat >>conftest.$ac_ext <<_ACEOF |
| 21489 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21490 | #include <sys/types.h> |
| 21491 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21492 | |
| 21493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21494 | int |
| 21495 | main () |
| 21496 | { |
| 21497 | static struct tm ac_aggr; |
| 21498 | if (ac_aggr.tm_zone) |
| 21499 | return 0; |
| 21500 | ; |
| 21501 | return 0; |
| 21502 | } |
| 21503 | _ACEOF |
| 21504 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21505 | if { (ac_try="$ac_compile" |
| 21506 | case "(($ac_try" in |
| 21507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21508 | *) ac_try_echo=$ac_try;; |
| 21509 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21511 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21512 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21514 | rm -f conftest.er1 |
| 21515 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21517 | (exit $ac_status); } && { |
| 21518 | test -z "$ac_c_werror_flag" || |
| 21519 | test ! -s conftest.err |
| 21520 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21521 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21522 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21523 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21524 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21525 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21526 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21527 | /* confdefs.h. */ |
| 21528 | _ACEOF |
| 21529 | cat confdefs.h >>conftest.$ac_ext |
| 21530 | cat >>conftest.$ac_ext <<_ACEOF |
| 21531 | /* end confdefs.h. */ |
| 21532 | #include <sys/types.h> |
| 21533 | #include <$ac_cv_struct_tm> |
| 21534 | |
| 21535 | |
| 21536 | int |
| 21537 | main () |
| 21538 | { |
| 21539 | static struct tm ac_aggr; |
| 21540 | if (sizeof ac_aggr.tm_zone) |
| 21541 | return 0; |
| 21542 | ; |
| 21543 | return 0; |
| 21544 | } |
| 21545 | _ACEOF |
| 21546 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21547 | if { (ac_try="$ac_compile" |
| 21548 | case "(($ac_try" in |
| 21549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21550 | *) ac_try_echo=$ac_try;; |
| 21551 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21553 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21554 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21555 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21556 | rm -f conftest.er1 |
| 21557 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21559 | (exit $ac_status); } && { |
| 21560 | test -z "$ac_c_werror_flag" || |
| 21561 | test ! -s conftest.err |
| 21562 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21563 | ac_cv_member_struct_tm_tm_zone=yes |
| 21564 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21565 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21567 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21568 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21569 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21570 | |
| 21571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21572 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21573 | |
| 21574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21575 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21576 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 21577 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 21578 | 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] | 21579 | |
| 21580 | cat >>confdefs.h <<_ACEOF |
| 21581 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 21582 | _ACEOF |
| 21583 | |
| 21584 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21585 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 21586 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21587 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 21588 | |
| 21589 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21590 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21591 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21592 | |
| 21593 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21594 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 21595 | 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] | 21596 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21598 | else |
| 21599 | cat >conftest.$ac_ext <<_ACEOF |
| 21600 | /* confdefs.h. */ |
| 21601 | _ACEOF |
| 21602 | cat confdefs.h >>conftest.$ac_ext |
| 21603 | cat >>conftest.$ac_ext <<_ACEOF |
| 21604 | /* end confdefs.h. */ |
| 21605 | #include <time.h> |
| 21606 | |
| 21607 | int |
| 21608 | main () |
| 21609 | { |
| 21610 | #ifndef tzname |
| 21611 | (void) tzname; |
| 21612 | #endif |
| 21613 | |
| 21614 | ; |
| 21615 | return 0; |
| 21616 | } |
| 21617 | _ACEOF |
| 21618 | rm -f conftest.$ac_objext |
| 21619 | if { (ac_try="$ac_compile" |
| 21620 | case "(($ac_try" in |
| 21621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21622 | *) ac_try_echo=$ac_try;; |
| 21623 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21625 | (eval "$ac_compile") 2>conftest.er1 |
| 21626 | ac_status=$? |
| 21627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21628 | rm -f conftest.er1 |
| 21629 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21631 | (exit $ac_status); } && { |
| 21632 | test -z "$ac_c_werror_flag" || |
| 21633 | test ! -s conftest.err |
| 21634 | } && test -s conftest.$ac_objext; then |
| 21635 | ac_cv_have_decl_tzname=yes |
| 21636 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21637 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21639 | |
| 21640 | ac_cv_have_decl_tzname=no |
| 21641 | fi |
| 21642 | |
| 21643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21644 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21645 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 21646 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 21647 | if test $ac_cv_have_decl_tzname = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21648 | |
| 21649 | cat >>confdefs.h <<_ACEOF |
| 21650 | #define HAVE_DECL_TZNAME 1 |
| 21651 | _ACEOF |
| 21652 | |
| 21653 | |
| 21654 | else |
| 21655 | cat >>confdefs.h <<_ACEOF |
| 21656 | #define HAVE_DECL_TZNAME 0 |
| 21657 | _ACEOF |
| 21658 | |
| 21659 | |
| 21660 | fi |
| 21661 | |
| 21662 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21663 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 21664 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21665 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21667 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21668 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21669 | /* confdefs.h. */ |
| 21670 | _ACEOF |
| 21671 | cat confdefs.h >>conftest.$ac_ext |
| 21672 | cat >>conftest.$ac_ext <<_ACEOF |
| 21673 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21674 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21675 | #if !HAVE_DECL_TZNAME |
| 21676 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21677 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21678 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21679 | int |
| 21680 | main () |
| 21681 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21682 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21683 | ; |
| 21684 | return 0; |
| 21685 | } |
| 21686 | _ACEOF |
| 21687 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21688 | if { (ac_try="$ac_link" |
| 21689 | case "(($ac_try" in |
| 21690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21691 | *) ac_try_echo=$ac_try;; |
| 21692 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21694 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21695 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21697 | rm -f conftest.er1 |
| 21698 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21700 | (exit $ac_status); } && { |
| 21701 | test -z "$ac_c_werror_flag" || |
| 21702 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21703 | } && test -s conftest$ac_exeext && |
| 21704 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21705 | ac_cv_var_tzname=yes |
| 21706 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21707 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21708 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21709 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21710 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21711 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21712 | |
| 21713 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21714 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21715 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21716 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 21717 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21718 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21719 | |
| 21720 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21721 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21722 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21723 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21724 | fi |
| 21725 | fi |
| 21726 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21727 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 21728 | 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] | 21729 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21731 | else |
| 21732 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21733 | /* confdefs.h. */ |
| 21734 | _ACEOF |
| 21735 | cat confdefs.h >>conftest.$ac_ext |
| 21736 | cat >>conftest.$ac_ext <<_ACEOF |
| 21737 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21738 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21739 | int |
| 21740 | main () |
| 21741 | { |
| 21742 | static struct stat ac_aggr; |
| 21743 | if (ac_aggr.st_rdev) |
| 21744 | return 0; |
| 21745 | ; |
| 21746 | return 0; |
| 21747 | } |
| 21748 | _ACEOF |
| 21749 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21750 | if { (ac_try="$ac_compile" |
| 21751 | case "(($ac_try" in |
| 21752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21753 | *) ac_try_echo=$ac_try;; |
| 21754 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21756 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21757 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21759 | rm -f conftest.er1 |
| 21760 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21762 | (exit $ac_status); } && { |
| 21763 | test -z "$ac_c_werror_flag" || |
| 21764 | test ! -s conftest.err |
| 21765 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21766 | ac_cv_member_struct_stat_st_rdev=yes |
| 21767 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21768 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21770 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21771 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21772 | /* confdefs.h. */ |
| 21773 | _ACEOF |
| 21774 | cat confdefs.h >>conftest.$ac_ext |
| 21775 | cat >>conftest.$ac_ext <<_ACEOF |
| 21776 | /* end confdefs.h. */ |
| 21777 | $ac_includes_default |
| 21778 | int |
| 21779 | main () |
| 21780 | { |
| 21781 | static struct stat ac_aggr; |
| 21782 | if (sizeof ac_aggr.st_rdev) |
| 21783 | return 0; |
| 21784 | ; |
| 21785 | return 0; |
| 21786 | } |
| 21787 | _ACEOF |
| 21788 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21789 | if { (ac_try="$ac_compile" |
| 21790 | case "(($ac_try" in |
| 21791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21792 | *) ac_try_echo=$ac_try;; |
| 21793 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21795 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21796 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21797 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21798 | rm -f conftest.er1 |
| 21799 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21801 | (exit $ac_status); } && { |
| 21802 | test -z "$ac_c_werror_flag" || |
| 21803 | test ! -s conftest.err |
| 21804 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21805 | ac_cv_member_struct_stat_st_rdev=yes |
| 21806 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21807 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21809 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21810 | ac_cv_member_struct_stat_st_rdev=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21811 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21812 | |
| 21813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21814 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21815 | |
| 21816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21817 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21818 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 21819 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } |
| 21820 | 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] | 21821 | |
| 21822 | cat >>confdefs.h <<_ACEOF |
| 21823 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 21824 | _ACEOF |
| 21825 | |
| 21826 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21827 | fi |
| 21828 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21829 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 21830 | 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] | 21831 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21833 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21834 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21835 | /* confdefs.h. */ |
| 21836 | _ACEOF |
| 21837 | cat confdefs.h >>conftest.$ac_ext |
| 21838 | cat >>conftest.$ac_ext <<_ACEOF |
| 21839 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21840 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21841 | int |
| 21842 | main () |
| 21843 | { |
| 21844 | static struct stat ac_aggr; |
| 21845 | if (ac_aggr.st_blksize) |
| 21846 | return 0; |
| 21847 | ; |
| 21848 | return 0; |
| 21849 | } |
| 21850 | _ACEOF |
| 21851 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21852 | if { (ac_try="$ac_compile" |
| 21853 | case "(($ac_try" in |
| 21854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21855 | *) ac_try_echo=$ac_try;; |
| 21856 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21858 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21859 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21861 | rm -f conftest.er1 |
| 21862 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21864 | (exit $ac_status); } && { |
| 21865 | test -z "$ac_c_werror_flag" || |
| 21866 | test ! -s conftest.err |
| 21867 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21868 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21869 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21870 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21872 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21873 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21874 | /* confdefs.h. */ |
| 21875 | _ACEOF |
| 21876 | cat confdefs.h >>conftest.$ac_ext |
| 21877 | cat >>conftest.$ac_ext <<_ACEOF |
| 21878 | /* end confdefs.h. */ |
| 21879 | $ac_includes_default |
| 21880 | int |
| 21881 | main () |
| 21882 | { |
| 21883 | static struct stat ac_aggr; |
| 21884 | if (sizeof ac_aggr.st_blksize) |
| 21885 | return 0; |
| 21886 | ; |
| 21887 | return 0; |
| 21888 | } |
| 21889 | _ACEOF |
| 21890 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21891 | if { (ac_try="$ac_compile" |
| 21892 | case "(($ac_try" in |
| 21893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21894 | *) ac_try_echo=$ac_try;; |
| 21895 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21897 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21898 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21899 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21900 | rm -f conftest.er1 |
| 21901 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21903 | (exit $ac_status); } && { |
| 21904 | test -z "$ac_c_werror_flag" || |
| 21905 | test ! -s conftest.err |
| 21906 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21907 | ac_cv_member_struct_stat_st_blksize=yes |
| 21908 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21909 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21911 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21912 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21913 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21914 | |
| 21915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21916 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21917 | |
| 21918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21919 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21920 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 21921 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } |
| 21922 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21924 | cat >>confdefs.h <<_ACEOF |
| 21925 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 21926 | _ACEOF |
| 21927 | |
| 21928 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21929 | fi |
| 21930 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21931 | { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 21932 | 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] | 21933 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21935 | else |
| 21936 | cat >conftest.$ac_ext <<_ACEOF |
| 21937 | /* confdefs.h. */ |
| 21938 | _ACEOF |
| 21939 | cat confdefs.h >>conftest.$ac_ext |
| 21940 | cat >>conftest.$ac_ext <<_ACEOF |
| 21941 | /* end confdefs.h. */ |
| 21942 | $ac_includes_default |
| 21943 | int |
| 21944 | main () |
| 21945 | { |
| 21946 | static struct stat ac_aggr; |
| 21947 | if (ac_aggr.st_flags) |
| 21948 | return 0; |
| 21949 | ; |
| 21950 | return 0; |
| 21951 | } |
| 21952 | _ACEOF |
| 21953 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21954 | if { (ac_try="$ac_compile" |
| 21955 | case "(($ac_try" in |
| 21956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21957 | *) ac_try_echo=$ac_try;; |
| 21958 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21960 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21961 | ac_status=$? |
| 21962 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21963 | rm -f conftest.er1 |
| 21964 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21966 | (exit $ac_status); } && { |
| 21967 | test -z "$ac_c_werror_flag" || |
| 21968 | test ! -s conftest.err |
| 21969 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21970 | ac_cv_member_struct_stat_st_flags=yes |
| 21971 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21972 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21974 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21975 | cat >conftest.$ac_ext <<_ACEOF |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21976 | /* confdefs.h. */ |
| 21977 | _ACEOF |
| 21978 | cat confdefs.h >>conftest.$ac_ext |
| 21979 | cat >>conftest.$ac_ext <<_ACEOF |
| 21980 | /* end confdefs.h. */ |
| 21981 | $ac_includes_default |
| 21982 | int |
| 21983 | main () |
| 21984 | { |
| 21985 | static struct stat ac_aggr; |
| 21986 | if (sizeof ac_aggr.st_flags) |
| 21987 | return 0; |
| 21988 | ; |
| 21989 | return 0; |
| 21990 | } |
| 21991 | _ACEOF |
| 21992 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21993 | if { (ac_try="$ac_compile" |
| 21994 | case "(($ac_try" in |
| 21995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21996 | *) ac_try_echo=$ac_try;; |
| 21997 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21999 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22000 | ac_status=$? |
| 22001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22002 | rm -f conftest.er1 |
| 22003 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22005 | (exit $ac_status); } && { |
| 22006 | test -z "$ac_c_werror_flag" || |
| 22007 | test ! -s conftest.err |
| 22008 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22009 | ac_cv_member_struct_stat_st_flags=yes |
| 22010 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22011 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22013 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22014 | ac_cv_member_struct_stat_st_flags=no |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22015 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22016 | |
| 22017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22018 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22019 | |
| 22020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22021 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22022 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 22023 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; } |
| 22024 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22025 | |
| 22026 | cat >>confdefs.h <<_ACEOF |
| 22027 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 22028 | _ACEOF |
| 22029 | |
| 22030 | |
| 22031 | fi |
| 22032 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22033 | { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 22034 | 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] | 22035 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22037 | else |
| 22038 | cat >conftest.$ac_ext <<_ACEOF |
| 22039 | /* confdefs.h. */ |
| 22040 | _ACEOF |
| 22041 | cat confdefs.h >>conftest.$ac_ext |
| 22042 | cat >>conftest.$ac_ext <<_ACEOF |
| 22043 | /* end confdefs.h. */ |
| 22044 | $ac_includes_default |
| 22045 | int |
| 22046 | main () |
| 22047 | { |
| 22048 | static struct stat ac_aggr; |
| 22049 | if (ac_aggr.st_gen) |
| 22050 | return 0; |
| 22051 | ; |
| 22052 | return 0; |
| 22053 | } |
| 22054 | _ACEOF |
| 22055 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22056 | if { (ac_try="$ac_compile" |
| 22057 | case "(($ac_try" in |
| 22058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22059 | *) ac_try_echo=$ac_try;; |
| 22060 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22062 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22063 | ac_status=$? |
| 22064 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22065 | rm -f conftest.er1 |
| 22066 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22068 | (exit $ac_status); } && { |
| 22069 | test -z "$ac_c_werror_flag" || |
| 22070 | test ! -s conftest.err |
| 22071 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22072 | ac_cv_member_struct_stat_st_gen=yes |
| 22073 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22074 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22076 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22077 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22078 | /* confdefs.h. */ |
| 22079 | _ACEOF |
| 22080 | cat confdefs.h >>conftest.$ac_ext |
| 22081 | cat >>conftest.$ac_ext <<_ACEOF |
| 22082 | /* end confdefs.h. */ |
| 22083 | $ac_includes_default |
| 22084 | int |
| 22085 | main () |
| 22086 | { |
| 22087 | static struct stat ac_aggr; |
| 22088 | if (sizeof ac_aggr.st_gen) |
| 22089 | return 0; |
| 22090 | ; |
| 22091 | return 0; |
| 22092 | } |
| 22093 | _ACEOF |
| 22094 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22095 | if { (ac_try="$ac_compile" |
| 22096 | case "(($ac_try" in |
| 22097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22098 | *) ac_try_echo=$ac_try;; |
| 22099 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22101 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22102 | ac_status=$? |
| 22103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22104 | rm -f conftest.er1 |
| 22105 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22107 | (exit $ac_status); } && { |
| 22108 | test -z "$ac_c_werror_flag" || |
| 22109 | test ! -s conftest.err |
| 22110 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22111 | ac_cv_member_struct_stat_st_gen=yes |
| 22112 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22113 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22115 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22116 | ac_cv_member_struct_stat_st_gen=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22117 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22118 | |
| 22119 | 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] | 22120 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22121 | |
| 22122 | 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] | 22123 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22124 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 22125 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; } |
| 22126 | 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] | 22127 | |
| 22128 | cat >>confdefs.h <<_ACEOF |
| 22129 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 22130 | _ACEOF |
| 22131 | |
| 22132 | |
| 22133 | fi |
| 22134 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22135 | { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 22136 | 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] | 22137 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22139 | else |
| 22140 | cat >conftest.$ac_ext <<_ACEOF |
| 22141 | /* confdefs.h. */ |
| 22142 | _ACEOF |
| 22143 | cat confdefs.h >>conftest.$ac_ext |
| 22144 | cat >>conftest.$ac_ext <<_ACEOF |
| 22145 | /* end confdefs.h. */ |
| 22146 | $ac_includes_default |
| 22147 | int |
| 22148 | main () |
| 22149 | { |
| 22150 | static struct stat ac_aggr; |
| 22151 | if (ac_aggr.st_birthtime) |
| 22152 | return 0; |
| 22153 | ; |
| 22154 | return 0; |
| 22155 | } |
| 22156 | _ACEOF |
| 22157 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22158 | if { (ac_try="$ac_compile" |
| 22159 | case "(($ac_try" in |
| 22160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22161 | *) ac_try_echo=$ac_try;; |
| 22162 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22164 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22165 | ac_status=$? |
| 22166 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22167 | rm -f conftest.er1 |
| 22168 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22170 | (exit $ac_status); } && { |
| 22171 | test -z "$ac_c_werror_flag" || |
| 22172 | test ! -s conftest.err |
| 22173 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22174 | ac_cv_member_struct_stat_st_birthtime=yes |
| 22175 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22176 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22178 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22179 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22180 | /* confdefs.h. */ |
| 22181 | _ACEOF |
| 22182 | cat confdefs.h >>conftest.$ac_ext |
| 22183 | cat >>conftest.$ac_ext <<_ACEOF |
| 22184 | /* end confdefs.h. */ |
| 22185 | $ac_includes_default |
| 22186 | int |
| 22187 | main () |
| 22188 | { |
| 22189 | static struct stat ac_aggr; |
| 22190 | if (sizeof ac_aggr.st_birthtime) |
| 22191 | return 0; |
| 22192 | ; |
| 22193 | return 0; |
| 22194 | } |
| 22195 | _ACEOF |
| 22196 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22197 | if { (ac_try="$ac_compile" |
| 22198 | case "(($ac_try" in |
| 22199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22200 | *) ac_try_echo=$ac_try;; |
| 22201 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22203 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22204 | ac_status=$? |
| 22205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22206 | rm -f conftest.er1 |
| 22207 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22209 | (exit $ac_status); } && { |
| 22210 | test -z "$ac_c_werror_flag" || |
| 22211 | test ! -s conftest.err |
| 22212 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22213 | ac_cv_member_struct_stat_st_birthtime=yes |
| 22214 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22215 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22217 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22218 | ac_cv_member_struct_stat_st_birthtime=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22219 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22220 | |
| 22221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22222 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22223 | |
| 22224 | 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] | 22225 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22226 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 22227 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; } |
| 22228 | 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] | 22229 | |
| 22230 | cat >>confdefs.h <<_ACEOF |
| 22231 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 22232 | _ACEOF |
| 22233 | |
| 22234 | |
| 22235 | fi |
| 22236 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22237 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 22238 | 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] | 22239 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22241 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22242 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22243 | /* confdefs.h. */ |
| 22244 | _ACEOF |
| 22245 | cat confdefs.h >>conftest.$ac_ext |
| 22246 | cat >>conftest.$ac_ext <<_ACEOF |
| 22247 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22248 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22249 | int |
| 22250 | main () |
| 22251 | { |
| 22252 | static struct stat ac_aggr; |
| 22253 | if (ac_aggr.st_blocks) |
| 22254 | return 0; |
| 22255 | ; |
| 22256 | return 0; |
| 22257 | } |
| 22258 | _ACEOF |
| 22259 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22260 | if { (ac_try="$ac_compile" |
| 22261 | case "(($ac_try" in |
| 22262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22263 | *) ac_try_echo=$ac_try;; |
| 22264 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22266 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22267 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22269 | rm -f conftest.er1 |
| 22270 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22272 | (exit $ac_status); } && { |
| 22273 | test -z "$ac_c_werror_flag" || |
| 22274 | test ! -s conftest.err |
| 22275 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22276 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22277 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22278 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22280 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22281 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22282 | /* confdefs.h. */ |
| 22283 | _ACEOF |
| 22284 | cat confdefs.h >>conftest.$ac_ext |
| 22285 | cat >>conftest.$ac_ext <<_ACEOF |
| 22286 | /* end confdefs.h. */ |
| 22287 | $ac_includes_default |
| 22288 | int |
| 22289 | main () |
| 22290 | { |
| 22291 | static struct stat ac_aggr; |
| 22292 | if (sizeof ac_aggr.st_blocks) |
| 22293 | return 0; |
| 22294 | ; |
| 22295 | return 0; |
| 22296 | } |
| 22297 | _ACEOF |
| 22298 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22299 | if { (ac_try="$ac_compile" |
| 22300 | case "(($ac_try" in |
| 22301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22302 | *) ac_try_echo=$ac_try;; |
| 22303 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22305 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22306 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22308 | rm -f conftest.er1 |
| 22309 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22311 | (exit $ac_status); } && { |
| 22312 | test -z "$ac_c_werror_flag" || |
| 22313 | test ! -s conftest.err |
| 22314 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22315 | ac_cv_member_struct_stat_st_blocks=yes |
| 22316 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22317 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22319 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22320 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22321 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22322 | |
| 22323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22324 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22325 | |
| 22326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22327 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22328 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 22329 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } |
| 22330 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22331 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22332 | cat >>confdefs.h <<_ACEOF |
| 22333 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 22334 | _ACEOF |
| 22335 | |
| 22336 | |
| 22337 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22338 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22339 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22340 | |
| 22341 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22342 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22343 | *" fileblocks.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22344 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 22345 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22346 | esac |
| 22347 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22348 | fi |
| 22349 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22350 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22351 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22352 | { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 22353 | 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] | 22354 | if test "${ac_cv_header_time_altzone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22356 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22357 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22358 | /* confdefs.h. */ |
| 22359 | _ACEOF |
| 22360 | cat confdefs.h >>conftest.$ac_ext |
| 22361 | cat >>conftest.$ac_ext <<_ACEOF |
| 22362 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22363 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22364 | int |
| 22365 | main () |
| 22366 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22367 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22368 | ; |
| 22369 | return 0; |
| 22370 | } |
| 22371 | _ACEOF |
| 22372 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22373 | if { (ac_try="$ac_compile" |
| 22374 | case "(($ac_try" in |
| 22375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22376 | *) ac_try_echo=$ac_try;; |
| 22377 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22379 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22380 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22381 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22382 | rm -f conftest.er1 |
| 22383 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22385 | (exit $ac_status); } && { |
| 22386 | test -z "$ac_c_werror_flag" || |
| 22387 | test ! -s conftest.err |
| 22388 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22389 | ac_cv_header_time_altzone=yes |
| 22390 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22391 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22393 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22394 | ac_cv_header_time_altzone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22395 | fi |
| 22396 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22398 | fi |
| 22399 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22400 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 22401 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22402 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22403 | |
| 22404 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22405 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22406 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22407 | |
| 22408 | fi |
| 22409 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22410 | was_it_defined=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22411 | { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 22412 | 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] | 22413 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22414 | /* confdefs.h. */ |
| 22415 | _ACEOF |
| 22416 | cat confdefs.h >>conftest.$ac_ext |
| 22417 | cat >>conftest.$ac_ext <<_ACEOF |
| 22418 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22419 | |
| 22420 | #include <sys/types.h> |
| 22421 | #include <sys/select.h> |
| 22422 | #include <sys/time.h> |
| 22423 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22424 | int |
| 22425 | main () |
| 22426 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22427 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22428 | ; |
| 22429 | return 0; |
| 22430 | } |
| 22431 | _ACEOF |
| 22432 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22433 | if { (ac_try="$ac_compile" |
| 22434 | case "(($ac_try" in |
| 22435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22436 | *) ac_try_echo=$ac_try;; |
| 22437 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22439 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22440 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22442 | rm -f conftest.er1 |
| 22443 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22445 | (exit $ac_status); } && { |
| 22446 | test -z "$ac_c_werror_flag" || |
| 22447 | test ! -s conftest.err |
| 22448 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22449 | |
| 22450 | |
| 22451 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22452 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22453 | _ACEOF |
| 22454 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22455 | was_it_defined=yes |
| 22456 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22457 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22458 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22460 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 22461 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22462 | fi |
| 22463 | |
| 22464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22465 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 22466 | echo "${ECHO_T}$was_it_defined" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22467 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22468 | { echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 22469 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22470 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22472 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22473 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22474 | /* confdefs.h. */ |
| 22475 | _ACEOF |
| 22476 | cat confdefs.h >>conftest.$ac_ext |
| 22477 | cat >>conftest.$ac_ext <<_ACEOF |
| 22478 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22479 | |
| 22480 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22481 | int |
| 22482 | main () |
| 22483 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22484 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22485 | ; |
| 22486 | return 0; |
| 22487 | } |
| 22488 | _ACEOF |
| 22489 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22490 | if { (ac_try="$ac_compile" |
| 22491 | case "(($ac_try" in |
| 22492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22493 | *) ac_try_echo=$ac_try;; |
| 22494 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22496 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22497 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22498 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22499 | rm -f conftest.er1 |
| 22500 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22502 | (exit $ac_status); } && { |
| 22503 | test -z "$ac_c_werror_flag" || |
| 22504 | test ! -s conftest.err |
| 22505 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22506 | ac_cv_struct_addrinfo=yes |
| 22507 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22508 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22510 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22511 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22512 | fi |
| 22513 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22515 | fi |
| 22516 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22517 | { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 22518 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22519 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22520 | |
| 22521 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22522 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22523 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22524 | |
| 22525 | fi |
| 22526 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22527 | { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 22528 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22529 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22531 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22532 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22533 | /* confdefs.h. */ |
| 22534 | _ACEOF |
| 22535 | cat confdefs.h >>conftest.$ac_ext |
| 22536 | cat >>conftest.$ac_ext <<_ACEOF |
| 22537 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22538 | |
| 22539 | # include <sys/types.h> |
| 22540 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22541 | int |
| 22542 | main () |
| 22543 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22544 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22545 | ; |
| 22546 | return 0; |
| 22547 | } |
| 22548 | _ACEOF |
| 22549 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22550 | if { (ac_try="$ac_compile" |
| 22551 | case "(($ac_try" in |
| 22552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22553 | *) ac_try_echo=$ac_try;; |
| 22554 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22556 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22557 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22559 | rm -f conftest.er1 |
| 22560 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22562 | (exit $ac_status); } && { |
| 22563 | test -z "$ac_c_werror_flag" || |
| 22564 | test ! -s conftest.err |
| 22565 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22566 | ac_cv_struct_sockaddr_storage=yes |
| 22567 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22568 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22570 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22571 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22572 | fi |
| 22573 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22575 | fi |
| 22576 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22577 | { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 22578 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22579 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22580 | |
| 22581 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22582 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22583 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22584 | |
| 22585 | fi |
| 22586 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22587 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22588 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22589 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22590 | { echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 22591 | 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] | 22592 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22594 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22595 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22596 | /* confdefs.h. */ |
| 22597 | _ACEOF |
| 22598 | cat confdefs.h >>conftest.$ac_ext |
| 22599 | cat >>conftest.$ac_ext <<_ACEOF |
| 22600 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22601 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22602 | int |
| 22603 | main () |
| 22604 | { |
| 22605 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 22606 | test_array [0] = 0 |
| 22607 | |
| 22608 | ; |
| 22609 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22610 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22611 | _ACEOF |
| 22612 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22613 | if { (ac_try="$ac_compile" |
| 22614 | case "(($ac_try" in |
| 22615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22616 | *) ac_try_echo=$ac_try;; |
| 22617 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22619 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22620 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22622 | rm -f conftest.er1 |
| 22623 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22625 | (exit $ac_status); } && { |
| 22626 | test -z "$ac_c_werror_flag" || |
| 22627 | test ! -s conftest.err |
| 22628 | } && test -s conftest.$ac_objext; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22629 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22630 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22631 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22633 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22634 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22635 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22636 | |
| 22637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22638 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22639 | { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 22640 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22641 | 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] | 22642 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22643 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22644 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22645 | |
| 22646 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22647 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22648 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 22649 | 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] | 22650 | if test "${ac_cv_c_const+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22652 | else |
| 22653 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22654 | /* confdefs.h. */ |
| 22655 | _ACEOF |
| 22656 | cat confdefs.h >>conftest.$ac_ext |
| 22657 | cat >>conftest.$ac_ext <<_ACEOF |
| 22658 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22659 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22660 | int |
| 22661 | main () |
| 22662 | { |
| 22663 | /* FIXME: Include the comments suggested by Paul. */ |
| 22664 | #ifndef __cplusplus |
| 22665 | /* Ultrix mips cc rejects this. */ |
| 22666 | typedef int charset[2]; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22667 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22668 | /* SunOS 4.1.1 cc rejects this. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22669 | char const *const *pcpcc; |
| 22670 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22671 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 22672 | struct point {int x, y;}; |
| 22673 | static struct point const zero = {0,0}; |
| 22674 | /* AIX XL C 1.02.0.0 rejects this. |
| 22675 | It does not let you subtract one const X* pointer from another in |
| 22676 | an arm of an if-expression whose if-part is not a constant |
| 22677 | expression */ |
| 22678 | const char *g = "string"; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22679 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22680 | /* HPUX 7.0 cc rejects these. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22681 | ++pcpcc; |
| 22682 | ppc = (char**) pcpcc; |
| 22683 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22684 | { /* SCO 3.2v4 cc rejects this. */ |
| 22685 | char *t; |
| 22686 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22688 | *t++ = 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22689 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22690 | } |
| 22691 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 22692 | int x[] = {25, 17}; |
| 22693 | const int *foo = &x[0]; |
| 22694 | ++foo; |
| 22695 | } |
| 22696 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 22697 | typedef const int *iptr; |
| 22698 | iptr p = 0; |
| 22699 | ++p; |
| 22700 | } |
| 22701 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 22702 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 22703 | struct s { int j; const int *ap[3]; }; |
| 22704 | struct s *b; b->j = 5; |
| 22705 | } |
| 22706 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 22707 | const int foo = 10; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22708 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22709 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22710 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22711 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22712 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22713 | ; |
| 22714 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22715 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22716 | _ACEOF |
| 22717 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22718 | if { (ac_try="$ac_compile" |
| 22719 | case "(($ac_try" in |
| 22720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22721 | *) ac_try_echo=$ac_try;; |
| 22722 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22724 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22725 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22726 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22727 | rm -f conftest.er1 |
| 22728 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22730 | (exit $ac_status); } && { |
| 22731 | test -z "$ac_c_werror_flag" || |
| 22732 | test ! -s conftest.err |
| 22733 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22734 | ac_cv_c_const=yes |
| 22735 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22736 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22738 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22739 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22740 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22741 | |
| 22742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22743 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22744 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 22745 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22746 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22747 | |
| 22748 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22749 | #define const |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22750 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22751 | |
| 22752 | fi |
| 22753 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22754 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22755 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22756 | { echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 22757 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22758 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22759 | /* confdefs.h. */ |
| 22760 | _ACEOF |
| 22761 | cat confdefs.h >>conftest.$ac_ext |
| 22762 | cat >>conftest.$ac_ext <<_ACEOF |
| 22763 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22764 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22765 | int |
| 22766 | main () |
| 22767 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22768 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22769 | ; |
| 22770 | return 0; |
| 22771 | } |
| 22772 | _ACEOF |
| 22773 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22774 | if { (ac_try="$ac_compile" |
| 22775 | case "(($ac_try" in |
| 22776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22777 | *) ac_try_echo=$ac_try;; |
| 22778 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22780 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22781 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22783 | rm -f conftest.er1 |
| 22784 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22786 | (exit $ac_status); } && { |
| 22787 | test -z "$ac_c_werror_flag" || |
| 22788 | test ! -s conftest.err |
| 22789 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22790 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22791 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22792 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22794 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22795 | |
| 22796 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22797 | #define volatile |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22798 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22799 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22800 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22801 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22802 | |
| 22803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22804 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22805 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22806 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22807 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22808 | { echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 22809 | 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] | 22810 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22811 | /* confdefs.h. */ |
| 22812 | _ACEOF |
| 22813 | cat confdefs.h >>conftest.$ac_ext |
| 22814 | cat >>conftest.$ac_ext <<_ACEOF |
| 22815 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 22816 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22817 | int |
| 22818 | main () |
| 22819 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22820 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22821 | ; |
| 22822 | return 0; |
| 22823 | } |
| 22824 | _ACEOF |
| 22825 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22826 | if { (ac_try="$ac_compile" |
| 22827 | case "(($ac_try" in |
| 22828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22829 | *) ac_try_echo=$ac_try;; |
| 22830 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22832 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22833 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22835 | rm -f conftest.er1 |
| 22836 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22838 | (exit $ac_status); } && { |
| 22839 | test -z "$ac_c_werror_flag" || |
| 22840 | test ! -s conftest.err |
| 22841 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22842 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 22843 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22844 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22846 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22847 | |
| 22848 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22849 | #define signed |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22850 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22851 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22852 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22853 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22854 | |
| 22855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22856 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22857 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22858 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22859 | have_prototypes=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22860 | { echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 22861 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22862 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22863 | /* confdefs.h. */ |
| 22864 | _ACEOF |
| 22865 | cat confdefs.h >>conftest.$ac_ext |
| 22866 | cat >>conftest.$ac_ext <<_ACEOF |
| 22867 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22868 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22869 | int |
| 22870 | main () |
| 22871 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22872 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22873 | ; |
| 22874 | return 0; |
| 22875 | } |
| 22876 | _ACEOF |
| 22877 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22878 | if { (ac_try="$ac_compile" |
| 22879 | case "(($ac_try" in |
| 22880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22881 | *) ac_try_echo=$ac_try;; |
| 22882 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22884 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22885 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22887 | rm -f conftest.er1 |
| 22888 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22890 | (exit $ac_status); } && { |
| 22891 | test -z "$ac_c_werror_flag" || |
| 22892 | test ! -s conftest.err |
| 22893 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22894 | |
| 22895 | |
| 22896 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22897 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22898 | _ACEOF |
| 22899 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22900 | have_prototypes=yes |
| 22901 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22902 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22903 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22905 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22906 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22907 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22908 | |
| 22909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22910 | { echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 22911 | echo "${ECHO_T}$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22912 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22913 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22914 | { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 22915 | 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] | 22916 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22917 | /* confdefs.h. */ |
| 22918 | _ACEOF |
| 22919 | cat confdefs.h >>conftest.$ac_ext |
| 22920 | cat >>conftest.$ac_ext <<_ACEOF |
| 22921 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22922 | |
| 22923 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 22924 | int foo(int x, ...) { |
| 22925 | va_list va; |
| 22926 | va_start(va, x); |
| 22927 | va_arg(va, int); |
| 22928 | va_arg(va, char *); |
| 22929 | va_arg(va, double); |
| 22930 | return 0; |
| 22931 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22932 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22933 | int |
| 22934 | main () |
| 22935 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 22936 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22937 | ; |
| 22938 | return 0; |
| 22939 | } |
| 22940 | _ACEOF |
| 22941 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22942 | if { (ac_try="$ac_compile" |
| 22943 | case "(($ac_try" in |
| 22944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22945 | *) ac_try_echo=$ac_try;; |
| 22946 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22948 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22949 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22951 | rm -f conftest.er1 |
| 22952 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22954 | (exit $ac_status); } && { |
| 22955 | test -z "$ac_c_werror_flag" || |
| 22956 | test ! -s conftest.err |
| 22957 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22958 | |
| 22959 | |
| 22960 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22961 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22962 | _ACEOF |
| 22963 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22964 | works=yes |
| 22965 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22966 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22967 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22969 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22970 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22971 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22972 | |
| 22973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22974 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22975 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22976 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22977 | # check for socketpair |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22978 | { echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 22979 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22980 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22981 | /* confdefs.h. */ |
| 22982 | _ACEOF |
| 22983 | cat confdefs.h >>conftest.$ac_ext |
| 22984 | cat >>conftest.$ac_ext <<_ACEOF |
| 22985 | /* end confdefs.h. */ |
| 22986 | |
| 22987 | #include <sys/types.h> |
| 22988 | #include <sys/socket.h> |
| 22989 | |
| 22990 | int |
| 22991 | main () |
| 22992 | { |
| 22993 | void *x=socketpair |
| 22994 | ; |
| 22995 | return 0; |
| 22996 | } |
| 22997 | _ACEOF |
| 22998 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22999 | if { (ac_try="$ac_compile" |
| 23000 | case "(($ac_try" in |
| 23001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23002 | *) ac_try_echo=$ac_try;; |
| 23003 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23005 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23006 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23008 | rm -f conftest.er1 |
| 23009 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23011 | (exit $ac_status); } && { |
| 23012 | test -z "$ac_c_werror_flag" || |
| 23013 | test ! -s conftest.err |
| 23014 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23015 | |
| 23016 | cat >>confdefs.h <<\_ACEOF |
| 23017 | #define HAVE_SOCKETPAIR 1 |
| 23018 | _ACEOF |
| 23019 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23020 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23021 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23022 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23023 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23025 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23026 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23027 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23028 | |
| 23029 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23030 | |
| 23031 | 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] | 23032 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23033 | # check if sockaddr has sa_len member |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23034 | { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 23035 | 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] | 23036 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23037 | /* confdefs.h. */ |
| 23038 | _ACEOF |
| 23039 | cat confdefs.h >>conftest.$ac_ext |
| 23040 | cat >>conftest.$ac_ext <<_ACEOF |
| 23041 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23042 | #include <sys/types.h> |
| 23043 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23044 | int |
| 23045 | main () |
| 23046 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23047 | struct sockaddr x; |
| 23048 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23049 | ; |
| 23050 | return 0; |
| 23051 | } |
| 23052 | _ACEOF |
| 23053 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23054 | if { (ac_try="$ac_compile" |
| 23055 | case "(($ac_try" in |
| 23056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23057 | *) ac_try_echo=$ac_try;; |
| 23058 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23060 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23061 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23062 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23063 | rm -f conftest.er1 |
| 23064 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23066 | (exit $ac_status); } && { |
| 23067 | test -z "$ac_c_werror_flag" || |
| 23068 | test ! -s conftest.err |
| 23069 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23070 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23071 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23072 | |
| 23073 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23074 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23075 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23076 | |
| 23077 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23078 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23080 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23081 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23082 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23083 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23084 | |
| 23085 | 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] | 23086 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 23087 | va_list_is_array=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23088 | { echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 23089 | 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] | 23090 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23091 | /* confdefs.h. */ |
| 23092 | _ACEOF |
| 23093 | cat confdefs.h >>conftest.$ac_ext |
| 23094 | cat >>conftest.$ac_ext <<_ACEOF |
| 23095 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23096 | |
| 23097 | #ifdef HAVE_STDARG_PROTOTYPES |
| 23098 | #include <stdarg.h> |
| 23099 | #else |
| 23100 | #include <varargs.h> |
| 23101 | #endif |
| 23102 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23103 | int |
| 23104 | main () |
| 23105 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23106 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23107 | ; |
| 23108 | return 0; |
| 23109 | } |
| 23110 | _ACEOF |
| 23111 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23112 | if { (ac_try="$ac_compile" |
| 23113 | case "(($ac_try" in |
| 23114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23115 | *) ac_try_echo=$ac_try;; |
| 23116 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23118 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23119 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23121 | rm -f conftest.er1 |
| 23122 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23124 | (exit $ac_status); } && { |
| 23125 | test -z "$ac_c_werror_flag" || |
| 23126 | test ! -s conftest.err |
| 23127 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23128 | : |
| 23129 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23130 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23132 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23133 | |
| 23134 | |
| 23135 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23136 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23137 | _ACEOF |
| 23138 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 23139 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 23140 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23141 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23142 | |
| 23143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23144 | { echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 23145 | echo "${ECHO_T}$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23146 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23147 | # 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] | 23148 | |
| 23149 | |
| 23150 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23151 | { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 23152 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23153 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23155 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23156 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23157 | /* confdefs.h. */ |
| 23158 | _ACEOF |
| 23159 | cat confdefs.h >>conftest.$ac_ext |
| 23160 | cat >>conftest.$ac_ext <<_ACEOF |
| 23161 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23162 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 23163 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23164 | #define gethostbyname_r innocuous_gethostbyname_r |
| 23165 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23166 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23167 | which can conflict with char gethostbyname_r (); below. |
| 23168 | 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] | 23169 | <limits.h> exists even on freestanding compilers. */ |
| 23170 | |
| 23171 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23172 | # include <limits.h> |
| 23173 | #else |
| 23174 | # include <assert.h> |
| 23175 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23176 | |
| 23177 | #undef gethostbyname_r |
| 23178 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23179 | /* Override any GCC internal prototype to avoid an error. |
| 23180 | Use char because int might match the return type of a GCC |
| 23181 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23182 | #ifdef __cplusplus |
| 23183 | extern "C" |
| 23184 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23185 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23186 | /* The GNU C library defines this for functions which it implements |
| 23187 | to always fail with ENOSYS. Some functions are actually named |
| 23188 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23189 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23190 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23191 | #endif |
| 23192 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23193 | int |
| 23194 | main () |
| 23195 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23196 | return gethostbyname_r (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23197 | ; |
| 23198 | return 0; |
| 23199 | } |
| 23200 | _ACEOF |
| 23201 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23202 | if { (ac_try="$ac_link" |
| 23203 | case "(($ac_try" in |
| 23204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23205 | *) ac_try_echo=$ac_try;; |
| 23206 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23208 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23209 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23211 | rm -f conftest.er1 |
| 23212 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23214 | (exit $ac_status); } && { |
| 23215 | test -z "$ac_c_werror_flag" || |
| 23216 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23217 | } && test -s conftest$ac_exeext && |
| 23218 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23219 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23220 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23221 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23223 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23224 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23225 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23226 | |
| 23227 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23228 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23229 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23230 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 23231 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; } |
| 23232 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23233 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23234 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23235 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23236 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23237 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23238 | { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 23239 | 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] | 23240 | OLD_CFLAGS=$CFLAGS |
| 23241 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23242 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23243 | /* confdefs.h. */ |
| 23244 | _ACEOF |
| 23245 | cat confdefs.h >>conftest.$ac_ext |
| 23246 | cat >>conftest.$ac_ext <<_ACEOF |
| 23247 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23248 | |
| 23249 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23250 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23251 | int |
| 23252 | main () |
| 23253 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23254 | |
| 23255 | char *name; |
| 23256 | struct hostent *he, *res; |
| 23257 | char buffer[2048]; |
| 23258 | int buflen = 2048; |
| 23259 | int h_errnop; |
| 23260 | |
| 23261 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23262 | |
| 23263 | ; |
| 23264 | return 0; |
| 23265 | } |
| 23266 | _ACEOF |
| 23267 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23268 | if { (ac_try="$ac_compile" |
| 23269 | case "(($ac_try" in |
| 23270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23271 | *) ac_try_echo=$ac_try;; |
| 23272 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23274 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23275 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23276 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23277 | rm -f conftest.er1 |
| 23278 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23280 | (exit $ac_status); } && { |
| 23281 | test -z "$ac_c_werror_flag" || |
| 23282 | test ! -s conftest.err |
| 23283 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23284 | |
| 23285 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23286 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23287 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23288 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23289 | |
| 23290 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23291 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23292 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23293 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23294 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23295 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23296 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23297 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23298 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23300 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23301 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23302 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23303 | echo "${ECHO_T}no" >&6; } |
| 23304 | { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 23305 | 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] | 23306 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23307 | /* confdefs.h. */ |
| 23308 | _ACEOF |
| 23309 | cat confdefs.h >>conftest.$ac_ext |
| 23310 | cat >>conftest.$ac_ext <<_ACEOF |
| 23311 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23312 | |
| 23313 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23314 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23315 | int |
| 23316 | main () |
| 23317 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23318 | |
| 23319 | char *name; |
| 23320 | struct hostent *he; |
| 23321 | char buffer[2048]; |
| 23322 | int buflen = 2048; |
| 23323 | int h_errnop; |
| 23324 | |
| 23325 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23326 | |
| 23327 | ; |
| 23328 | return 0; |
| 23329 | } |
| 23330 | _ACEOF |
| 23331 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23332 | if { (ac_try="$ac_compile" |
| 23333 | case "(($ac_try" in |
| 23334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23335 | *) ac_try_echo=$ac_try;; |
| 23336 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23338 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23339 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23341 | rm -f conftest.er1 |
| 23342 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23344 | (exit $ac_status); } && { |
| 23345 | test -z "$ac_c_werror_flag" || |
| 23346 | test ! -s conftest.err |
| 23347 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23348 | |
| 23349 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23350 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23351 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23353 | |
| 23354 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23355 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23356 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23357 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23358 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23359 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23360 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23361 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23362 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23364 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23365 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23366 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23367 | echo "${ECHO_T}no" >&6; } |
| 23368 | { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 23369 | 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] | 23370 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23371 | /* confdefs.h. */ |
| 23372 | _ACEOF |
| 23373 | cat confdefs.h >>conftest.$ac_ext |
| 23374 | cat >>conftest.$ac_ext <<_ACEOF |
| 23375 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23376 | |
| 23377 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23378 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23379 | int |
| 23380 | main () |
| 23381 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23382 | |
| 23383 | char *name; |
| 23384 | struct hostent *he; |
| 23385 | struct hostent_data data; |
| 23386 | |
| 23387 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23388 | |
| 23389 | ; |
| 23390 | return 0; |
| 23391 | } |
| 23392 | _ACEOF |
| 23393 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23394 | if { (ac_try="$ac_compile" |
| 23395 | case "(($ac_try" in |
| 23396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23397 | *) ac_try_echo=$ac_try;; |
| 23398 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23400 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23401 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23403 | rm -f conftest.er1 |
| 23404 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23406 | (exit $ac_status); } && { |
| 23407 | test -z "$ac_c_werror_flag" || |
| 23408 | test ! -s conftest.err |
| 23409 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23410 | |
| 23411 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23412 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23413 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23414 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23415 | |
| 23416 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23417 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23418 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23419 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23420 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23421 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23422 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23423 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23424 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23426 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23427 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23428 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23429 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23430 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23431 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23432 | |
| 23433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23434 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23435 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23436 | |
| 23437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23438 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23439 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23440 | |
| 23441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23442 | CFLAGS=$OLD_CFLAGS |
| 23443 | |
| 23444 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23445 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23446 | |
| 23447 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 23448 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23449 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23450 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23451 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23452 | 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] | 23453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23454 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23455 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23456 | /* confdefs.h. */ |
| 23457 | _ACEOF |
| 23458 | cat confdefs.h >>conftest.$ac_ext |
| 23459 | cat >>conftest.$ac_ext <<_ACEOF |
| 23460 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23461 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23462 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23463 | #define $ac_func innocuous_$ac_func |
| 23464 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23465 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23466 | which can conflict with char $ac_func (); below. |
| 23467 | 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] | 23468 | <limits.h> exists even on freestanding compilers. */ |
| 23469 | |
| 23470 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23471 | # include <limits.h> |
| 23472 | #else |
| 23473 | # include <assert.h> |
| 23474 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23475 | |
| 23476 | #undef $ac_func |
| 23477 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23478 | /* Override any GCC internal prototype to avoid an error. |
| 23479 | Use char because int might match the return type of a GCC |
| 23480 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23481 | #ifdef __cplusplus |
| 23482 | extern "C" |
| 23483 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23484 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23485 | /* The GNU C library defines this for functions which it implements |
| 23486 | to always fail with ENOSYS. Some functions are actually named |
| 23487 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23488 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23489 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23490 | #endif |
| 23491 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23492 | int |
| 23493 | main () |
| 23494 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23495 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23496 | ; |
| 23497 | return 0; |
| 23498 | } |
| 23499 | _ACEOF |
| 23500 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23501 | if { (ac_try="$ac_link" |
| 23502 | case "(($ac_try" in |
| 23503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23504 | *) ac_try_echo=$ac_try;; |
| 23505 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23507 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23508 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23509 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23510 | rm -f conftest.er1 |
| 23511 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23513 | (exit $ac_status); } && { |
| 23514 | test -z "$ac_c_werror_flag" || |
| 23515 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23516 | } && test -s conftest$ac_exeext && |
| 23517 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23518 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23519 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23520 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23522 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23523 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23524 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23525 | |
| 23526 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23527 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23528 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23529 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 23530 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23531 | echo "${ECHO_T}$ac_res" >&6; } |
| 23532 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23533 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23534 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23535 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23536 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23537 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 23538 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23539 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23540 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23541 | fi |
| 23542 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23543 | |
| 23544 | |
| 23545 | |
| 23546 | |
| 23547 | |
| 23548 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23549 | # checks for system services |
| 23550 | # (none yet) |
| 23551 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23552 | # Linux requires this for correct f.p. operations |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23553 | { echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 23554 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23555 | if test "${ac_cv_func___fpu_control+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23557 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23558 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23559 | /* confdefs.h. */ |
| 23560 | _ACEOF |
| 23561 | cat confdefs.h >>conftest.$ac_ext |
| 23562 | cat >>conftest.$ac_ext <<_ACEOF |
| 23563 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23564 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 23565 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23566 | #define __fpu_control innocuous___fpu_control |
| 23567 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23568 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23569 | which can conflict with char __fpu_control (); below. |
| 23570 | 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] | 23571 | <limits.h> exists even on freestanding compilers. */ |
| 23572 | |
| 23573 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23574 | # include <limits.h> |
| 23575 | #else |
| 23576 | # include <assert.h> |
| 23577 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23578 | |
| 23579 | #undef __fpu_control |
| 23580 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23581 | /* Override any GCC internal prototype to avoid an error. |
| 23582 | Use char because int might match the return type of a GCC |
| 23583 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23584 | #ifdef __cplusplus |
| 23585 | extern "C" |
| 23586 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23587 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23588 | /* The GNU C library defines this for functions which it implements |
| 23589 | to always fail with ENOSYS. Some functions are actually named |
| 23590 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23591 | #if defined __stub___fpu_control || defined __stub_____fpu_control |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23592 | choke me |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23593 | #endif |
| 23594 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23595 | int |
| 23596 | main () |
| 23597 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23598 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23599 | ; |
| 23600 | return 0; |
| 23601 | } |
| 23602 | _ACEOF |
| 23603 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23604 | if { (ac_try="$ac_link" |
| 23605 | case "(($ac_try" in |
| 23606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23607 | *) ac_try_echo=$ac_try;; |
| 23608 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23610 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23611 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23612 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23613 | rm -f conftest.er1 |
| 23614 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23616 | (exit $ac_status); } && { |
| 23617 | test -z "$ac_c_werror_flag" || |
| 23618 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23619 | } && test -s conftest$ac_exeext && |
| 23620 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23621 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23622 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23623 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23625 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23626 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23627 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23628 | |
| 23629 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23630 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23631 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23632 | { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 23633 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; } |
| 23634 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23635 | : |
| 23636 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23637 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23638 | { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 23639 | 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] | 23640 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23642 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23643 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23644 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23645 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23646 | /* confdefs.h. */ |
| 23647 | _ACEOF |
| 23648 | cat confdefs.h >>conftest.$ac_ext |
| 23649 | cat >>conftest.$ac_ext <<_ACEOF |
| 23650 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23651 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23652 | /* Override any GCC internal prototype to avoid an error. |
| 23653 | Use char because int might match the return type of a GCC |
| 23654 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23655 | #ifdef __cplusplus |
| 23656 | extern "C" |
| 23657 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23658 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23659 | int |
| 23660 | main () |
| 23661 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23662 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23663 | ; |
| 23664 | return 0; |
| 23665 | } |
| 23666 | _ACEOF |
| 23667 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23668 | if { (ac_try="$ac_link" |
| 23669 | case "(($ac_try" in |
| 23670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23671 | *) ac_try_echo=$ac_try;; |
| 23672 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23674 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23675 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23676 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23677 | rm -f conftest.er1 |
| 23678 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23680 | (exit $ac_status); } && { |
| 23681 | test -z "$ac_c_werror_flag" || |
| 23682 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23683 | } && test -s conftest$ac_exeext && |
| 23684 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23685 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23686 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23687 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23689 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23690 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23691 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23692 | |
| 23693 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23694 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23695 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23696 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23697 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 23698 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; } |
| 23699 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23700 | cat >>confdefs.h <<_ACEOF |
| 23701 | #define HAVE_LIBIEEE 1 |
| 23702 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23703 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23704 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23705 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23706 | fi |
| 23707 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23708 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23709 | fi |
| 23710 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23711 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23712 | # Check for --with-fpectl |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23713 | { echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 23714 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23715 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23716 | # Check whether --with-fpectl was given. |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23717 | if test "${with_fpectl+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23718 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23719 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23720 | then |
| 23721 | |
| 23722 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23723 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23724 | _ACEOF |
| 23725 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23726 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23727 | echo "${ECHO_T}yes" >&6; } |
| 23728 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 23729 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23730 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23731 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23732 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23733 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23734 | fi |
| 23735 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23736 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23737 | # check for --with-libm=... |
| 23738 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 23739 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 23740 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 23741 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 23742 | *) LIBM=-lm |
| 23743 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23744 | { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 23745 | 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] | 23746 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23747 | # Check whether --with-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 23748 | if test "${with_libm+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23749 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23750 | if test "$withval" = no |
| 23751 | then LIBM= |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23752 | { echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 23753 | echo "${ECHO_T}force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23754 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23755 | then LIBM=$withval |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23756 | { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 23757 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6; } |
| 23758 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 23759 | 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] | 23760 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23761 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23762 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23763 | { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 23764 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23765 | fi |
| 23766 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23767 | |
| 23768 | # check for --with-libc=... |
| 23769 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23770 | { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 23771 | 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] | 23772 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23773 | # Check whether --with-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 23774 | if test "${with_libc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23775 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23776 | if test "$withval" = no |
| 23777 | then LIBC= |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23778 | { echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 23779 | echo "${ECHO_T}force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23780 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23781 | then LIBC=$withval |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23782 | { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 23783 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6; } |
| 23784 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 23785 | 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] | 23786 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23787 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23788 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23789 | { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 23790 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23791 | fi |
| 23792 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23793 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23794 | # ************************************************** |
| 23795 | # * Check for various properties of floating point * |
| 23796 | # ************************************************** |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23797 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23798 | { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
| 23799 | echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 23800 | if test "${ac_cv_little_endian_double+set}" = set; then |
| 23801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23802 | else |
| 23803 | |
| 23804 | if test "$cross_compiling" = yes; then |
| 23805 | ac_cv_little_endian_double=no |
| 23806 | else |
| 23807 | cat >conftest.$ac_ext <<_ACEOF |
| 23808 | /* confdefs.h. */ |
| 23809 | _ACEOF |
| 23810 | cat confdefs.h >>conftest.$ac_ext |
| 23811 | cat >>conftest.$ac_ext <<_ACEOF |
| 23812 | /* end confdefs.h. */ |
| 23813 | |
| 23814 | #include <string.h> |
| 23815 | int main() { |
| 23816 | double x = 9006104071832581.0; |
| 23817 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) |
| 23818 | return 0; |
| 23819 | else |
| 23820 | return 1; |
| 23821 | } |
| 23822 | |
| 23823 | _ACEOF |
| 23824 | rm -f conftest$ac_exeext |
| 23825 | if { (ac_try="$ac_link" |
| 23826 | case "(($ac_try" in |
| 23827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23828 | *) ac_try_echo=$ac_try;; |
| 23829 | esac |
| 23830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23831 | (eval "$ac_link") 2>&5 |
| 23832 | ac_status=$? |
| 23833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23834 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23835 | { (case "(($ac_try" in |
| 23836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23837 | *) ac_try_echo=$ac_try;; |
| 23838 | esac |
| 23839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23840 | (eval "$ac_try") 2>&5 |
| 23841 | ac_status=$? |
| 23842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23843 | (exit $ac_status); }; }; then |
| 23844 | ac_cv_little_endian_double=yes |
| 23845 | else |
| 23846 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23847 | echo "$as_me: failed program was:" >&5 |
| 23848 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23849 | |
| 23850 | ( exit $ac_status ) |
| 23851 | ac_cv_little_endian_double=no |
| 23852 | fi |
| 23853 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23854 | fi |
| 23855 | |
| 23856 | |
| 23857 | fi |
| 23858 | |
| 23859 | { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5 |
| 23860 | echo "${ECHO_T}$ac_cv_little_endian_double" >&6; } |
| 23861 | if test "$ac_cv_little_endian_double" = yes |
| 23862 | then |
| 23863 | |
| 23864 | cat >>confdefs.h <<\_ACEOF |
| 23865 | #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1 |
| 23866 | _ACEOF |
| 23867 | |
| 23868 | fi |
| 23869 | |
| 23870 | { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
| 23871 | echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 23872 | if test "${ac_cv_big_endian_double+set}" = set; then |
| 23873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23874 | else |
| 23875 | |
| 23876 | if test "$cross_compiling" = yes; then |
| 23877 | ac_cv_big_endian_double=no |
| 23878 | else |
| 23879 | cat >conftest.$ac_ext <<_ACEOF |
| 23880 | /* confdefs.h. */ |
| 23881 | _ACEOF |
| 23882 | cat confdefs.h >>conftest.$ac_ext |
| 23883 | cat >>conftest.$ac_ext <<_ACEOF |
| 23884 | /* end confdefs.h. */ |
| 23885 | |
| 23886 | #include <string.h> |
| 23887 | int main() { |
| 23888 | double x = 9006104071832581.0; |
| 23889 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) |
| 23890 | return 0; |
| 23891 | else |
| 23892 | return 1; |
| 23893 | } |
| 23894 | |
| 23895 | _ACEOF |
| 23896 | rm -f conftest$ac_exeext |
| 23897 | if { (ac_try="$ac_link" |
| 23898 | case "(($ac_try" in |
| 23899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23900 | *) ac_try_echo=$ac_try;; |
| 23901 | esac |
| 23902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23903 | (eval "$ac_link") 2>&5 |
| 23904 | ac_status=$? |
| 23905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23906 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23907 | { (case "(($ac_try" in |
| 23908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23909 | *) ac_try_echo=$ac_try;; |
| 23910 | esac |
| 23911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23912 | (eval "$ac_try") 2>&5 |
| 23913 | ac_status=$? |
| 23914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23915 | (exit $ac_status); }; }; then |
| 23916 | ac_cv_big_endian_double=yes |
| 23917 | else |
| 23918 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23919 | echo "$as_me: failed program was:" >&5 |
| 23920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23921 | |
| 23922 | ( exit $ac_status ) |
| 23923 | ac_cv_big_endian_double=no |
| 23924 | fi |
| 23925 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23926 | fi |
| 23927 | |
| 23928 | |
| 23929 | fi |
| 23930 | |
| 23931 | { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5 |
| 23932 | echo "${ECHO_T}$ac_cv_big_endian_double" >&6; } |
| 23933 | if test "$ac_cv_big_endian_double" = yes |
| 23934 | then |
| 23935 | |
| 23936 | cat >>confdefs.h <<\_ACEOF |
| 23937 | #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1 |
| 23938 | _ACEOF |
| 23939 | |
| 23940 | fi |
| 23941 | |
| 23942 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 23943 | # While Python doesn't currently have full support for these platforms |
| 23944 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 23945 | # conversions work. |
| 23946 | { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
| 23947 | echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 23948 | if test "${ac_cv_mixed_endian_double+set}" = set; then |
| 23949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23950 | else |
| 23951 | |
| 23952 | if test "$cross_compiling" = yes; then |
| 23953 | ac_cv_mixed_endian_double=no |
| 23954 | else |
| 23955 | cat >conftest.$ac_ext <<_ACEOF |
| 23956 | /* confdefs.h. */ |
| 23957 | _ACEOF |
| 23958 | cat confdefs.h >>conftest.$ac_ext |
| 23959 | cat >>conftest.$ac_ext <<_ACEOF |
| 23960 | /* end confdefs.h. */ |
| 23961 | |
| 23962 | #include <string.h> |
| 23963 | int main() { |
| 23964 | double x = 9006104071832581.0; |
| 23965 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) |
| 23966 | return 0; |
| 23967 | else |
| 23968 | return 1; |
| 23969 | } |
| 23970 | |
| 23971 | _ACEOF |
| 23972 | rm -f conftest$ac_exeext |
| 23973 | if { (ac_try="$ac_link" |
| 23974 | case "(($ac_try" in |
| 23975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23976 | *) ac_try_echo=$ac_try;; |
| 23977 | esac |
| 23978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23979 | (eval "$ac_link") 2>&5 |
| 23980 | ac_status=$? |
| 23981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23982 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23983 | { (case "(($ac_try" in |
| 23984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23985 | *) ac_try_echo=$ac_try;; |
| 23986 | esac |
| 23987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23988 | (eval "$ac_try") 2>&5 |
| 23989 | ac_status=$? |
| 23990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23991 | (exit $ac_status); }; }; then |
| 23992 | ac_cv_mixed_endian_double=yes |
| 23993 | else |
| 23994 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23995 | echo "$as_me: failed program was:" >&5 |
| 23996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23997 | |
| 23998 | ( exit $ac_status ) |
| 23999 | ac_cv_mixed_endian_double=no |
| 24000 | fi |
| 24001 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24002 | fi |
| 24003 | |
| 24004 | |
| 24005 | fi |
| 24006 | |
| 24007 | { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5 |
| 24008 | echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; } |
| 24009 | if test "$ac_cv_mixed_endian_double" = yes |
| 24010 | then |
| 24011 | |
| 24012 | cat >>confdefs.h <<\_ACEOF |
| 24013 | #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1 |
| 24014 | _ACEOF |
| 24015 | |
| 24016 | fi |
| 24017 | |
| 24018 | # The short float repr introduced in Python 3.1 requires the |
| 24019 | # correctly-rounded string <-> double conversion functions from |
| 24020 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit |
| 24021 | # 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] | 24022 | # 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] | 24023 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24024 | |
| 24025 | # This inline assembler syntax may also work for suncc and icc, |
| 24026 | # so we try it on all platforms. |
| 24027 | |
| 24028 | { 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] | 24029 | 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] | 24030 | cat >conftest.$ac_ext <<_ACEOF |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24031 | /* confdefs.h. */ |
| 24032 | _ACEOF |
| 24033 | cat confdefs.h >>conftest.$ac_ext |
| 24034 | cat >>conftest.$ac_ext <<_ACEOF |
| 24035 | /* end confdefs.h. */ |
| 24036 | |
| 24037 | int |
| 24038 | main () |
| 24039 | { |
| 24040 | |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24041 | unsigned short cw; |
| 24042 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 24043 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24044 | |
| 24045 | ; |
| 24046 | return 0; |
| 24047 | } |
| 24048 | _ACEOF |
| 24049 | rm -f conftest.$ac_objext |
| 24050 | if { (ac_try="$ac_compile" |
| 24051 | case "(($ac_try" in |
| 24052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24053 | *) ac_try_echo=$ac_try;; |
| 24054 | esac |
| 24055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24056 | (eval "$ac_compile") 2>conftest.er1 |
| 24057 | ac_status=$? |
| 24058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24059 | rm -f conftest.er1 |
| 24060 | cat conftest.err >&5 |
| 24061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24062 | (exit $ac_status); } && { |
| 24063 | test -z "$ac_c_werror_flag" || |
| 24064 | test ! -s conftest.err |
| 24065 | } && test -s conftest.$ac_objext; then |
| 24066 | have_gcc_asm_for_x87=yes |
| 24067 | else |
| 24068 | echo "$as_me: failed program was:" >&5 |
| 24069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24070 | |
| 24071 | have_gcc_asm_for_x87=no |
| 24072 | fi |
| 24073 | |
| 24074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24075 | { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5 |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24076 | echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; } |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24077 | if test "$have_gcc_asm_for_x87" = yes |
| 24078 | then |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24079 | |
| 24080 | cat >>confdefs.h <<\_ACEOF |
| 24081 | #define HAVE_GCC_ASM_FOR_X87 1 |
| 24082 | _ACEOF |
| 24083 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24084 | fi |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 24085 | |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24086 | # Detect whether system arithmetic is subject to x87-style double |
| 24087 | # rounding issues. The result of this test has little meaning on non |
| 24088 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 24089 | # mode is round-to-nearest and double rounding issues are present, and |
| 24090 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24091 | { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5 |
| 24092 | echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; } |
Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 24093 | # $BASECFLAGS may affect the result |
| 24094 | ac_save_cc="$CC" |
| 24095 | CC="$CC $BASECFLAGS" |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24096 | if test "$cross_compiling" = yes; then |
| 24097 | ac_cv_x87_double_rounding=no |
| 24098 | else |
| 24099 | cat >conftest.$ac_ext <<_ACEOF |
| 24100 | /* confdefs.h. */ |
| 24101 | _ACEOF |
| 24102 | cat confdefs.h >>conftest.$ac_ext |
| 24103 | cat >>conftest.$ac_ext <<_ACEOF |
| 24104 | /* end confdefs.h. */ |
| 24105 | |
| 24106 | #include <stdlib.h> |
| 24107 | #include <math.h> |
| 24108 | int main() { |
| 24109 | volatile double x, y, z; |
| 24110 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 24111 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 24112 | y = 1./x; |
| 24113 | if (y != 1.) |
| 24114 | exit(0); |
| 24115 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 24116 | x = 1e16; |
| 24117 | y = 2.99999; |
| 24118 | z = x + y; |
| 24119 | if (z != 1e16+4.) |
| 24120 | exit(0); |
| 24121 | /* both tests show evidence of double rounding */ |
| 24122 | exit(1); |
| 24123 | } |
| 24124 | |
| 24125 | _ACEOF |
| 24126 | rm -f conftest$ac_exeext |
| 24127 | if { (ac_try="$ac_link" |
| 24128 | case "(($ac_try" in |
| 24129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24130 | *) ac_try_echo=$ac_try;; |
| 24131 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24133 | (eval "$ac_link") 2>&5 |
| 24134 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24136 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24137 | { (case "(($ac_try" in |
| 24138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24139 | *) ac_try_echo=$ac_try;; |
| 24140 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24142 | (eval "$ac_try") 2>&5 |
| 24143 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24145 | (exit $ac_status); }; }; then |
| 24146 | ac_cv_x87_double_rounding=no |
| 24147 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24148 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24149 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24151 | |
| 24152 | ( exit $ac_status ) |
| 24153 | ac_cv_x87_double_rounding=yes |
| 24154 | fi |
| 24155 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24156 | fi |
| 24157 | |
| 24158 | |
Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 24159 | CC="$ac_save_cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24160 | { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5 |
| 24161 | echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24162 | if test "$ac_cv_x87_double_rounding" = yes |
| 24163 | then |
| 24164 | |
| 24165 | cat >>confdefs.h <<\_ACEOF |
| 24166 | #define X87_DOUBLE_ROUNDING 1 |
| 24167 | _ACEOF |
| 24168 | |
| 24169 | fi |
| 24170 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24171 | # ************************************ |
| 24172 | # * Check for mathematical functions * |
| 24173 | # ************************************ |
| 24174 | |
| 24175 | LIBS_SAVE=$LIBS |
| 24176 | LIBS="$LIBS $LIBM" |
| 24177 | |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24178 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 24179 | # -0. on some architectures. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24180 | { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5 |
| 24181 | 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] | 24182 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24184 | else |
| 24185 | |
| 24186 | if test "$cross_compiling" = yes; then |
| 24187 | ac_cv_tanh_preserves_zero_sign=no |
| 24188 | else |
| 24189 | cat >conftest.$ac_ext <<_ACEOF |
| 24190 | /* confdefs.h. */ |
| 24191 | _ACEOF |
| 24192 | cat confdefs.h >>conftest.$ac_ext |
| 24193 | cat >>conftest.$ac_ext <<_ACEOF |
| 24194 | /* end confdefs.h. */ |
| 24195 | |
| 24196 | #include <math.h> |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 24197 | #include <stdlib.h> |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24198 | int main() { |
| 24199 | /* return 0 if either negative zeros don't exist |
| 24200 | on this platform or if negative zeros exist |
| 24201 | and tanh(-0.) == -0. */ |
| 24202 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 24203 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 24204 | else exit(1); |
| 24205 | } |
| 24206 | |
| 24207 | _ACEOF |
| 24208 | rm -f conftest$ac_exeext |
| 24209 | if { (ac_try="$ac_link" |
| 24210 | case "(($ac_try" in |
| 24211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24212 | *) ac_try_echo=$ac_try;; |
| 24213 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24215 | (eval "$ac_link") 2>&5 |
| 24216 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24218 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24219 | { (case "(($ac_try" in |
| 24220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24221 | *) ac_try_echo=$ac_try;; |
| 24222 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24224 | (eval "$ac_try") 2>&5 |
| 24225 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24227 | (exit $ac_status); }; }; then |
| 24228 | ac_cv_tanh_preserves_zero_sign=yes |
| 24229 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24230 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24231 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24233 | |
| 24234 | ( exit $ac_status ) |
| 24235 | ac_cv_tanh_preserves_zero_sign=no |
| 24236 | fi |
| 24237 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24238 | fi |
| 24239 | |
| 24240 | |
| 24241 | fi |
| 24242 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24243 | { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 24244 | echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; } |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24245 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 24246 | then |
| 24247 | |
| 24248 | cat >>confdefs.h <<\_ACEOF |
| 24249 | #define TANH_PRESERVES_ZERO_SIGN 1 |
| 24250 | _ACEOF |
| 24251 | |
| 24252 | fi |
| 24253 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24254 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 24255 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24256 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24257 | |
| 24258 | |
| 24259 | |
| 24260 | |
| 24261 | |
Mark Dickinson | 8e5446f | 2009-04-18 14:41:37 +0000 | [diff] [blame] | 24262 | |
Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 24263 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma |
| 24264 | do |
| 24265 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24266 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 24267 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 24268 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 24269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24270 | else |
| 24271 | cat >conftest.$ac_ext <<_ACEOF |
| 24272 | /* confdefs.h. */ |
| 24273 | _ACEOF |
| 24274 | cat confdefs.h >>conftest.$ac_ext |
| 24275 | cat >>conftest.$ac_ext <<_ACEOF |
| 24276 | /* end confdefs.h. */ |
| 24277 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 24278 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 24279 | #define $ac_func innocuous_$ac_func |
| 24280 | |
| 24281 | /* System header to define __stub macros and hopefully few prototypes, |
| 24282 | which can conflict with char $ac_func (); below. |
| 24283 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 24284 | <limits.h> exists even on freestanding compilers. */ |
| 24285 | |
| 24286 | #ifdef __STDC__ |
| 24287 | # include <limits.h> |
| 24288 | #else |
| 24289 | # include <assert.h> |
| 24290 | #endif |
| 24291 | |
| 24292 | #undef $ac_func |
| 24293 | |
| 24294 | /* Override any GCC internal prototype to avoid an error. |
| 24295 | Use char because int might match the return type of a GCC |
| 24296 | builtin and then its argument prototype would still apply. */ |
| 24297 | #ifdef __cplusplus |
| 24298 | extern "C" |
| 24299 | #endif |
| 24300 | char $ac_func (); |
| 24301 | /* The GNU C library defines this for functions which it implements |
| 24302 | to always fail with ENOSYS. Some functions are actually named |
| 24303 | something starting with __ and the normal name is an alias. */ |
| 24304 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 24305 | choke me |
| 24306 | #endif |
| 24307 | |
| 24308 | int |
| 24309 | main () |
| 24310 | { |
| 24311 | return $ac_func (); |
| 24312 | ; |
| 24313 | return 0; |
| 24314 | } |
| 24315 | _ACEOF |
| 24316 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24317 | if { (ac_try="$ac_link" |
| 24318 | case "(($ac_try" in |
| 24319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24320 | *) ac_try_echo=$ac_try;; |
| 24321 | esac |
| 24322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24323 | (eval "$ac_link") 2>conftest.er1 |
| 24324 | ac_status=$? |
| 24325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24326 | rm -f conftest.er1 |
| 24327 | cat conftest.err >&5 |
| 24328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24329 | (exit $ac_status); } && { |
| 24330 | test -z "$ac_c_werror_flag" || |
| 24331 | test ! -s conftest.err |
| 24332 | } && test -s conftest$ac_exeext && |
| 24333 | $as_test_x conftest$ac_exeext; then |
| 24334 | eval "$as_ac_var=yes" |
| 24335 | else |
| 24336 | echo "$as_me: failed program was:" >&5 |
| 24337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24338 | |
| 24339 | eval "$as_ac_var=no" |
| 24340 | fi |
| 24341 | |
| 24342 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24343 | conftest$ac_exeext conftest.$ac_ext |
| 24344 | fi |
| 24345 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 24346 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 24347 | echo "${ECHO_T}$ac_res" >&6; } |
| 24348 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 24349 | cat >>confdefs.h <<_ACEOF |
| 24350 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 24351 | _ACEOF |
| 24352 | |
| 24353 | fi |
| 24354 | done |
| 24355 | |
| 24356 | |
| 24357 | |
| 24358 | |
| 24359 | |
| 24360 | |
| 24361 | for ac_func in hypot lgamma log1p round tgamma |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24362 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24363 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24364 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 24365 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24366 | 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] | 24367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24368 | else |
| 24369 | cat >conftest.$ac_ext <<_ACEOF |
| 24370 | /* confdefs.h. */ |
| 24371 | _ACEOF |
| 24372 | cat confdefs.h >>conftest.$ac_ext |
| 24373 | cat >>conftest.$ac_ext <<_ACEOF |
| 24374 | /* end confdefs.h. */ |
| 24375 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 24376 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 24377 | #define $ac_func innocuous_$ac_func |
| 24378 | |
| 24379 | /* System header to define __stub macros and hopefully few prototypes, |
| 24380 | which can conflict with char $ac_func (); below. |
| 24381 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 24382 | <limits.h> exists even on freestanding compilers. */ |
| 24383 | |
| 24384 | #ifdef __STDC__ |
| 24385 | # include <limits.h> |
| 24386 | #else |
| 24387 | # include <assert.h> |
| 24388 | #endif |
| 24389 | |
| 24390 | #undef $ac_func |
| 24391 | |
| 24392 | /* Override any GCC internal prototype to avoid an error. |
| 24393 | Use char because int might match the return type of a GCC |
| 24394 | builtin and then its argument prototype would still apply. */ |
| 24395 | #ifdef __cplusplus |
| 24396 | extern "C" |
| 24397 | #endif |
| 24398 | char $ac_func (); |
| 24399 | /* The GNU C library defines this for functions which it implements |
| 24400 | to always fail with ENOSYS. Some functions are actually named |
| 24401 | something starting with __ and the normal name is an alias. */ |
| 24402 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 24403 | choke me |
| 24404 | #endif |
| 24405 | |
| 24406 | int |
| 24407 | main () |
| 24408 | { |
| 24409 | return $ac_func (); |
| 24410 | ; |
| 24411 | return 0; |
| 24412 | } |
| 24413 | _ACEOF |
| 24414 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24415 | if { (ac_try="$ac_link" |
| 24416 | case "(($ac_try" in |
| 24417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24418 | *) ac_try_echo=$ac_try;; |
| 24419 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24421 | (eval "$ac_link") 2>conftest.er1 |
| 24422 | ac_status=$? |
| 24423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24424 | rm -f conftest.er1 |
| 24425 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24427 | (exit $ac_status); } && { |
| 24428 | test -z "$ac_c_werror_flag" || |
| 24429 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24430 | } && test -s conftest$ac_exeext && |
| 24431 | $as_test_x conftest$ac_exeext; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24432 | eval "$as_ac_var=yes" |
| 24433 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24434 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24436 | |
| 24437 | eval "$as_ac_var=no" |
| 24438 | fi |
| 24439 | |
| 24440 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24441 | conftest$ac_exeext conftest.$ac_ext |
| 24442 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24443 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 24444 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 24445 | echo "${ECHO_T}$ac_res" >&6; } |
| 24446 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24447 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24448 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24449 | _ACEOF |
| 24450 | |
| 24451 | fi |
| 24452 | done |
| 24453 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24454 | { echo "$as_me:$LINENO: checking whether isinf is declared" >&5 |
| 24455 | echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24456 | if test "${ac_cv_have_decl_isinf+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24458 | else |
| 24459 | cat >conftest.$ac_ext <<_ACEOF |
| 24460 | /* confdefs.h. */ |
| 24461 | _ACEOF |
| 24462 | cat confdefs.h >>conftest.$ac_ext |
| 24463 | cat >>conftest.$ac_ext <<_ACEOF |
| 24464 | /* end confdefs.h. */ |
| 24465 | #include <math.h> |
| 24466 | |
| 24467 | int |
| 24468 | main () |
| 24469 | { |
| 24470 | #ifndef isinf |
| 24471 | (void) isinf; |
| 24472 | #endif |
| 24473 | |
| 24474 | ; |
| 24475 | return 0; |
| 24476 | } |
| 24477 | _ACEOF |
| 24478 | rm -f conftest.$ac_objext |
| 24479 | if { (ac_try="$ac_compile" |
| 24480 | case "(($ac_try" in |
| 24481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24482 | *) ac_try_echo=$ac_try;; |
| 24483 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24485 | (eval "$ac_compile") 2>conftest.er1 |
| 24486 | ac_status=$? |
| 24487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24488 | rm -f conftest.er1 |
| 24489 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24491 | (exit $ac_status); } && { |
| 24492 | test -z "$ac_c_werror_flag" || |
| 24493 | test ! -s conftest.err |
| 24494 | } && test -s conftest.$ac_objext; then |
| 24495 | ac_cv_have_decl_isinf=yes |
| 24496 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24497 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24499 | |
| 24500 | ac_cv_have_decl_isinf=no |
| 24501 | fi |
| 24502 | |
| 24503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24504 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24505 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5 |
| 24506 | echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; } |
| 24507 | if test $ac_cv_have_decl_isinf = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24508 | |
| 24509 | cat >>confdefs.h <<_ACEOF |
| 24510 | #define HAVE_DECL_ISINF 1 |
| 24511 | _ACEOF |
| 24512 | |
| 24513 | |
| 24514 | else |
| 24515 | cat >>confdefs.h <<_ACEOF |
| 24516 | #define HAVE_DECL_ISINF 0 |
| 24517 | _ACEOF |
| 24518 | |
| 24519 | |
| 24520 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24521 | { echo "$as_me:$LINENO: checking whether isnan is declared" >&5 |
| 24522 | echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24523 | if test "${ac_cv_have_decl_isnan+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24525 | else |
| 24526 | cat >conftest.$ac_ext <<_ACEOF |
| 24527 | /* confdefs.h. */ |
| 24528 | _ACEOF |
| 24529 | cat confdefs.h >>conftest.$ac_ext |
| 24530 | cat >>conftest.$ac_ext <<_ACEOF |
| 24531 | /* end confdefs.h. */ |
| 24532 | #include <math.h> |
| 24533 | |
| 24534 | int |
| 24535 | main () |
| 24536 | { |
| 24537 | #ifndef isnan |
| 24538 | (void) isnan; |
| 24539 | #endif |
| 24540 | |
| 24541 | ; |
| 24542 | return 0; |
| 24543 | } |
| 24544 | _ACEOF |
| 24545 | rm -f conftest.$ac_objext |
| 24546 | if { (ac_try="$ac_compile" |
| 24547 | case "(($ac_try" in |
| 24548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24549 | *) ac_try_echo=$ac_try;; |
| 24550 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24552 | (eval "$ac_compile") 2>conftest.er1 |
| 24553 | ac_status=$? |
| 24554 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24555 | rm -f conftest.er1 |
| 24556 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24558 | (exit $ac_status); } && { |
| 24559 | test -z "$ac_c_werror_flag" || |
| 24560 | test ! -s conftest.err |
| 24561 | } && test -s conftest.$ac_objext; then |
| 24562 | ac_cv_have_decl_isnan=yes |
| 24563 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24564 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24566 | |
| 24567 | ac_cv_have_decl_isnan=no |
| 24568 | fi |
| 24569 | |
| 24570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24571 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24572 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5 |
| 24573 | echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; } |
| 24574 | if test $ac_cv_have_decl_isnan = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24575 | |
| 24576 | cat >>confdefs.h <<_ACEOF |
| 24577 | #define HAVE_DECL_ISNAN 1 |
| 24578 | _ACEOF |
| 24579 | |
| 24580 | |
| 24581 | else |
| 24582 | cat >>confdefs.h <<_ACEOF |
| 24583 | #define HAVE_DECL_ISNAN 0 |
| 24584 | _ACEOF |
| 24585 | |
| 24586 | |
| 24587 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24588 | { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5 |
| 24589 | echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24590 | if test "${ac_cv_have_decl_isfinite+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24592 | else |
| 24593 | cat >conftest.$ac_ext <<_ACEOF |
| 24594 | /* confdefs.h. */ |
| 24595 | _ACEOF |
| 24596 | cat confdefs.h >>conftest.$ac_ext |
| 24597 | cat >>conftest.$ac_ext <<_ACEOF |
| 24598 | /* end confdefs.h. */ |
| 24599 | #include <math.h> |
| 24600 | |
| 24601 | int |
| 24602 | main () |
| 24603 | { |
| 24604 | #ifndef isfinite |
| 24605 | (void) isfinite; |
| 24606 | #endif |
| 24607 | |
| 24608 | ; |
| 24609 | return 0; |
| 24610 | } |
| 24611 | _ACEOF |
| 24612 | rm -f conftest.$ac_objext |
| 24613 | if { (ac_try="$ac_compile" |
| 24614 | case "(($ac_try" in |
| 24615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24616 | *) ac_try_echo=$ac_try;; |
| 24617 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24619 | (eval "$ac_compile") 2>conftest.er1 |
| 24620 | ac_status=$? |
| 24621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24622 | rm -f conftest.er1 |
| 24623 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24625 | (exit $ac_status); } && { |
| 24626 | test -z "$ac_c_werror_flag" || |
| 24627 | test ! -s conftest.err |
| 24628 | } && test -s conftest.$ac_objext; then |
| 24629 | ac_cv_have_decl_isfinite=yes |
| 24630 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24631 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24633 | |
| 24634 | ac_cv_have_decl_isfinite=no |
| 24635 | fi |
| 24636 | |
| 24637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24638 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24639 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5 |
| 24640 | echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; } |
| 24641 | if test $ac_cv_have_decl_isfinite = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24642 | |
| 24643 | cat >>confdefs.h <<_ACEOF |
| 24644 | #define HAVE_DECL_ISFINITE 1 |
| 24645 | _ACEOF |
| 24646 | |
| 24647 | |
| 24648 | else |
| 24649 | cat >>confdefs.h <<_ACEOF |
| 24650 | #define HAVE_DECL_ISFINITE 0 |
| 24651 | _ACEOF |
| 24652 | |
| 24653 | |
| 24654 | fi |
| 24655 | |
| 24656 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24657 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 24658 | LIBS=$LIBS_SAVE |
| 24659 | |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24660 | # For multiprocessing module, check that sem_open |
| 24661 | # actually works. For FreeBSD versions <= 7.2, |
| 24662 | # the kernel module that provides POSIX semaphores |
| 24663 | # isn't loaded by default, so an attempt to call |
| 24664 | # sem_open results in a 'Signal 12' error. |
| 24665 | { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5 |
| 24666 | echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; } |
| 24667 | if test "${ac_cv_posix_semaphores_enabled+set}" = set; then |
| 24668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24669 | else |
| 24670 | if test "$cross_compiling" = yes; then |
| 24671 | ac_cv_posix_semaphores_enabled=yes |
| 24672 | else |
| 24673 | cat >conftest.$ac_ext <<_ACEOF |
| 24674 | /* confdefs.h. */ |
| 24675 | _ACEOF |
| 24676 | cat confdefs.h >>conftest.$ac_ext |
| 24677 | cat >>conftest.$ac_ext <<_ACEOF |
| 24678 | /* end confdefs.h. */ |
| 24679 | |
| 24680 | #include <unistd.h> |
| 24681 | #include <fcntl.h> |
| 24682 | #include <stdio.h> |
| 24683 | #include <semaphore.h> |
| 24684 | #include <sys/stat.h> |
| 24685 | |
| 24686 | int main(void) { |
| 24687 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 24688 | if (a == SEM_FAILED) { |
| 24689 | perror("sem_open"); |
| 24690 | return 1; |
| 24691 | } |
| 24692 | sem_close(a); |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 24693 | sem_unlink("/autoconf"); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24694 | return 0; |
| 24695 | } |
| 24696 | |
| 24697 | _ACEOF |
| 24698 | rm -f conftest$ac_exeext |
| 24699 | if { (ac_try="$ac_link" |
| 24700 | case "(($ac_try" in |
| 24701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24702 | *) ac_try_echo=$ac_try;; |
| 24703 | esac |
| 24704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24705 | (eval "$ac_link") 2>&5 |
| 24706 | ac_status=$? |
| 24707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24708 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24709 | { (case "(($ac_try" in |
| 24710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24711 | *) ac_try_echo=$ac_try;; |
| 24712 | esac |
| 24713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24714 | (eval "$ac_try") 2>&5 |
| 24715 | ac_status=$? |
| 24716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24717 | (exit $ac_status); }; }; then |
| 24718 | ac_cv_posix_semaphores_enabled=yes |
| 24719 | else |
| 24720 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24721 | echo "$as_me: failed program was:" >&5 |
| 24722 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24723 | |
| 24724 | ( exit $ac_status ) |
| 24725 | ac_cv_posix_semaphores_enabled=no |
| 24726 | fi |
| 24727 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24728 | fi |
| 24729 | |
| 24730 | |
| 24731 | |
| 24732 | fi |
| 24733 | |
| 24734 | { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5 |
| 24735 | echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; } |
| 24736 | if test $ac_cv_posix_semaphores_enabled = no |
| 24737 | then |
| 24738 | |
| 24739 | cat >>confdefs.h <<\_ACEOF |
| 24740 | #define POSIX_SEMAPHORES_NOT_ENABLED 1 |
| 24741 | _ACEOF |
| 24742 | |
| 24743 | fi |
| 24744 | |
| 24745 | # Multiprocessing check for broken sem_getvalue |
| 24746 | { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5 |
| 24747 | echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; } |
| 24748 | if test "${ac_cv_broken_sem_getvalue+set}" = set; then |
| 24749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24750 | else |
| 24751 | if test "$cross_compiling" = yes; then |
| 24752 | ac_cv_broken_sem_getvalue=yes |
| 24753 | else |
| 24754 | cat >conftest.$ac_ext <<_ACEOF |
| 24755 | /* confdefs.h. */ |
| 24756 | _ACEOF |
| 24757 | cat confdefs.h >>conftest.$ac_ext |
| 24758 | cat >>conftest.$ac_ext <<_ACEOF |
| 24759 | /* end confdefs.h. */ |
| 24760 | |
| 24761 | #include <unistd.h> |
| 24762 | #include <fcntl.h> |
| 24763 | #include <stdio.h> |
| 24764 | #include <semaphore.h> |
| 24765 | #include <sys/stat.h> |
| 24766 | |
| 24767 | int main(void){ |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 24768 | 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] | 24769 | int count; |
| 24770 | int res; |
| 24771 | if(a==SEM_FAILED){ |
| 24772 | perror("sem_open"); |
| 24773 | return 1; |
| 24774 | |
| 24775 | } |
| 24776 | res = sem_getvalue(a, &count); |
| 24777 | sem_close(a); |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 24778 | sem_unlink("/autocftw"); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24779 | return res==-1 ? 1 : 0; |
| 24780 | } |
| 24781 | |
| 24782 | _ACEOF |
| 24783 | rm -f conftest$ac_exeext |
| 24784 | if { (ac_try="$ac_link" |
| 24785 | case "(($ac_try" in |
| 24786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24787 | *) ac_try_echo=$ac_try;; |
| 24788 | esac |
| 24789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24790 | (eval "$ac_link") 2>&5 |
| 24791 | ac_status=$? |
| 24792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24793 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24794 | { (case "(($ac_try" in |
| 24795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24796 | *) ac_try_echo=$ac_try;; |
| 24797 | esac |
| 24798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24799 | (eval "$ac_try") 2>&5 |
| 24800 | ac_status=$? |
| 24801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24802 | (exit $ac_status); }; }; then |
| 24803 | ac_cv_broken_sem_getvalue=no |
| 24804 | else |
| 24805 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24806 | echo "$as_me: failed program was:" >&5 |
| 24807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24808 | |
| 24809 | ( exit $ac_status ) |
| 24810 | ac_cv_broken_sem_getvalue=yes |
| 24811 | fi |
| 24812 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24813 | fi |
| 24814 | |
| 24815 | |
| 24816 | |
| 24817 | fi |
| 24818 | |
| 24819 | { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5 |
| 24820 | echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; } |
| 24821 | if test $ac_cv_broken_sem_getvalue = yes |
| 24822 | then |
| 24823 | |
| 24824 | cat >>confdefs.h <<\_ACEOF |
| 24825 | #define HAVE_BROKEN_SEM_GETVALUE 1 |
| 24826 | _ACEOF |
| 24827 | |
| 24828 | fi |
| 24829 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24830 | # determine what size digit to use for Python's longs |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24831 | { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5 |
| 24832 | 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] | 24833 | # Check whether --enable-big-digits was given. |
| 24834 | if test "${enable_big_digits+set}" = set; then |
| 24835 | enableval=$enable_big_digits; case $enable_big_digits in |
| 24836 | yes) |
| 24837 | enable_big_digits=30 ;; |
| 24838 | no) |
| 24839 | enable_big_digits=15 ;; |
| 24840 | 15|30) |
| 24841 | ;; |
| 24842 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24843 | { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5 |
| 24844 | 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] | 24845 | { (exit 1); exit 1; }; } ;; |
| 24846 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24847 | { echo "$as_me:$LINENO: result: $enable_big_digits" >&5 |
| 24848 | echo "${ECHO_T}$enable_big_digits" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24849 | |
| 24850 | cat >>confdefs.h <<_ACEOF |
| 24851 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 24852 | _ACEOF |
| 24853 | |
| 24854 | |
| 24855 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24856 | { echo "$as_me:$LINENO: result: no value specified" >&5 |
| 24857 | echo "${ECHO_T}no value specified" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24858 | fi |
| 24859 | |
| 24860 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24861 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24862 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24863 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 24864 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24865 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24867 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24868 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 24869 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24870 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24871 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24872 | { echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 24873 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24874 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24875 | /* confdefs.h. */ |
| 24876 | _ACEOF |
| 24877 | cat confdefs.h >>conftest.$ac_ext |
| 24878 | cat >>conftest.$ac_ext <<_ACEOF |
| 24879 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24880 | $ac_includes_default |
| 24881 | #include <wchar.h> |
| 24882 | _ACEOF |
| 24883 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24884 | if { (ac_try="$ac_compile" |
| 24885 | case "(($ac_try" in |
| 24886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24887 | *) ac_try_echo=$ac_try;; |
| 24888 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24890 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24891 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24893 | rm -f conftest.er1 |
| 24894 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24896 | (exit $ac_status); } && { |
| 24897 | test -z "$ac_c_werror_flag" || |
| 24898 | test ! -s conftest.err |
| 24899 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24900 | ac_header_compiler=yes |
| 24901 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24902 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24904 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24905 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24906 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24907 | |
| 24908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24909 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 24910 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24911 | |
| 24912 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24913 | { echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 24914 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24921 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24922 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24923 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 24924 | case "(($ac_try" in |
| 24925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24926 | *) ac_try_echo=$ac_try;; |
| 24927 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24929 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24930 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24931 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24932 | rm -f conftest.er1 |
| 24933 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24935 | (exit $ac_status); } >/dev/null && { |
| 24936 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 24937 | test ! -s conftest.err |
| 24938 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24939 | ac_header_preproc=yes |
| 24940 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24941 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24943 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24944 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24945 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24946 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24947 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24948 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 24949 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24950 | |
| 24951 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24952 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 24953 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24954 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 24955 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 24956 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 24957 | 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] | 24958 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24959 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24960 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24961 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 24962 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 24963 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 24964 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 24965 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 24966 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 24967 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 24968 | echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 24969 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 24970 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 24971 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 24972 | 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] | 24973 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 24974 | ## -------------------------------------- ## |
| 24975 | ## Report this to http://bugs.python.org/ ## |
| 24976 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24977 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24978 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24979 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24980 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24981 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 24982 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24983 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24985 | else |
| 24986 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24987 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24988 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 24989 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24990 | |
| 24991 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24992 | if test $ac_cv_header_wchar_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24993 | |
| 24994 | |
| 24995 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24996 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24997 | _ACEOF |
| 24998 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 24999 | wchar_h="yes" |
| 25000 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25001 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25002 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25003 | |
| 25004 | fi |
| 25005 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25006 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25007 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25008 | # determine wchar_t size |
| 25009 | if test "$wchar_h" = yes |
| 25010 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25011 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 25012 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
| 25013 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 25014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25015 | else |
| 25016 | cat >conftest.$ac_ext <<_ACEOF |
| 25017 | /* confdefs.h. */ |
| 25018 | _ACEOF |
| 25019 | cat confdefs.h >>conftest.$ac_ext |
| 25020 | cat >>conftest.$ac_ext <<_ACEOF |
| 25021 | /* end confdefs.h. */ |
| 25022 | #include <wchar.h> |
| 25023 | |
| 25024 | typedef wchar_t ac__type_new_; |
| 25025 | int |
| 25026 | main () |
| 25027 | { |
| 25028 | if ((ac__type_new_ *) 0) |
| 25029 | return 0; |
| 25030 | if (sizeof (ac__type_new_)) |
| 25031 | return 0; |
| 25032 | ; |
| 25033 | return 0; |
| 25034 | } |
| 25035 | _ACEOF |
| 25036 | rm -f conftest.$ac_objext |
| 25037 | if { (ac_try="$ac_compile" |
| 25038 | case "(($ac_try" in |
| 25039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25040 | *) ac_try_echo=$ac_try;; |
| 25041 | esac |
| 25042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25043 | (eval "$ac_compile") 2>conftest.er1 |
| 25044 | ac_status=$? |
| 25045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25046 | rm -f conftest.er1 |
| 25047 | cat conftest.err >&5 |
| 25048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25049 | (exit $ac_status); } && { |
| 25050 | test -z "$ac_c_werror_flag" || |
| 25051 | test ! -s conftest.err |
| 25052 | } && test -s conftest.$ac_objext; then |
| 25053 | ac_cv_type_wchar_t=yes |
| 25054 | else |
| 25055 | echo "$as_me: failed program was:" >&5 |
| 25056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25057 | |
| 25058 | ac_cv_type_wchar_t=no |
| 25059 | fi |
| 25060 | |
| 25061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25062 | fi |
| 25063 | { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 25064 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; } |
| 25065 | |
| 25066 | # 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] | 25067 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 25068 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 25069 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25070 | { echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 25071 | 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] | 25072 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25074 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25075 | if test "$cross_compiling" = yes; then |
| 25076 | # Depending upon the size, compute the lo and hi bounds. |
| 25077 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25078 | /* confdefs.h. */ |
| 25079 | _ACEOF |
| 25080 | cat confdefs.h >>conftest.$ac_ext |
| 25081 | cat >>conftest.$ac_ext <<_ACEOF |
| 25082 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25083 | #include <wchar.h> |
| 25084 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25085 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25086 | int |
| 25087 | main () |
| 25088 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25089 | 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] | 25090 | test_array [0] = 0 |
| 25091 | |
| 25092 | ; |
| 25093 | return 0; |
| 25094 | } |
| 25095 | _ACEOF |
| 25096 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25097 | if { (ac_try="$ac_compile" |
| 25098 | case "(($ac_try" in |
| 25099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25100 | *) ac_try_echo=$ac_try;; |
| 25101 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25103 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25104 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25106 | rm -f conftest.er1 |
| 25107 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25109 | (exit $ac_status); } && { |
| 25110 | test -z "$ac_c_werror_flag" || |
| 25111 | test ! -s conftest.err |
| 25112 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25113 | ac_lo=0 ac_mid=0 |
| 25114 | while :; do |
| 25115 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25116 | /* confdefs.h. */ |
| 25117 | _ACEOF |
| 25118 | cat confdefs.h >>conftest.$ac_ext |
| 25119 | cat >>conftest.$ac_ext <<_ACEOF |
| 25120 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25121 | #include <wchar.h> |
| 25122 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25123 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25124 | int |
| 25125 | main () |
| 25126 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25127 | 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] | 25128 | test_array [0] = 0 |
| 25129 | |
| 25130 | ; |
| 25131 | return 0; |
| 25132 | } |
| 25133 | _ACEOF |
| 25134 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25135 | if { (ac_try="$ac_compile" |
| 25136 | case "(($ac_try" in |
| 25137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25138 | *) ac_try_echo=$ac_try;; |
| 25139 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25141 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25142 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25143 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25144 | rm -f conftest.er1 |
| 25145 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25147 | (exit $ac_status); } && { |
| 25148 | test -z "$ac_c_werror_flag" || |
| 25149 | test ! -s conftest.err |
| 25150 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25151 | ac_hi=$ac_mid; break |
| 25152 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25153 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25155 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25156 | ac_lo=`expr $ac_mid + 1` |
| 25157 | if test $ac_lo -le $ac_mid; then |
| 25158 | ac_lo= ac_hi= |
| 25159 | break |
| 25160 | fi |
| 25161 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25162 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25163 | |
| 25164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25165 | done |
| 25166 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25167 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25169 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25170 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25171 | /* confdefs.h. */ |
| 25172 | _ACEOF |
| 25173 | cat confdefs.h >>conftest.$ac_ext |
| 25174 | cat >>conftest.$ac_ext <<_ACEOF |
| 25175 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25176 | #include <wchar.h> |
| 25177 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25178 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25179 | int |
| 25180 | main () |
| 25181 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25182 | 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] | 25183 | test_array [0] = 0 |
| 25184 | |
| 25185 | ; |
| 25186 | return 0; |
| 25187 | } |
| 25188 | _ACEOF |
| 25189 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25190 | if { (ac_try="$ac_compile" |
| 25191 | case "(($ac_try" in |
| 25192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25193 | *) ac_try_echo=$ac_try;; |
| 25194 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25196 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25197 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25198 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25199 | rm -f conftest.er1 |
| 25200 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25202 | (exit $ac_status); } && { |
| 25203 | test -z "$ac_c_werror_flag" || |
| 25204 | test ! -s conftest.err |
| 25205 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25206 | ac_hi=-1 ac_mid=-1 |
| 25207 | while :; do |
| 25208 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25209 | /* confdefs.h. */ |
| 25210 | _ACEOF |
| 25211 | cat confdefs.h >>conftest.$ac_ext |
| 25212 | cat >>conftest.$ac_ext <<_ACEOF |
| 25213 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25214 | #include <wchar.h> |
| 25215 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25216 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25217 | int |
| 25218 | main () |
| 25219 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25220 | 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] | 25221 | test_array [0] = 0 |
| 25222 | |
| 25223 | ; |
| 25224 | return 0; |
| 25225 | } |
| 25226 | _ACEOF |
| 25227 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25228 | if { (ac_try="$ac_compile" |
| 25229 | case "(($ac_try" in |
| 25230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25231 | *) ac_try_echo=$ac_try;; |
| 25232 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25234 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25235 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25237 | rm -f conftest.er1 |
| 25238 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25240 | (exit $ac_status); } && { |
| 25241 | test -z "$ac_c_werror_flag" || |
| 25242 | test ! -s conftest.err |
| 25243 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25244 | ac_lo=$ac_mid; break |
| 25245 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25246 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25248 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25249 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 25250 | if test $ac_mid -le $ac_hi; then |
| 25251 | ac_lo= ac_hi= |
| 25252 | break |
| 25253 | fi |
| 25254 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25255 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25256 | |
| 25257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25258 | done |
| 25259 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25260 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25262 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25263 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25264 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25265 | |
| 25266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25267 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25268 | |
| 25269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25270 | # Binary search between lo and hi bounds. |
| 25271 | while test "x$ac_lo" != "x$ac_hi"; do |
| 25272 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 25273 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25274 | /* confdefs.h. */ |
| 25275 | _ACEOF |
| 25276 | cat confdefs.h >>conftest.$ac_ext |
| 25277 | cat >>conftest.$ac_ext <<_ACEOF |
| 25278 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25279 | #include <wchar.h> |
| 25280 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25281 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25282 | int |
| 25283 | main () |
| 25284 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25285 | 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] | 25286 | test_array [0] = 0 |
| 25287 | |
| 25288 | ; |
| 25289 | return 0; |
| 25290 | } |
| 25291 | _ACEOF |
| 25292 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25293 | if { (ac_try="$ac_compile" |
| 25294 | case "(($ac_try" in |
| 25295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25296 | *) ac_try_echo=$ac_try;; |
| 25297 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25299 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25300 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25301 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25302 | rm -f conftest.er1 |
| 25303 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25305 | (exit $ac_status); } && { |
| 25306 | test -z "$ac_c_werror_flag" || |
| 25307 | test ! -s conftest.err |
| 25308 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25309 | ac_hi=$ac_mid |
| 25310 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25311 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25313 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25314 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25315 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25316 | |
| 25317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25318 | done |
| 25319 | case $ac_lo in |
| 25320 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25321 | '') if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25322 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25323 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25324 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25325 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25326 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25327 | else |
| 25328 | ac_cv_sizeof_wchar_t=0 |
| 25329 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25330 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25331 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25332 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25333 | /* confdefs.h. */ |
| 25334 | _ACEOF |
| 25335 | cat confdefs.h >>conftest.$ac_ext |
| 25336 | cat >>conftest.$ac_ext <<_ACEOF |
| 25337 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25338 | #include <wchar.h> |
| 25339 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25340 | typedef wchar_t ac__type_sizeof_; |
| 25341 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 25342 | 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] | 25343 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25344 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25345 | int |
| 25346 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25347 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25348 | |
| 25349 | FILE *f = fopen ("conftest.val", "w"); |
| 25350 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25351 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25352 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25353 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25354 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25355 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25356 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25357 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25358 | } |
| 25359 | else |
| 25360 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25361 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25362 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25363 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25364 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25365 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25366 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25367 | |
| 25368 | ; |
| 25369 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25370 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25371 | _ACEOF |
| 25372 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25373 | if { (ac_try="$ac_link" |
| 25374 | case "(($ac_try" in |
| 25375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25376 | *) ac_try_echo=$ac_try;; |
| 25377 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25379 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25380 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25382 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25383 | { (case "(($ac_try" in |
| 25384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25385 | *) ac_try_echo=$ac_try;; |
| 25386 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25388 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25389 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25391 | (exit $ac_status); }; }; then |
| 25392 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25393 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25394 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25395 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25397 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25398 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25399 | if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25400 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25401 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25402 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25403 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25404 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25405 | else |
| 25406 | ac_cv_sizeof_wchar_t=0 |
| 25407 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25408 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25409 | 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] | 25410 | fi |
| 25411 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25412 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25413 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 25414 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25415 | |
| 25416 | |
| 25417 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25418 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25419 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25420 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25421 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25422 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25423 | fi |
| 25424 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25425 | { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 25426 | 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] | 25427 | have_ucs4_tcl=no |
| 25428 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25429 | /* confdefs.h. */ |
| 25430 | _ACEOF |
| 25431 | cat confdefs.h >>conftest.$ac_ext |
| 25432 | cat >>conftest.$ac_ext <<_ACEOF |
| 25433 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25434 | |
| 25435 | #include <tcl.h> |
| 25436 | #if TCL_UTF_MAX != 6 |
| 25437 | # error "NOT UCS4_TCL" |
| 25438 | #endif |
| 25439 | int |
| 25440 | main () |
| 25441 | { |
| 25442 | |
| 25443 | ; |
| 25444 | return 0; |
| 25445 | } |
| 25446 | _ACEOF |
| 25447 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25448 | if { (ac_try="$ac_compile" |
| 25449 | case "(($ac_try" in |
| 25450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25451 | *) ac_try_echo=$ac_try;; |
| 25452 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25454 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25455 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25457 | rm -f conftest.er1 |
| 25458 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25460 | (exit $ac_status); } && { |
| 25461 | test -z "$ac_c_werror_flag" || |
| 25462 | test ! -s conftest.err |
| 25463 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25464 | |
| 25465 | |
| 25466 | cat >>confdefs.h <<\_ACEOF |
| 25467 | #define HAVE_UCS4_TCL 1 |
| 25468 | _ACEOF |
| 25469 | |
| 25470 | have_ucs4_tcl=yes |
| 25471 | |
| 25472 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25473 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25475 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25476 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25477 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25478 | |
| 25479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25480 | { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 25481 | echo "${ECHO_T}$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25482 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25483 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25484 | if test "$wchar_h" = yes |
| 25485 | then |
| 25486 | # check whether wchar_t is signed or not |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25487 | { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 25488 | 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] | 25489 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25491 | else |
| 25492 | |
| 25493 | if test "$cross_compiling" = yes; then |
| 25494 | ac_cv_wchar_t_signed=yes |
| 25495 | else |
| 25496 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25497 | /* confdefs.h. */ |
| 25498 | _ACEOF |
| 25499 | cat confdefs.h >>conftest.$ac_ext |
| 25500 | cat >>conftest.$ac_ext <<_ACEOF |
| 25501 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25502 | |
| 25503 | #include <wchar.h> |
| 25504 | int main() |
| 25505 | { |
Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 25506 | /* Success: exit code 0 */ |
| 25507 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25508 | } |
| 25509 | |
| 25510 | _ACEOF |
| 25511 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25512 | if { (ac_try="$ac_link" |
| 25513 | case "(($ac_try" in |
| 25514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25515 | *) ac_try_echo=$ac_try;; |
| 25516 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25518 | (eval "$ac_link") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25519 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25521 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25522 | { (case "(($ac_try" in |
| 25523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25524 | *) ac_try_echo=$ac_try;; |
| 25525 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25527 | (eval "$ac_try") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25528 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25530 | (exit $ac_status); }; }; then |
| 25531 | ac_cv_wchar_t_signed=yes |
| 25532 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25533 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25534 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25536 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25537 | ( exit $ac_status ) |
| 25538 | ac_cv_wchar_t_signed=no |
| 25539 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25540 | 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] | 25541 | fi |
| 25542 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25543 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25544 | fi |
| 25545 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25546 | { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 25547 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25548 | fi |
| 25549 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25550 | { echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 25551 | 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] | 25552 | # Check whether --enable-unicode was given. |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25553 | if test "${enable_unicode+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25554 | enableval=$enable_unicode; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25555 | else |
| 25556 | enable_unicode=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25557 | fi |
| 25558 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25559 | |
| 25560 | if test $enable_unicode = yes |
| 25561 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 25562 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25563 | case "$have_ucs4_tcl" in |
| 25564 | yes) enable_unicode="ucs4" |
| 25565 | ;; |
| 25566 | *) enable_unicode="ucs2" |
| 25567 | ;; |
| 25568 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25569 | fi |
| 25570 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 25571 | |
| 25572 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25573 | case "$enable_unicode" in |
| 25574 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25575 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25576 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25577 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25578 | |
| 25579 | ;; |
| 25580 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25581 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25582 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25583 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25584 | |
| 25585 | ;; |
Benjamin Peterson | 8b65054 | 2010-02-27 00:11:42 +0000 | [diff] [blame] | 25586 | *) { { echo "$as_me:$LINENO: error: invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." >&5 |
| 25587 | echo "$as_me: error: invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." >&2;} |
| 25588 | { (exit 1); exit 1; }; } ;; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25589 | esac |
| 25590 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25591 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25592 | |
| 25593 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 25594 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25595 | if test "$enable_unicode" = "no" |
| 25596 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 25597 | UNICODE_OBJS="" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25598 | { echo "$as_me:$LINENO: result: not used" >&5 |
| 25599 | echo "${ECHO_T}not used" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25600 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 25601 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25602 | |
| 25603 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25604 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25605 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25606 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25607 | |
| 25608 | # wchar_t is only usable if it maps to an unsigned type |
| 25609 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 25610 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25611 | then |
| 25612 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25613 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25614 | cat >>confdefs.h <<\_ACEOF |
| 25615 | #define HAVE_USABLE_WCHAR_T 1 |
| 25616 | _ACEOF |
| 25617 | |
| 25618 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25619 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25620 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25621 | |
| 25622 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 25623 | then |
| 25624 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25625 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25626 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25627 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25628 | |
| 25629 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 25630 | then |
| 25631 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25632 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25633 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25634 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25635 | |
| 25636 | else |
| 25637 | PY_UNICODE_TYPE="no type found" |
| 25638 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25639 | { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 25640 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25641 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25642 | |
| 25643 | # check for endianness |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25644 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 25645 | 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] | 25646 | if test "${ac_cv_c_bigendian+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25648 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25649 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 25650 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25651 | /* confdefs.h. */ |
| 25652 | _ACEOF |
| 25653 | cat confdefs.h >>conftest.$ac_ext |
| 25654 | cat >>conftest.$ac_ext <<_ACEOF |
| 25655 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25656 | #include <sys/types.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25657 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25658 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25659 | int |
| 25660 | main () |
| 25661 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25662 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 25663 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
| 25664 | bogus endian macros |
| 25665 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25666 | |
| 25667 | ; |
| 25668 | return 0; |
| 25669 | } |
| 25670 | _ACEOF |
| 25671 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25672 | if { (ac_try="$ac_compile" |
| 25673 | case "(($ac_try" in |
| 25674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25675 | *) ac_try_echo=$ac_try;; |
| 25676 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25678 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25679 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25681 | rm -f conftest.er1 |
| 25682 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25684 | (exit $ac_status); } && { |
| 25685 | test -z "$ac_c_werror_flag" || |
| 25686 | test ! -s conftest.err |
| 25687 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25688 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +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. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25695 | #include <sys/types.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25696 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25697 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25698 | int |
| 25699 | main () |
| 25700 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25701 | #if BYTE_ORDER != BIG_ENDIAN |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25702 | not big endian |
| 25703 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25704 | |
| 25705 | ; |
| 25706 | return 0; |
| 25707 | } |
| 25708 | _ACEOF |
| 25709 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25710 | if { (ac_try="$ac_compile" |
| 25711 | case "(($ac_try" in |
| 25712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25713 | *) ac_try_echo=$ac_try;; |
| 25714 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25716 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25717 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25718 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25719 | rm -f conftest.er1 |
| 25720 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25722 | (exit $ac_status); } && { |
| 25723 | test -z "$ac_c_werror_flag" || |
| 25724 | test ! -s conftest.err |
| 25725 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25726 | ac_cv_c_bigendian=yes |
| 25727 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25728 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25730 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25731 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25732 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25733 | |
| 25734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25735 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25736 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25738 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25739 | # It does not; compile a test program. |
| 25740 | if test "$cross_compiling" = yes; then |
| 25741 | # try to guess the endianness by grepping values into an object file |
| 25742 | ac_cv_c_bigendian=unknown |
| 25743 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25744 | /* confdefs.h. */ |
| 25745 | _ACEOF |
| 25746 | cat confdefs.h >>conftest.$ac_ext |
| 25747 | cat >>conftest.$ac_ext <<_ACEOF |
| 25748 | /* end confdefs.h. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25749 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 25750 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 25751 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 25752 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 25753 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 25754 | 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] | 25755 | int |
| 25756 | main () |
| 25757 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25758 | _ascii (); _ebcdic (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25759 | ; |
| 25760 | return 0; |
| 25761 | } |
| 25762 | _ACEOF |
| 25763 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25764 | if { (ac_try="$ac_compile" |
| 25765 | case "(($ac_try" in |
| 25766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25767 | *) ac_try_echo=$ac_try;; |
| 25768 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25770 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25771 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25773 | rm -f conftest.er1 |
| 25774 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25776 | (exit $ac_status); } && { |
| 25777 | test -z "$ac_c_werror_flag" || |
| 25778 | test ! -s conftest.err |
| 25779 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25780 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25781 | ac_cv_c_bigendian=yes |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25782 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25783 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 25784 | if test "$ac_cv_c_bigendian" = unknown; then |
| 25785 | ac_cv_c_bigendian=no |
| 25786 | else |
| 25787 | # finding both strings is unlikely to happen, but who knows? |
| 25788 | ac_cv_c_bigendian=unknown |
| 25789 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25790 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25791 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25792 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25794 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25795 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25796 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25797 | |
| 25798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25799 | else |
| 25800 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25801 | /* confdefs.h. */ |
| 25802 | _ACEOF |
| 25803 | cat confdefs.h >>conftest.$ac_ext |
| 25804 | cat >>conftest.$ac_ext <<_ACEOF |
| 25805 | /* end confdefs.h. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25806 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25807 | int |
| 25808 | main () |
| 25809 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25810 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25811 | /* Are we little or big endian? From Harbison&Steele. */ |
| 25812 | union |
| 25813 | { |
| 25814 | long int l; |
| 25815 | char c[sizeof (long int)]; |
| 25816 | } u; |
| 25817 | u.l = 1; |
| 25818 | return u.c[sizeof (long int) - 1] == 1; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25819 | |
| 25820 | ; |
| 25821 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25822 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25823 | _ACEOF |
| 25824 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25825 | if { (ac_try="$ac_link" |
| 25826 | case "(($ac_try" in |
| 25827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25828 | *) ac_try_echo=$ac_try;; |
| 25829 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25831 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25832 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25834 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25835 | { (case "(($ac_try" in |
| 25836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25837 | *) ac_try_echo=$ac_try;; |
| 25838 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25840 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25841 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25843 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25844 | ac_cv_c_bigendian=no |
| 25845 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25846 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25847 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25848 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25849 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25850 | ( exit $ac_status ) |
| 25851 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25852 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25853 | 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] | 25854 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25855 | |
| 25856 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25857 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25858 | |
| 25859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25860 | fi |
| 25861 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 25862 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 25863 | case $ac_cv_c_bigendian in |
| 25864 | yes) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25865 | |
| 25866 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25867 | #define WORDS_BIGENDIAN 1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25868 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25869 | ;; |
| 25870 | no) |
| 25871 | ;; |
| 25872 | *) |
| 25873 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 25874 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 25875 | echo "$as_me: error: unknown endianness |
| 25876 | 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] | 25877 | { (exit 1); exit 1; }; } ;; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25878 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25879 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25880 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25881 | # Check whether right shifting a negative integer extends the sign bit |
| 25882 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25883 | { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 25884 | 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] | 25885 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25887 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25888 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25889 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 25890 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25891 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25892 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25893 | /* confdefs.h. */ |
| 25894 | _ACEOF |
| 25895 | cat confdefs.h >>conftest.$ac_ext |
| 25896 | cat >>conftest.$ac_ext <<_ACEOF |
| 25897 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25898 | |
| 25899 | int main() |
| 25900 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25901 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25902 | } |
| 25903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25904 | _ACEOF |
| 25905 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25906 | if { (ac_try="$ac_link" |
| 25907 | case "(($ac_try" in |
| 25908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25909 | *) ac_try_echo=$ac_try;; |
| 25910 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25912 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25913 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25915 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25916 | { (case "(($ac_try" in |
| 25917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25918 | *) ac_try_echo=$ac_try;; |
| 25919 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25921 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25922 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25924 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25925 | ac_cv_rshift_extends_sign=yes |
| 25926 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25927 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25928 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25930 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25931 | ( exit $ac_status ) |
| 25932 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25933 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25934 | 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] | 25935 | fi |
| 25936 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25937 | |
| 25938 | fi |
| 25939 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25940 | { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 25941 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25942 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25943 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25944 | |
| 25945 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25946 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25947 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25948 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25949 | fi |
| 25950 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25951 | # check for getc_unlocked and related locking functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25952 | { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 25953 | 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] | 25954 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25956 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25957 | |
| 25958 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25959 | /* confdefs.h. */ |
| 25960 | _ACEOF |
| 25961 | cat confdefs.h >>conftest.$ac_ext |
| 25962 | cat >>conftest.$ac_ext <<_ACEOF |
| 25963 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25964 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25965 | int |
| 25966 | main () |
| 25967 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25968 | |
| 25969 | FILE *f = fopen("/dev/null", "r"); |
| 25970 | flockfile(f); |
| 25971 | getc_unlocked(f); |
| 25972 | funlockfile(f); |
| 25973 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25974 | ; |
| 25975 | return 0; |
| 25976 | } |
| 25977 | _ACEOF |
| 25978 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25979 | if { (ac_try="$ac_link" |
| 25980 | case "(($ac_try" in |
| 25981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25982 | *) ac_try_echo=$ac_try;; |
| 25983 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25985 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25986 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25988 | rm -f conftest.er1 |
| 25989 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25991 | (exit $ac_status); } && { |
| 25992 | test -z "$ac_c_werror_flag" || |
| 25993 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25994 | } && test -s conftest$ac_exeext && |
| 25995 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25996 | ac_cv_have_getc_unlocked=yes |
| 25997 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25998 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26000 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26001 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26002 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26003 | |
| 26004 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26005 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26006 | fi |
| 26007 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26008 | { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 26009 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26010 | if test "$ac_cv_have_getc_unlocked" = yes |
| 26011 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26012 | |
| 26013 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26014 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26015 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26016 | |
| 26017 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 26018 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26019 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 26020 | # save the value of LIBS so we don't actually link Python with readline |
| 26021 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26022 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26023 | # On some systems we need to link readline to a termcap compatible |
| 26024 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 26025 | # with setup.py. |
| 26026 | py_cv_lib_readline=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26027 | { echo "$as_me:$LINENO: checking how to link readline libs" >&5 |
| 26028 | 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] | 26029 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 26030 | if test -z "$py_libtermcap"; then |
| 26031 | READLINE_LIBS="-lreadline" |
| 26032 | else |
| 26033 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 26034 | fi |
| 26035 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
| 26036 | cat >conftest.$ac_ext <<_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26037 | /* confdefs.h. */ |
| 26038 | _ACEOF |
| 26039 | cat confdefs.h >>conftest.$ac_ext |
| 26040 | cat >>conftest.$ac_ext <<_ACEOF |
| 26041 | /* end confdefs.h. */ |
| 26042 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26043 | /* Override any GCC internal prototype to avoid an error. |
| 26044 | Use char because int might match the return type of a GCC |
| 26045 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26046 | #ifdef __cplusplus |
| 26047 | extern "C" |
| 26048 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26049 | char readline (); |
| 26050 | int |
| 26051 | main () |
| 26052 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26053 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26054 | ; |
| 26055 | return 0; |
| 26056 | } |
| 26057 | _ACEOF |
| 26058 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26059 | if { (ac_try="$ac_link" |
| 26060 | case "(($ac_try" in |
| 26061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26062 | *) ac_try_echo=$ac_try;; |
| 26063 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26065 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26066 | ac_status=$? |
| 26067 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26068 | rm -f conftest.er1 |
| 26069 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26071 | (exit $ac_status); } && { |
| 26072 | test -z "$ac_c_werror_flag" || |
| 26073 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26074 | } && test -s conftest$ac_exeext && |
| 26075 | $as_test_x conftest$ac_exeext; then |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26076 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26077 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26078 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26080 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26081 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26082 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26083 | |
| 26084 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26085 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26086 | if test $py_cv_lib_readline = yes; then |
| 26087 | break |
| 26088 | fi |
| 26089 | done |
| 26090 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 26091 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | e080cdf | 2008-09-07 19:19:04 +0000 | [diff] [blame] | 26092 | if test $py_cv_lib_readline = no; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26093 | { echo "$as_me:$LINENO: result: none" >&5 |
| 26094 | echo "${ECHO_T}none" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26095 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26096 | { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5 |
| 26097 | echo "${ECHO_T}$READLINE_LIBS" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26098 | |
| 26099 | cat >>confdefs.h <<\_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26100 | #define HAVE_LIBREADLINE 1 |
| 26101 | _ACEOF |
| 26102 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26103 | fi |
| 26104 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26105 | # check for readline 2.1 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26106 | { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 26107 | 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] | 26108 | 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] | 26109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26110 | else |
| 26111 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26112 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26113 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26114 | /* confdefs.h. */ |
| 26115 | _ACEOF |
| 26116 | cat confdefs.h >>conftest.$ac_ext |
| 26117 | cat >>conftest.$ac_ext <<_ACEOF |
| 26118 | /* end confdefs.h. */ |
| 26119 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26120 | /* Override any GCC internal prototype to avoid an error. |
| 26121 | Use char because int might match the return type of a GCC |
| 26122 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26123 | #ifdef __cplusplus |
| 26124 | extern "C" |
| 26125 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26126 | char rl_callback_handler_install (); |
| 26127 | int |
| 26128 | main () |
| 26129 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26130 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26131 | ; |
| 26132 | return 0; |
| 26133 | } |
| 26134 | _ACEOF |
| 26135 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26136 | if { (ac_try="$ac_link" |
| 26137 | case "(($ac_try" in |
| 26138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26139 | *) ac_try_echo=$ac_try;; |
| 26140 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26142 | (eval "$ac_link") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26143 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26144 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26145 | rm -f conftest.er1 |
| 26146 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26148 | (exit $ac_status); } && { |
| 26149 | test -z "$ac_c_werror_flag" || |
| 26150 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26151 | } && test -s conftest$ac_exeext && |
| 26152 | $as_test_x conftest$ac_exeext; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26153 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 26154 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26155 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26157 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26158 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26159 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26160 | |
| 26161 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26162 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26163 | LIBS=$ac_check_lib_save_LIBS |
| 26164 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26165 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 26166 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
| 26167 | 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] | 26168 | |
| 26169 | cat >>confdefs.h <<\_ACEOF |
| 26170 | #define HAVE_RL_CALLBACK 1 |
| 26171 | _ACEOF |
| 26172 | |
| 26173 | fi |
| 26174 | |
| 26175 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26176 | # check for readline 2.2 |
| 26177 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26178 | /* confdefs.h. */ |
| 26179 | _ACEOF |
| 26180 | cat confdefs.h >>conftest.$ac_ext |
| 26181 | cat >>conftest.$ac_ext <<_ACEOF |
| 26182 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26183 | #include <readline/readline.h> |
| 26184 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26185 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 26186 | case "(($ac_try" in |
| 26187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26188 | *) ac_try_echo=$ac_try;; |
| 26189 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26191 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26192 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26193 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26194 | rm -f conftest.er1 |
| 26195 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26197 | (exit $ac_status); } >/dev/null && { |
| 26198 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 26199 | test ! -s conftest.err |
| 26200 | }; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26201 | have_readline=yes |
| 26202 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26203 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26205 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26206 | have_readline=no |
| 26207 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26208 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26209 | rm -f conftest.err conftest.$ac_ext |
| 26210 | if test $have_readline = yes |
| 26211 | then |
| 26212 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26213 | /* confdefs.h. */ |
| 26214 | _ACEOF |
| 26215 | cat confdefs.h >>conftest.$ac_ext |
| 26216 | cat >>conftest.$ac_ext <<_ACEOF |
| 26217 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26218 | #include <readline/readline.h> |
| 26219 | |
| 26220 | _ACEOF |
| 26221 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26222 | $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] | 26223 | |
| 26224 | cat >>confdefs.h <<\_ACEOF |
| 26225 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 26226 | _ACEOF |
| 26227 | |
| 26228 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 26229 | rm -f conftest* |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 26230 | |
| 26231 | cat >conftest.$ac_ext <<_ACEOF |
| 26232 | /* confdefs.h. */ |
| 26233 | _ACEOF |
| 26234 | cat confdefs.h >>conftest.$ac_ext |
| 26235 | cat >>conftest.$ac_ext <<_ACEOF |
| 26236 | /* end confdefs.h. */ |
| 26237 | #include <readline/readline.h> |
| 26238 | |
| 26239 | _ACEOF |
| 26240 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 26241 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then |
| 26242 | |
| 26243 | cat >>confdefs.h <<\_ACEOF |
| 26244 | #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1 |
| 26245 | _ACEOF |
| 26246 | |
| 26247 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 26248 | rm -f conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26249 | |
| 26250 | fi |
| 26251 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26252 | # check for readline 4.0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26253 | { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 26254 | 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] | 26255 | 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] | 26256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26257 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26258 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26259 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26260 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26261 | /* confdefs.h. */ |
| 26262 | _ACEOF |
| 26263 | cat confdefs.h >>conftest.$ac_ext |
| 26264 | cat >>conftest.$ac_ext <<_ACEOF |
| 26265 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26266 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26267 | /* Override any GCC internal prototype to avoid an error. |
| 26268 | Use char because int might match the return type of a GCC |
| 26269 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26270 | #ifdef __cplusplus |
| 26271 | extern "C" |
| 26272 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26273 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26274 | int |
| 26275 | main () |
| 26276 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26277 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26278 | ; |
| 26279 | return 0; |
| 26280 | } |
| 26281 | _ACEOF |
| 26282 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26283 | if { (ac_try="$ac_link" |
| 26284 | case "(($ac_try" in |
| 26285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26286 | *) ac_try_echo=$ac_try;; |
| 26287 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26289 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26290 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26292 | rm -f conftest.er1 |
| 26293 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26295 | (exit $ac_status); } && { |
| 26296 | test -z "$ac_c_werror_flag" || |
| 26297 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26298 | } && test -s conftest$ac_exeext && |
| 26299 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26300 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26301 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26302 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26304 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26305 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26306 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26307 | |
| 26308 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26309 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26310 | LIBS=$ac_check_lib_save_LIBS |
| 26311 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26312 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 26313 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
| 26314 | 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] | 26315 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26316 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26317 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26318 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26319 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26320 | fi |
| 26321 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26322 | |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26323 | # also in 4.0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26324 | { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 26325 | 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] | 26326 | 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] | 26327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26328 | else |
| 26329 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26330 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26331 | cat >conftest.$ac_ext <<_ACEOF |
| 26332 | /* confdefs.h. */ |
| 26333 | _ACEOF |
| 26334 | cat confdefs.h >>conftest.$ac_ext |
| 26335 | cat >>conftest.$ac_ext <<_ACEOF |
| 26336 | /* end confdefs.h. */ |
| 26337 | |
| 26338 | /* Override any GCC internal prototype to avoid an error. |
| 26339 | Use char because int might match the return type of a GCC |
| 26340 | builtin and then its argument prototype would still apply. */ |
| 26341 | #ifdef __cplusplus |
| 26342 | extern "C" |
| 26343 | #endif |
| 26344 | char rl_completion_display_matches_hook (); |
| 26345 | int |
| 26346 | main () |
| 26347 | { |
| 26348 | return rl_completion_display_matches_hook (); |
| 26349 | ; |
| 26350 | return 0; |
| 26351 | } |
| 26352 | _ACEOF |
| 26353 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26354 | if { (ac_try="$ac_link" |
| 26355 | case "(($ac_try" in |
| 26356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26357 | *) ac_try_echo=$ac_try;; |
| 26358 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26360 | (eval "$ac_link") 2>conftest.er1 |
| 26361 | ac_status=$? |
| 26362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26363 | rm -f conftest.er1 |
| 26364 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26366 | (exit $ac_status); } && { |
| 26367 | test -z "$ac_c_werror_flag" || |
| 26368 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26369 | } && test -s conftest$ac_exeext && |
| 26370 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26371 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 26372 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26373 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26375 | |
| 26376 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
| 26377 | fi |
| 26378 | |
| 26379 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 26380 | conftest$ac_exeext conftest.$ac_ext |
| 26381 | LIBS=$ac_check_lib_save_LIBS |
| 26382 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26383 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 26384 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
| 26385 | 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] | 26386 | |
| 26387 | cat >>confdefs.h <<\_ACEOF |
| 26388 | #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1 |
| 26389 | _ACEOF |
| 26390 | |
| 26391 | fi |
| 26392 | |
| 26393 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26394 | # check for readline 4.2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26395 | { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 26396 | 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] | 26397 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26399 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26400 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26401 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26402 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26403 | /* confdefs.h. */ |
| 26404 | _ACEOF |
| 26405 | cat confdefs.h >>conftest.$ac_ext |
| 26406 | cat >>conftest.$ac_ext <<_ACEOF |
| 26407 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26408 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26409 | /* Override any GCC internal prototype to avoid an error. |
| 26410 | Use char because int might match the return type of a GCC |
| 26411 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26412 | #ifdef __cplusplus |
| 26413 | extern "C" |
| 26414 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26415 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26416 | int |
| 26417 | main () |
| 26418 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26419 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26420 | ; |
| 26421 | return 0; |
| 26422 | } |
| 26423 | _ACEOF |
| 26424 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26425 | if { (ac_try="$ac_link" |
| 26426 | case "(($ac_try" in |
| 26427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26428 | *) ac_try_echo=$ac_try;; |
| 26429 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26431 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26432 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26434 | rm -f conftest.er1 |
| 26435 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26437 | (exit $ac_status); } && { |
| 26438 | test -z "$ac_c_werror_flag" || |
| 26439 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26440 | } && test -s conftest$ac_exeext && |
| 26441 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26442 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26443 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26444 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26446 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26447 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26448 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26449 | |
| 26450 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26451 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26452 | LIBS=$ac_check_lib_save_LIBS |
| 26453 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26454 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 26455 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; } |
| 26456 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26457 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26458 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26459 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26460 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26461 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26462 | fi |
| 26463 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 26464 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26465 | # also in readline 4.2 |
| 26466 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26467 | /* confdefs.h. */ |
| 26468 | _ACEOF |
| 26469 | cat confdefs.h >>conftest.$ac_ext |
| 26470 | cat >>conftest.$ac_ext <<_ACEOF |
| 26471 | /* end confdefs.h. */ |
| 26472 | #include <readline/readline.h> |
| 26473 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26474 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 26475 | case "(($ac_try" in |
| 26476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26477 | *) ac_try_echo=$ac_try;; |
| 26478 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26480 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26481 | ac_status=$? |
| 26482 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26483 | rm -f conftest.er1 |
| 26484 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26486 | (exit $ac_status); } >/dev/null && { |
| 26487 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 26488 | test ! -s conftest.err |
| 26489 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26490 | have_readline=yes |
| 26491 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26492 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26494 | |
| 26495 | have_readline=no |
| 26496 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26497 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26498 | rm -f conftest.err conftest.$ac_ext |
| 26499 | if test $have_readline = yes |
| 26500 | then |
| 26501 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26502 | /* confdefs.h. */ |
| 26503 | _ACEOF |
| 26504 | cat confdefs.h >>conftest.$ac_ext |
| 26505 | cat >>conftest.$ac_ext <<_ACEOF |
| 26506 | /* end confdefs.h. */ |
| 26507 | #include <readline/readline.h> |
| 26508 | |
| 26509 | _ACEOF |
| 26510 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 26511 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 26512 | |
| 26513 | cat >>confdefs.h <<\_ACEOF |
| 26514 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 26515 | _ACEOF |
| 26516 | |
| 26517 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 26518 | rm -f conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26519 | |
| 26520 | fi |
| 26521 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 26522 | # End of readline checks: restore LIBS |
| 26523 | LIBS=$LIBS_no_readline |
| 26524 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26525 | { echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 26526 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26527 | if test "${ac_cv_broken_nice+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26529 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26530 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26531 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 26532 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26533 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26534 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26535 | /* confdefs.h. */ |
| 26536 | _ACEOF |
| 26537 | cat confdefs.h >>conftest.$ac_ext |
| 26538 | cat >>conftest.$ac_ext <<_ACEOF |
| 26539 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26540 | |
| 26541 | int main() |
| 26542 | { |
| 26543 | int val1 = nice(1); |
| 26544 | if (val1 != -1 && val1 == nice(2)) |
| 26545 | exit(0); |
| 26546 | exit(1); |
| 26547 | } |
| 26548 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26549 | _ACEOF |
| 26550 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26551 | if { (ac_try="$ac_link" |
| 26552 | case "(($ac_try" in |
| 26553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26554 | *) ac_try_echo=$ac_try;; |
| 26555 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26557 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26558 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26560 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26561 | { (case "(($ac_try" in |
| 26562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26563 | *) ac_try_echo=$ac_try;; |
| 26564 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26566 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26567 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26569 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26570 | ac_cv_broken_nice=yes |
| 26571 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26572 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26573 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26575 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26576 | ( exit $ac_status ) |
| 26577 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26578 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26579 | 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] | 26580 | fi |
| 26581 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26582 | |
| 26583 | fi |
| 26584 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26585 | { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 26586 | echo "${ECHO_T}$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26587 | if test "$ac_cv_broken_nice" = yes |
| 26588 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26589 | |
| 26590 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26591 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26592 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26593 | |
| 26594 | fi |
| 26595 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26596 | { echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 26597 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26598 | if test "${ac_cv_broken_poll+set}" = set; then |
| 26599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26600 | else |
| 26601 | if test "$cross_compiling" = yes; then |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26602 | ac_cv_broken_poll=no |
| 26603 | else |
| 26604 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26605 | /* confdefs.h. */ |
| 26606 | _ACEOF |
| 26607 | cat confdefs.h >>conftest.$ac_ext |
| 26608 | cat >>conftest.$ac_ext <<_ACEOF |
| 26609 | /* end confdefs.h. */ |
| 26610 | |
| 26611 | #include <poll.h> |
| 26612 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26613 | int main() |
| 26614 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26615 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26616 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26617 | |
| 26618 | close (42); |
| 26619 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26620 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26621 | if (poll_test < 0) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26622 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26623 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26624 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26625 | else |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26626 | return 1; |
| 26627 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26628 | |
| 26629 | _ACEOF |
| 26630 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26631 | if { (ac_try="$ac_link" |
| 26632 | case "(($ac_try" in |
| 26633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26634 | *) ac_try_echo=$ac_try;; |
| 26635 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26637 | (eval "$ac_link") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26638 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26640 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26641 | { (case "(($ac_try" in |
| 26642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26643 | *) ac_try_echo=$ac_try;; |
| 26644 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26646 | (eval "$ac_try") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26647 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26649 | (exit $ac_status); }; }; then |
| 26650 | ac_cv_broken_poll=yes |
| 26651 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26652 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26653 | echo "$as_me: failed program was:" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26655 | |
| 26656 | ( exit $ac_status ) |
| 26657 | ac_cv_broken_poll=no |
| 26658 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26659 | 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] | 26660 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26661 | |
| 26662 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26663 | fi |
| 26664 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26665 | { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 26666 | echo "${ECHO_T}$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26667 | if test "$ac_cv_broken_poll" = yes |
| 26668 | then |
| 26669 | |
| 26670 | cat >>confdefs.h <<\_ACEOF |
| 26671 | #define HAVE_BROKEN_POLL 1 |
| 26672 | _ACEOF |
| 26673 | |
| 26674 | fi |
| 26675 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26676 | # 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] | 26677 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 26678 | # tzname[] |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26679 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 26680 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26681 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26683 | else |
| 26684 | cat >conftest.$ac_ext <<_ACEOF |
| 26685 | /* confdefs.h. */ |
| 26686 | _ACEOF |
| 26687 | cat confdefs.h >>conftest.$ac_ext |
| 26688 | cat >>conftest.$ac_ext <<_ACEOF |
| 26689 | /* end confdefs.h. */ |
| 26690 | #include <sys/types.h> |
| 26691 | #include <$ac_cv_struct_tm> |
| 26692 | |
| 26693 | |
| 26694 | int |
| 26695 | main () |
| 26696 | { |
| 26697 | static struct tm ac_aggr; |
| 26698 | if (ac_aggr.tm_zone) |
| 26699 | return 0; |
| 26700 | ; |
| 26701 | return 0; |
| 26702 | } |
| 26703 | _ACEOF |
| 26704 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26705 | if { (ac_try="$ac_compile" |
| 26706 | case "(($ac_try" in |
| 26707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26708 | *) ac_try_echo=$ac_try;; |
| 26709 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26711 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26712 | ac_status=$? |
| 26713 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26714 | rm -f conftest.er1 |
| 26715 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26717 | (exit $ac_status); } && { |
| 26718 | test -z "$ac_c_werror_flag" || |
| 26719 | test ! -s conftest.err |
| 26720 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26721 | ac_cv_member_struct_tm_tm_zone=yes |
| 26722 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26723 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26725 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26726 | cat >conftest.$ac_ext <<_ACEOF |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26727 | /* confdefs.h. */ |
| 26728 | _ACEOF |
| 26729 | cat confdefs.h >>conftest.$ac_ext |
| 26730 | cat >>conftest.$ac_ext <<_ACEOF |
| 26731 | /* end confdefs.h. */ |
| 26732 | #include <sys/types.h> |
| 26733 | #include <$ac_cv_struct_tm> |
| 26734 | |
| 26735 | |
| 26736 | int |
| 26737 | main () |
| 26738 | { |
| 26739 | static struct tm ac_aggr; |
| 26740 | if (sizeof ac_aggr.tm_zone) |
| 26741 | return 0; |
| 26742 | ; |
| 26743 | return 0; |
| 26744 | } |
| 26745 | _ACEOF |
| 26746 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26747 | if { (ac_try="$ac_compile" |
| 26748 | case "(($ac_try" in |
| 26749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26750 | *) ac_try_echo=$ac_try;; |
| 26751 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26753 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26754 | ac_status=$? |
| 26755 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26756 | rm -f conftest.er1 |
| 26757 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26759 | (exit $ac_status); } && { |
| 26760 | test -z "$ac_c_werror_flag" || |
| 26761 | test ! -s conftest.err |
| 26762 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26763 | ac_cv_member_struct_tm_tm_zone=yes |
| 26764 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26765 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26767 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26768 | ac_cv_member_struct_tm_tm_zone=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26769 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26770 | |
| 26771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26772 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26773 | |
| 26774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26775 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26776 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 26777 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 26778 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26779 | |
| 26780 | cat >>confdefs.h <<_ACEOF |
| 26781 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 26782 | _ACEOF |
| 26783 | |
| 26784 | |
| 26785 | fi |
| 26786 | |
| 26787 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 26788 | |
| 26789 | cat >>confdefs.h <<\_ACEOF |
| 26790 | #define HAVE_TM_ZONE 1 |
| 26791 | _ACEOF |
| 26792 | |
| 26793 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26794 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 26795 | 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] | 26796 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26798 | else |
| 26799 | cat >conftest.$ac_ext <<_ACEOF |
| 26800 | /* confdefs.h. */ |
| 26801 | _ACEOF |
| 26802 | cat confdefs.h >>conftest.$ac_ext |
| 26803 | cat >>conftest.$ac_ext <<_ACEOF |
| 26804 | /* end confdefs.h. */ |
| 26805 | #include <time.h> |
| 26806 | |
| 26807 | int |
| 26808 | main () |
| 26809 | { |
| 26810 | #ifndef tzname |
| 26811 | (void) tzname; |
| 26812 | #endif |
| 26813 | |
| 26814 | ; |
| 26815 | return 0; |
| 26816 | } |
| 26817 | _ACEOF |
| 26818 | rm -f conftest.$ac_objext |
| 26819 | if { (ac_try="$ac_compile" |
| 26820 | case "(($ac_try" in |
| 26821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26822 | *) ac_try_echo=$ac_try;; |
| 26823 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26825 | (eval "$ac_compile") 2>conftest.er1 |
| 26826 | ac_status=$? |
| 26827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26828 | rm -f conftest.er1 |
| 26829 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26831 | (exit $ac_status); } && { |
| 26832 | test -z "$ac_c_werror_flag" || |
| 26833 | test ! -s conftest.err |
| 26834 | } && test -s conftest.$ac_objext; then |
| 26835 | ac_cv_have_decl_tzname=yes |
| 26836 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26837 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26838 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26839 | |
| 26840 | ac_cv_have_decl_tzname=no |
| 26841 | fi |
| 26842 | |
| 26843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26844 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26845 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 26846 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 26847 | if test $ac_cv_have_decl_tzname = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26848 | |
| 26849 | cat >>confdefs.h <<_ACEOF |
| 26850 | #define HAVE_DECL_TZNAME 1 |
| 26851 | _ACEOF |
| 26852 | |
| 26853 | |
| 26854 | else |
| 26855 | cat >>confdefs.h <<_ACEOF |
| 26856 | #define HAVE_DECL_TZNAME 0 |
| 26857 | _ACEOF |
| 26858 | |
| 26859 | |
| 26860 | fi |
| 26861 | |
| 26862 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26863 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 26864 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26865 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26867 | else |
| 26868 | cat >conftest.$ac_ext <<_ACEOF |
| 26869 | /* confdefs.h. */ |
| 26870 | _ACEOF |
| 26871 | cat confdefs.h >>conftest.$ac_ext |
| 26872 | cat >>conftest.$ac_ext <<_ACEOF |
| 26873 | /* end confdefs.h. */ |
| 26874 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26875 | #if !HAVE_DECL_TZNAME |
| 26876 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26877 | #endif |
| 26878 | |
| 26879 | int |
| 26880 | main () |
| 26881 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26882 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26883 | ; |
| 26884 | return 0; |
| 26885 | } |
| 26886 | _ACEOF |
| 26887 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26888 | if { (ac_try="$ac_link" |
| 26889 | case "(($ac_try" in |
| 26890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26891 | *) ac_try_echo=$ac_try;; |
| 26892 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26894 | (eval "$ac_link") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26895 | ac_status=$? |
| 26896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26897 | rm -f conftest.er1 |
| 26898 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26900 | (exit $ac_status); } && { |
| 26901 | test -z "$ac_c_werror_flag" || |
| 26902 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26903 | } && test -s conftest$ac_exeext && |
| 26904 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26905 | ac_cv_var_tzname=yes |
| 26906 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26907 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26909 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26910 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26911 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26912 | |
| 26913 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26914 | conftest$ac_exeext conftest.$ac_ext |
| 26915 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26916 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 26917 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26918 | if test $ac_cv_var_tzname = yes; then |
| 26919 | |
| 26920 | cat >>confdefs.h <<\_ACEOF |
| 26921 | #define HAVE_TZNAME 1 |
| 26922 | _ACEOF |
| 26923 | |
| 26924 | fi |
| 26925 | fi |
| 26926 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26927 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26928 | # check tzset(3) exists and works like we expect it to |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26929 | { echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 26930 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26931 | if test "${ac_cv_working_tzset+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26933 | else |
| 26934 | |
| 26935 | if test "$cross_compiling" = yes; then |
| 26936 | ac_cv_working_tzset=no |
| 26937 | else |
| 26938 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26939 | /* confdefs.h. */ |
| 26940 | _ACEOF |
| 26941 | cat confdefs.h >>conftest.$ac_ext |
| 26942 | cat >>conftest.$ac_ext <<_ACEOF |
| 26943 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26944 | |
| 26945 | #include <stdlib.h> |
| 26946 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26947 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26948 | |
| 26949 | #if HAVE_TZNAME |
| 26950 | extern char *tzname[]; |
| 26951 | #endif |
| 26952 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26953 | int main() |
| 26954 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26955 | /* Note that we need to ensure that not only does tzset(3) |
| 26956 | do 'something' with localtime, but it works as documented |
| 26957 | 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] | 26958 | This includes making sure that tzname is set properly if |
| 26959 | tm->tm_zone does not exist since it is the alternative way |
| 26960 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26961 | |
| 26962 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26963 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26964 | */ |
| 26965 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26966 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26967 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 26968 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 26969 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26970 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26971 | if (localtime(&groundhogday)->tm_hour != 0) |
| 26972 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26973 | #if HAVE_TZNAME |
| 26974 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 26975 | if (strcmp(tzname[0], "UTC") || |
| 26976 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 26977 | exit(1); |
| 26978 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26979 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 26980 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26981 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26982 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26983 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26984 | #if HAVE_TZNAME |
| 26985 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 26986 | exit(1); |
| 26987 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26988 | |
| 26989 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 26990 | tzset(); |
| 26991 | if (localtime(&groundhogday)->tm_hour != 11) |
| 26992 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26993 | #if HAVE_TZNAME |
| 26994 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 26995 | exit(1); |
| 26996 | #endif |
| 26997 | |
| 26998 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26999 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 27000 | exit(1); |
| 27001 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 27002 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 27003 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 27004 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27005 | exit(0); |
| 27006 | } |
| 27007 | |
| 27008 | _ACEOF |
| 27009 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27010 | if { (ac_try="$ac_link" |
| 27011 | case "(($ac_try" in |
| 27012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27013 | *) ac_try_echo=$ac_try;; |
| 27014 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27016 | (eval "$ac_link") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27017 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27019 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27020 | { (case "(($ac_try" in |
| 27021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27022 | *) ac_try_echo=$ac_try;; |
| 27023 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27025 | (eval "$ac_try") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27026 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27028 | (exit $ac_status); }; }; then |
| 27029 | ac_cv_working_tzset=yes |
| 27030 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27031 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27032 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27034 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27035 | ( exit $ac_status ) |
| 27036 | ac_cv_working_tzset=no |
| 27037 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27038 | 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] | 27039 | fi |
| 27040 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27041 | |
| 27042 | fi |
| 27043 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27044 | { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 27045 | echo "${ECHO_T}$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27046 | if test "$ac_cv_working_tzset" = yes |
| 27047 | then |
| 27048 | |
| 27049 | cat >>confdefs.h <<\_ACEOF |
| 27050 | #define HAVE_WORKING_TZSET 1 |
| 27051 | _ACEOF |
| 27052 | |
| 27053 | fi |
| 27054 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27055 | # Look for subsecond timestamps in struct stat |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27056 | { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 27057 | 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] | 27058 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27060 | else |
| 27061 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27062 | /* confdefs.h. */ |
| 27063 | _ACEOF |
| 27064 | cat confdefs.h >>conftest.$ac_ext |
| 27065 | cat >>conftest.$ac_ext <<_ACEOF |
| 27066 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27067 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27068 | int |
| 27069 | main () |
| 27070 | { |
| 27071 | |
| 27072 | struct stat st; |
| 27073 | st.st_mtim.tv_nsec = 1; |
| 27074 | |
| 27075 | ; |
| 27076 | return 0; |
| 27077 | } |
| 27078 | _ACEOF |
| 27079 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27080 | if { (ac_try="$ac_compile" |
| 27081 | case "(($ac_try" in |
| 27082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27083 | *) ac_try_echo=$ac_try;; |
| 27084 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27086 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27087 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27089 | rm -f conftest.er1 |
| 27090 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27092 | (exit $ac_status); } && { |
| 27093 | test -z "$ac_c_werror_flag" || |
| 27094 | test ! -s conftest.err |
| 27095 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 27096 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27097 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27098 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27100 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27101 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27102 | fi |
| 27103 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27105 | fi |
| 27106 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27107 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 27108 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27109 | if test "$ac_cv_stat_tv_nsec" = yes |
| 27110 | then |
| 27111 | |
| 27112 | cat >>confdefs.h <<\_ACEOF |
| 27113 | #define HAVE_STAT_TV_NSEC 1 |
| 27114 | _ACEOF |
| 27115 | |
| 27116 | fi |
| 27117 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27118 | # Look for BSD style subsecond timestamps in struct stat |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27119 | { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 27120 | 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] | 27121 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27123 | else |
| 27124 | cat >conftest.$ac_ext <<_ACEOF |
| 27125 | /* confdefs.h. */ |
| 27126 | _ACEOF |
| 27127 | cat confdefs.h >>conftest.$ac_ext |
| 27128 | cat >>conftest.$ac_ext <<_ACEOF |
| 27129 | /* end confdefs.h. */ |
| 27130 | #include <sys/stat.h> |
| 27131 | int |
| 27132 | main () |
| 27133 | { |
| 27134 | |
| 27135 | struct stat st; |
| 27136 | st.st_mtimespec.tv_nsec = 1; |
| 27137 | |
| 27138 | ; |
| 27139 | return 0; |
| 27140 | } |
| 27141 | _ACEOF |
| 27142 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27143 | if { (ac_try="$ac_compile" |
| 27144 | case "(($ac_try" in |
| 27145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27146 | *) ac_try_echo=$ac_try;; |
| 27147 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27149 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27150 | ac_status=$? |
| 27151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27152 | rm -f conftest.er1 |
| 27153 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27155 | (exit $ac_status); } && { |
| 27156 | test -z "$ac_c_werror_flag" || |
| 27157 | test ! -s conftest.err |
| 27158 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27159 | ac_cv_stat_tv_nsec2=yes |
| 27160 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27161 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27163 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27164 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27165 | fi |
| 27166 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27168 | fi |
| 27169 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27170 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 27171 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27172 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 27173 | then |
| 27174 | |
| 27175 | cat >>confdefs.h <<\_ACEOF |
| 27176 | #define HAVE_STAT_TV_NSEC2 1 |
| 27177 | _ACEOF |
| 27178 | |
| 27179 | fi |
| 27180 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27181 | # 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] | 27182 | { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 27183 | 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] | 27184 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27186 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27187 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27188 | /* confdefs.h. */ |
| 27189 | _ACEOF |
| 27190 | cat confdefs.h >>conftest.$ac_ext |
| 27191 | cat >>conftest.$ac_ext <<_ACEOF |
| 27192 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27193 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27194 | int |
| 27195 | main () |
| 27196 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27197 | |
| 27198 | int rtn; |
| 27199 | rtn = mvwdelch(0,0,0); |
| 27200 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27201 | ; |
| 27202 | return 0; |
| 27203 | } |
| 27204 | _ACEOF |
| 27205 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27206 | if { (ac_try="$ac_compile" |
| 27207 | case "(($ac_try" in |
| 27208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27209 | *) ac_try_echo=$ac_try;; |
| 27210 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27212 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27213 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27214 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27215 | rm -f conftest.er1 |
| 27216 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27218 | (exit $ac_status); } && { |
| 27219 | test -z "$ac_c_werror_flag" || |
| 27220 | test ! -s conftest.err |
| 27221 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27222 | ac_cv_mvwdelch_is_expression=yes |
| 27223 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27224 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27226 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27227 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27228 | fi |
| 27229 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27231 | fi |
| 27232 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27233 | { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 27234 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27235 | |
| 27236 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 27237 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27238 | |
| 27239 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27240 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27241 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27242 | |
| 27243 | fi |
| 27244 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27245 | { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 27246 | 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] | 27247 | if test "${ac_cv_window_has_flags+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27249 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27250 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27251 | /* confdefs.h. */ |
| 27252 | _ACEOF |
| 27253 | cat confdefs.h >>conftest.$ac_ext |
| 27254 | cat >>conftest.$ac_ext <<_ACEOF |
| 27255 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27256 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27257 | int |
| 27258 | main () |
| 27259 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27260 | |
| 27261 | WINDOW *w; |
| 27262 | w->_flags = 0; |
| 27263 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27264 | ; |
| 27265 | return 0; |
| 27266 | } |
| 27267 | _ACEOF |
| 27268 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27269 | if { (ac_try="$ac_compile" |
| 27270 | case "(($ac_try" in |
| 27271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27272 | *) ac_try_echo=$ac_try;; |
| 27273 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27275 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27276 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27278 | rm -f conftest.er1 |
| 27279 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27281 | (exit $ac_status); } && { |
| 27282 | test -z "$ac_c_werror_flag" || |
| 27283 | test ! -s conftest.err |
| 27284 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27285 | ac_cv_window_has_flags=yes |
| 27286 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27287 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27289 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27290 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27291 | fi |
| 27292 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27294 | fi |
| 27295 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27296 | { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 27297 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27298 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27299 | |
| 27300 | if test "$ac_cv_window_has_flags" = yes |
| 27301 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27302 | |
| 27303 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27304 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27305 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27306 | |
| 27307 | fi |
| 27308 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27309 | { echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 27310 | echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27311 | cat >conftest.$ac_ext <<_ACEOF |
| 27312 | /* confdefs.h. */ |
| 27313 | _ACEOF |
| 27314 | cat confdefs.h >>conftest.$ac_ext |
| 27315 | cat >>conftest.$ac_ext <<_ACEOF |
| 27316 | /* end confdefs.h. */ |
| 27317 | #include <curses.h> |
| 27318 | int |
| 27319 | main () |
| 27320 | { |
| 27321 | void *x=is_term_resized |
| 27322 | ; |
| 27323 | return 0; |
| 27324 | } |
| 27325 | _ACEOF |
| 27326 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27327 | if { (ac_try="$ac_compile" |
| 27328 | case "(($ac_try" in |
| 27329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27330 | *) ac_try_echo=$ac_try;; |
| 27331 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27333 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27334 | ac_status=$? |
| 27335 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27336 | rm -f conftest.er1 |
| 27337 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27339 | (exit $ac_status); } && { |
| 27340 | test -z "$ac_c_werror_flag" || |
| 27341 | test ! -s conftest.err |
| 27342 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27343 | |
| 27344 | cat >>confdefs.h <<\_ACEOF |
| 27345 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 27346 | _ACEOF |
| 27347 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27348 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27349 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27350 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27351 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27353 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27354 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27355 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27356 | |
| 27357 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27358 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27359 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27360 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27361 | { echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 27362 | echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27363 | cat >conftest.$ac_ext <<_ACEOF |
| 27364 | /* confdefs.h. */ |
| 27365 | _ACEOF |
| 27366 | cat confdefs.h >>conftest.$ac_ext |
| 27367 | cat >>conftest.$ac_ext <<_ACEOF |
| 27368 | /* end confdefs.h. */ |
| 27369 | #include <curses.h> |
| 27370 | int |
| 27371 | main () |
| 27372 | { |
| 27373 | void *x=resize_term |
| 27374 | ; |
| 27375 | return 0; |
| 27376 | } |
| 27377 | _ACEOF |
| 27378 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27379 | if { (ac_try="$ac_compile" |
| 27380 | case "(($ac_try" in |
| 27381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27382 | *) ac_try_echo=$ac_try;; |
| 27383 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27385 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27386 | ac_status=$? |
| 27387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27388 | rm -f conftest.er1 |
| 27389 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27391 | (exit $ac_status); } && { |
| 27392 | test -z "$ac_c_werror_flag" || |
| 27393 | test ! -s conftest.err |
| 27394 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27395 | |
| 27396 | cat >>confdefs.h <<\_ACEOF |
| 27397 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 27398 | _ACEOF |
| 27399 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27400 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27401 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27402 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27403 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27404 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27405 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27406 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27407 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27408 | |
| 27409 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27410 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27412 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27413 | { echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 27414 | echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27415 | cat >conftest.$ac_ext <<_ACEOF |
| 27416 | /* confdefs.h. */ |
| 27417 | _ACEOF |
| 27418 | cat confdefs.h >>conftest.$ac_ext |
| 27419 | cat >>conftest.$ac_ext <<_ACEOF |
| 27420 | /* end confdefs.h. */ |
| 27421 | #include <curses.h> |
| 27422 | int |
| 27423 | main () |
| 27424 | { |
| 27425 | void *x=resizeterm |
| 27426 | ; |
| 27427 | return 0; |
| 27428 | } |
| 27429 | _ACEOF |
| 27430 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27431 | if { (ac_try="$ac_compile" |
| 27432 | case "(($ac_try" in |
| 27433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27434 | *) ac_try_echo=$ac_try;; |
| 27435 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27437 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27438 | ac_status=$? |
| 27439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27440 | rm -f conftest.er1 |
| 27441 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27443 | (exit $ac_status); } && { |
| 27444 | test -z "$ac_c_werror_flag" || |
| 27445 | test ! -s conftest.err |
| 27446 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27447 | |
| 27448 | cat >>confdefs.h <<\_ACEOF |
| 27449 | #define HAVE_CURSES_RESIZETERM 1 |
| 27450 | _ACEOF |
| 27451 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27452 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27453 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27454 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27455 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27457 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27458 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27459 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27460 | |
| 27461 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27462 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27464 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27465 | { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 27466 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27467 | |
| 27468 | if test -r /dev/ptmx |
| 27469 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27470 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27471 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 27472 | |
| 27473 | cat >>confdefs.h <<\_ACEOF |
| 27474 | #define HAVE_DEV_PTMX 1 |
| 27475 | _ACEOF |
| 27476 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27477 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27478 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27479 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 27480 | fi |
| 27481 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27482 | { echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 27483 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27484 | |
| 27485 | if test -r /dev/ptc |
| 27486 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27487 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27488 | echo "${ECHO_T}yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 27489 | |
| 27490 | cat >>confdefs.h <<\_ACEOF |
| 27491 | #define HAVE_DEV_PTC 1 |
| 27492 | _ACEOF |
| 27493 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27494 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27495 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27496 | echo "${ECHO_T}no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 27497 | fi |
| 27498 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 27499 | if test "$have_long_long" = yes |
| 27500 | then |
| 27501 | { echo "$as_me:$LINENO: checking for %lld and %llu printf() format support" >&5 |
| 27502 | echo $ECHO_N "checking for %lld and %llu printf() format support... $ECHO_C" >&6; } |
| 27503 | if test "${ac_cv_have_long_long_format+set}" = set; then |
| 27504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27505 | else |
| 27506 | if test "$cross_compiling" = yes; then |
| 27507 | ac_cv_have_long_long_format=no |
| 27508 | else |
| 27509 | cat >conftest.$ac_ext <<_ACEOF |
| 27510 | /* confdefs.h. */ |
| 27511 | _ACEOF |
| 27512 | cat confdefs.h >>conftest.$ac_ext |
| 27513 | cat >>conftest.$ac_ext <<_ACEOF |
| 27514 | /* end confdefs.h. */ |
| 27515 | |
| 27516 | #include <stdio.h> |
| 27517 | #include <stddef.h> |
| 27518 | #include <string.h> |
| 27519 | |
| 27520 | #ifdef HAVE_SYS_TYPES_H |
| 27521 | #include <sys/types.h> |
| 27522 | #endif |
| 27523 | |
| 27524 | int main() |
| 27525 | { |
| 27526 | char buffer[256]; |
| 27527 | |
| 27528 | if (sprintf(buffer, "%lld", (long long)123) < 0) |
| 27529 | return 1; |
| 27530 | if (strcmp(buffer, "123")) |
| 27531 | return 1; |
| 27532 | |
| 27533 | if (sprintf(buffer, "%lld", (long long)-123) < 0) |
| 27534 | return 1; |
| 27535 | if (strcmp(buffer, "-123")) |
| 27536 | return 1; |
| 27537 | |
| 27538 | if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) |
| 27539 | return 1; |
| 27540 | if (strcmp(buffer, "123")) |
| 27541 | return 1; |
| 27542 | |
| 27543 | return 0; |
| 27544 | } |
| 27545 | |
| 27546 | _ACEOF |
| 27547 | rm -f conftest$ac_exeext |
| 27548 | if { (ac_try="$ac_link" |
| 27549 | case "(($ac_try" in |
| 27550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27551 | *) ac_try_echo=$ac_try;; |
| 27552 | esac |
| 27553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27554 | (eval "$ac_link") 2>&5 |
| 27555 | ac_status=$? |
| 27556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27557 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 27558 | { (case "(($ac_try" in |
| 27559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27560 | *) ac_try_echo=$ac_try;; |
| 27561 | esac |
| 27562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27563 | (eval "$ac_try") 2>&5 |
| 27564 | ac_status=$? |
| 27565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27566 | (exit $ac_status); }; }; then |
| 27567 | ac_cv_have_long_long_format=yes |
| 27568 | else |
| 27569 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27570 | echo "$as_me: failed program was:" >&5 |
| 27571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27572 | |
| 27573 | ( exit $ac_status ) |
| 27574 | ac_cv_have_long_long_format=no |
| 27575 | fi |
| 27576 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 27577 | fi |
| 27578 | |
| 27579 | |
| 27580 | |
| 27581 | fi |
| 27582 | |
| 27583 | { echo "$as_me:$LINENO: result: $ac_cv_have_long_long_format" >&5 |
| 27584 | echo "${ECHO_T}$ac_cv_have_long_long_format" >&6; } |
| 27585 | fi |
| 27586 | |
Mark Dickinson | 5ce8474 | 2009-12-31 20:48:04 +0000 | [diff] [blame] | 27587 | if test "$ac_cv_have_long_long_format" = yes |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 27588 | then |
| 27589 | |
| 27590 | cat >>confdefs.h <<\_ACEOF |
| 27591 | #define PY_FORMAT_LONG_LONG "ll" |
| 27592 | _ACEOF |
| 27593 | |
| 27594 | fi |
| 27595 | |
Ronald Oussoren | 315cd0c | 2009-11-19 16:25:21 +0000 | [diff] [blame] | 27596 | if test $ac_sys_system = Darwin |
| 27597 | then |
| 27598 | LIBS="$LIBS -framework CoreFoundation" |
| 27599 | fi |
| 27600 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 27601 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27602 | { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 27603 | echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27604 | if test "${ac_cv_have_size_t_format+set}" = set; then |
| 27605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27606 | else |
| 27607 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 27608 | ac_cv_have_size_t_format="cross -- assuming yes" |
| 27609 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27610 | else |
| 27611 | cat >conftest.$ac_ext <<_ACEOF |
| 27612 | /* confdefs.h. */ |
| 27613 | _ACEOF |
| 27614 | cat confdefs.h >>conftest.$ac_ext |
| 27615 | cat >>conftest.$ac_ext <<_ACEOF |
| 27616 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27617 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27618 | #include <stdio.h> |
| 27619 | #include <stddef.h> |
| 27620 | #include <string.h> |
| 27621 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 27622 | #ifdef HAVE_SYS_TYPES_H |
| 27623 | #include <sys/types.h> |
| 27624 | #endif |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 27625 | |
| 27626 | #ifdef HAVE_SSIZE_T |
| 27627 | typedef ssize_t Py_ssize_t; |
| 27628 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 27629 | typedef long Py_ssize_t; |
| 27630 | #else |
| 27631 | typedef int Py_ssize_t; |
| 27632 | #endif |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27633 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 27634 | int main() |
| 27635 | { |
| 27636 | char buffer[256]; |
| 27637 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27638 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 27639 | return 1; |
| 27640 | |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 27641 | if (strcmp(buffer, "123")) |
| 27642 | return 1; |
| 27643 | |
| 27644 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 27645 | return 1; |
| 27646 | |
| 27647 | if (strcmp(buffer, "-123")) |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27648 | return 1; |
| 27649 | |
| 27650 | return 0; |
| 27651 | } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27652 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27653 | _ACEOF |
| 27654 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27655 | if { (ac_try="$ac_link" |
| 27656 | case "(($ac_try" in |
| 27657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27658 | *) ac_try_echo=$ac_try;; |
| 27659 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27661 | (eval "$ac_link") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27662 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27664 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27665 | { (case "(($ac_try" in |
| 27666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27667 | *) ac_try_echo=$ac_try;; |
| 27668 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27670 | (eval "$ac_try") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27671 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27673 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27674 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27675 | else |
| 27676 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27677 | echo "$as_me: failed program was:" >&5 |
| 27678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27679 | |
| 27680 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27681 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27682 | fi |
| 27683 | 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] | 27684 | fi |
| 27685 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27686 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27687 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27688 | { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5 |
| 27689 | echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; } |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 27690 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27691 | |
| 27692 | cat >>confdefs.h <<\_ACEOF |
| 27693 | #define PY_FORMAT_SIZE_T "z" |
| 27694 | _ACEOF |
| 27695 | |
| 27696 | fi |
| 27697 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27698 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 27699 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27700 | if test "${ac_cv_type_socklen_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27702 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27703 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27704 | /* confdefs.h. */ |
| 27705 | _ACEOF |
| 27706 | cat confdefs.h >>conftest.$ac_ext |
| 27707 | cat >>conftest.$ac_ext <<_ACEOF |
| 27708 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 27709 | |
| 27710 | #ifdef HAVE_SYS_TYPES_H |
| 27711 | #include <sys/types.h> |
| 27712 | #endif |
| 27713 | #ifdef HAVE_SYS_SOCKET_H |
| 27714 | #include <sys/socket.h> |
| 27715 | #endif |
| 27716 | |
| 27717 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27718 | typedef socklen_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27719 | int |
| 27720 | main () |
| 27721 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27722 | if ((ac__type_new_ *) 0) |
| 27723 | return 0; |
| 27724 | if (sizeof (ac__type_new_)) |
| 27725 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27726 | ; |
| 27727 | return 0; |
| 27728 | } |
| 27729 | _ACEOF |
| 27730 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27731 | if { (ac_try="$ac_compile" |
| 27732 | case "(($ac_try" in |
| 27733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27734 | *) ac_try_echo=$ac_try;; |
| 27735 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27737 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27738 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27740 | rm -f conftest.er1 |
| 27741 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27743 | (exit $ac_status); } && { |
| 27744 | test -z "$ac_c_werror_flag" || |
| 27745 | test ! -s conftest.err |
| 27746 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27747 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27748 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27749 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27751 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27752 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27753 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27754 | |
| 27755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27756 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27757 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 27758 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } |
| 27759 | if test $ac_cv_type_socklen_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27760 | : |
| 27761 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27762 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 27763 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27764 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27765 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27766 | |
| 27767 | fi |
| 27768 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27769 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27770 | |
| 27771 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 27772 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 27773 | do |
| 27774 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 27775 | done |
| 27776 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27777 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 27778 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27779 | { echo "$as_me:$LINENO: checking for build directories" >&5 |
| 27780 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 27781 | for dir in $SRCDIRS; do |
| 27782 | if test ! -d $dir; then |
| 27783 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 27784 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 27785 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27786 | { echo "$as_me:$LINENO: result: done" >&5 |
| 27787 | echo "${ECHO_T}done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 27788 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27789 | # generate output files |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 27790 | 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] | 27791 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27792 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27793 | # This file is a shell script that caches the results of configure |
| 27794 | # 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] | 27795 | # scripts and configure runs, see configure's option --config-cache. |
| 27796 | # It is not useful on other systems. If it contains results you don't |
| 27797 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27798 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27799 | # config.status only pays attention to the cache file if you give it |
| 27800 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27801 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27802 | # `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] | 27803 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 27804 | # following values. |
| 27805 | |
| 27806 | _ACEOF |
| 27807 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 27808 | # The following way of writing the cache mishandles newlines in values, |
| 27809 | # 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] | 27810 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27811 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 27812 | # 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] | 27813 | ( |
| 27814 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 27815 | eval ac_val=\$$ac_var |
| 27816 | case $ac_val in #( |
| 27817 | *${as_nl}*) |
| 27818 | case $ac_var in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27819 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 27820 | 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] | 27821 | esac |
| 27822 | case $ac_var in #( |
| 27823 | _ | IFS | as_nl) ;; #( |
| 27824 | *) $as_unset $ac_var ;; |
| 27825 | esac ;; |
| 27826 | esac |
| 27827 | done |
| 27828 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27829 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27830 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 27831 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27832 | # `set' does not quote correctly, so add quotes (double-quote |
| 27833 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 27834 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27835 | "s/'/'\\\\''/g; |
| 27836 | 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] | 27837 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27838 | *) |
| 27839 | # `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] | 27840 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27841 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27842 | esac | |
| 27843 | sort |
| 27844 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27845 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27846 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27847 | t clear |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27848 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27849 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 27850 | t end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27851 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 27852 | :end' >>confcache |
| 27853 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 27854 | if test -w "$cache_file"; then |
| 27855 | test "x$cache_file" != "x/dev/null" && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27856 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 27857 | echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27858 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27859 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27860 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 27861 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27862 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27863 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27864 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 27865 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27866 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 27867 | # Let make expand exec_prefix. |
| 27868 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 27869 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27870 | DEFS=-DHAVE_CONFIG_H |
| 27871 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27872 | ac_libobjs= |
| 27873 | ac_ltlibobjs= |
| 27874 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 27875 | # 1. Remove the extension, and $U if already installed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27876 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27877 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27878 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 27879 | # will be set to the directory where LIBOBJS objects are built. |
| 27880 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 27881 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27882 | done |
| 27883 | LIBOBJS=$ac_libobjs |
| 27884 | |
| 27885 | LTLIBOBJS=$ac_ltlibobjs |
| 27886 | |
| 27887 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27888 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27889 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27890 | ac_clean_files_save=$ac_clean_files |
| 27891 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27892 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 27893 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 27894 | cat >$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27895 | #! $SHELL |
| 27896 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27897 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27898 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27899 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27900 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27901 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27902 | ac_cs_recheck=false |
| 27903 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27904 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 27905 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 27906 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27907 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27908 | ## --------------------- ## |
| 27909 | ## M4sh Initialization. ## |
| 27910 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 27911 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27912 | # Be more Bourne compatible |
| 27913 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27914 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 27915 | emulate sh |
| 27916 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27917 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27918 | # is contrary to our usage. Disable this feature. |
| 27919 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27920 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 27921 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27922 | case `(set -o) 2>/dev/null` in |
| 27923 | *posix*) set -o posix ;; |
| 27924 | esac |
| 27925 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27926 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27927 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27928 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27929 | |
| 27930 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27931 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27932 | # Avoid depending upon Character Ranges. |
| 27933 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 27934 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 27935 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 27936 | as_cr_digits='0123456789' |
| 27937 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 27938 | |
| 27939 | # The user is always right. |
| 27940 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27941 | echo "#! /bin/sh" >conf$$.sh |
| 27942 | echo "exit 0" >>conf$$.sh |
| 27943 | chmod +x conf$$.sh |
| 27944 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 27945 | PATH_SEPARATOR=';' |
| 27946 | else |
| 27947 | PATH_SEPARATOR=: |
| 27948 | fi |
| 27949 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27950 | fi |
| 27951 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27952 | # Support unset when possible. |
| 27953 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 27954 | as_unset=unset |
| 27955 | else |
| 27956 | as_unset=false |
| 27957 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27958 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27959 | |
| 27960 | # IFS |
| 27961 | # We need space, tab and new line, in precisely that order. Quoting is |
| 27962 | # there to prevent editors from complaining about space-tab. |
| 27963 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 27964 | # splitting by setting IFS to empty value.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27965 | as_nl=' |
| 27966 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27967 | IFS=" "" $as_nl" |
| 27968 | |
| 27969 | # Find who we are. Look in the path if we contain no directory separator. |
| 27970 | case $0 in |
| 27971 | *[\\/]* ) as_myself=$0 ;; |
| 27972 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27973 | for as_dir in $PATH |
| 27974 | do |
| 27975 | IFS=$as_save_IFS |
| 27976 | test -z "$as_dir" && as_dir=. |
| 27977 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 27978 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27979 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27980 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27981 | ;; |
| 27982 | esac |
| 27983 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 27984 | # in which case we are not to be found in the path. |
| 27985 | if test "x$as_myself" = x; then |
| 27986 | as_myself=$0 |
| 27987 | fi |
| 27988 | if test ! -f "$as_myself"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27989 | 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] | 27990 | { (exit 1); exit 1; } |
| 27991 | fi |
| 27992 | |
| 27993 | # Work around bugs in pre-3.0 UWIN ksh. |
| 27994 | for as_var in ENV MAIL MAILPATH |
| 27995 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 27996 | done |
| 27997 | PS1='$ ' |
| 27998 | PS2='> ' |
| 27999 | PS4='+ ' |
| 28000 | |
| 28001 | # NLS nuisances. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28002 | for as_var in \ |
| 28003 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 28004 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 28005 | LC_TELEPHONE LC_TIME |
| 28006 | do |
| 28007 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 28008 | eval $as_var=C; export $as_var |
| 28009 | else |
| 28010 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 28011 | fi |
| 28012 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28013 | |
| 28014 | # Required to use basename. |
| 28015 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 28016 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 28017 | as_expr=expr |
| 28018 | else |
| 28019 | as_expr=false |
| 28020 | fi |
| 28021 | |
| 28022 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 28023 | as_basename=basename |
| 28024 | else |
| 28025 | as_basename=false |
| 28026 | fi |
| 28027 | |
| 28028 | |
| 28029 | # Name of the executable. |
| 28030 | as_me=`$as_basename -- "$0" || |
| 28031 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 28032 | X"$0" : 'X\(//\)$' \| \ |
| 28033 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28034 | echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28035 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 28036 | s//\1/ |
| 28037 | q |
| 28038 | } |
| 28039 | /^X\/\(\/\/\)$/{ |
| 28040 | s//\1/ |
| 28041 | q |
| 28042 | } |
| 28043 | /^X\/\(\/\).*/{ |
| 28044 | s//\1/ |
| 28045 | q |
| 28046 | } |
| 28047 | s/.*/./; q'` |
| 28048 | |
| 28049 | # CDPATH. |
| 28050 | $as_unset CDPATH |
| 28051 | |
| 28052 | |
| 28053 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28054 | as_lineno_1=$LINENO |
| 28055 | as_lineno_2=$LINENO |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28056 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28057 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 28058 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28059 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 28060 | # 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] | 28061 | # line-number line after each line using $LINENO; the second 'sed' |
| 28062 | # does the real work. The second script uses 'N' to pair each |
| 28063 | # line-number line with the line containing $LINENO, and appends |
| 28064 | # trailing '-' during substitution so that $LINENO is not a special |
| 28065 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28066 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28067 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 28068 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 28069 | sed -n ' |
| 28070 | p |
| 28071 | /[$]LINENO/= |
| 28072 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28073 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28074 | s/[$]LINENO.*/&-/ |
| 28075 | t lineno |
| 28076 | b |
| 28077 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28078 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28079 | :loop |
| 28080 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28081 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28082 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28083 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28084 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28085 | { 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] | 28086 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 28087 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28088 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 28089 | # (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] | 28090 | # original and so on. Autoconf is especially sensitive to this). |
| 28091 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28092 | # Exit status is that of the last command. |
| 28093 | exit |
| 28094 | } |
| 28095 | |
| 28096 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28097 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 28098 | as_dirname=dirname |
| 28099 | else |
| 28100 | as_dirname=false |
| 28101 | fi |
| 28102 | |
| 28103 | ECHO_C= ECHO_N= ECHO_T= |
| 28104 | case `echo -n x` in |
| 28105 | -n*) |
| 28106 | case `echo 'x\c'` in |
| 28107 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 28108 | *) ECHO_C='\c';; |
| 28109 | esac;; |
| 28110 | *) |
| 28111 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28112 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28113 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28114 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 28115 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28116 | as_expr=expr |
| 28117 | else |
| 28118 | as_expr=false |
| 28119 | fi |
| 28120 | |
| 28121 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28122 | if test -d conf$$.dir; then |
| 28123 | rm -f conf$$.dir/conf$$.file |
| 28124 | else |
| 28125 | rm -f conf$$.dir |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28126 | mkdir conf$$.dir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28127 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28128 | echo >conf$$.file |
| 28129 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 28130 | as_ln_s='ln -s' |
| 28131 | # ... but there are two gotchas: |
| 28132 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 28133 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 28134 | # In both cases, we have to default to `cp -p'. |
| 28135 | 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] | 28136 | as_ln_s='cp -p' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28137 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 28138 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28139 | else |
| 28140 | as_ln_s='cp -p' |
| 28141 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28142 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 28143 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28144 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28145 | if mkdir -p . 2>/dev/null; then |
| 28146 | as_mkdir_p=: |
| 28147 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28148 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28149 | as_mkdir_p=false |
| 28150 | fi |
| 28151 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28152 | if test -x / >/dev/null 2>&1; then |
| 28153 | as_test_x='test -x' |
| 28154 | else |
| 28155 | if ls -dL / >/dev/null 2>&1; then |
| 28156 | as_ls_L_option=L |
| 28157 | else |
| 28158 | as_ls_L_option= |
| 28159 | fi |
| 28160 | as_test_x=' |
| 28161 | eval sh -c '\'' |
| 28162 | if test -d "$1"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28163 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28164 | else |
| 28165 | case $1 in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28166 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28167 | esac; |
| 28168 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 28169 | ???[sx]*):;;*)false;;esac;fi |
| 28170 | '\'' sh |
| 28171 | ' |
| 28172 | fi |
| 28173 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28174 | |
| 28175 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28176 | 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] | 28177 | |
| 28178 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28179 | 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] | 28180 | |
| 28181 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28182 | exec 6>&1 |
| 28183 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28184 | # 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] | 28185 | # 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] | 28186 | # values after options handling. |
| 28187 | ac_log=" |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 28188 | This file was extended by python $as_me 2.7, which was |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28189 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28190 | |
| 28191 | CONFIG_FILES = $CONFIG_FILES |
| 28192 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 28193 | CONFIG_LINKS = $CONFIG_LINKS |
| 28194 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 28195 | $ $0 $@ |
| 28196 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28197 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 28198 | " |
| 28199 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28200 | _ACEOF |
| 28201 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28202 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28203 | # Files that config.status was made for. |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 28204 | config_files="$ac_config_files" |
| 28205 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28206 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28207 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28208 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28209 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28210 | ac_cs_usage="\ |
| 28211 | \`$as_me' instantiates files from templates according to the |
| 28212 | current configuration. |
| 28213 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28214 | Usage: $0 [OPTIONS] [FILE]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28215 | |
| 28216 | -h, --help print this help, then exit |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28217 | -V, --version print version number and configuration settings, then exit |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28218 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28219 | -d, --debug don't remove temporary files |
| 28220 | --recheck update $as_me by reconfiguring in the same conditions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28221 | --file=FILE[:TEMPLATE] |
| 28222 | instantiate the configuration file FILE |
| 28223 | --header=FILE[:TEMPLATE] |
| 28224 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28225 | |
| 28226 | Configuration files: |
| 28227 | $config_files |
| 28228 | |
| 28229 | Configuration headers: |
| 28230 | $config_headers |
| 28231 | |
| 28232 | Report bugs to <bug-autoconf@gnu.org>." |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 28233 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28234 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28235 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28236 | ac_cs_version="\\ |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 28237 | python config.status 2.7 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28238 | configured by $0, generated by GNU Autoconf 2.61, |
| 28239 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28240 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28241 | Copyright (C) 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28242 | This config.status script is free software; the Free Software Foundation |
| 28243 | gives unlimited permission to copy, distribute and modify it." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28244 | |
| 28245 | ac_pwd='$ac_pwd' |
| 28246 | srcdir='$srcdir' |
| 28247 | INSTALL='$INSTALL' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28248 | _ACEOF |
| 28249 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28250 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 28251 | # If no file are specified by the user, then we need to provide default |
| 28252 | # 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] | 28253 | ac_need_defaults=: |
| 28254 | while test $# != 0 |
| 28255 | do |
| 28256 | case $1 in |
| 28257 | --*=*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28258 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 28259 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28260 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28261 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28262 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28263 | ac_option=$1 |
| 28264 | ac_optarg=$2 |
| 28265 | ac_shift=shift |
| 28266 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28267 | esac |
| 28268 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28269 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28270 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28271 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 28272 | ac_cs_recheck=: ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28273 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28274 | echo "$ac_cs_version"; exit ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28275 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28276 | debug=: ;; |
| 28277 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28278 | $ac_shift |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28279 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28280 | ac_need_defaults=false;; |
| 28281 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28282 | $ac_shift |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28283 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28284 | ac_need_defaults=false;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28285 | --he | --h) |
| 28286 | # Conflict between --help and --header |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28287 | { echo "$as_me: error: ambiguous option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28288 | Try \`$0 --help' for more information." >&2 |
| 28289 | { (exit 1); exit 1; }; };; |
| 28290 | --help | --hel | -h ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28291 | echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28292 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 28293 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 28294 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28295 | |
| 28296 | # This is an error. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28297 | -*) { echo "$as_me: error: unrecognized option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28298 | Try \`$0 --help' for more information." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28299 | { (exit 1); exit 1; }; } ;; |
| 28300 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28301 | *) ac_config_targets="$ac_config_targets $1" |
| 28302 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28303 | |
| 28304 | esac |
| 28305 | shift |
| 28306 | done |
| 28307 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28308 | ac_configure_extra_args= |
| 28309 | |
| 28310 | if $ac_cs_silent; then |
| 28311 | exec 6>/dev/null |
| 28312 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 28313 | fi |
| 28314 | |
| 28315 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28316 | cat >>$CONFIG_STATUS <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28317 | if \$ac_cs_recheck; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28318 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 28319 | CONFIG_SHELL=$SHELL |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28320 | export CONFIG_SHELL |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28321 | 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] | 28322 | fi |
| 28323 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28324 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28325 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28326 | exec 5>>config.log |
| 28327 | { |
| 28328 | echo |
| 28329 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 28330 | ## Running $as_me. ## |
| 28331 | _ASBOX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28332 | echo "$ac_log" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28333 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28334 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28335 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28336 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28337 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28338 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28339 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28340 | |
| 28341 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28342 | for ac_config_target in $ac_config_targets |
| 28343 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28344 | case $ac_config_target in |
| 28345 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 28346 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 28347 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| 28348 | "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 28349 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 28350 | "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] | 28351 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 28352 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 28353 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28354 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28355 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 28356 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28357 | { (exit 1); exit 1; }; };; |
| 28358 | esac |
| 28359 | done |
| 28360 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28361 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28362 | # If the user did not use the arguments to specify the items to instantiate, |
| 28363 | # then the envvar interface is used. Set only those that are not. |
| 28364 | # We use the long form for the default assignment because of an extremely |
| 28365 | # bizarre bug on SunOS 4.1.3. |
| 28366 | if $ac_need_defaults; then |
| 28367 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 28368 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 28369 | fi |
| 28370 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28371 | # 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] | 28372 | # 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] | 28373 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28374 | # Hook for its removal unless debugging. |
| 28375 | # Note that there is a small window in which the directory will not be cleaned: |
| 28376 | # 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] | 28377 | $debug || |
| 28378 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28379 | tmp= |
| 28380 | trap 'exit_status=$? |
| 28381 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 28382 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28383 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 28384 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28385 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28386 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28387 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28388 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28389 | test -n "$tmp" && test -d "$tmp" |
| 28390 | } || |
| 28391 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28392 | tmp=./conf$$-$RANDOM |
| 28393 | (umask 077 && mkdir "$tmp") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28394 | } || |
| 28395 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28396 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28397 | { (exit 1); exit 1; } |
| 28398 | } |
| 28399 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28400 | # |
| 28401 | # Set up the sed scripts for CONFIG_FILES section. |
| 28402 | # |
| 28403 | |
| 28404 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 28405 | # This happens for instance when ./config.status config.h |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28406 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28407 | |
| 28408 | _ACEOF |
| 28409 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28410 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28411 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28412 | ac_delim='%!_!# ' |
| 28413 | for ac_last_try in false false false false false :; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28414 | cat >conf$$subs.sed <<_ACEOF |
| 28415 | SHELL!$SHELL$ac_delim |
| 28416 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 28417 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 28418 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 28419 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 28420 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 28421 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 28422 | exec_prefix!$exec_prefix$ac_delim |
| 28423 | prefix!$prefix$ac_delim |
| 28424 | program_transform_name!$program_transform_name$ac_delim |
| 28425 | bindir!$bindir$ac_delim |
| 28426 | sbindir!$sbindir$ac_delim |
| 28427 | libexecdir!$libexecdir$ac_delim |
| 28428 | datarootdir!$datarootdir$ac_delim |
| 28429 | datadir!$datadir$ac_delim |
| 28430 | sysconfdir!$sysconfdir$ac_delim |
| 28431 | sharedstatedir!$sharedstatedir$ac_delim |
| 28432 | localstatedir!$localstatedir$ac_delim |
| 28433 | includedir!$includedir$ac_delim |
| 28434 | oldincludedir!$oldincludedir$ac_delim |
| 28435 | docdir!$docdir$ac_delim |
| 28436 | infodir!$infodir$ac_delim |
| 28437 | htmldir!$htmldir$ac_delim |
| 28438 | dvidir!$dvidir$ac_delim |
| 28439 | pdfdir!$pdfdir$ac_delim |
| 28440 | psdir!$psdir$ac_delim |
| 28441 | libdir!$libdir$ac_delim |
| 28442 | localedir!$localedir$ac_delim |
| 28443 | mandir!$mandir$ac_delim |
| 28444 | DEFS!$DEFS$ac_delim |
| 28445 | ECHO_C!$ECHO_C$ac_delim |
| 28446 | ECHO_N!$ECHO_N$ac_delim |
| 28447 | ECHO_T!$ECHO_T$ac_delim |
| 28448 | LIBS!$LIBS$ac_delim |
| 28449 | build_alias!$build_alias$ac_delim |
| 28450 | host_alias!$host_alias$ac_delim |
| 28451 | target_alias!$target_alias$ac_delim |
| 28452 | VERSION!$VERSION$ac_delim |
| 28453 | SOVERSION!$SOVERSION$ac_delim |
| 28454 | CONFIG_ARGS!$CONFIG_ARGS$ac_delim |
| 28455 | UNIVERSALSDK!$UNIVERSALSDK$ac_delim |
| 28456 | ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 28457 | LIPO_32BIT_FLAGS!$LIPO_32BIT_FLAGS$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28458 | PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim |
| 28459 | PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim |
| 28460 | PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim |
| 28461 | PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim |
| 28462 | PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim |
| 28463 | FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim |
| 28464 | FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim |
| 28465 | FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim |
| 28466 | FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim |
| 28467 | FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim |
| 28468 | MACHDEP!$MACHDEP$ac_delim |
| 28469 | SGI_ABI!$SGI_ABI$ac_delim |
| 28470 | EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim |
| 28471 | EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim |
| 28472 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 28473 | EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 28474 | CC!$CC$ac_delim |
| 28475 | CFLAGS!$CFLAGS$ac_delim |
| 28476 | LDFLAGS!$LDFLAGS$ac_delim |
| 28477 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 28478 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 28479 | EXEEXT!$EXEEXT$ac_delim |
| 28480 | OBJEXT!$OBJEXT$ac_delim |
| 28481 | CXX!$CXX$ac_delim |
| 28482 | MAINCC!$MAINCC$ac_delim |
| 28483 | CPP!$CPP$ac_delim |
| 28484 | GREP!$GREP$ac_delim |
| 28485 | EGREP!$EGREP$ac_delim |
| 28486 | BUILDEXEEXT!$BUILDEXEEXT$ac_delim |
| 28487 | LIBRARY!$LIBRARY$ac_delim |
| 28488 | LDLIBRARY!$LDLIBRARY$ac_delim |
| 28489 | DLLLIBRARY!$DLLLIBRARY$ac_delim |
| 28490 | BLDLIBRARY!$BLDLIBRARY$ac_delim |
| 28491 | LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim |
| 28492 | INSTSONAME!$INSTSONAME$ac_delim |
| 28493 | RUNSHARED!$RUNSHARED$ac_delim |
| 28494 | LINKCC!$LINKCC$ac_delim |
| 28495 | GNULD!$GNULD$ac_delim |
| 28496 | RANLIB!$RANLIB$ac_delim |
| 28497 | AR!$AR$ac_delim |
| 28498 | ARFLAGS!$ARFLAGS$ac_delim |
| 28499 | SVNVERSION!$SVNVERSION$ac_delim |
| 28500 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 28501 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 28502 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 28503 | LN!$LN$ac_delim |
| 28504 | OPT!$OPT$ac_delim |
| 28505 | BASECFLAGS!$BASECFLAGS$ac_delim |
| 28506 | UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim |
| 28507 | OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim |
| 28508 | LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim |
| 28509 | SO!$SO$ac_delim |
| 28510 | LDSHARED!$LDSHARED$ac_delim |
| 28511 | BLDSHARED!$BLDSHARED$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28512 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28513 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28514 | 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] | 28515 | break |
| 28516 | elif $ac_last_try; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28517 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 28518 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28519 | { (exit 1); exit 1; }; } |
| 28520 | else |
| 28521 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28522 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28523 | done |
| 28524 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28525 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 28526 | if test -n "$ac_eof"; then |
| 28527 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 28528 | ac_eof=`expr $ac_eof + 1` |
| 28529 | fi |
| 28530 | |
| 28531 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28532 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 28533 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28534 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28535 | sed ' |
| 28536 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 28537 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 28538 | :n |
| 28539 | t n |
| 28540 | s/'"$ac_delim"'$/,g/; t |
| 28541 | s/$/\\/; p |
| 28542 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 28543 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 28544 | rm -f conf$$subs.sed |
| 28545 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28546 | CEOF$ac_eof |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28547 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28548 | |
| 28549 | |
| 28550 | ac_delim='%!_!# ' |
| 28551 | for ac_last_try in false false false false false :; do |
| 28552 | cat >conf$$subs.sed <<_ACEOF |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 28553 | CCSHARED!$CCSHARED$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28554 | LINKFORSHARED!$LINKFORSHARED$ac_delim |
| 28555 | CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim |
| 28556 | SHLIBS!$SHLIBS$ac_delim |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 28557 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
| 28558 | LIBFFI_INCLUDEDIR!$LIBFFI_INCLUDEDIR$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28559 | USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim |
| 28560 | SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim |
| 28561 | USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim |
| 28562 | LDLAST!$LDLAST$ac_delim |
| 28563 | THREADOBJ!$THREADOBJ$ac_delim |
| 28564 | DLINCLDIR!$DLINCLDIR$ac_delim |
| 28565 | DYNLOADFILE!$DYNLOADFILE$ac_delim |
| 28566 | MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim |
| 28567 | TRUE!$TRUE$ac_delim |
| 28568 | LIBOBJS!$LIBOBJS$ac_delim |
| 28569 | HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim |
| 28570 | HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim |
| 28571 | HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim |
| 28572 | HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim |
| 28573 | HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim |
| 28574 | LIBM!$LIBM$ac_delim |
| 28575 | LIBC!$LIBC$ac_delim |
| 28576 | UNICODE_OBJS!$UNICODE_OBJS$ac_delim |
| 28577 | THREADHEADERS!$THREADHEADERS$ac_delim |
| 28578 | SRCDIRS!$SRCDIRS$ac_delim |
| 28579 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 28580 | _ACEOF |
| 28581 | |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 28582 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28583 | break |
| 28584 | elif $ac_last_try; then |
| 28585 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 28586 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28587 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28588 | else |
| 28589 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 28590 | fi |
| 28591 | done |
| 28592 | |
| 28593 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 28594 | if test -n "$ac_eof"; then |
| 28595 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 28596 | ac_eof=`expr $ac_eof + 1` |
| 28597 | fi |
| 28598 | |
| 28599 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28600 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 28601 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28602 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28603 | sed ' |
| 28604 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 28605 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 28606 | :n |
| 28607 | t n |
| 28608 | s/'"$ac_delim"'$/,g/; t |
| 28609 | s/$/\\/; p |
| 28610 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 28611 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 28612 | rm -f conf$$subs.sed |
| 28613 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28614 | :end |
| 28615 | s/|#_!!_#|//g |
| 28616 | CEOF$ac_eof |
| 28617 | _ACEOF |
| 28618 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28619 | |
| 28620 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 28621 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 28622 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 28623 | # (actually we leave an empty line to preserve line numbers). |
| 28624 | if test "x$srcdir" = x.; then |
| 28625 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 28626 | s/:*\$(srcdir):*/:/ |
| 28627 | s/:*\${srcdir}:*/:/ |
| 28628 | s/:*@srcdir@:*/:/ |
| 28629 | s/^\([^=]*=[ ]*\):*/\1/ |
| 28630 | s/:*$// |
| 28631 | s/^[^=]*=[ ]*$// |
| 28632 | }' |
| 28633 | fi |
| 28634 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28635 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28636 | fi # test -n "$CONFIG_FILES" |
| 28637 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28638 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28639 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28640 | do |
| 28641 | case $ac_tag in |
| 28642 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 28643 | esac |
| 28644 | case $ac_mode$ac_tag in |
| 28645 | :[FHL]*:*);; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28646 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 28647 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28648 | { (exit 1); exit 1; }; };; |
| 28649 | :[FH]-) ac_tag=-:-;; |
| 28650 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 28651 | esac |
| 28652 | ac_save_IFS=$IFS |
| 28653 | IFS=: |
| 28654 | set x $ac_tag |
| 28655 | IFS=$ac_save_IFS |
| 28656 | shift |
| 28657 | ac_file=$1 |
| 28658 | shift |
| 28659 | |
| 28660 | case $ac_mode in |
| 28661 | :L) ac_source=$1;; |
| 28662 | :[FH]) |
| 28663 | ac_file_inputs= |
| 28664 | for ac_f |
| 28665 | do |
| 28666 | case $ac_f in |
| 28667 | -) ac_f="$tmp/stdin";; |
| 28668 | *) # Look for the file first in the build tree, then in the source tree |
| 28669 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 28670 | # because $ac_f cannot contain `:'. |
| 28671 | test -f "$ac_f" || |
| 28672 | case $ac_f in |
| 28673 | [\\/$]*) false;; |
| 28674 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 28675 | esac || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28676 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 28677 | 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] | 28678 | { (exit 1); exit 1; }; };; |
| 28679 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28680 | ac_file_inputs="$ac_file_inputs $ac_f" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28681 | done |
| 28682 | |
| 28683 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 28684 | # use $as_me), people would be surprised to read: |
| 28685 | # /* config.h. Generated by config.status. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28686 | configure_input="Generated from "`IFS=: |
| 28687 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28688 | if test x"$ac_file" != x-; then |
| 28689 | configure_input="$ac_file. $configure_input" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28690 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 28691 | echo "$as_me: creating $ac_file" >&6;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28692 | fi |
| 28693 | |
| 28694 | case $ac_tag in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28695 | *:-:* | *:-) cat >"$tmp/stdin";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28696 | esac |
| 28697 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28698 | esac |
| 28699 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28700 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28701 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28702 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 28703 | X"$ac_file" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28704 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28705 | echo X"$ac_file" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28706 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 28707 | s//\1/ |
| 28708 | q |
| 28709 | } |
| 28710 | /^X\(\/\/\)[^/].*/{ |
| 28711 | s//\1/ |
| 28712 | q |
| 28713 | } |
| 28714 | /^X\(\/\/\)$/{ |
| 28715 | s//\1/ |
| 28716 | q |
| 28717 | } |
| 28718 | /^X\(\/\).*/{ |
| 28719 | s//\1/ |
| 28720 | q |
| 28721 | } |
| 28722 | s/.*/./; q'` |
| 28723 | { as_dir="$ac_dir" |
| 28724 | case $as_dir in #( |
| 28725 | -*) as_dir=./$as_dir;; |
| 28726 | esac |
| 28727 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28728 | as_dirs= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28729 | while :; do |
| 28730 | case $as_dir in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28731 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28732 | *) as_qdir=$as_dir;; |
| 28733 | esac |
| 28734 | as_dirs="'$as_qdir' $as_dirs" |
| 28735 | as_dir=`$as_dirname -- "$as_dir" || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28736 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28737 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 28738 | X"$as_dir" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28739 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28740 | echo X"$as_dir" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28741 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 28742 | s//\1/ |
| 28743 | q |
| 28744 | } |
| 28745 | /^X\(\/\/\)[^/].*/{ |
| 28746 | s//\1/ |
| 28747 | q |
| 28748 | } |
| 28749 | /^X\(\/\/\)$/{ |
| 28750 | s//\1/ |
| 28751 | q |
| 28752 | } |
| 28753 | /^X\(\/\).*/{ |
| 28754 | s//\1/ |
| 28755 | q |
| 28756 | } |
| 28757 | s/.*/./; q'` |
| 28758 | test -d "$as_dir" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28759 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28760 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28761 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 28762 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28763 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28764 | ac_builddir=. |
| 28765 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28766 | case "$ac_dir" in |
| 28767 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 28768 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28769 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28770 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28771 | 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] | 28772 | case $ac_top_builddir_sub in |
| 28773 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 28774 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 28775 | esac ;; |
| 28776 | esac |
| 28777 | ac_abs_top_builddir=$ac_pwd |
| 28778 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 28779 | # for backward compatibility: |
| 28780 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28781 | |
| 28782 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28783 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28784 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28785 | ac_top_srcdir=$ac_top_builddir_sub |
| 28786 | ac_abs_top_srcdir=$ac_pwd ;; |
| 28787 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28788 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28789 | ac_top_srcdir=$srcdir |
| 28790 | ac_abs_top_srcdir=$srcdir ;; |
| 28791 | *) # Relative name. |
| 28792 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 28793 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 28794 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28795 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28796 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28797 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28798 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28799 | case $ac_mode in |
| 28800 | :F) |
| 28801 | # |
| 28802 | # CONFIG_FILE |
| 28803 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28804 | |
| 28805 | case $INSTALL in |
| 28806 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28807 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28808 | esac |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 28809 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28810 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28811 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28812 | # If the template does not know about datarootdir, expand it. |
| 28813 | # FIXME: This hack should be removed a few years after 2.60. |
| 28814 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 28815 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28816 | case `sed -n '/datarootdir/ { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28817 | p |
| 28818 | q |
| 28819 | } |
| 28820 | /@datadir@/p |
| 28821 | /@docdir@/p |
| 28822 | /@infodir@/p |
| 28823 | /@localedir@/p |
| 28824 | /@mandir@/p |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28825 | ' $ac_file_inputs` in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28826 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 28827 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28828 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 28829 | 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] | 28830 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28831 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28832 | ac_datarootdir_hack=' |
| 28833 | s&@datadir@&$datadir&g |
| 28834 | s&@docdir@&$docdir&g |
| 28835 | s&@infodir@&$infodir&g |
| 28836 | s&@localedir@&$localedir&g |
| 28837 | s&@mandir@&$mandir&g |
| 28838 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 28839 | esac |
| 28840 | _ACEOF |
| 28841 | |
| 28842 | # Neutralize VPATH when `$srcdir' = `.'. |
| 28843 | # Shell code in configure.ac might set extrasub. |
| 28844 | # FIXME: do we really want to maintain this feature? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28845 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28846 | sed "$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28847 | $extrasub |
| 28848 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28849 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28850 | :t |
| 28851 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28852 | s&@configure_input@&$configure_input&;t t |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28853 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 28854 | s&@srcdir@&$ac_srcdir&;t t |
| 28855 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 28856 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 28857 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 28858 | s&@builddir@&$ac_builddir&;t t |
| 28859 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 28860 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 28861 | s&@INSTALL@&$ac_INSTALL&;t t |
| 28862 | $ac_datarootdir_hack |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28863 | " $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] | 28864 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28865 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 28866 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 28867 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28868 | { 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] | 28869 | which seems to be undefined. Please make sure it is defined." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28870 | 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] | 28871 | 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] | 28872 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28873 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28874 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28875 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 28876 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 28877 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28878 | ;; |
| 28879 | :H) |
| 28880 | # |
| 28881 | # CONFIG_HEADER |
| 28882 | # |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28883 | _ACEOF |
| 28884 | |
| 28885 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 28886 | # substitutes the proper values into config.h.in to produce config.h. |
| 28887 | rm -f conftest.defines conftest.tail |
| 28888 | # First, append a space to every undef/define line, to ease matching. |
| 28889 | echo 's/$/ /' >conftest.defines |
| 28890 | # Then, protect against being on the right side of a sed subst, or in |
| 28891 | # an unquoted here document, in config.status. If some macros were |
| 28892 | # called several times there might be several #defines for the same |
| 28893 | # symbol, which is useless. But do not sort them, since the last |
| 28894 | # AC_DEFINE must be honored. |
| 28895 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 28896 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 28897 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 28898 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 28899 | # just an empty string. |
| 28900 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 28901 | ac_dB='\\)[ (].*,\\1define\\2' |
| 28902 | ac_dC=' ' |
| 28903 | ac_dD=' ,' |
| 28904 | |
| 28905 | uniq confdefs.h | |
| 28906 | sed -n ' |
| 28907 | t rset |
| 28908 | :rset |
| 28909 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 28910 | t ok |
| 28911 | d |
| 28912 | :ok |
| 28913 | s/[\\&,]/\\&/g |
| 28914 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 28915 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 28916 | ' >>conftest.defines |
| 28917 | |
| 28918 | # Remove the space that was appended to ease matching. |
| 28919 | # Then replace #undef with comments. This is necessary, for |
| 28920 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 28921 | # on some systems where configure will not decide to define it. |
| 28922 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 28923 | echo 's/ $// |
| 28924 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 28925 | |
| 28926 | # Break up conftest.defines: |
| 28927 | ac_max_sed_lines=50 |
| 28928 | |
| 28929 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 28930 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 28931 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 28932 | # et cetera. |
| 28933 | ac_in='$ac_file_inputs' |
| 28934 | ac_out='"$tmp/out1"' |
| 28935 | ac_nxt='"$tmp/out2"' |
| 28936 | |
| 28937 | while : |
| 28938 | do |
| 28939 | # Write a here document: |
| 28940 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28941 | # First, check the format of the line: |
| 28942 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 28943 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 28944 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 28945 | b |
| 28946 | :def |
| 28947 | _ACEOF |
| 28948 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 28949 | echo 'CEOF |
| 28950 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 28951 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 28952 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 28953 | grep . conftest.tail >/dev/null || break |
| 28954 | rm -f conftest.defines |
| 28955 | mv conftest.tail conftest.defines |
| 28956 | done |
| 28957 | rm -f conftest.defines conftest.tail |
| 28958 | |
| 28959 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 28960 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28961 | if test x"$ac_file" != x-; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28962 | echo "/* $configure_input */" >"$tmp/config.h" |
| 28963 | cat "$ac_result" >>"$tmp/config.h" |
| 28964 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 28965 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 28966 | echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28967 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28968 | rm -f $ac_file |
| 28969 | mv "$tmp/config.h" $ac_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28970 | fi |
| 28971 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28972 | echo "/* $configure_input */" |
| 28973 | cat "$ac_result" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28974 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28975 | rm -f "$tmp/out12" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28976 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 28977 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28978 | |
| 28979 | esac |
| 28980 | |
| 28981 | done # for ac_tag |
| 28982 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 28983 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28984 | { (exit 0); exit 0; } |
| 28985 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 28986 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28987 | ac_clean_files=$ac_clean_files_save |
| 28988 | |
| 28989 | |
| 28990 | # configure is writing to config.log, and then calls config.status. |
| 28991 | # config.status does its own redirection, appending to config.log. |
| 28992 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 28993 | # by configure, so config.status won't be able to write to it; its |
| 28994 | # output is simply discarded. So we exec the FD to /dev/null, |
| 28995 | # effectively closing config.log, so it can be properly (re)opened and |
| 28996 | # appended to by config.status. When coming back to configure, we |
| 28997 | # need to make the FD available again. |
| 28998 | if test "$no_create" != yes; then |
| 28999 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 29000 | ac_config_status_args= |
| 29001 | test "$silent" = yes && |
| 29002 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 29003 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 29004 | $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] | 29005 | exec 5>>config.log |
| 29006 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 29007 | # would make configure fail if this is the last instruction. |
| 29008 | $ac_cs_success || { (exit 1); exit 1; } |
| 29009 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 29010 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 29011 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 29012 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 29013 | if test ! -f Modules/Setup |
| 29014 | then |
| 29015 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 29016 | fi |
| 29017 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 29018 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 29019 | if test ! -f Modules/Setup.local |
| 29020 | then |
| 29021 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 29022 | fi |
| 29023 | |
| 29024 | echo "creating Makefile" |
| 29025 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 29026 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 29027 | Modules/Setup.local Modules/Setup |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 29028 | |
| 29029 | case $ac_sys_system in |
| 29030 | BeOS) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 29031 | { echo "$as_me:$LINENO: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 29032 | |
| 29033 | Support for BeOS is deprecated as of Python 2.6. |
| 29034 | See PEP 11 for the gory details. |
| 29035 | " >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 29036 | echo "$as_me: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 29037 | |
| 29038 | Support for BeOS is deprecated as of Python 2.6. |
| 29039 | See PEP 11 for the gory details. |
| 29040 | " >&2;} |
| 29041 | ;; |
| 29042 | *) ;; |
| 29043 | esac |
| 29044 | |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 29045 | mv config.c Modules |