Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 72898 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4 | # Generated by GNU Autoconf 2.61 for python 2.7. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6 | # Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 7 | # |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10 | # This configure script is free software; the Free Software Foundation |
| 11 | # gives unlimited permission to copy, distribute and modify it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12 | ## --------------------- ## |
| 13 | ## M4sh Initialization. ## |
| 14 | ## --------------------- ## |
| 15 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16 | # Be more Bourne compatible |
| 17 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 19 | emulate sh |
| 20 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22 | # is contrary to our usage. Disable this feature. |
| 23 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 25 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26 | case `(set -o) 2>/dev/null` in |
| 27 | *posix*) set -o posix ;; |
| 28 | esac |
| 29 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 30 | fi |
| 31 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 32 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 33 | |
| 34 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 35 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 36 | # Avoid depending upon Character Ranges. |
| 37 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 38 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 39 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 40 | as_cr_digits='0123456789' |
| 41 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 42 | |
| 43 | # The user is always right. |
| 44 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 45 | echo "#! /bin/sh" >conf$$.sh |
| 46 | echo "exit 0" >>conf$$.sh |
| 47 | chmod +x conf$$.sh |
| 48 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 49 | PATH_SEPARATOR=';' |
| 50 | else |
| 51 | PATH_SEPARATOR=: |
| 52 | fi |
| 53 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 54 | fi |
| 55 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 56 | # Support unset when possible. |
| 57 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 58 | as_unset=unset |
| 59 | else |
| 60 | as_unset=false |
| 61 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 62 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 63 | |
| 64 | # IFS |
| 65 | # We need space, tab and new line, in precisely that order. Quoting is |
| 66 | # there to prevent editors from complaining about space-tab. |
| 67 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 68 | # splitting by setting IFS to empty value.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 69 | as_nl=' |
| 70 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 71 | IFS=" "" $as_nl" |
| 72 | |
| 73 | # Find who we are. Look in the path if we contain no directory separator. |
| 74 | case $0 in |
| 75 | *[\\/]* ) as_myself=$0 ;; |
| 76 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 77 | for as_dir in $PATH |
| 78 | do |
| 79 | IFS=$as_save_IFS |
| 80 | test -z "$as_dir" && as_dir=. |
| 81 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 82 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 83 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 84 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 85 | ;; |
| 86 | esac |
| 87 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 88 | # in which case we are not to be found in the path. |
| 89 | if test "x$as_myself" = x; then |
| 90 | as_myself=$0 |
| 91 | fi |
| 92 | if test ! -f "$as_myself"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 93 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 94 | { (exit 1); exit 1; } |
| 95 | fi |
| 96 | |
| 97 | # Work around bugs in pre-3.0 UWIN ksh. |
| 98 | for as_var in ENV MAIL MAILPATH |
| 99 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 100 | done |
| 101 | PS1='$ ' |
| 102 | PS2='> ' |
| 103 | PS4='+ ' |
| 104 | |
| 105 | # NLS nuisances. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 106 | for as_var in \ |
| 107 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 108 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 109 | LC_TELEPHONE LC_TIME |
| 110 | do |
| 111 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 112 | eval $as_var=C; export $as_var |
| 113 | else |
| 114 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 115 | fi |
| 116 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 117 | |
| 118 | # Required to use basename. |
| 119 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 120 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 121 | as_expr=expr |
| 122 | else |
| 123 | as_expr=false |
| 124 | fi |
| 125 | |
| 126 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 127 | as_basename=basename |
| 128 | else |
| 129 | as_basename=false |
| 130 | fi |
| 131 | |
| 132 | |
| 133 | # Name of the executable. |
| 134 | as_me=`$as_basename -- "$0" || |
| 135 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 136 | X"$0" : 'X\(//\)$' \| \ |
| 137 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 138 | echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 139 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 140 | s//\1/ |
| 141 | q |
| 142 | } |
| 143 | /^X\/\(\/\/\)$/{ |
| 144 | s//\1/ |
| 145 | q |
| 146 | } |
| 147 | /^X\/\(\/\).*/{ |
| 148 | s//\1/ |
| 149 | q |
| 150 | } |
| 151 | s/.*/./; q'` |
| 152 | |
| 153 | # CDPATH. |
| 154 | $as_unset CDPATH |
| 155 | |
| 156 | |
| 157 | if test "x$CONFIG_SHELL" = x; then |
| 158 | if (eval ":") 2>/dev/null; then |
| 159 | as_have_required=yes |
| 160 | else |
| 161 | as_have_required=no |
| 162 | fi |
| 163 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 164 | if test $as_have_required = yes && (eval ": |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 165 | (as_func_return () { |
| 166 | (exit \$1) |
| 167 | } |
| 168 | as_func_success () { |
| 169 | as_func_return 0 |
| 170 | } |
| 171 | as_func_failure () { |
| 172 | as_func_return 1 |
| 173 | } |
| 174 | as_func_ret_success () { |
| 175 | return 0 |
| 176 | } |
| 177 | as_func_ret_failure () { |
| 178 | return 1 |
| 179 | } |
| 180 | |
| 181 | exitcode=0 |
| 182 | if as_func_success; then |
| 183 | : |
| 184 | else |
| 185 | exitcode=1 |
| 186 | echo as_func_success failed. |
| 187 | fi |
| 188 | |
| 189 | if as_func_failure; then |
| 190 | exitcode=1 |
| 191 | echo as_func_failure succeeded. |
| 192 | fi |
| 193 | |
| 194 | if as_func_ret_success; then |
| 195 | : |
| 196 | else |
| 197 | exitcode=1 |
| 198 | echo as_func_ret_success failed. |
| 199 | fi |
| 200 | |
| 201 | if as_func_ret_failure; then |
| 202 | exitcode=1 |
| 203 | echo as_func_ret_failure succeeded. |
| 204 | fi |
| 205 | |
| 206 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 207 | : |
| 208 | else |
| 209 | exitcode=1 |
| 210 | echo positional parameters were not saved. |
| 211 | fi |
| 212 | |
| 213 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 214 | |
| 215 | ( |
| 216 | as_lineno_1=\$LINENO |
| 217 | as_lineno_2=\$LINENO |
| 218 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 219 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 220 | ") 2> /dev/null; then |
| 221 | : |
| 222 | else |
| 223 | as_candidate_shells= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 225 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 226 | do |
| 227 | IFS=$as_save_IFS |
| 228 | test -z "$as_dir" && as_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 229 | case $as_dir in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 230 | /*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 231 | for as_base in sh bash ksh sh5; do |
| 232 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 233 | done;; |
| 234 | esac |
| 235 | done |
| 236 | IFS=$as_save_IFS |
| 237 | |
| 238 | |
| 239 | for as_shell in $as_candidate_shells $SHELL; do |
| 240 | # Try only shells that exist, to save several forks. |
| 241 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 242 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 243 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 244 | emulate sh |
| 245 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 246 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 247 | # is contrary to our usage. Disable this feature. |
| 248 | alias -g '${1+"$@"}'='"$@"' |
| 249 | setopt NO_GLOB_SUBST |
| 250 | else |
| 251 | case `(set -o) 2>/dev/null` in |
| 252 | *posix*) set -o posix ;; |
| 253 | esac |
| 254 | |
| 255 | fi |
| 256 | |
| 257 | |
| 258 | : |
| 259 | _ASEOF |
| 260 | }; then |
| 261 | CONFIG_SHELL=$as_shell |
| 262 | as_have_required=yes |
| 263 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 264 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 265 | emulate sh |
| 266 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 267 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 268 | # is contrary to our usage. Disable this feature. |
| 269 | alias -g '${1+"$@"}'='"$@"' |
| 270 | setopt NO_GLOB_SUBST |
| 271 | else |
| 272 | case `(set -o) 2>/dev/null` in |
| 273 | *posix*) set -o posix ;; |
| 274 | esac |
| 275 | |
| 276 | fi |
| 277 | |
| 278 | |
| 279 | : |
| 280 | (as_func_return () { |
| 281 | (exit $1) |
| 282 | } |
| 283 | as_func_success () { |
| 284 | as_func_return 0 |
| 285 | } |
| 286 | as_func_failure () { |
| 287 | as_func_return 1 |
| 288 | } |
| 289 | as_func_ret_success () { |
| 290 | return 0 |
| 291 | } |
| 292 | as_func_ret_failure () { |
| 293 | return 1 |
| 294 | } |
| 295 | |
| 296 | exitcode=0 |
| 297 | if as_func_success; then |
| 298 | : |
| 299 | else |
| 300 | exitcode=1 |
| 301 | echo as_func_success failed. |
| 302 | fi |
| 303 | |
| 304 | if as_func_failure; then |
| 305 | exitcode=1 |
| 306 | echo as_func_failure succeeded. |
| 307 | fi |
| 308 | |
| 309 | if as_func_ret_success; then |
| 310 | : |
| 311 | else |
| 312 | exitcode=1 |
| 313 | echo as_func_ret_success failed. |
| 314 | fi |
| 315 | |
| 316 | if as_func_ret_failure; then |
| 317 | exitcode=1 |
| 318 | echo as_func_ret_failure succeeded. |
| 319 | fi |
| 320 | |
| 321 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 322 | : |
| 323 | else |
| 324 | exitcode=1 |
| 325 | echo positional parameters were not saved. |
| 326 | fi |
| 327 | |
| 328 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 329 | |
| 330 | ( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 331 | as_lineno_1=$LINENO |
| 332 | as_lineno_2=$LINENO |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 333 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 334 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 335 | |
| 336 | _ASEOF |
| 337 | }; then |
| 338 | break |
| 339 | fi |
| 340 | |
| 341 | fi |
| 342 | |
| 343 | done |
| 344 | |
| 345 | if test "x$CONFIG_SHELL" != x; then |
| 346 | for as_var in BASH_ENV ENV |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 347 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 348 | done |
| 349 | export CONFIG_SHELL |
| 350 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 351 | fi |
| 352 | |
| 353 | |
| 354 | if test $as_have_required = no; then |
| 355 | echo This script requires a shell more modern than all the |
| 356 | echo shells that I found on your system. Please install a |
| 357 | echo modern shell, or manually run the script under such a |
| 358 | echo shell if you do have one. |
| 359 | { (exit 1); exit 1; } |
| 360 | fi |
| 361 | |
| 362 | |
| 363 | fi |
| 364 | |
| 365 | fi |
| 366 | |
| 367 | |
| 368 | |
| 369 | (eval "as_func_return () { |
| 370 | (exit \$1) |
| 371 | } |
| 372 | as_func_success () { |
| 373 | as_func_return 0 |
| 374 | } |
| 375 | as_func_failure () { |
| 376 | as_func_return 1 |
| 377 | } |
| 378 | as_func_ret_success () { |
| 379 | return 0 |
| 380 | } |
| 381 | as_func_ret_failure () { |
| 382 | return 1 |
| 383 | } |
| 384 | |
| 385 | exitcode=0 |
| 386 | if as_func_success; then |
| 387 | : |
| 388 | else |
| 389 | exitcode=1 |
| 390 | echo as_func_success failed. |
| 391 | fi |
| 392 | |
| 393 | if as_func_failure; then |
| 394 | exitcode=1 |
| 395 | echo as_func_failure succeeded. |
| 396 | fi |
| 397 | |
| 398 | if as_func_ret_success; then |
| 399 | : |
| 400 | else |
| 401 | exitcode=1 |
| 402 | echo as_func_ret_success failed. |
| 403 | fi |
| 404 | |
| 405 | if as_func_ret_failure; then |
| 406 | exitcode=1 |
| 407 | echo as_func_ret_failure succeeded. |
| 408 | fi |
| 409 | |
| 410 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 411 | : |
| 412 | else |
| 413 | exitcode=1 |
| 414 | echo positional parameters were not saved. |
| 415 | fi |
| 416 | |
| 417 | test \$exitcode = 0") || { |
| 418 | echo No shell found that supports shell functions. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 419 | echo Please tell autoconf@gnu.org about your system, |
| 420 | echo including any error possibly output before this |
| 421 | echo message |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 422 | } |
| 423 | |
| 424 | |
| 425 | |
| 426 | as_lineno_1=$LINENO |
| 427 | as_lineno_2=$LINENO |
| 428 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 429 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 430 | |
| 431 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 432 | # uniformly replaced by the line number. The first 'sed' inserts a |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 433 | # line-number line after each line using $LINENO; the second 'sed' |
| 434 | # does the real work. The second script uses 'N' to pair each |
| 435 | # line-number line with the line containing $LINENO, and appends |
| 436 | # trailing '-' during substitution so that $LINENO is not a special |
| 437 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 438 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 439 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 440 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 441 | sed -n ' |
| 442 | p |
| 443 | /[$]LINENO/= |
| 444 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 445 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 446 | s/[$]LINENO.*/&-/ |
| 447 | t lineno |
| 448 | b |
| 449 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 450 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 451 | :loop |
| 452 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 453 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 454 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 455 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 456 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 457 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 458 | { (exit 1); exit 1; }; } |
| 459 | |
| 460 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 461 | # (the dirname of $[0] is not the place where we might find the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 462 | # original and so on. Autoconf is especially sensitive to this). |
| 463 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 464 | # Exit status is that of the last command. |
| 465 | exit |
| 466 | } |
| 467 | |
| 468 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 469 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 470 | as_dirname=dirname |
| 471 | else |
| 472 | as_dirname=false |
| 473 | fi |
| 474 | |
| 475 | ECHO_C= ECHO_N= ECHO_T= |
| 476 | case `echo -n x` in |
| 477 | -n*) |
| 478 | case `echo 'x\c'` in |
| 479 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 480 | *) ECHO_C='\c';; |
| 481 | esac;; |
| 482 | *) |
| 483 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 484 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 485 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 486 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 487 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 | as_expr=expr |
| 489 | else |
| 490 | as_expr=false |
| 491 | fi |
| 492 | |
| 493 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 494 | if test -d conf$$.dir; then |
| 495 | rm -f conf$$.dir/conf$$.file |
| 496 | else |
| 497 | rm -f conf$$.dir |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 498 | mkdir conf$$.dir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 499 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 500 | echo >conf$$.file |
| 501 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 502 | as_ln_s='ln -s' |
| 503 | # ... but there are two gotchas: |
| 504 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 505 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 506 | # In both cases, we have to default to `cp -p'. |
| 507 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 508 | as_ln_s='cp -p' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 509 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 510 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 511 | else |
| 512 | as_ln_s='cp -p' |
| 513 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 514 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 515 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 516 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 517 | if mkdir -p . 2>/dev/null; then |
| 518 | as_mkdir_p=: |
| 519 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 520 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 521 | as_mkdir_p=false |
| 522 | fi |
| 523 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 524 | if test -x / >/dev/null 2>&1; then |
| 525 | as_test_x='test -x' |
| 526 | else |
| 527 | if ls -dL / >/dev/null 2>&1; then |
| 528 | as_ls_L_option=L |
| 529 | else |
| 530 | as_ls_L_option= |
| 531 | fi |
| 532 | as_test_x=' |
| 533 | eval sh -c '\'' |
| 534 | if test -d "$1"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 535 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 536 | else |
| 537 | case $1 in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 538 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 539 | esac; |
| 540 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 541 | ???[sx]*):;;*)false;;esac;fi |
| 542 | '\'' sh |
| 543 | ' |
| 544 | fi |
| 545 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 546 | |
| 547 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 548 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 549 | |
| 550 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 551 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 552 | |
| 553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 554 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 555 | exec 7<&0 </dev/null 6>&1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 556 | |
| 557 | # Name of the host. |
| 558 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 559 | # so uname gets run too. |
| 560 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 562 | # |
| 563 | # Initializations. |
| 564 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 565 | ac_default_prefix=/usr/local |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 566 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 567 | ac_config_libobj_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 568 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | cross_compiling=no |
| 570 | subdirs= |
| 571 | MFLAGS= |
| 572 | MAKEFLAGS= |
| 573 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 575 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 576 | PACKAGE_NAME='python' |
| 577 | PACKAGE_TARNAME='python' |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 578 | PACKAGE_VERSION='2.7' |
| 579 | PACKAGE_STRING='python 2.7' |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 580 | PACKAGE_BUGREPORT='http://bugs.python.org/' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 581 | |
| 582 | ac_unique_file="Include/object.h" |
| 583 | # Factoring default headers for most tests. |
| 584 | ac_includes_default="\ |
| 585 | #include <stdio.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 586 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 | # include <sys/types.h> |
| 588 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 589 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 590 | # include <sys/stat.h> |
| 591 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 592 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | # include <stdlib.h> |
| 594 | # include <stddef.h> |
| 595 | #else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 596 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | # include <stdlib.h> |
| 598 | # endif |
| 599 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 600 | #ifdef HAVE_STRING_H |
| 601 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 602 | # include <memory.h> |
| 603 | # endif |
| 604 | # include <string.h> |
| 605 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 606 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 607 | # include <strings.h> |
| 608 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 609 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 610 | # include <inttypes.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 611 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 612 | #ifdef HAVE_STDINT_H |
| 613 | # include <stdint.h> |
| 614 | #endif |
| 615 | #ifdef HAVE_UNISTD_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 616 | # include <unistd.h> |
| 617 | #endif" |
| 618 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 619 | ac_subst_vars='SHELL |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 620 | PATH_SEPARATOR |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 621 | PACKAGE_NAME |
| 622 | PACKAGE_TARNAME |
| 623 | PACKAGE_VERSION |
| 624 | PACKAGE_STRING |
| 625 | PACKAGE_BUGREPORT |
| 626 | exec_prefix |
| 627 | prefix |
| 628 | program_transform_name |
| 629 | bindir |
| 630 | sbindir |
| 631 | libexecdir |
| 632 | datarootdir |
| 633 | datadir |
| 634 | sysconfdir |
| 635 | sharedstatedir |
| 636 | localstatedir |
| 637 | includedir |
| 638 | oldincludedir |
| 639 | docdir |
| 640 | infodir |
| 641 | htmldir |
| 642 | dvidir |
| 643 | pdfdir |
| 644 | psdir |
| 645 | libdir |
| 646 | localedir |
| 647 | mandir |
| 648 | DEFS |
| 649 | ECHO_C |
| 650 | ECHO_N |
| 651 | ECHO_T |
| 652 | LIBS |
| 653 | build_alias |
| 654 | host_alias |
| 655 | target_alias |
| 656 | VERSION |
| 657 | SOVERSION |
| 658 | CONFIG_ARGS |
| 659 | UNIVERSALSDK |
| 660 | ARCH_RUN_32BIT |
| 661 | PYTHONFRAMEWORK |
| 662 | PYTHONFRAMEWORKIDENTIFIER |
| 663 | PYTHONFRAMEWORKDIR |
| 664 | PYTHONFRAMEWORKPREFIX |
| 665 | PYTHONFRAMEWORKINSTALLDIR |
| 666 | FRAMEWORKINSTALLFIRST |
| 667 | FRAMEWORKINSTALLLAST |
| 668 | FRAMEWORKALTINSTALLFIRST |
| 669 | FRAMEWORKALTINSTALLLAST |
| 670 | FRAMEWORKUNIXTOOLSPREFIX |
| 671 | MACHDEP |
| 672 | SGI_ABI |
| 673 | EXTRAPLATDIR |
| 674 | EXTRAMACHDEPPATH |
| 675 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 676 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 677 | CC |
| 678 | CFLAGS |
| 679 | LDFLAGS |
| 680 | CPPFLAGS |
| 681 | ac_ct_CC |
| 682 | EXEEXT |
| 683 | OBJEXT |
| 684 | CXX |
| 685 | MAINCC |
| 686 | CPP |
| 687 | GREP |
| 688 | EGREP |
| 689 | BUILDEXEEXT |
| 690 | LIBRARY |
| 691 | LDLIBRARY |
| 692 | DLLLIBRARY |
| 693 | BLDLIBRARY |
| 694 | LDLIBRARYDIR |
| 695 | INSTSONAME |
| 696 | RUNSHARED |
| 697 | LINKCC |
| 698 | GNULD |
| 699 | RANLIB |
| 700 | AR |
| 701 | ARFLAGS |
| 702 | SVNVERSION |
| 703 | INSTALL_PROGRAM |
| 704 | INSTALL_SCRIPT |
| 705 | INSTALL_DATA |
| 706 | LN |
| 707 | OPT |
| 708 | BASECFLAGS |
| 709 | UNIVERSAL_ARCH_FLAGS |
| 710 | OTHER_LIBTOOL_OPT |
| 711 | LIBTOOL_CRUFT |
| 712 | SO |
| 713 | LDSHARED |
| 714 | BLDSHARED |
| 715 | CCSHARED |
| 716 | LINKFORSHARED |
| 717 | CFLAGSFORSHARED |
| 718 | SHLIBS |
| 719 | USE_SIGNAL_MODULE |
| 720 | SIGNAL_OBJS |
| 721 | USE_THREAD_MODULE |
| 722 | LDLAST |
| 723 | THREADOBJ |
| 724 | DLINCLDIR |
| 725 | DYNLOADFILE |
| 726 | MACHDEP_OBJS |
| 727 | TRUE |
| 728 | LIBOBJS |
| 729 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 730 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 731 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 732 | HAVE_GETHOSTBYNAME_R |
| 733 | HAVE_GETHOSTBYNAME |
| 734 | LIBM |
| 735 | LIBC |
| 736 | UNICODE_OBJS |
| 737 | THREADHEADERS |
| 738 | SRCDIRS |
| 739 | LTLIBOBJS' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 740 | ac_subst_files='' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 741 | ac_precious_vars='build_alias |
| 742 | host_alias |
| 743 | target_alias |
| 744 | CC |
| 745 | CFLAGS |
| 746 | LDFLAGS |
| 747 | LIBS |
| 748 | CPPFLAGS |
| 749 | CPP' |
| 750 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 751 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 752 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 753 | ac_init_help= |
| 754 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 755 | # The variables have the same names as the options, with |
| 756 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 757 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 758 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 759 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 760 | no_recursion= |
| 761 | prefix=NONE |
| 762 | program_prefix=NONE |
| 763 | program_suffix=NONE |
| 764 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 765 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 766 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 767 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 768 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 769 | x_includes=NONE |
| 770 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 771 | |
| 772 | # Installation directory options. |
| 773 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 774 | # and all the variables that are supposed to be based on exec_prefix |
| 775 | # by default will actually change. |
| 776 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 777 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 778 | bindir='${exec_prefix}/bin' |
| 779 | sbindir='${exec_prefix}/sbin' |
| 780 | libexecdir='${exec_prefix}/libexec' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 781 | datarootdir='${prefix}/share' |
| 782 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 783 | sysconfdir='${prefix}/etc' |
| 784 | sharedstatedir='${prefix}/com' |
| 785 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 786 | includedir='${prefix}/include' |
| 787 | oldincludedir='/usr/include' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 788 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 789 | infodir='${datarootdir}/info' |
| 790 | htmldir='${docdir}' |
| 791 | dvidir='${docdir}' |
| 792 | pdfdir='${docdir}' |
| 793 | psdir='${docdir}' |
| 794 | libdir='${exec_prefix}/lib' |
| 795 | localedir='${datarootdir}/locale' |
| 796 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 797 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 798 | ac_prev= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 799 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 800 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 801 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 802 | # If the previous option needs an argument, assign it. |
| 803 | if test -n "$ac_prev"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 804 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 805 | ac_prev= |
| 806 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 807 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 808 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 809 | case $ac_option in |
| 810 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 811 | *) ac_optarg=yes ;; |
| 812 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 813 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 814 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 815 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 816 | case $ac_dashdash$ac_option in |
| 817 | --) |
| 818 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 819 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 820 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 821 | ac_prev=bindir ;; |
| 822 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 823 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 824 | |
| 825 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 826 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 827 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 828 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 829 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 830 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 831 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 832 | ac_prev=cache_file ;; |
| 833 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 834 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 835 | cache_file=$ac_optarg ;; |
| 836 | |
| 837 | --config-cache | -C) |
| 838 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 839 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 840 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 841 | ac_prev=datadir ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 842 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 843 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 844 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 845 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 846 | | --dataroo | --dataro | --datar) |
| 847 | ac_prev=datarootdir ;; |
| 848 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 849 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 850 | datarootdir=$ac_optarg ;; |
| 851 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 852 | -disable-* | --disable-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 853 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 854 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 855 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 856 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 857 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 858 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 859 | eval enable_$ac_feature=no ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 860 | |
| 861 | -docdir | --docdir | --docdi | --doc | --do) |
| 862 | ac_prev=docdir ;; |
| 863 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 864 | docdir=$ac_optarg ;; |
| 865 | |
| 866 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 867 | ac_prev=dvidir ;; |
| 868 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 869 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 870 | |
| 871 | -enable-* | --enable-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 872 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 873 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 874 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 875 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 876 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 877 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 878 | eval enable_$ac_feature=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 879 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 880 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 881 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 882 | | --exec | --exe | --ex) |
| 883 | ac_prev=exec_prefix ;; |
| 884 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 885 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 886 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 887 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 888 | |
| 889 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 890 | # Obsolete; use --with-gas. |
| 891 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 892 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 893 | -help | --help | --hel | --he | -h) |
| 894 | ac_init_help=long ;; |
| 895 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 896 | ac_init_help=recursive ;; |
| 897 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 898 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 899 | |
| 900 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 901 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 902 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 903 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 904 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 905 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 906 | ac_prev=htmldir ;; |
| 907 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 908 | | --ht=*) |
| 909 | htmldir=$ac_optarg ;; |
| 910 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 911 | -includedir | --includedir | --includedi | --included | --include \ |
| 912 | | --includ | --inclu | --incl | --inc) |
| 913 | ac_prev=includedir ;; |
| 914 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 915 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 916 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 917 | |
| 918 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 919 | ac_prev=infodir ;; |
| 920 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 921 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 922 | |
| 923 | -libdir | --libdir | --libdi | --libd) |
| 924 | ac_prev=libdir ;; |
| 925 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 926 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 927 | |
| 928 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 929 | | --libexe | --libex | --libe) |
| 930 | ac_prev=libexecdir ;; |
| 931 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 932 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 933 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 934 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 935 | -localedir | --localedir | --localedi | --localed | --locale) |
| 936 | ac_prev=localedir ;; |
| 937 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 938 | localedir=$ac_optarg ;; |
| 939 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 940 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 941 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 942 | ac_prev=localstatedir ;; |
| 943 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 944 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 945 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 946 | |
| 947 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 948 | ac_prev=mandir ;; |
| 949 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 950 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 951 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 952 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 953 | # Obsolete; use --without-fp. |
| 954 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 955 | |
| 956 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 957 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 958 | no_create=yes ;; |
| 959 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 960 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 961 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 962 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 963 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 964 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 965 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 966 | | --oldin | --oldi | --old | --ol | --o) |
| 967 | ac_prev=oldincludedir ;; |
| 968 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 969 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 970 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 971 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 972 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 973 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 974 | ac_prev=prefix ;; |
| 975 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 976 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 977 | |
| 978 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 979 | | --program-pre | --program-pr | --program-p) |
| 980 | ac_prev=program_prefix ;; |
| 981 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 982 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 983 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 984 | |
| 985 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 986 | | --program-suf | --program-su | --program-s) |
| 987 | ac_prev=program_suffix ;; |
| 988 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 989 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 990 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 991 | |
| 992 | -program-transform-name | --program-transform-name \ |
| 993 | | --program-transform-nam | --program-transform-na \ |
| 994 | | --program-transform-n | --program-transform- \ |
| 995 | | --program-transform | --program-transfor \ |
| 996 | | --program-transfo | --program-transf \ |
| 997 | | --program-trans | --program-tran \ |
| 998 | | --progr-tra | --program-tr | --program-t) |
| 999 | ac_prev=program_transform_name ;; |
| 1000 | -program-transform-name=* | --program-transform-name=* \ |
| 1001 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1002 | | --program-transform-n=* | --program-transform-=* \ |
| 1003 | | --program-transform=* | --program-transfor=* \ |
| 1004 | | --program-transfo=* | --program-transf=* \ |
| 1005 | | --program-trans=* | --program-tran=* \ |
| 1006 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1007 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1008 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1009 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1010 | ac_prev=pdfdir ;; |
| 1011 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1012 | pdfdir=$ac_optarg ;; |
| 1013 | |
| 1014 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1015 | ac_prev=psdir ;; |
| 1016 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1017 | psdir=$ac_optarg ;; |
| 1018 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1019 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1020 | | -silent | --silent | --silen | --sile | --sil) |
| 1021 | silent=yes ;; |
| 1022 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1023 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1024 | ac_prev=sbindir ;; |
| 1025 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1026 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1027 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1028 | |
| 1029 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1030 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1031 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1032 | | --sha | --sh) |
| 1033 | ac_prev=sharedstatedir ;; |
| 1034 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1035 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1036 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1037 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1038 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1039 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1040 | -site | --site | --sit) |
| 1041 | ac_prev=site ;; |
| 1042 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1043 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1044 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1045 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1046 | ac_prev=srcdir ;; |
| 1047 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1048 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1049 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1050 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1051 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1052 | ac_prev=sysconfdir ;; |
| 1053 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1054 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1055 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1056 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1057 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1058 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1059 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1060 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1061 | |
| 1062 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1063 | verbose=yes ;; |
| 1064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1065 | -version | --version | --versio | --versi | --vers | -V) |
| 1066 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1067 | |
| 1068 | -with-* | --with-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1069 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1070 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1071 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1072 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1073 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1074 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1075 | eval with_$ac_package=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1076 | |
| 1077 | -without-* | --without-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1078 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1079 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1080 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1081 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1082 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1083 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1084 | eval with_$ac_package=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1085 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1086 | --x) |
| 1087 | # Obsolete; use --with-x. |
| 1088 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1089 | |
| 1090 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1091 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1092 | ac_prev=x_includes ;; |
| 1093 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1094 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1095 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1096 | |
| 1097 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1098 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1099 | ac_prev=x_libraries ;; |
| 1100 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1101 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1102 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1103 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1104 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1105 | Try \`$0 --help' for more information." >&2 |
| 1106 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1107 | ;; |
| 1108 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1109 | *=*) |
| 1110 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1111 | # Reject names that are not valid shell variable names. |
| 1112 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1113 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1114 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1115 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1116 | export $ac_envvar ;; |
| 1117 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1118 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1119 | # FIXME: should be removed in autoconf 3.0. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1120 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1121 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1122 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1123 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1124 | ;; |
| 1125 | |
| 1126 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1127 | done |
| 1128 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1129 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1130 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1131 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1132 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1133 | fi |
| 1134 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1135 | # Be sure to have absolute directory names. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1136 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1137 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1138 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1139 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1140 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1141 | eval ac_val=\$$ac_var |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1142 | case $ac_val in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1143 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1144 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1145 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1146 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1147 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1148 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1149 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1150 | # There might be people who depend on the old broken behavior: `$host' |
| 1151 | # used to hold the argument of --host etc. |
| 1152 | # FIXME: To remove some day. |
| 1153 | build=$build_alias |
| 1154 | host=$host_alias |
| 1155 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1156 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1157 | # FIXME: To remove some day. |
| 1158 | if test "x$host_alias" != x; then |
| 1159 | if test "x$build_alias" = x; then |
| 1160 | cross_compiling=maybe |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1161 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1162 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1163 | elif test "x$build_alias" != "x$host_alias"; then |
| 1164 | cross_compiling=yes |
| 1165 | fi |
| 1166 | fi |
| 1167 | |
| 1168 | ac_tool_prefix= |
| 1169 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1170 | |
| 1171 | test "$silent" = yes && exec 6>/dev/null |
| 1172 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1173 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1174 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1175 | ac_ls_di=`ls -di .` && |
| 1176 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1177 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1178 | { (exit 1); exit 1; }; } |
| 1179 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1180 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1181 | { (exit 1); exit 1; }; } |
| 1182 | |
| 1183 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1184 | # Find the source files, if location was not specified. |
| 1185 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1186 | ac_srcdir_defaulted=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1187 | # Try the directory containing this script, then the parent directory. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1188 | ac_confdir=`$as_dirname -- "$0" || |
| 1189 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1190 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1191 | X"$0" : 'X\(//\)$' \| \ |
| 1192 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1193 | echo X"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1194 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1195 | s//\1/ |
| 1196 | q |
| 1197 | } |
| 1198 | /^X\(\/\/\)[^/].*/{ |
| 1199 | s//\1/ |
| 1200 | q |
| 1201 | } |
| 1202 | /^X\(\/\/\)$/{ |
| 1203 | s//\1/ |
| 1204 | q |
| 1205 | } |
| 1206 | /^X\(\/\).*/{ |
| 1207 | s//\1/ |
| 1208 | q |
| 1209 | } |
| 1210 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1211 | srcdir=$ac_confdir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1212 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1213 | srcdir=.. |
| 1214 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1215 | else |
| 1216 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1217 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1218 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1219 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1220 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1221 | { (exit 1); exit 1; }; } |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 1222 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1223 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1224 | ac_abs_confdir=`( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1225 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1226 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1227 | pwd)` |
| 1228 | # When building in place, set srcdir=. |
| 1229 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1230 | srcdir=. |
| 1231 | fi |
| 1232 | # Remove unnecessary trailing slashes from srcdir. |
| 1233 | # Double slashes in file names in object file debugging info |
| 1234 | # mess up M-x gdb in Emacs. |
| 1235 | case $srcdir in |
| 1236 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1237 | esac |
| 1238 | for ac_var in $ac_precious_vars; do |
| 1239 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1240 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1241 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1242 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1243 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1244 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1245 | # |
| 1246 | # Report the --help message. |
| 1247 | # |
| 1248 | if test "$ac_init_help" = "long"; then |
| 1249 | # Omit some internal or obsolete options to make the list less imposing. |
| 1250 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1251 | cat <<_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1252 | \`configure' configures python 2.7 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1253 | |
| 1254 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1255 | |
| 1256 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1257 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1258 | |
| 1259 | Defaults for the options are specified in brackets. |
| 1260 | |
| 1261 | Configuration: |
| 1262 | -h, --help display this help and exit |
| 1263 | --help=short display options specific to this package |
| 1264 | --help=recursive display the short help of all the included packages |
| 1265 | -V, --version display version information and exit |
| 1266 | -q, --quiet, --silent do not print \`checking...' messages |
| 1267 | --cache-file=FILE cache test results in FILE [disabled] |
| 1268 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1269 | -n, --no-create do not create output files |
| 1270 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1271 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1272 | Installation directories: |
| 1273 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1274 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1275 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1276 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1277 | |
| 1278 | By default, \`make install' will install all the files in |
| 1279 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1280 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1281 | for instance \`--prefix=\$HOME'. |
| 1282 | |
| 1283 | For better control, use the options below. |
| 1284 | |
| 1285 | Fine tuning of the installation directories: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1286 | --bindir=DIR user executables [EPREFIX/bin] |
| 1287 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1288 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1289 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1290 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1291 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1292 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1293 | --includedir=DIR C header files [PREFIX/include] |
| 1294 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1295 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1296 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1297 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1298 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1299 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1300 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1301 | --htmldir=DIR html documentation [DOCDIR] |
| 1302 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1303 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1304 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1305 | _ACEOF |
| 1306 | |
| 1307 | cat <<\_ACEOF |
| 1308 | _ACEOF |
| 1309 | fi |
| 1310 | |
| 1311 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1312 | case $ac_init_help in |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1313 | short | recursive ) echo "Configuration of python 2.7:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1314 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1315 | cat <<\_ACEOF |
| 1316 | |
| 1317 | Optional Features: |
| 1318 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1319 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Brett Cannon | 91a1dec | 2008-02-13 19:15:44 +0000 | [diff] [blame] | 1320 | --enable-universalsdk[=SDKDIR] |
Brett Cannon | 9a8bb0e | 2008-02-03 02:07:55 +0000 | [diff] [blame] | 1321 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1322 | --enable-framework[=INSTALLDIR] |
| 1323 | Build (MacOSX|Darwin) framework |
| 1324 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1325 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1326 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 1327 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1328 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 1329 | --enable-big-digits[=BITS] |
| 1330 | use big digits for Python longs [BITS=30] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1331 | --enable-unicode[=ucs[24]] |
| 1332 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1333 | |
| 1334 | Optional Packages: |
| 1335 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1336 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1337 | --with-universal-archs=ARCH |
| 1338 | select architectures for universal build ("32-bit", |
| 1339 | "64-bit" or "all") |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1340 | --with-framework-name=FRAMEWORK |
| 1341 | specify an alternate name of the framework built |
| 1342 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1343 | --without-gcc never use gcc |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 1344 | --with-cxx-main=<compiler> |
| 1345 | compile main() and link python executable with C++ |
| 1346 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1347 | --with-suffix=.exe set executable suffix |
| 1348 | --with-pydebug build with Py_DEBUG defined |
| 1349 | --with-libs='lib1 ...' link against additional libs |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 1350 | --with-system-ffi build _ctypes module using an installed ffi library |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 1351 | --with-dbmliborder=db1:db2:... |
| 1352 | order to check db backends for dbm. Valid value is a |
| 1353 | colon separated string with the backend names |
| 1354 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1355 | --with-signal-module disable/enable signal module |
| 1356 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1357 | --with(out)-threads[=DIRECTORY] |
| 1358 | disable/enable thread support |
| 1359 | --with(out)-thread[=DIRECTORY] |
| 1360 | deprecated; use --with(out)-threads |
| 1361 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1362 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1363 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1364 | --with(out)-pymalloc disable/enable specialized mallocs |
| 1365 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1366 | --with-fpectl enable SIGFPE catching |
| 1367 | --with-libm=STRING math library |
| 1368 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1369 | |
| 1370 | Some influential environment variables: |
| 1371 | CC C compiler command |
| 1372 | CFLAGS C compiler flags |
| 1373 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1374 | nonstandard directory <lib dir> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1375 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1376 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1377 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1378 | CPP C preprocessor |
| 1379 | |
| 1380 | Use these variables to override the choices made by `configure' or to help |
| 1381 | it to find libraries and programs with nonstandard names/locations. |
| 1382 | |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 1383 | Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1384 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1385 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1386 | fi |
| 1387 | |
| 1388 | if test "$ac_init_help" = "recursive"; then |
| 1389 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1390 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1391 | test -d "$ac_dir" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1392 | ac_builddir=. |
| 1393 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1394 | case "$ac_dir" in |
| 1395 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1396 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1397 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1398 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1399 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1400 | case $ac_top_builddir_sub in |
| 1401 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1402 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1403 | esac ;; |
| 1404 | esac |
| 1405 | ac_abs_top_builddir=$ac_pwd |
| 1406 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1407 | # for backward compatibility: |
| 1408 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1409 | |
| 1410 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1411 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1412 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1413 | ac_top_srcdir=$ac_top_builddir_sub |
| 1414 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1415 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1416 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1417 | ac_top_srcdir=$srcdir |
| 1418 | ac_abs_top_srcdir=$srcdir ;; |
| 1419 | *) # Relative name. |
| 1420 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1421 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1422 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1423 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1424 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1425 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1426 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1427 | # Check for guested configure. |
| 1428 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1429 | echo && |
| 1430 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1431 | elif test -f "$ac_srcdir/configure"; then |
| 1432 | echo && |
| 1433 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1434 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1435 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1436 | fi || ac_status=$? |
| 1437 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1438 | done |
| 1439 | fi |
| 1440 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1441 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1442 | if $ac_init_version; then |
| 1443 | cat <<\_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1444 | python configure 2.7 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1445 | generated by GNU Autoconf 2.61 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1446 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1447 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1448 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1449 | This configure script is free software; the Free Software Foundation |
| 1450 | gives unlimited permission to copy, distribute and modify it. |
| 1451 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1452 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1453 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1454 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1455 | This file contains any messages produced by compilers while |
| 1456 | running configure, to aid debugging if configure makes a mistake. |
| 1457 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1458 | It was created by python $as_me 2.7, which was |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1459 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1460 | |
| 1461 | $ $0 $@ |
| 1462 | |
| 1463 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1464 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1465 | { |
| 1466 | cat <<_ASUNAME |
| 1467 | ## --------- ## |
| 1468 | ## Platform. ## |
| 1469 | ## --------- ## |
| 1470 | |
| 1471 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1472 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1473 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1474 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1475 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1476 | |
| 1477 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1478 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1479 | |
| 1480 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1481 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1482 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1483 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1484 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1485 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1486 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1487 | |
| 1488 | _ASUNAME |
| 1489 | |
| 1490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1491 | for as_dir in $PATH |
| 1492 | do |
| 1493 | IFS=$as_save_IFS |
| 1494 | test -z "$as_dir" && as_dir=. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1495 | echo "PATH: $as_dir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1496 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1497 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1498 | |
| 1499 | } >&5 |
| 1500 | |
| 1501 | cat >&5 <<_ACEOF |
| 1502 | |
| 1503 | |
| 1504 | ## ----------- ## |
| 1505 | ## Core tests. ## |
| 1506 | ## ----------- ## |
| 1507 | |
| 1508 | _ACEOF |
| 1509 | |
| 1510 | |
| 1511 | # Keep a trace of the command line. |
| 1512 | # Strip out --no-create and --no-recursion so they do not pile up. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1513 | # Strip out --silent because we don't want to record it for future runs. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1514 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1515 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1516 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1517 | ac_configure_args0= |
| 1518 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1519 | ac_must_keep_next=false |
| 1520 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1521 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1522 | for ac_arg |
| 1523 | do |
| 1524 | case $ac_arg in |
| 1525 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1526 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1527 | | -silent | --silent | --silen | --sile | --sil) |
| 1528 | continue ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1529 | *\'*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1530 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1531 | esac |
| 1532 | case $ac_pass in |
| 1533 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1534 | 2) |
| 1535 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1536 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1537 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1538 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1539 | case $ac_arg in |
| 1540 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1541 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1542 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1543 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1544 | case "$ac_configure_args0 " in |
| 1545 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1546 | esac |
| 1547 | ;; |
| 1548 | -* ) ac_must_keep_next=true ;; |
| 1549 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1550 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1551 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1552 | ;; |
| 1553 | esac |
| 1554 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1555 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1556 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1557 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1558 | |
| 1559 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1560 | # config.log. We remove comments because anyway the quotes in there |
| 1561 | # would cause problems or look ugly. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1562 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1563 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1564 | trap 'exit_status=$? |
| 1565 | # Save into config.log some information that might help in debugging. |
| 1566 | { |
| 1567 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1568 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1569 | cat <<\_ASBOX |
| 1570 | ## ---------------- ## |
| 1571 | ## Cache variables. ## |
| 1572 | ## ---------------- ## |
| 1573 | _ASBOX |
| 1574 | echo |
| 1575 | # The following way of writing the cache mishandles newlines in values, |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1576 | ( |
| 1577 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1578 | eval ac_val=\$$ac_var |
| 1579 | case $ac_val in #( |
| 1580 | *${as_nl}*) |
| 1581 | case $ac_var in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1582 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1583 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1584 | esac |
| 1585 | case $ac_var in #( |
| 1586 | _ | IFS | as_nl) ;; #( |
| 1587 | *) $as_unset $ac_var ;; |
| 1588 | esac ;; |
| 1589 | esac |
| 1590 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1591 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1592 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1593 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1594 | sed -n \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1595 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1596 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1597 | ;; #( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1598 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1599 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1600 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1601 | esac | |
| 1602 | sort |
| 1603 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1604 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1605 | |
| 1606 | cat <<\_ASBOX |
| 1607 | ## ----------------- ## |
| 1608 | ## Output variables. ## |
| 1609 | ## ----------------- ## |
| 1610 | _ASBOX |
| 1611 | echo |
| 1612 | for ac_var in $ac_subst_vars |
| 1613 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1614 | eval ac_val=\$$ac_var |
| 1615 | case $ac_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1616 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1617 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1618 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1619 | done | sort |
| 1620 | echo |
| 1621 | |
| 1622 | if test -n "$ac_subst_files"; then |
| 1623 | cat <<\_ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1624 | ## ------------------- ## |
| 1625 | ## File substitutions. ## |
| 1626 | ## ------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1627 | _ASBOX |
| 1628 | echo |
| 1629 | for ac_var in $ac_subst_files |
| 1630 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1631 | eval ac_val=\$$ac_var |
| 1632 | case $ac_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1633 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1634 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1635 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1636 | done | sort |
| 1637 | echo |
| 1638 | fi |
| 1639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1640 | if test -s confdefs.h; then |
| 1641 | cat <<\_ASBOX |
| 1642 | ## ----------- ## |
| 1643 | ## confdefs.h. ## |
| 1644 | ## ----------- ## |
| 1645 | _ASBOX |
| 1646 | echo |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1647 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1648 | echo |
| 1649 | fi |
| 1650 | test "$ac_signal" != 0 && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1651 | echo "$as_me: caught signal $ac_signal" |
| 1652 | echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1653 | } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1654 | rm -f core *.core core.conftest.* && |
| 1655 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1656 | exit $exit_status |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1657 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1658 | for ac_signal in 1 2 13 15; do |
| 1659 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1660 | done |
| 1661 | ac_signal=0 |
| 1662 | |
| 1663 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1664 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1665 | |
| 1666 | # Predefined preprocessor variables. |
| 1667 | |
| 1668 | cat >>confdefs.h <<_ACEOF |
| 1669 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1670 | _ACEOF |
| 1671 | |
| 1672 | |
| 1673 | cat >>confdefs.h <<_ACEOF |
| 1674 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1675 | _ACEOF |
| 1676 | |
| 1677 | |
| 1678 | cat >>confdefs.h <<_ACEOF |
| 1679 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1680 | _ACEOF |
| 1681 | |
| 1682 | |
| 1683 | cat >>confdefs.h <<_ACEOF |
| 1684 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1685 | _ACEOF |
| 1686 | |
| 1687 | |
| 1688 | cat >>confdefs.h <<_ACEOF |
| 1689 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1690 | _ACEOF |
| 1691 | |
| 1692 | |
| 1693 | # Let the site file select an alternate cache file if it wants to. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1694 | # Prefer explicitly selected file to automatically selected ones. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1695 | if test -n "$CONFIG_SITE"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1696 | set x "$CONFIG_SITE" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1697 | elif test "x$prefix" != xNONE; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1698 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1699 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1700 | set x "$ac_default_prefix/share/config.site" \ |
| 1701 | "$ac_default_prefix/etc/config.site" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1702 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1703 | shift |
| 1704 | for ac_site_file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1705 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1706 | if test -r "$ac_site_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1707 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1708 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1709 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1710 | . "$ac_site_file" |
| 1711 | fi |
| 1712 | done |
| 1713 | |
| 1714 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1715 | # Some versions of bash will fail to source /dev/null (special |
| 1716 | # files actually), so we avoid doing that. |
| 1717 | if test -f "$cache_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1718 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1719 | echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1720 | case $cache_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1721 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1722 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1723 | esac |
| 1724 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1725 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1726 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1727 | echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1728 | >$cache_file |
| 1729 | fi |
| 1730 | |
| 1731 | # Check that the precious variables saved in the cache have kept the same |
| 1732 | # value. |
| 1733 | ac_cache_corrupted=false |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1734 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1735 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1736 | eval ac_new_set=\$ac_env_${ac_var}_set |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1737 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1738 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1739 | case $ac_old_set,$ac_new_set in |
| 1740 | set,) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1741 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1742 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1743 | ac_cache_corrupted=: ;; |
| 1744 | ,set) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1745 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1746 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1747 | ac_cache_corrupted=: ;; |
| 1748 | ,);; |
| 1749 | *) |
| 1750 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1751 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1752 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1753 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1754 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1755 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1756 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1757 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1758 | fi;; |
| 1759 | esac |
| 1760 | # Pass precious variables to config.status. |
| 1761 | if test "$ac_new_set" = set; then |
| 1762 | case $ac_new_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1763 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1764 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1765 | esac |
| 1766 | case " $ac_configure_args " in |
| 1767 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1768 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1769 | esac |
| 1770 | fi |
| 1771 | done |
| 1772 | if $ac_cache_corrupted; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1773 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1774 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1775 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1776 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1777 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1778 | fi |
| 1779 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1780 | |
| 1781 | |
| 1782 | |
| 1783 | |
| 1784 | |
| 1785 | |
| 1786 | |
| 1787 | |
| 1788 | |
| 1789 | |
| 1790 | |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | |
| 1800 | |
| 1801 | |
| 1802 | |
| 1803 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1804 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1805 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1806 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1807 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1808 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1809 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1810 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1811 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1812 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1813 | |
| 1814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1815 | |
Georg Brandl | bcd64a3 | 2009-03-31 21:45:18 +0000 | [diff] [blame] | 1816 | if test "$prefix" != "/"; then |
| 1817 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 1818 | fi |
| 1819 | |
| 1820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1821 | |
| 1822 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1823 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1824 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1825 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1826 | # with other autoconf-based packages that include Python.h |
| 1827 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1828 | rm confdefs.h |
| 1829 | mv confdefs.h.new confdefs.h |
| 1830 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1831 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1832 | VERSION=2.7 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1833 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1834 | |
| 1835 | SOVERSION=1.0 |
| 1836 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1837 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1838 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1839 | |
| 1840 | cat >>confdefs.h <<\_ACEOF |
| 1841 | #define _GNU_SOURCE 1 |
| 1842 | _ACEOF |
| 1843 | |
| 1844 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1845 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1846 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1847 | # them. |
| 1848 | |
| 1849 | cat >>confdefs.h <<\_ACEOF |
| 1850 | #define _NETBSD_SOURCE 1 |
| 1851 | _ACEOF |
| 1852 | |
| 1853 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1854 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1855 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1856 | # them. |
| 1857 | |
| 1858 | cat >>confdefs.h <<\_ACEOF |
| 1859 | #define __BSD_VISIBLE 1 |
| 1860 | _ACEOF |
| 1861 | |
| 1862 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1863 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1864 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1865 | |
| 1866 | cat >>confdefs.h <<\_ACEOF |
| 1867 | #define _BSD_TYPES 1 |
| 1868 | _ACEOF |
| 1869 | |
| 1870 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1871 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1872 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 1873 | # them. |
| 1874 | |
| 1875 | cat >>confdefs.h <<\_ACEOF |
| 1876 | #define _DARWIN_C_SOURCE 1 |
| 1877 | _ACEOF |
| 1878 | |
| 1879 | |
| 1880 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1881 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1882 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1883 | # Arguments passed to configure. |
| 1884 | |
| 1885 | CONFIG_ARGS="$ac_configure_args" |
| 1886 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1887 | # Check whether --enable-universalsdk was given. |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1888 | if test "${enable_universalsdk+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1889 | enableval=$enable_universalsdk; |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1890 | case $enableval in |
| 1891 | yes) |
| 1892 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 1893 | ;; |
| 1894 | esac |
| 1895 | case $enableval in |
| 1896 | no) |
| 1897 | UNIVERSALSDK= |
| 1898 | enable_universalsdk= |
| 1899 | ;; |
| 1900 | *) |
| 1901 | UNIVERSALSDK=$enableval |
| 1902 | ;; |
| 1903 | esac |
| 1904 | |
| 1905 | else |
| 1906 | |
| 1907 | UNIVERSALSDK= |
| 1908 | enable_universalsdk= |
| 1909 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1910 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1911 | |
| 1912 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1913 | |
Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 1914 | ARCH_RUN_32BIT= |
| 1915 | |
| 1916 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1917 | UNIVERSAL_ARCHS="32-bit" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1918 | { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5 |
| 1919 | echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1920 | |
| 1921 | # Check whether --with-universal-archs was given. |
| 1922 | if test "${with_universal_archs+set}" = set; then |
| 1923 | withval=$with_universal_archs; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1924 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 1925 | echo "${ECHO_T}$withval" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1926 | UNIVERSAL_ARCHS="$withval" |
| 1927 | |
| 1928 | else |
| 1929 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 1930 | { echo "$as_me:$LINENO: result: 32-bit" >&5 |
| 1931 | echo "${ECHO_T}32-bit" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1932 | |
| 1933 | fi |
| 1934 | |
| 1935 | |
| 1936 | |
| 1937 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1938 | |
| 1939 | # Check whether --with-framework-name was given. |
| 1940 | if test "${with_framework_name+set}" = set; then |
| 1941 | withval=$with_framework_name; |
| 1942 | PYTHONFRAMEWORK=${withval} |
| 1943 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 1944 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 1945 | |
| 1946 | else |
| 1947 | |
| 1948 | PYTHONFRAMEWORK=Python |
| 1949 | PYTHONFRAMEWORKDIR=Python.framework |
| 1950 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 1951 | |
| 1952 | fi |
| 1953 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1954 | # Check whether --enable-framework was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1955 | if test "${enable_framework+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1956 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1957 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1958 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1959 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1960 | esac |
| 1961 | case $enableval in |
| 1962 | no) |
| 1963 | PYTHONFRAMEWORK= |
| 1964 | PYTHONFRAMEWORKDIR=no-framework |
| 1965 | PYTHONFRAMEWORKPREFIX= |
| 1966 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1967 | FRAMEWORKINSTALLFIRST= |
| 1968 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 1969 | FRAMEWORKALTINSTALLFIRST= |
| 1970 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1971 | if test "x${prefix}" = "xNONE"; then |
| 1972 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1973 | else |
| 1974 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1975 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1976 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1977 | ;; |
| 1978 | *) |
| 1979 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1980 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1981 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1982 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" |
| 1983 | if test "$UNIVERSAL_ARCHS" = "all" |
| 1984 | then |
| 1985 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way" |
Ronald Oussoren | bb8cb0e | 2009-03-30 17:53:39 +0000 | [diff] [blame] | 1986 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1987 | else |
Ronald Oussoren | bb8cb0e | 2009-03-30 17:53:39 +0000 | [diff] [blame] | 1988 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1989 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
| 1990 | fi |
| 1991 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1992 | if test "x${prefix}" = "xNONE" ; then |
| 1993 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1994 | else |
| 1995 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1996 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1997 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 1998 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1999 | # Add files for Mac specific code to the list of output |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2000 | # files: |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2001 | ac_config_files="$ac_config_files Mac/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2002 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2003 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2004 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2005 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2006 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2007 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 2008 | |
| 2009 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 2010 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2011 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2012 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2013 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2014 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2015 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2016 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2017 | PYTHONFRAMEWORKPREFIX= |
| 2018 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2019 | FRAMEWORKINSTALLFIRST= |
| 2020 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2021 | FRAMEWORKALTINSTALLFIRST= |
| 2022 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2023 | if test "x${prefix}" = "xNONE" ; then |
| 2024 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2025 | else |
| 2026 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2027 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2028 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2029 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2030 | if test "$UNIVERSAL_ARCHS" = "all" |
| 2031 | then |
| 2032 | FRAMEWORKINSTALLLAST=update4wayuniversal |
| 2033 | FRAMEWORKALTINSTALLLAST=update4wayuniversal |
| 2034 | fi |
| 2035 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2036 | fi |
| 2037 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2038 | |
| 2039 | |
| 2040 | |
| 2041 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2042 | |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2043 | |
| 2044 | |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2045 | |
| 2046 | |
| 2047 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2048 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2049 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 2050 | ## AC_HELP_STRING(--with-dyld, |
| 2051 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2052 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2053 | # Set name for machine-dependent library files |
| 2054 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2055 | { echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 2056 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2057 | if test -z "$MACHDEP" |
| 2058 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2059 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2060 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 2061 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2062 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2063 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2064 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2065 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2066 | ac_md_system=`echo $ac_sys_system | |
| 2067 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 2068 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2069 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2070 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2071 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2072 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2073 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2074 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 2075 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2076 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2077 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2078 | esac |
| 2079 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2080 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2081 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 2082 | # disable features if it is defined, without any means to access these |
| 2083 | # features as extensions. For these systems, we skip the definition of |
| 2084 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 2085 | # some feature, make sure there is no alternative way to access this |
| 2086 | # feature. Also, when using wildcards, make sure you have verified the |
| 2087 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 2088 | # wildcard, and that the wildcard does not include future systems |
| 2089 | # (which may remove their limitations). |
| 2090 | case $ac_sys_system/$ac_sys_release in |
| 2091 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 2092 | # even though select is a POSIX function. Reported by J. Ribbens. |
Martin v. Löwis | 76bafc6 | 2003-10-03 13:47:44 +0000 | [diff] [blame] | 2093 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 2094 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123]) |
Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 2095 | define_xopen_source=no |
| 2096 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2097 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2098 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2099 | |
| 2100 | cat >>confdefs.h <<\_ACEOF |
| 2101 | #define _BSD_SOURCE 1 |
| 2102 | _ACEOF |
| 2103 | |
| 2104 | ;; |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 2105 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 2106 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 2107 | # Marc Recht |
Benjamin Peterson | eac68f4 | 2008-11-16 17:54:55 +0000 | [diff] [blame] | 2108 | NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 2109 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 2110 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 2111 | # of union __?sigval. Reported by Stuart Bishop. |
| 2112 | SunOS/5.6) |
| 2113 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2114 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 2115 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2116 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 2117 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2118 | define_xopen_source=no;; |
| 2119 | # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2120 | # but used in struct sockaddr.sa_family. Reported by Tim Rice. |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2121 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2122 | define_xopen_source=no;; |
Martin v. Löwis | bb86d83 | 2008-11-04 20:40:09 +0000 | [diff] [blame] | 2123 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 2124 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 2125 | FreeBSD/4.*) |
| 2126 | define_xopen_source=no;; |
| 2127 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 2128 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 2129 | # identifies itself as Darwin/7.* |
| 2130 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2131 | # disables platform specific features beyond repair. |
| 2132 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2133 | # has no effect, don't bother defining them |
| 2134 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 2135 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2136 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 2137 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 2138 | # or has another value. By not (re)defining it, the defaults come in place. |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 2139 | AIX/4) |
| 2140 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2141 | AIX/5) |
| 2142 | if test `uname -r` -eq 1; then |
| 2143 | define_xopen_source=no |
| 2144 | fi |
| 2145 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 2146 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 2147 | # defining NI_NUMERICHOST. |
| 2148 | QNX/6.3.2) |
| 2149 | define_xopen_source=no |
| 2150 | ;; |
Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 2151 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2152 | esac |
| 2153 | |
| 2154 | if test $define_xopen_source = yes |
| 2155 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2156 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 2157 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2158 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 2159 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2160 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2161 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2162 | |
| 2163 | cat >>confdefs.h <<\_ACEOF |
| 2164 | #define _XOPEN_SOURCE 500 |
| 2165 | _ACEOF |
| 2166 | |
| 2167 | ;; |
| 2168 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2169 | |
| 2170 | cat >>confdefs.h <<\_ACEOF |
| 2171 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2172 | _ACEOF |
| 2173 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2174 | ;; |
| 2175 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2176 | |
| 2177 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 2178 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 2179 | # several APIs are not declared. Since this is also needed in some |
| 2180 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2181 | # except for Solaris 10, where it must not be defined, |
| 2182 | # as it implies XPG4.2 |
| 2183 | case $ac_sys_system/$ac_sys_release in |
| 2184 | SunOS/5.10) |
| 2185 | ;; |
| 2186 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2187 | |
| 2188 | cat >>confdefs.h <<\_ACEOF |
| 2189 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 2190 | _ACEOF |
| 2191 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2192 | ;; |
| 2193 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2194 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2195 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2196 | cat >>confdefs.h <<\_ACEOF |
| 2197 | #define _POSIX_C_SOURCE 200112L |
| 2198 | _ACEOF |
| 2199 | |
| 2200 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2201 | fi |
| 2202 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2203 | # |
| 2204 | # SGI compilers allow the specification of the both the ABI and the |
| 2205 | # ISA on the command line. Depending on the values of these switches, |
| 2206 | # different and often incompatable code will be generated. |
| 2207 | # |
| 2208 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 2209 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 2210 | # variable is also adjusted. |
| 2211 | # |
| 2212 | |
| 2213 | if test ! -z "$SGI_ABI" |
| 2214 | then |
| 2215 | CC="cc $SGI_ABI" |
| 2216 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 2217 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 2218 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2219 | { echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 2220 | echo "${ECHO_T}$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2221 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2222 | # And add extra plat-mac for darwin |
| 2223 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2224 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2225 | { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 2226 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2227 | if test -z "$EXTRAPLATDIR" |
| 2228 | then |
| 2229 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2230 | darwin) |
| 2231 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 2232 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 2233 | ;; |
| 2234 | *) |
| 2235 | EXTRAPLATDIR="" |
| 2236 | EXTRAMACHDEPPATH="" |
| 2237 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2238 | esac |
| 2239 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2240 | { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 2241 | echo "${ECHO_T}$EXTRAPLATDIR" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2242 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2243 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 2244 | # it may influence the way we can build extensions, so distutils |
| 2245 | # needs to check it |
| 2246 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2247 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2248 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2249 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2250 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2251 | { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5 |
| 2252 | echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; } |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 2253 | ac_sys_machine=`uname -m` |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2254 | { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5 |
| 2255 | echo "${ECHO_T}$ac_sys_machine" >&6; } |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 2256 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2257 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2258 | |
| 2259 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 2260 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 2261 | # just to get things to compile and link. Users are free to override OPT |
| 2262 | # when running configure or make. The build should not break if they do. |
| 2263 | # BASECFLAGS should generally not be messed with, however. |
| 2264 | |
| 2265 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 2266 | # on that fiddles with OPT and BASECFLAGS? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2267 | { echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 2268 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2269 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2270 | # Check whether --with-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2271 | if test "${with_gcc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2272 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2273 | case $withval in |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 2274 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2275 | without_gcc=yes;; |
| 2276 | yes) CC=gcc |
| 2277 | without_gcc=no;; |
| 2278 | *) CC=$withval |
| 2279 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2280 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2281 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2282 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2283 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2284 | AIX*) CC=cc_r |
| 2285 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2286 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2287 | case $BE_HOST_CPU in |
| 2288 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2289 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2290 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2291 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 2292 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2293 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2294 | ;; |
| 2295 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2296 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2297 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2298 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2299 | ;; |
| 2300 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2301 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 2302 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2303 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2304 | ;; |
| 2305 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2306 | AR="\$(srcdir)/Modules/ar_beos" |
| 2307 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2308 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2309 | Monterey*) |
| 2310 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 2311 | without_gcc=;; |
| 2312 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 2313 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2314 | fi |
| 2315 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2316 | { echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 2317 | echo "${ECHO_T}$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2318 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2319 | # If the user switches compilers, we can't believe the cache |
| 2320 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 2321 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2322 | { { 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] | 2323 | (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^] | 2324 | 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] | 2325 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 2326 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2327 | fi |
| 2328 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2329 | ac_ext=c |
| 2330 | ac_cpp='$CPP $CPPFLAGS' |
| 2331 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2332 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2333 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2334 | if test -n "$ac_tool_prefix"; then |
| 2335 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2336 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2337 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2338 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2339 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2341 | else |
| 2342 | if test -n "$CC"; then |
| 2343 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2344 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2346 | for as_dir in $PATH |
| 2347 | do |
| 2348 | IFS=$as_save_IFS |
| 2349 | test -z "$as_dir" && as_dir=. |
| 2350 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2351 | 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] | 2352 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2353 | 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] | 2354 | break 2 |
| 2355 | fi |
| 2356 | done |
| 2357 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2358 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2359 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2360 | fi |
| 2361 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2362 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2363 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2364 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2365 | echo "${ECHO_T}$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2366 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2367 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2368 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2369 | fi |
| 2370 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2371 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2372 | fi |
| 2373 | if test -z "$ac_cv_prog_CC"; then |
| 2374 | ac_ct_CC=$CC |
| 2375 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2376 | set dummy gcc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2377 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2378 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2379 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2381 | else |
| 2382 | if test -n "$ac_ct_CC"; then |
| 2383 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2384 | else |
| 2385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2386 | for as_dir in $PATH |
| 2387 | do |
| 2388 | IFS=$as_save_IFS |
| 2389 | test -z "$as_dir" && as_dir=. |
| 2390 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2391 | 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] | 2392 | ac_cv_prog_ac_ct_CC="gcc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2393 | 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] | 2394 | break 2 |
| 2395 | fi |
| 2396 | done |
| 2397 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2398 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2399 | |
| 2400 | fi |
| 2401 | fi |
| 2402 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2403 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2404 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2405 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2406 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2407 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2408 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2409 | fi |
| 2410 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2411 | if test "x$ac_ct_CC" = x; then |
| 2412 | CC="" |
| 2413 | else |
| 2414 | case $cross_compiling:$ac_tool_warned in |
| 2415 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2416 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2417 | whose name does not start with the host triplet. If you think this |
| 2418 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2419 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2420 | whose name does not start with the host triplet. If you think this |
| 2421 | 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] | 2422 | ac_tool_warned=yes ;; |
| 2423 | esac |
| 2424 | CC=$ac_ct_CC |
| 2425 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2426 | else |
| 2427 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2428 | fi |
| 2429 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2430 | if test -z "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2431 | if test -n "$ac_tool_prefix"; then |
| 2432 | # 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] | 2433 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2434 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2435 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2436 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2438 | else |
| 2439 | if test -n "$CC"; then |
| 2440 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2441 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2443 | for as_dir in $PATH |
| 2444 | do |
| 2445 | IFS=$as_save_IFS |
| 2446 | test -z "$as_dir" && as_dir=. |
| 2447 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2448 | 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] | 2449 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2450 | 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] | 2451 | break 2 |
| 2452 | fi |
| 2453 | done |
| 2454 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2455 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2456 | |
| 2457 | fi |
| 2458 | fi |
| 2459 | CC=$ac_cv_prog_CC |
| 2460 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2461 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2462 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2463 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2464 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2465 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2466 | fi |
| 2467 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2468 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2469 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2470 | fi |
| 2471 | if test -z "$CC"; then |
| 2472 | # Extract the first word of "cc", so it can be a program name with args. |
| 2473 | set dummy cc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2474 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2475 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2476 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2478 | else |
| 2479 | if test -n "$CC"; then |
| 2480 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2481 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2482 | ac_prog_rejected=no |
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 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2491 | ac_prog_rejected=yes |
| 2492 | continue |
| 2493 | fi |
| 2494 | ac_cv_prog_CC="cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2495 | 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] | 2496 | break 2 |
| 2497 | fi |
| 2498 | done |
| 2499 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2500 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2501 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2502 | if test $ac_prog_rejected = yes; then |
| 2503 | # We found a bogon in the path, so make sure we never use it. |
| 2504 | set dummy $ac_cv_prog_CC |
| 2505 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2506 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2507 | # We chose a different compiler from the bogus one. |
| 2508 | # However, it has the same basename, so the bogon will be chosen |
| 2509 | # first if we set CC to just the basename; use the full file name. |
| 2510 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2511 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2512 | fi |
| 2513 | fi |
| 2514 | fi |
| 2515 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2516 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2517 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2518 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2519 | echo "${ECHO_T}$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2520 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2521 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2522 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2523 | fi |
| 2524 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2525 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2526 | fi |
| 2527 | if test -z "$CC"; then |
| 2528 | if test -n "$ac_tool_prefix"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2529 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2530 | do |
| 2531 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2532 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2533 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2534 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2535 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2537 | else |
| 2538 | if test -n "$CC"; then |
| 2539 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2540 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2542 | for as_dir in $PATH |
| 2543 | do |
| 2544 | IFS=$as_save_IFS |
| 2545 | test -z "$as_dir" && as_dir=. |
| 2546 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2547 | 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] | 2548 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2549 | 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] | 2550 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2551 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2552 | done |
| 2553 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2554 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2555 | |
| 2556 | fi |
| 2557 | fi |
| 2558 | CC=$ac_cv_prog_CC |
| 2559 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2560 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2561 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2562 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2563 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2564 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2565 | fi |
| 2566 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2567 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2568 | test -n "$CC" && break |
| 2569 | done |
| 2570 | fi |
| 2571 | if test -z "$CC"; then |
| 2572 | ac_ct_CC=$CC |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2573 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2574 | do |
| 2575 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2576 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2577 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2578 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2579 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2581 | else |
| 2582 | if test -n "$ac_ct_CC"; then |
| 2583 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2584 | else |
| 2585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2586 | for as_dir in $PATH |
| 2587 | do |
| 2588 | IFS=$as_save_IFS |
| 2589 | test -z "$as_dir" && as_dir=. |
| 2590 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2591 | 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] | 2592 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2593 | 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] | 2594 | break 2 |
| 2595 | fi |
| 2596 | done |
| 2597 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2598 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2599 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2600 | fi |
| 2601 | fi |
| 2602 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2603 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2604 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2605 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2606 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2607 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2608 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2609 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2610 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2611 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2612 | test -n "$ac_ct_CC" && break |
| 2613 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2614 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2615 | if test "x$ac_ct_CC" = x; then |
| 2616 | CC="" |
| 2617 | else |
| 2618 | case $cross_compiling:$ac_tool_warned in |
| 2619 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2620 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2621 | whose name does not start with the host triplet. If you think this |
| 2622 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2623 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2624 | whose name does not start with the host triplet. If you think this |
| 2625 | 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] | 2626 | ac_tool_warned=yes ;; |
| 2627 | esac |
| 2628 | CC=$ac_ct_CC |
| 2629 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2630 | fi |
| 2631 | |
| 2632 | fi |
| 2633 | |
| 2634 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2635 | 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] | 2636 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2637 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2638 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2639 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2640 | |
| 2641 | # Provide some information about the compiler. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2642 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2643 | ac_compiler=`set X $ac_compile; echo $2` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2644 | { (ac_try="$ac_compiler --version >&5" |
| 2645 | case "(($ac_try" in |
| 2646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2647 | *) ac_try_echo=$ac_try;; |
| 2648 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2650 | (eval "$ac_compiler --version >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2651 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2653 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2654 | { (ac_try="$ac_compiler -v >&5" |
| 2655 | case "(($ac_try" in |
| 2656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2657 | *) ac_try_echo=$ac_try;; |
| 2658 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2660 | (eval "$ac_compiler -v >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2661 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2663 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2664 | { (ac_try="$ac_compiler -V >&5" |
| 2665 | case "(($ac_try" in |
| 2666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2667 | *) ac_try_echo=$ac_try;; |
| 2668 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2670 | (eval "$ac_compiler -V >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2671 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2673 | (exit $ac_status); } |
| 2674 | |
| 2675 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2676 | /* confdefs.h. */ |
| 2677 | _ACEOF |
| 2678 | cat confdefs.h >>conftest.$ac_ext |
| 2679 | cat >>conftest.$ac_ext <<_ACEOF |
| 2680 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2681 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2682 | int |
| 2683 | main () |
| 2684 | { |
| 2685 | |
| 2686 | ; |
| 2687 | return 0; |
| 2688 | } |
| 2689 | _ACEOF |
| 2690 | ac_clean_files_save=$ac_clean_files |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2691 | 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] | 2692 | # Try to create an executable without -o first, disregard a.out. |
| 2693 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2694 | # of exeext. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2695 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2696 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2697 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2698 | # |
| 2699 | # List of possible output files, starting from the most likely. |
| 2700 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2701 | # only as a last resort. b.out is created by i960 compilers. |
| 2702 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2703 | # |
| 2704 | # The IRIX 6 linker writes into existing files which may not be |
| 2705 | # executable, retaining their permissions. Remove them first so a |
| 2706 | # subsequent execution test works. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2707 | ac_rmfiles= |
| 2708 | for ac_file in $ac_files |
| 2709 | do |
| 2710 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2711 | *.$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] | 2712 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2713 | esac |
| 2714 | done |
| 2715 | rm -f $ac_rmfiles |
| 2716 | |
| 2717 | if { (ac_try="$ac_link_default" |
| 2718 | case "(($ac_try" in |
| 2719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2720 | *) ac_try_echo=$ac_try;; |
| 2721 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2723 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2724 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2726 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2727 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2728 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2729 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2730 | # so that the user can short-circuit this test for compilers unknown to |
| 2731 | # Autoconf. |
| 2732 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2733 | do |
| 2734 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2735 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2736 | *.$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] | 2737 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2738 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2739 | # We found the default executable, but exeext='' is most |
| 2740 | # certainly right. |
| 2741 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2742 | *.* ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2743 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2744 | then :; else |
| 2745 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2746 | fi |
| 2747 | # We set ac_cv_exeext here because the later test for it is not |
| 2748 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2749 | # argument, so we may need to know it at that point already. |
| 2750 | # Even if this section looks crufty: it has the advantage of |
| 2751 | # actually working. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2752 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2753 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2754 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2755 | esac |
| 2756 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2757 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2758 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2759 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2760 | ac_file='' |
| 2761 | fi |
| 2762 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2763 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2764 | echo "${ECHO_T}$ac_file" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2765 | if test -z "$ac_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2766 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2768 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2769 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2770 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2771 | echo "$as_me: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2772 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2773 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2774 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2775 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2776 | ac_exeext=$ac_cv_exeext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2777 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2778 | # 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] | 2779 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2780 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2781 | 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] | 2782 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2783 | # If not cross compiling, check that we can run a simple program. |
| 2784 | if test "$cross_compiling" != yes; then |
| 2785 | if { ac_try='./$ac_file' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2786 | { (case "(($ac_try" in |
| 2787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2788 | *) ac_try_echo=$ac_try;; |
| 2789 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2791 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2792 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2794 | (exit $ac_status); }; }; then |
| 2795 | cross_compiling=no |
| 2796 | else |
| 2797 | if test "$cross_compiling" = maybe; then |
| 2798 | cross_compiling=yes |
| 2799 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2800 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2801 | If you meant to cross compile, use \`--host'. |
| 2802 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2803 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2804 | If you meant to cross compile, use \`--host'. |
| 2805 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2806 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2807 | fi |
| 2808 | fi |
| 2809 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2810 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2811 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2812 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2813 | 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] | 2814 | ac_clean_files=$ac_clean_files_save |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2815 | # 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] | 2816 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2817 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2818 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2819 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2820 | echo "${ECHO_T}$cross_compiling" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2821 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2822 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2823 | 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] | 2824 | if { (ac_try="$ac_link" |
| 2825 | case "(($ac_try" in |
| 2826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2827 | *) ac_try_echo=$ac_try;; |
| 2828 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2830 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2831 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2833 | (exit $ac_status); }; then |
| 2834 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2835 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2836 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2837 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2838 | for ac_file in conftest.exe conftest conftest.*; do |
| 2839 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2840 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2841 | *.$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] | 2842 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2843 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2844 | * ) break;; |
| 2845 | esac |
| 2846 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2847 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2848 | { { 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] | 2849 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2850 | 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] | 2851 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2852 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2853 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2854 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2855 | rm -f conftest$ac_cv_exeext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2856 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2857 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2858 | |
| 2859 | rm -f conftest.$ac_ext |
| 2860 | EXEEXT=$ac_cv_exeext |
| 2861 | ac_exeext=$EXEEXT |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2862 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2863 | 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] | 2864 | if test "${ac_cv_objext+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2866 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2867 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2868 | /* confdefs.h. */ |
| 2869 | _ACEOF |
| 2870 | cat confdefs.h >>conftest.$ac_ext |
| 2871 | cat >>conftest.$ac_ext <<_ACEOF |
| 2872 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2874 | int |
| 2875 | main () |
| 2876 | { |
| 2877 | |
| 2878 | ; |
| 2879 | return 0; |
| 2880 | } |
| 2881 | _ACEOF |
| 2882 | rm -f conftest.o conftest.obj |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2883 | if { (ac_try="$ac_compile" |
| 2884 | case "(($ac_try" in |
| 2885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2886 | *) ac_try_echo=$ac_try;; |
| 2887 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2889 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2890 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2892 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2893 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2894 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2895 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2896 | *.$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] | 2897 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2898 | break;; |
| 2899 | esac |
| 2900 | done |
| 2901 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2902 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2904 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2905 | { { 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] | 2906 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2907 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2908 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2909 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2910 | fi |
| 2911 | |
| 2912 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2913 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2914 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2915 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2916 | OBJEXT=$ac_cv_objext |
| 2917 | ac_objext=$OBJEXT |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2918 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2919 | 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] | 2920 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2922 | else |
| 2923 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2924 | /* confdefs.h. */ |
| 2925 | _ACEOF |
| 2926 | cat confdefs.h >>conftest.$ac_ext |
| 2927 | cat >>conftest.$ac_ext <<_ACEOF |
| 2928 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2929 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2930 | int |
| 2931 | main () |
| 2932 | { |
| 2933 | #ifndef __GNUC__ |
| 2934 | choke me |
| 2935 | #endif |
| 2936 | |
| 2937 | ; |
| 2938 | return 0; |
| 2939 | } |
| 2940 | _ACEOF |
| 2941 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2942 | if { (ac_try="$ac_compile" |
| 2943 | case "(($ac_try" in |
| 2944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2945 | *) ac_try_echo=$ac_try;; |
| 2946 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2948 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2949 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2951 | rm -f conftest.er1 |
| 2952 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2954 | (exit $ac_status); } && { |
| 2955 | test -z "$ac_c_werror_flag" || |
| 2956 | test ! -s conftest.err |
| 2957 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2958 | ac_compiler_gnu=yes |
| 2959 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2960 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2962 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2963 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2964 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2965 | |
| 2966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2967 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2968 | |
| 2969 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2970 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2971 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 2972 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2973 | ac_test_CFLAGS=${CFLAGS+set} |
| 2974 | ac_save_CFLAGS=$CFLAGS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2975 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2976 | 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] | 2977 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 2978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2979 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2980 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2981 | ac_c_werror_flag=yes |
| 2982 | ac_cv_prog_cc_g=no |
| 2983 | CFLAGS="-g" |
| 2984 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2985 | /* confdefs.h. */ |
| 2986 | _ACEOF |
| 2987 | cat confdefs.h >>conftest.$ac_ext |
| 2988 | cat >>conftest.$ac_ext <<_ACEOF |
| 2989 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2990 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2991 | int |
| 2992 | main () |
| 2993 | { |
| 2994 | |
| 2995 | ; |
| 2996 | return 0; |
| 2997 | } |
| 2998 | _ACEOF |
| 2999 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3000 | if { (ac_try="$ac_compile" |
| 3001 | case "(($ac_try" in |
| 3002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3003 | *) ac_try_echo=$ac_try;; |
| 3004 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3006 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3007 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3008 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3009 | rm -f conftest.er1 |
| 3010 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3012 | (exit $ac_status); } && { |
| 3013 | test -z "$ac_c_werror_flag" || |
| 3014 | test ! -s conftest.err |
| 3015 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3016 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3017 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3018 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3020 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3021 | CFLAGS="" |
| 3022 | cat >conftest.$ac_ext <<_ACEOF |
| 3023 | /* confdefs.h. */ |
| 3024 | _ACEOF |
| 3025 | cat confdefs.h >>conftest.$ac_ext |
| 3026 | cat >>conftest.$ac_ext <<_ACEOF |
| 3027 | /* end confdefs.h. */ |
| 3028 | |
| 3029 | int |
| 3030 | main () |
| 3031 | { |
| 3032 | |
| 3033 | ; |
| 3034 | return 0; |
| 3035 | } |
| 3036 | _ACEOF |
| 3037 | rm -f conftest.$ac_objext |
| 3038 | if { (ac_try="$ac_compile" |
| 3039 | case "(($ac_try" in |
| 3040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3041 | *) ac_try_echo=$ac_try;; |
| 3042 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3044 | (eval "$ac_compile") 2>conftest.er1 |
| 3045 | ac_status=$? |
| 3046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3047 | rm -f conftest.er1 |
| 3048 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3050 | (exit $ac_status); } && { |
| 3051 | test -z "$ac_c_werror_flag" || |
| 3052 | test ! -s conftest.err |
| 3053 | } && test -s conftest.$ac_objext; then |
| 3054 | : |
| 3055 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3056 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3058 | |
| 3059 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3060 | CFLAGS="-g" |
| 3061 | cat >conftest.$ac_ext <<_ACEOF |
| 3062 | /* confdefs.h. */ |
| 3063 | _ACEOF |
| 3064 | cat confdefs.h >>conftest.$ac_ext |
| 3065 | cat >>conftest.$ac_ext <<_ACEOF |
| 3066 | /* end confdefs.h. */ |
| 3067 | |
| 3068 | int |
| 3069 | main () |
| 3070 | { |
| 3071 | |
| 3072 | ; |
| 3073 | return 0; |
| 3074 | } |
| 3075 | _ACEOF |
| 3076 | rm -f conftest.$ac_objext |
| 3077 | if { (ac_try="$ac_compile" |
| 3078 | case "(($ac_try" in |
| 3079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3080 | *) ac_try_echo=$ac_try;; |
| 3081 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3083 | (eval "$ac_compile") 2>conftest.er1 |
| 3084 | ac_status=$? |
| 3085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3086 | rm -f conftest.er1 |
| 3087 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3089 | (exit $ac_status); } && { |
| 3090 | test -z "$ac_c_werror_flag" || |
| 3091 | test ! -s conftest.err |
| 3092 | } && test -s conftest.$ac_objext; then |
| 3093 | ac_cv_prog_cc_g=yes |
| 3094 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3095 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3097 | |
| 3098 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3099 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3100 | |
| 3101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3102 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3103 | |
| 3104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3105 | fi |
| 3106 | |
| 3107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3108 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3109 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3110 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3111 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3112 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3113 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3114 | elif test $ac_cv_prog_cc_g = yes; then |
| 3115 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3116 | CFLAGS="-g -O2" |
| 3117 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3118 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3119 | fi |
| 3120 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3121 | if test "$GCC" = yes; then |
| 3122 | CFLAGS="-O2" |
| 3123 | else |
| 3124 | CFLAGS= |
| 3125 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3126 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3127 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3128 | 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] | 3129 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3131 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3132 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3133 | ac_save_CC=$CC |
| 3134 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3135 | /* confdefs.h. */ |
| 3136 | _ACEOF |
| 3137 | cat confdefs.h >>conftest.$ac_ext |
| 3138 | cat >>conftest.$ac_ext <<_ACEOF |
| 3139 | /* end confdefs.h. */ |
| 3140 | #include <stdarg.h> |
| 3141 | #include <stdio.h> |
| 3142 | #include <sys/types.h> |
| 3143 | #include <sys/stat.h> |
| 3144 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3145 | struct buf { int x; }; |
| 3146 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3147 | static char *e (p, i) |
| 3148 | char **p; |
| 3149 | int i; |
| 3150 | { |
| 3151 | return p[i]; |
| 3152 | } |
| 3153 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3154 | { |
| 3155 | char *s; |
| 3156 | va_list v; |
| 3157 | va_start (v,p); |
| 3158 | s = g (p, va_arg (v,int)); |
| 3159 | va_end (v); |
| 3160 | return s; |
| 3161 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3162 | |
| 3163 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3164 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3165 | 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] | 3166 | 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] | 3167 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3168 | 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] | 3169 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3170 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3171 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3172 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3173 | inside strings and character constants. */ |
| 3174 | #define FOO(x) 'x' |
| 3175 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3176 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3177 | int test (int i, double x); |
| 3178 | struct s1 {int (*f) (int a);}; |
| 3179 | struct s2 {int (*f) (double a);}; |
| 3180 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3181 | int argc; |
| 3182 | char **argv; |
| 3183 | int |
| 3184 | main () |
| 3185 | { |
| 3186 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3187 | ; |
| 3188 | return 0; |
| 3189 | } |
| 3190 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3191 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3192 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3193 | do |
| 3194 | CC="$ac_save_CC $ac_arg" |
| 3195 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3196 | if { (ac_try="$ac_compile" |
| 3197 | case "(($ac_try" in |
| 3198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3199 | *) ac_try_echo=$ac_try;; |
| 3200 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3202 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3203 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3204 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3205 | rm -f conftest.er1 |
| 3206 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3208 | (exit $ac_status); } && { |
| 3209 | test -z "$ac_c_werror_flag" || |
| 3210 | test ! -s conftest.err |
| 3211 | } && test -s conftest.$ac_objext; then |
| 3212 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3213 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3214 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3216 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3217 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3218 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3219 | |
| 3220 | rm -f core conftest.err conftest.$ac_objext |
| 3221 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3222 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3223 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3224 | CC=$ac_save_CC |
| 3225 | |
| 3226 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3227 | # AC_CACHE_VAL |
| 3228 | case "x$ac_cv_prog_cc_c89" in |
| 3229 | x) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3230 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3231 | echo "${ECHO_T}none needed" >&6; } ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3232 | xno) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3233 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3234 | echo "${ECHO_T}unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3235 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3236 | CC="$CC $ac_cv_prog_cc_c89" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3237 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3238 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3239 | esac |
| 3240 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3241 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3242 | ac_ext=c |
| 3243 | ac_cpp='$CPP $CPPFLAGS' |
| 3244 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3245 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3246 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3247 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3248 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3249 | |
| 3250 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3251 | { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 3252 | 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] | 3253 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3254 | # Check whether --with-cxx_main was given. |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3255 | if test "${with_cxx_main+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3256 | withval=$with_cxx_main; |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3257 | |
| 3258 | case $withval in |
| 3259 | no) with_cxx_main=no |
| 3260 | MAINCC='$(CC)';; |
| 3261 | yes) with_cxx_main=yes |
| 3262 | MAINCC='$(CXX)';; |
| 3263 | *) with_cxx_main=yes |
| 3264 | MAINCC=$withval |
| 3265 | if test -z "$CXX" |
| 3266 | then |
| 3267 | CXX=$withval |
| 3268 | fi;; |
| 3269 | esac |
| 3270 | else |
| 3271 | |
| 3272 | with_cxx_main=no |
| 3273 | MAINCC='$(CC)' |
| 3274 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3275 | fi |
| 3276 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3277 | { echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 3278 | echo "${ECHO_T}$with_cxx_main" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3279 | |
| 3280 | preset_cxx="$CXX" |
| 3281 | if test -z "$CXX" |
| 3282 | then |
| 3283 | case "$CC" in |
| 3284 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3285 | set dummy g++; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3286 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3287 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3288 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3290 | else |
| 3291 | case $CXX in |
| 3292 | [\\/]* | ?:[\\/]*) |
| 3293 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3294 | ;; |
| 3295 | *) |
| 3296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3297 | for as_dir in notfound |
| 3298 | do |
| 3299 | IFS=$as_save_IFS |
| 3300 | test -z "$as_dir" && as_dir=. |
| 3301 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3302 | 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] | 3303 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3304 | 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] | 3305 | break 2 |
| 3306 | fi |
| 3307 | done |
| 3308 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3309 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3310 | |
| 3311 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 3312 | ;; |
| 3313 | esac |
| 3314 | fi |
| 3315 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3316 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3317 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3318 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3319 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3320 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3321 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3322 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3323 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3324 | ;; |
| 3325 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 3326 | set dummy c++; 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="c++" |
| 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 | esac |
| 3367 | if test "$CXX" = "notfound" |
| 3368 | then |
| 3369 | CXX="" |
| 3370 | fi |
| 3371 | fi |
| 3372 | if test -z "$CXX" |
| 3373 | then |
| 3374 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 3375 | do |
| 3376 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3377 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3378 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3380 | if test "${ac_cv_prog_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3382 | else |
| 3383 | if test -n "$CXX"; then |
| 3384 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3385 | else |
| 3386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3387 | for as_dir in $PATH |
| 3388 | do |
| 3389 | IFS=$as_save_IFS |
| 3390 | test -z "$as_dir" && as_dir=. |
| 3391 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3392 | 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] | 3393 | ac_cv_prog_CXX="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3394 | 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] | 3395 | break 2 |
| 3396 | fi |
| 3397 | done |
| 3398 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3399 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3400 | |
| 3401 | fi |
| 3402 | fi |
| 3403 | CXX=$ac_cv_prog_CXX |
| 3404 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3405 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3406 | echo "${ECHO_T}$CXX" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3407 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3408 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3409 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3410 | fi |
| 3411 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3412 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3413 | test -n "$CXX" && break |
| 3414 | done |
| 3415 | test -n "$CXX" || CXX="notfound" |
| 3416 | |
| 3417 | if test "$CXX" = "notfound" |
| 3418 | then |
| 3419 | CXX="" |
| 3420 | fi |
| 3421 | fi |
| 3422 | if test "$preset_cxx" != "$CXX" |
| 3423 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3424 | { echo "$as_me:$LINENO: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3425 | |
| 3426 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3427 | If this is not intended, then set CXX on the configure command line. |
| 3428 | " >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3429 | echo "$as_me: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3430 | |
| 3431 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3432 | If this is not intended, then set CXX on the configure command line. |
| 3433 | " >&2;} |
| 3434 | fi |
| 3435 | |
| 3436 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3437 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3438 | |
| 3439 | ac_ext=c |
| 3440 | ac_cpp='$CPP $CPPFLAGS' |
| 3441 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3442 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3443 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3444 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3445 | 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] | 3446 | # On Suns, sometimes $CPP names a directory. |
| 3447 | if test -n "$CPP" && test -d "$CPP"; then |
| 3448 | CPP= |
| 3449 | fi |
| 3450 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3451 | if test "${ac_cv_prog_CPP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3453 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3454 | # Double quotes because CPP needs to be expanded |
| 3455 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3456 | do |
| 3457 | ac_preproc_ok=false |
| 3458 | for ac_c_preproc_warn_flag in '' yes |
| 3459 | do |
| 3460 | # Use a header file that comes with gcc, so configuring glibc |
| 3461 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3462 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3463 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3464 | # 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] | 3465 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3466 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3467 | /* confdefs.h. */ |
| 3468 | _ACEOF |
| 3469 | cat confdefs.h >>conftest.$ac_ext |
| 3470 | cat >>conftest.$ac_ext <<_ACEOF |
| 3471 | /* end confdefs.h. */ |
| 3472 | #ifdef __STDC__ |
| 3473 | # include <limits.h> |
| 3474 | #else |
| 3475 | # include <assert.h> |
| 3476 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3477 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3478 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3479 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3480 | case "(($ac_try" in |
| 3481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3482 | *) ac_try_echo=$ac_try;; |
| 3483 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3485 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3486 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3487 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3488 | rm -f conftest.er1 |
| 3489 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3491 | (exit $ac_status); } >/dev/null && { |
| 3492 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3493 | test ! -s conftest.err |
| 3494 | }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3495 | : |
| 3496 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3497 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3499 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3500 | # Broken: fails on valid input. |
| 3501 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3502 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3504 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3505 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3506 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3507 | # can be detected and how. |
| 3508 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3509 | /* confdefs.h. */ |
| 3510 | _ACEOF |
| 3511 | cat confdefs.h >>conftest.$ac_ext |
| 3512 | cat >>conftest.$ac_ext <<_ACEOF |
| 3513 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3514 | #include <ac_nonexistent.h> |
| 3515 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3516 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3517 | case "(($ac_try" in |
| 3518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3519 | *) ac_try_echo=$ac_try;; |
| 3520 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3522 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3523 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3524 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3525 | rm -f conftest.er1 |
| 3526 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3528 | (exit $ac_status); } >/dev/null && { |
| 3529 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3530 | test ! -s conftest.err |
| 3531 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3532 | # Broken: success on invalid input. |
| 3533 | continue |
| 3534 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3535 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3537 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3538 | # Passes both tests. |
| 3539 | ac_preproc_ok=: |
| 3540 | break |
| 3541 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3542 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3543 | rm -f conftest.err conftest.$ac_ext |
| 3544 | |
| 3545 | done |
| 3546 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3547 | rm -f conftest.err conftest.$ac_ext |
| 3548 | if $ac_preproc_ok; then |
| 3549 | break |
| 3550 | fi |
| 3551 | |
| 3552 | done |
| 3553 | ac_cv_prog_CPP=$CPP |
| 3554 | |
| 3555 | fi |
| 3556 | CPP=$ac_cv_prog_CPP |
| 3557 | else |
| 3558 | ac_cv_prog_CPP=$CPP |
| 3559 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3560 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3561 | echo "${ECHO_T}$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3562 | ac_preproc_ok=false |
| 3563 | for ac_c_preproc_warn_flag in '' yes |
| 3564 | do |
| 3565 | # Use a header file that comes with gcc, so configuring glibc |
| 3566 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3567 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3568 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3569 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3570 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3571 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3572 | /* confdefs.h. */ |
| 3573 | _ACEOF |
| 3574 | cat confdefs.h >>conftest.$ac_ext |
| 3575 | cat >>conftest.$ac_ext <<_ACEOF |
| 3576 | /* end confdefs.h. */ |
| 3577 | #ifdef __STDC__ |
| 3578 | # include <limits.h> |
| 3579 | #else |
| 3580 | # include <assert.h> |
| 3581 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3582 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3583 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3584 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3585 | case "(($ac_try" in |
| 3586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3587 | *) ac_try_echo=$ac_try;; |
| 3588 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3590 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3591 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3592 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3593 | rm -f conftest.er1 |
| 3594 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3596 | (exit $ac_status); } >/dev/null && { |
| 3597 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3598 | test ! -s conftest.err |
| 3599 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3600 | : |
| 3601 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3602 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3603 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3604 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3605 | # Broken: fails on valid input. |
| 3606 | continue |
| 3607 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3608 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3609 | rm -f conftest.err conftest.$ac_ext |
| 3610 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3611 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3612 | # can be detected and how. |
| 3613 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3614 | /* confdefs.h. */ |
| 3615 | _ACEOF |
| 3616 | cat confdefs.h >>conftest.$ac_ext |
| 3617 | cat >>conftest.$ac_ext <<_ACEOF |
| 3618 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3619 | #include <ac_nonexistent.h> |
| 3620 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3621 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3622 | case "(($ac_try" in |
| 3623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3624 | *) ac_try_echo=$ac_try;; |
| 3625 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3627 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3628 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3629 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3630 | rm -f conftest.er1 |
| 3631 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3633 | (exit $ac_status); } >/dev/null && { |
| 3634 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3635 | test ! -s conftest.err |
| 3636 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3637 | # Broken: success on invalid input. |
| 3638 | continue |
| 3639 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3640 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3642 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3643 | # Passes both tests. |
| 3644 | ac_preproc_ok=: |
| 3645 | break |
| 3646 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3647 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3648 | rm -f conftest.err conftest.$ac_ext |
| 3649 | |
| 3650 | done |
| 3651 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3652 | rm -f conftest.err conftest.$ac_ext |
| 3653 | if $ac_preproc_ok; then |
| 3654 | : |
| 3655 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3656 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3657 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3658 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3659 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3660 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3661 | fi |
| 3662 | |
| 3663 | ac_ext=c |
| 3664 | ac_cpp='$CPP $CPPFLAGS' |
| 3665 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3666 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3667 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3668 | |
| 3669 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3670 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3671 | 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] | 3672 | if test "${ac_cv_path_GREP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3674 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3675 | # Extract the first word of "grep ggrep" to use in msg output |
| 3676 | if test -z "$GREP"; then |
| 3677 | set dummy grep ggrep; ac_prog_name=$2 |
| 3678 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3680 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3681 | ac_path_GREP_found=false |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3682 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3684 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3685 | do |
| 3686 | IFS=$as_save_IFS |
| 3687 | test -z "$as_dir" && as_dir=. |
| 3688 | for ac_prog in grep ggrep; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3689 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3690 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3691 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3692 | # 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] | 3693 | # Check for GNU $ac_path_GREP |
| 3694 | case `"$ac_path_GREP" --version 2>&1` in |
| 3695 | *GNU*) |
| 3696 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3697 | *) |
| 3698 | ac_count=0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3699 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3700 | while : |
| 3701 | do |
| 3702 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3703 | mv "conftest.tmp" "conftest.in" |
| 3704 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3705 | echo 'GREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3706 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3707 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3708 | ac_count=`expr $ac_count + 1` |
| 3709 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3710 | # Best one so far, save it but keep looking for a better one |
| 3711 | ac_cv_path_GREP="$ac_path_GREP" |
| 3712 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3713 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3714 | # 10*(2^10) chars as input seems more than enough |
| 3715 | test $ac_count -gt 10 && break |
| 3716 | done |
| 3717 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3718 | esac |
| 3719 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3720 | |
| 3721 | $ac_path_GREP_found && break 3 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3722 | done |
| 3723 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3724 | |
| 3725 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3726 | IFS=$as_save_IFS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3727 | |
| 3728 | |
| 3729 | fi |
| 3730 | |
| 3731 | GREP="$ac_cv_path_GREP" |
| 3732 | if test -z "$GREP"; then |
| 3733 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3734 | 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] | 3735 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3736 | fi |
| 3737 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3738 | else |
| 3739 | ac_cv_path_GREP=$GREP |
| 3740 | fi |
| 3741 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3742 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3743 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3744 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3745 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3746 | GREP="$ac_cv_path_GREP" |
| 3747 | |
| 3748 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3749 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3750 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3751 | if test "${ac_cv_path_EGREP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3753 | else |
| 3754 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3755 | then ac_cv_path_EGREP="$GREP -E" |
| 3756 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3757 | # Extract the first word of "egrep" to use in msg output |
| 3758 | if test -z "$EGREP"; then |
| 3759 | set dummy egrep; ac_prog_name=$2 |
| 3760 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3762 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3763 | ac_path_EGREP_found=false |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3764 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3766 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3767 | do |
| 3768 | IFS=$as_save_IFS |
| 3769 | test -z "$as_dir" && as_dir=. |
| 3770 | for ac_prog in egrep; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3771 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3772 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3773 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3774 | # 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] | 3775 | # Check for GNU $ac_path_EGREP |
| 3776 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3777 | *GNU*) |
| 3778 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3779 | *) |
| 3780 | ac_count=0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3781 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3782 | while : |
| 3783 | do |
| 3784 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3785 | mv "conftest.tmp" "conftest.in" |
| 3786 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3787 | echo 'EGREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3788 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3789 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3790 | ac_count=`expr $ac_count + 1` |
| 3791 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3792 | # Best one so far, save it but keep looking for a better one |
| 3793 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3794 | ac_path_EGREP_max=$ac_count |
| 3795 | fi |
| 3796 | # 10*(2^10) chars as input seems more than enough |
| 3797 | test $ac_count -gt 10 && break |
| 3798 | done |
| 3799 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3800 | esac |
| 3801 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3802 | |
| 3803 | $ac_path_EGREP_found && break 3 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3804 | done |
| 3805 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3806 | |
| 3807 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3808 | IFS=$as_save_IFS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3809 | |
| 3810 | |
| 3811 | fi |
| 3812 | |
| 3813 | EGREP="$ac_cv_path_EGREP" |
| 3814 | if test -z "$EGREP"; then |
| 3815 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3816 | 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] | 3817 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3818 | fi |
| 3819 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3820 | else |
| 3821 | ac_cv_path_EGREP=$EGREP |
| 3822 | fi |
| 3823 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3824 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3825 | fi |
| 3826 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3827 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3828 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3829 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3830 | |
| 3831 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3832 | |
| 3833 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3834 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
| 3835 | cat >conftest.$ac_ext <<_ACEOF |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3836 | /* confdefs.h. */ |
| 3837 | _ACEOF |
| 3838 | cat confdefs.h >>conftest.$ac_ext |
| 3839 | cat >>conftest.$ac_ext <<_ACEOF |
| 3840 | /* end confdefs.h. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3841 | #ifdef _AIX |
| 3842 | yes |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3843 | #endif |
| 3844 | |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3845 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3846 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3847 | $EGREP "yes" >/dev/null 2>&1; then |
| 3848 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3849 | echo "${ECHO_T}yes" >&6; } |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3850 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3851 | #define _ALL_SOURCE 1 |
| 3852 | _ACEOF |
| 3853 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3854 | else |
| 3855 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3856 | echo "${ECHO_T}no" >&6; } |
| 3857 | fi |
| 3858 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3859 | |
| 3860 | |
| 3861 | |
| 3862 | # Check for unsupported systems |
| 3863 | case $ac_sys_system/$ac_sys_release in |
| 3864 | atheos*|Linux*/1*) |
| 3865 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3866 | echo See README for details. |
| 3867 | exit 1;; |
| 3868 | esac |
| 3869 | |
| 3870 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3871 | { echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3872 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3873 | |
| 3874 | # Check whether --with-suffix was given. |
| 3875 | if test "${with_suffix+set}" = set; then |
| 3876 | withval=$with_suffix; |
| 3877 | case $withval in |
| 3878 | no) EXEEXT=;; |
| 3879 | yes) EXEEXT=.exe;; |
| 3880 | *) EXEEXT=$withval;; |
| 3881 | esac |
| 3882 | fi |
| 3883 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3884 | { echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3885 | echo "${ECHO_T}$EXEEXT" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3886 | |
| 3887 | # Test whether we're running on a non-case-sensitive system, in which |
| 3888 | # case we give a warning if no ext is given |
| 3889 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3890 | { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3891 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3892 | if test ! -d CaseSensitiveTestDir; then |
| 3893 | mkdir CaseSensitiveTestDir |
| 3894 | fi |
| 3895 | |
| 3896 | if test -d casesensitivetestdir |
| 3897 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3898 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3899 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3900 | BUILDEXEEXT=.exe |
| 3901 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3902 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3903 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3904 | BUILDEXEEXT=$EXEEXT |
| 3905 | fi |
| 3906 | rmdir CaseSensitiveTestDir |
| 3907 | |
| 3908 | case $MACHDEP in |
| 3909 | bsdos*) |
| 3910 | case $CC in |
| 3911 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3912 | esac;; |
| 3913 | esac |
| 3914 | |
| 3915 | case $ac_sys_system in |
| 3916 | hp*|HP*) |
| 3917 | case $CC in |
| 3918 | cc|*/cc) CC="$CC -Ae";; |
| 3919 | esac;; |
| 3920 | Monterey*) |
| 3921 | case $CC in |
| 3922 | cc) CC="$CC -Wl,-Bexport";; |
| 3923 | esac;; |
| 3924 | SunOS*) |
| 3925 | # Some functions have a prototype only with that define, e.g. confstr |
| 3926 | |
| 3927 | cat >>confdefs.h <<\_ACEOF |
| 3928 | #define __EXTENSIONS__ 1 |
| 3929 | _ACEOF |
| 3930 | |
| 3931 | ;; |
| 3932 | esac |
| 3933 | |
| 3934 | |
| 3935 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3936 | { echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3937 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3938 | if test -z "$LIBRARY" |
| 3939 | then |
| 3940 | LIBRARY='libpython$(VERSION).a' |
| 3941 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3942 | { echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3943 | echo "${ECHO_T}$LIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3944 | |
| 3945 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 3946 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3947 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3948 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3949 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3950 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3951 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3952 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 3953 | # |
| 3954 | # RUNSHARED is used to run shared python without installed libraries |
| 3955 | # |
| 3956 | # INSTSONAME is the name of the shared library that will be use to install |
| 3957 | # on the system - some systems like version suffix, others don't |
| 3958 | |
| 3959 | |
| 3960 | |
| 3961 | |
| 3962 | |
| 3963 | |
| 3964 | LDLIBRARY="$LIBRARY" |
| 3965 | BLDLIBRARY='$(LDLIBRARY)' |
| 3966 | INSTSONAME='$(LDLIBRARY)' |
| 3967 | DLLLIBRARY='' |
| 3968 | LDLIBRARYDIR='' |
| 3969 | RUNSHARED='' |
| 3970 | |
| 3971 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 3972 | # If CXX is set, and if it is needed to link a main function that was |
| 3973 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3974 | # python might then depend on the C++ runtime |
| 3975 | # This is altered for AIX in order to build the export list before |
| 3976 | # linking. |
| 3977 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3978 | { echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3979 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3980 | if test -z "$LINKCC" |
| 3981 | then |
| 3982 | LINKCC='$(PURIFY) $(MAINCC)' |
| 3983 | case $ac_sys_system in |
| 3984 | AIX*) |
| 3985 | exp_extra="\"\"" |
| 3986 | if test $ac_sys_release -ge 5 -o \ |
| 3987 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3988 | exp_extra="." |
| 3989 | fi |
| 3990 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
| 3991 | Monterey64*) |
| 3992 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
| 3993 | QNX*) |
| 3994 | # qcc must be used because the other compilers do not |
| 3995 | # support -N. |
| 3996 | LINKCC=qcc;; |
| 3997 | esac |
| 3998 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 3999 | { echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 4000 | echo "${ECHO_T}$LINKCC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4001 | |
| 4002 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 4003 | # make sure we default having it set to "no": this is used by |
| 4004 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 4005 | # to linker command lines, and failing to detect GNU ld simply results |
| 4006 | # in the same bahaviour as before. |
| 4007 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4008 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4009 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4010 | ac_prog=ld |
| 4011 | if test "$GCC" = yes; then |
| 4012 | ac_prog=`$CC -print-prog-name=ld` |
| 4013 | fi |
| 4014 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 4015 | *GNU*) |
| 4016 | GNULD=yes;; |
| 4017 | *) |
| 4018 | GNULD=no;; |
| 4019 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4020 | { echo "$as_me:$LINENO: result: $GNULD" >&5 |
| 4021 | echo "${ECHO_T}$GNULD" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4022 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4023 | { echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 4024 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4025 | # Check whether --enable-shared was given. |
| 4026 | if test "${enable_shared+set}" = set; then |
| 4027 | enableval=$enable_shared; |
| 4028 | fi |
| 4029 | |
| 4030 | |
| 4031 | if test -z "$enable_shared" |
| 4032 | then |
| 4033 | case $ac_sys_system in |
| 4034 | CYGWIN* | atheos*) |
| 4035 | enable_shared="yes";; |
| 4036 | *) |
| 4037 | enable_shared="no";; |
| 4038 | esac |
| 4039 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4040 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 4041 | echo "${ECHO_T}$enable_shared" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4042 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4043 | { echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 4044 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4045 | # Check whether --enable-profiling was given. |
| 4046 | if test "${enable_profiling+set}" = set; then |
| 4047 | enableval=$enable_profiling; ac_save_cc="$CC" |
| 4048 | CC="$CC -pg" |
| 4049 | if test "$cross_compiling" = yes; then |
| 4050 | ac_enable_profiling="no" |
| 4051 | else |
| 4052 | cat >conftest.$ac_ext <<_ACEOF |
| 4053 | /* confdefs.h. */ |
| 4054 | _ACEOF |
| 4055 | cat confdefs.h >>conftest.$ac_ext |
| 4056 | cat >>conftest.$ac_ext <<_ACEOF |
| 4057 | /* end confdefs.h. */ |
| 4058 | int main() { return 0; } |
| 4059 | _ACEOF |
| 4060 | rm -f conftest$ac_exeext |
| 4061 | if { (ac_try="$ac_link" |
| 4062 | case "(($ac_try" in |
| 4063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4064 | *) ac_try_echo=$ac_try;; |
| 4065 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4067 | (eval "$ac_link") 2>&5 |
| 4068 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4070 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4071 | { (case "(($ac_try" in |
| 4072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4073 | *) ac_try_echo=$ac_try;; |
| 4074 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4076 | (eval "$ac_try") 2>&5 |
| 4077 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4079 | (exit $ac_status); }; }; then |
| 4080 | ac_enable_profiling="yes" |
| 4081 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4082 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4083 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4084 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4085 | |
| 4086 | ( exit $ac_status ) |
| 4087 | ac_enable_profiling="no" |
| 4088 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4089 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4090 | fi |
| 4091 | |
| 4092 | |
| 4093 | CC="$ac_save_cc" |
| 4094 | fi |
| 4095 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4096 | { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 4097 | echo "${ECHO_T}$ac_enable_profiling" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4098 | |
| 4099 | case "$ac_enable_profiling" in |
| 4100 | "yes") |
| 4101 | BASECFLAGS="-pg $BASECFLAGS" |
| 4102 | LDFLAGS="-pg $LDFLAGS" |
| 4103 | ;; |
| 4104 | esac |
| 4105 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4106 | { echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 4107 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4108 | |
| 4109 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4110 | # library that we build, but we do not want to link against it (we |
| 4111 | # will find it with a -framework option). For this reason there is an |
| 4112 | # extra variable BLDLIBRARY against which Python and the extension |
| 4113 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4114 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 4115 | if test "$enable_framework" |
| 4116 | then |
| 4117 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 4118 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 4119 | BLDLIBRARY='' |
| 4120 | else |
| 4121 | BLDLIBRARY='$(LDLIBRARY)' |
| 4122 | fi |
| 4123 | |
| 4124 | # Other platforms follow |
| 4125 | if test $enable_shared = "yes"; then |
| 4126 | |
| 4127 | cat >>confdefs.h <<\_ACEOF |
| 4128 | #define Py_ENABLE_SHARED 1 |
| 4129 | _ACEOF |
| 4130 | |
| 4131 | case $ac_sys_system in |
| 4132 | BeOS*) |
| 4133 | LDLIBRARY='libpython$(VERSION).so' |
| 4134 | ;; |
| 4135 | CYGWIN*) |
| 4136 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4137 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4138 | ;; |
| 4139 | SunOS*) |
| 4140 | LDLIBRARY='libpython$(VERSION).so' |
| 4141 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4142 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4143 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4144 | ;; |
| 4145 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
| 4146 | LDLIBRARY='libpython$(VERSION).so' |
| 4147 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4148 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4149 | case $ac_sys_system in |
| 4150 | FreeBSD*) |
| 4151 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4152 | ;; |
| 4153 | esac |
| 4154 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4155 | ;; |
| 4156 | hp*|HP*) |
| 4157 | case `uname -m` in |
| 4158 | ia64) |
| 4159 | LDLIBRARY='libpython$(VERSION).so' |
| 4160 | ;; |
| 4161 | *) |
| 4162 | LDLIBRARY='libpython$(VERSION).sl' |
| 4163 | ;; |
| 4164 | esac |
| 4165 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4166 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 4167 | ;; |
| 4168 | OSF*) |
| 4169 | LDLIBRARY='libpython$(VERSION).so' |
| 4170 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 4171 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4172 | ;; |
| 4173 | atheos*) |
| 4174 | LDLIBRARY='libpython$(VERSION).so' |
| 4175 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4176 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4177 | ;; |
| 4178 | Darwin*) |
| 4179 | LDLIBRARY='libpython$(VERSION).dylib' |
| 4180 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4181 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 4182 | ;; |
| 4183 | |
| 4184 | esac |
| 4185 | else # shared is disabled |
| 4186 | case $ac_sys_system in |
| 4187 | CYGWIN*) |
| 4188 | BLDLIBRARY='$(LIBRARY)' |
| 4189 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4190 | ;; |
| 4191 | esac |
| 4192 | fi |
| 4193 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4194 | { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 4195 | echo "${ECHO_T}$LDLIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4196 | |
| 4197 | if test -n "$ac_tool_prefix"; then |
| 4198 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4199 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4200 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4201 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4202 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4204 | else |
| 4205 | if test -n "$RANLIB"; then |
| 4206 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4207 | else |
| 4208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4209 | for as_dir in $PATH |
| 4210 | do |
| 4211 | IFS=$as_save_IFS |
| 4212 | test -z "$as_dir" && as_dir=. |
| 4213 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4214 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4215 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4216 | 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] | 4217 | break 2 |
| 4218 | fi |
| 4219 | done |
| 4220 | done |
| 4221 | IFS=$as_save_IFS |
| 4222 | |
| 4223 | fi |
| 4224 | fi |
| 4225 | RANLIB=$ac_cv_prog_RANLIB |
| 4226 | if test -n "$RANLIB"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4227 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4228 | echo "${ECHO_T}$RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4229 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4230 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4231 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4232 | fi |
| 4233 | |
| 4234 | |
| 4235 | fi |
| 4236 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4237 | ac_ct_RANLIB=$RANLIB |
| 4238 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4239 | set dummy ranlib; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4240 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4241 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4242 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4244 | else |
| 4245 | if test -n "$ac_ct_RANLIB"; then |
| 4246 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4247 | else |
| 4248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4249 | for as_dir in $PATH |
| 4250 | do |
| 4251 | IFS=$as_save_IFS |
| 4252 | test -z "$as_dir" && as_dir=. |
| 4253 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4254 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4255 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4256 | 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] | 4257 | break 2 |
| 4258 | fi |
| 4259 | done |
| 4260 | done |
| 4261 | IFS=$as_save_IFS |
| 4262 | |
| 4263 | fi |
| 4264 | fi |
| 4265 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4266 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4267 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4268 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4269 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4270 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4271 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4272 | fi |
| 4273 | |
| 4274 | if test "x$ac_ct_RANLIB" = x; then |
| 4275 | RANLIB=":" |
| 4276 | else |
| 4277 | case $cross_compiling:$ac_tool_warned in |
| 4278 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4279 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4280 | whose name does not start with the host triplet. If you think this |
| 4281 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4282 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4283 | whose name does not start with the host triplet. If you think this |
| 4284 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4285 | ac_tool_warned=yes ;; |
| 4286 | esac |
| 4287 | RANLIB=$ac_ct_RANLIB |
| 4288 | fi |
| 4289 | else |
| 4290 | RANLIB="$ac_cv_prog_RANLIB" |
| 4291 | fi |
| 4292 | |
| 4293 | |
| 4294 | for ac_prog in ar aal |
| 4295 | do |
| 4296 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4297 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4298 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4299 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4300 | if test "${ac_cv_prog_AR+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4302 | else |
| 4303 | if test -n "$AR"; then |
| 4304 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4305 | else |
| 4306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4307 | for as_dir in $PATH |
| 4308 | do |
| 4309 | IFS=$as_save_IFS |
| 4310 | test -z "$as_dir" && as_dir=. |
| 4311 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4312 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4313 | ac_cv_prog_AR="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4314 | 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] | 4315 | break 2 |
| 4316 | fi |
| 4317 | done |
| 4318 | done |
| 4319 | IFS=$as_save_IFS |
| 4320 | |
| 4321 | fi |
| 4322 | fi |
| 4323 | AR=$ac_cv_prog_AR |
| 4324 | if test -n "$AR"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4325 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 4326 | echo "${ECHO_T}$AR" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4327 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4328 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4329 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4330 | fi |
| 4331 | |
| 4332 | |
| 4333 | test -n "$AR" && break |
| 4334 | done |
| 4335 | test -n "$AR" || AR="ar" |
| 4336 | |
| 4337 | |
| 4338 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 4339 | |
| 4340 | if test -z "$ARFLAGS" |
| 4341 | then |
| 4342 | ARFLAGS="rc" |
| 4343 | fi |
| 4344 | |
| 4345 | |
| 4346 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 4347 | set dummy svnversion; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4348 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4349 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4350 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4352 | else |
| 4353 | if test -n "$SVNVERSION"; then |
| 4354 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 4355 | else |
| 4356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4357 | for as_dir in $PATH |
| 4358 | do |
| 4359 | IFS=$as_save_IFS |
| 4360 | test -z "$as_dir" && as_dir=. |
| 4361 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4362 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4363 | ac_cv_prog_SVNVERSION="found" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4364 | 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] | 4365 | break 2 |
| 4366 | fi |
| 4367 | done |
| 4368 | done |
| 4369 | IFS=$as_save_IFS |
| 4370 | |
| 4371 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| 4372 | fi |
| 4373 | fi |
| 4374 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 4375 | if test -n "$SVNVERSION"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4376 | { echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 4377 | echo "${ECHO_T}$SVNVERSION" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4378 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4379 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4380 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4381 | fi |
| 4382 | |
| 4383 | |
| 4384 | if test $SVNVERSION = found |
| 4385 | then |
| 4386 | SVNVERSION="svnversion \$(srcdir)" |
| 4387 | else |
| 4388 | SVNVERSION="echo Unversioned directory" |
| 4389 | fi |
| 4390 | |
| 4391 | case $MACHDEP in |
| 4392 | bsdos*|hp*|HP*) |
| 4393 | # install -d does not work on BSDI or HP-UX |
| 4394 | if test -z "$INSTALL" |
| 4395 | then |
| 4396 | INSTALL="${srcdir}/install-sh -c" |
| 4397 | fi |
| 4398 | esac |
| 4399 | ac_aux_dir= |
| 4400 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 4401 | if test -f "$ac_dir/install-sh"; then |
| 4402 | ac_aux_dir=$ac_dir |
| 4403 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4404 | break |
| 4405 | elif test -f "$ac_dir/install.sh"; then |
| 4406 | ac_aux_dir=$ac_dir |
| 4407 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4408 | break |
| 4409 | elif test -f "$ac_dir/shtool"; then |
| 4410 | ac_aux_dir=$ac_dir |
| 4411 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4412 | break |
| 4413 | fi |
| 4414 | done |
| 4415 | if test -z "$ac_aux_dir"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4416 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 4417 | 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] | 4418 | { (exit 1); exit 1; }; } |
| 4419 | fi |
| 4420 | |
| 4421 | # These three variables are undocumented and unsupported, |
| 4422 | # and are intended to be withdrawn in a future Autoconf release. |
| 4423 | # They can cause serious problems if a builder's source tree is in a directory |
| 4424 | # whose full name contains unusual characters. |
| 4425 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 4426 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 4427 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 4428 | |
| 4429 | |
| 4430 | # Find a good install program. We prefer a C program (faster), |
| 4431 | # so one script is as good as another. But avoid the broken or |
| 4432 | # incompatible versions: |
| 4433 | # SysV /etc/install, /usr/sbin/install |
| 4434 | # SunOS /usr/etc/install |
| 4435 | # IRIX /sbin/install |
| 4436 | # AIX /bin/install |
| 4437 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4438 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4439 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4440 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4441 | # OS/2's system install, which has a completely different semantic |
| 4442 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4443 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4444 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4445 | if test -z "$INSTALL"; then |
| 4446 | if test "${ac_cv_path_install+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4448 | else |
| 4449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4450 | for as_dir in $PATH |
| 4451 | do |
| 4452 | IFS=$as_save_IFS |
| 4453 | test -z "$as_dir" && as_dir=. |
| 4454 | # Account for people who put trailing slashes in PATH elements. |
| 4455 | case $as_dir/ in |
| 4456 | ./ | .// | /cC/* | \ |
| 4457 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4458 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4459 | /usr/ucb/* ) ;; |
| 4460 | *) |
| 4461 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4462 | # Don't use installbsd from OSF since it installs stuff as root |
| 4463 | # by default. |
| 4464 | for ac_prog in ginstall scoinst install; do |
| 4465 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4466 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 4467 | if test $ac_prog = install && |
| 4468 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4469 | # AIX install. It has an incompatible calling convention. |
| 4470 | : |
| 4471 | elif test $ac_prog = install && |
| 4472 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4473 | # program-specific install script used by HP pwplus--don't use. |
| 4474 | : |
| 4475 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4476 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4477 | break 3 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4478 | fi |
| 4479 | fi |
| 4480 | done |
| 4481 | done |
| 4482 | ;; |
| 4483 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4484 | done |
| 4485 | IFS=$as_save_IFS |
| 4486 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4487 | |
| 4488 | fi |
| 4489 | if test "${ac_cv_path_install+set}" = set; then |
| 4490 | INSTALL=$ac_cv_path_install |
| 4491 | else |
| 4492 | # As a last resort, use the slow shell script. Don't cache a |
| 4493 | # value for INSTALL within a source directory, because that will |
| 4494 | # break other packages using the cache if that directory is |
| 4495 | # removed, or if the value is a relative name. |
| 4496 | INSTALL=$ac_install_sh |
| 4497 | fi |
| 4498 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4499 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4500 | echo "${ECHO_T}$INSTALL" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4501 | |
| 4502 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4503 | # It thinks the first close brace ends the variable substitution. |
| 4504 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4505 | |
| 4506 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4507 | |
| 4508 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4509 | |
| 4510 | |
| 4511 | # Not every filesystem supports hard links |
| 4512 | |
| 4513 | if test -z "$LN" ; then |
| 4514 | case $ac_sys_system in |
| 4515 | BeOS*) LN="ln -s";; |
| 4516 | CYGWIN*) LN="ln -s";; |
| 4517 | atheos*) LN="ln -s";; |
| 4518 | *) LN=ln;; |
| 4519 | esac |
| 4520 | fi |
| 4521 | |
| 4522 | # Check for --with-pydebug |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4523 | { echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 4524 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4525 | |
| 4526 | # Check whether --with-pydebug was given. |
| 4527 | if test "${with_pydebug+set}" = set; then |
| 4528 | withval=$with_pydebug; |
| 4529 | if test "$withval" != no |
| 4530 | then |
| 4531 | |
| 4532 | cat >>confdefs.h <<\_ACEOF |
| 4533 | #define Py_DEBUG 1 |
| 4534 | _ACEOF |
| 4535 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4536 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4537 | echo "${ECHO_T}yes" >&6; }; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4538 | Py_DEBUG='true' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4539 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 4540 | echo "${ECHO_T}no" >&6; }; Py_DEBUG='false' |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4541 | fi |
| 4542 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4543 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4544 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4545 | fi |
| 4546 | |
| 4547 | |
| 4548 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 4549 | # merged with this chunk of code? |
| 4550 | |
| 4551 | # Optimizer/debugger flags |
| 4552 | # ------------------------ |
| 4553 | # (The following bit of code is complicated enough - please keep things |
| 4554 | # indented properly. Just pretend you're editing Python code. ;-) |
| 4555 | |
| 4556 | # There are two parallel sets of case statements below, one that checks to |
| 4557 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 4558 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 4559 | # user set OPT. |
| 4560 | |
| 4561 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 4562 | # it on the command line |
| 4563 | |
| 4564 | if test -z "$OPT" |
| 4565 | then |
| 4566 | case $GCC in |
| 4567 | yes) |
| 4568 | if test "$CC" != 'g++' ; then |
| 4569 | STRICT_PROTO="-Wstrict-prototypes" |
| 4570 | fi |
| 4571 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 4572 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 4573 | WRAP="-fwrapv" |
| 4574 | fi |
| 4575 | case $ac_cv_prog_cc_g in |
| 4576 | yes) |
| 4577 | if test "$Py_DEBUG" = 'true' ; then |
| 4578 | # Optimization messes up debuggers, so turn it off for |
| 4579 | # debug builds. |
| 4580 | OPT="-g -Wall $STRICT_PROTO" |
| 4581 | else |
| 4582 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 4583 | fi |
| 4584 | ;; |
| 4585 | *) |
| 4586 | OPT="-O3 -Wall $STRICT_PROTO" |
| 4587 | ;; |
| 4588 | esac |
| 4589 | case $ac_sys_system in |
| 4590 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 4591 | ;; |
| 4592 | esac |
| 4593 | ;; |
| 4594 | |
| 4595 | *) |
| 4596 | OPT="-O" |
| 4597 | ;; |
| 4598 | esac |
| 4599 | |
| 4600 | # The current (beta) Monterey compiler dies with optimizations |
| 4601 | # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this? |
| 4602 | case $ac_sys_system in |
| 4603 | Monterey*) |
| 4604 | OPT="" |
| 4605 | ;; |
| 4606 | esac |
| 4607 | |
| 4608 | fi |
| 4609 | |
| 4610 | |
| 4611 | |
| 4612 | # The -arch flags for universal builds on OSX |
| 4613 | UNIVERSAL_ARCH_FLAGS= |
| 4614 | |
| 4615 | |
| 4616 | # tweak BASECFLAGS based on compiler and platform |
| 4617 | case $GCC in |
| 4618 | yes) |
| 4619 | # Python violates C99 rules, by casting between incompatible |
| 4620 | # pointer types. GCC may generate bad code as a result of that, |
| 4621 | # so use -fno-strict-aliasing if supported. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4622 | { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 4623 | 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] | 4624 | ac_save_cc="$CC" |
| 4625 | CC="$CC -fno-strict-aliasing" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4626 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4627 | ac_cv_no_strict_aliasing_ok=no |
| 4628 | else |
| 4629 | cat >conftest.$ac_ext <<_ACEOF |
| 4630 | /* confdefs.h. */ |
| 4631 | _ACEOF |
| 4632 | cat confdefs.h >>conftest.$ac_ext |
| 4633 | cat >>conftest.$ac_ext <<_ACEOF |
| 4634 | /* end confdefs.h. */ |
| 4635 | int main() { return 0; } |
| 4636 | _ACEOF |
| 4637 | rm -f conftest$ac_exeext |
| 4638 | if { (ac_try="$ac_link" |
| 4639 | case "(($ac_try" in |
| 4640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4641 | *) ac_try_echo=$ac_try;; |
| 4642 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4644 | (eval "$ac_link") 2>&5 |
| 4645 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4647 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4648 | { (case "(($ac_try" in |
| 4649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4650 | *) ac_try_echo=$ac_try;; |
| 4651 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4653 | (eval "$ac_try") 2>&5 |
| 4654 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4656 | (exit $ac_status); }; }; then |
| 4657 | ac_cv_no_strict_aliasing_ok=yes |
| 4658 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4659 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4660 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4662 | |
| 4663 | ( exit $ac_status ) |
| 4664 | ac_cv_no_strict_aliasing_ok=no |
| 4665 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4666 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4667 | fi |
| 4668 | |
| 4669 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4670 | CC="$ac_save_cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4671 | { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 4672 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4673 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 4674 | then |
| 4675 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 4676 | fi |
| 4677 | |
| 4678 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 4679 | # support. Without this, treatment of subnormals doesn't follow |
| 4680 | # the standard. |
| 4681 | case $ac_sys_machine in |
| 4682 | alpha*) |
| 4683 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4684 | ;; |
| 4685 | esac |
| 4686 | |
| 4687 | case $ac_sys_system in |
| 4688 | SCO_SV*) |
| 4689 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 4690 | ;; |
| 4691 | # is there any other compiler on Darwin besides gcc? |
| 4692 | Darwin*) |
| 4693 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 4694 | # used to be here, but non-Apple gcc doesn't accept them. |
| 4695 | |
| 4696 | |
| 4697 | if test "${enable_universalsdk}"; then |
| 4698 | UNIVERSAL_ARCH_FLAGS="" |
| 4699 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
| 4700 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 4701 | ARCH_RUN_32BIT="" |
| 4702 | |
| 4703 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
| 4704 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 4705 | |
| 4706 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
| 4707 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 4708 | ARCH_RUN_32BIT="arch -i386 -ppc" |
| 4709 | |
| 4710 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4711 | { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5 |
| 4712 | echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4713 | { (exit 1); exit 1; }; } |
| 4714 | |
| 4715 | fi |
| 4716 | |
| 4717 | |
| 4718 | BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" |
| 4719 | tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4720 | if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then |
| 4721 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 4722 | fi |
| 4723 | fi |
| 4724 | |
| 4725 | # Calculate the right deployment target for this build. |
| 4726 | # |
| 4727 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4728 | if test ${cur_target} '>' 10.2; then |
| 4729 | cur_target=10.3 |
| 4730 | fi |
| 4731 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 4732 | # Ensure that the default platform for a 4-way |
| 4733 | # universal build is OSX 10.5, that's the first |
| 4734 | # OS release where 4-way builds make sense. |
| 4735 | cur_target='10.5' |
| 4736 | fi |
| 4737 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 4738 | |
| 4739 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 4740 | # environment with a value that is the same as what we'll use |
| 4741 | # in the Makefile to ensure that we'll get the same compiler |
| 4742 | # environment during configure and build time. |
| 4743 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 4744 | export MACOSX_DEPLOYMENT_TARGET |
| 4745 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 4746 | |
| 4747 | ;; |
| 4748 | OSF*) |
| 4749 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4750 | ;; |
| 4751 | esac |
| 4752 | ;; |
| 4753 | |
| 4754 | *) |
| 4755 | case $ac_sys_system in |
| 4756 | OpenUNIX*|UnixWare*) |
| 4757 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 4758 | ;; |
| 4759 | OSF*) |
| 4760 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 4761 | ;; |
| 4762 | SCO_SV*) |
| 4763 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 4764 | ;; |
| 4765 | esac |
| 4766 | ;; |
| 4767 | esac |
| 4768 | |
| 4769 | if test "$Py_DEBUG" = 'true'; then |
| 4770 | : |
| 4771 | else |
| 4772 | OPT="-DNDEBUG $OPT" |
| 4773 | fi |
| 4774 | |
| 4775 | if test "$ac_arch_flags" |
| 4776 | then |
| 4777 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 4778 | fi |
| 4779 | |
| 4780 | # disable check for icc since it seems to pass, but generates a warning |
| 4781 | if test "$CC" = icc |
| 4782 | then |
| 4783 | ac_cv_opt_olimit_ok=no |
| 4784 | fi |
| 4785 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4786 | { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 4787 | 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] | 4788 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4790 | else |
| 4791 | ac_save_cc="$CC" |
| 4792 | CC="$CC -OPT:Olimit=0" |
| 4793 | if test "$cross_compiling" = yes; then |
| 4794 | ac_cv_opt_olimit_ok=no |
| 4795 | else |
| 4796 | cat >conftest.$ac_ext <<_ACEOF |
| 4797 | /* confdefs.h. */ |
| 4798 | _ACEOF |
| 4799 | cat confdefs.h >>conftest.$ac_ext |
| 4800 | cat >>conftest.$ac_ext <<_ACEOF |
| 4801 | /* end confdefs.h. */ |
| 4802 | int main() { return 0; } |
| 4803 | _ACEOF |
| 4804 | rm -f conftest$ac_exeext |
| 4805 | if { (ac_try="$ac_link" |
| 4806 | case "(($ac_try" in |
| 4807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4808 | *) ac_try_echo=$ac_try;; |
| 4809 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4811 | (eval "$ac_link") 2>&5 |
| 4812 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4814 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4815 | { (case "(($ac_try" in |
| 4816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4817 | *) ac_try_echo=$ac_try;; |
| 4818 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4820 | (eval "$ac_try") 2>&5 |
| 4821 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4823 | (exit $ac_status); }; }; then |
| 4824 | ac_cv_opt_olimit_ok=yes |
| 4825 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4826 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4827 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4829 | |
| 4830 | ( exit $ac_status ) |
| 4831 | ac_cv_opt_olimit_ok=no |
| 4832 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4833 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4834 | fi |
| 4835 | |
| 4836 | |
| 4837 | CC="$ac_save_cc" |
| 4838 | fi |
| 4839 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4840 | { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 4841 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4842 | if test $ac_cv_opt_olimit_ok = yes; then |
| 4843 | case $ac_sys_system in |
| 4844 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 4845 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 4846 | # environment? |
| 4847 | Darwin*) |
| 4848 | ;; |
| 4849 | *) |
| 4850 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 4851 | ;; |
| 4852 | esac |
| 4853 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4854 | { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 4855 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4856 | if test "${ac_cv_olimit_ok+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4858 | else |
| 4859 | ac_save_cc="$CC" |
| 4860 | CC="$CC -Olimit 1500" |
| 4861 | if test "$cross_compiling" = yes; then |
| 4862 | ac_cv_olimit_ok=no |
| 4863 | else |
| 4864 | cat >conftest.$ac_ext <<_ACEOF |
| 4865 | /* confdefs.h. */ |
| 4866 | _ACEOF |
| 4867 | cat confdefs.h >>conftest.$ac_ext |
| 4868 | cat >>conftest.$ac_ext <<_ACEOF |
| 4869 | /* end confdefs.h. */ |
| 4870 | int main() { return 0; } |
| 4871 | _ACEOF |
| 4872 | rm -f conftest$ac_exeext |
| 4873 | if { (ac_try="$ac_link" |
| 4874 | case "(($ac_try" in |
| 4875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4876 | *) ac_try_echo=$ac_try;; |
| 4877 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4879 | (eval "$ac_link") 2>&5 |
| 4880 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4882 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4883 | { (case "(($ac_try" in |
| 4884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4885 | *) ac_try_echo=$ac_try;; |
| 4886 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4888 | (eval "$ac_try") 2>&5 |
| 4889 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4891 | (exit $ac_status); }; }; then |
| 4892 | ac_cv_olimit_ok=yes |
| 4893 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4894 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4895 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4897 | |
| 4898 | ( exit $ac_status ) |
| 4899 | ac_cv_olimit_ok=no |
| 4900 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4901 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4902 | fi |
| 4903 | |
| 4904 | |
| 4905 | CC="$ac_save_cc" |
| 4906 | fi |
| 4907 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4908 | { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4909 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4910 | if test $ac_cv_olimit_ok = yes; then |
| 4911 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
| 4912 | fi |
| 4913 | fi |
| 4914 | |
| 4915 | # Check whether GCC supports PyArg_ParseTuple format |
| 4916 | if test "$GCC" = "yes" |
| 4917 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4918 | { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 4919 | echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4920 | save_CFLAGS=$CFLAGS |
| 4921 | CFLAGS="$CFLAGS -Werror" |
| 4922 | cat >conftest.$ac_ext <<_ACEOF |
| 4923 | /* confdefs.h. */ |
| 4924 | _ACEOF |
| 4925 | cat confdefs.h >>conftest.$ac_ext |
| 4926 | cat >>conftest.$ac_ext <<_ACEOF |
| 4927 | /* end confdefs.h. */ |
| 4928 | |
| 4929 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 4930 | |
| 4931 | int |
| 4932 | main () |
| 4933 | { |
| 4934 | |
| 4935 | ; |
| 4936 | return 0; |
| 4937 | } |
| 4938 | _ACEOF |
| 4939 | rm -f conftest.$ac_objext |
| 4940 | if { (ac_try="$ac_compile" |
| 4941 | case "(($ac_try" in |
| 4942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4943 | *) ac_try_echo=$ac_try;; |
| 4944 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4946 | (eval "$ac_compile") 2>conftest.er1 |
| 4947 | ac_status=$? |
| 4948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4949 | rm -f conftest.er1 |
| 4950 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4952 | (exit $ac_status); } && { |
| 4953 | test -z "$ac_c_werror_flag" || |
| 4954 | test ! -s conftest.err |
| 4955 | } && test -s conftest.$ac_objext; then |
| 4956 | |
| 4957 | cat >>confdefs.h <<\_ACEOF |
| 4958 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 4959 | _ACEOF |
| 4960 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4961 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4962 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4963 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4964 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4966 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4967 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4968 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4969 | |
| 4970 | fi |
| 4971 | |
| 4972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4973 | CFLAGS=$save_CFLAGS |
| 4974 | fi |
| 4975 | |
| 4976 | # On some compilers, pthreads are available without further options |
| 4977 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 4978 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 4979 | # So we have to see first whether pthreads are available without |
| 4980 | # options before we can check whether -Kpthread improves anything. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4981 | { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 4982 | 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] | 4983 | if test "${ac_cv_pthread_is_default+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 4984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4985 | else |
| 4986 | if test "$cross_compiling" = yes; then |
| 4987 | ac_cv_pthread_is_default=no |
| 4988 | else |
| 4989 | cat >conftest.$ac_ext <<_ACEOF |
| 4990 | /* confdefs.h. */ |
| 4991 | _ACEOF |
| 4992 | cat confdefs.h >>conftest.$ac_ext |
| 4993 | cat >>conftest.$ac_ext <<_ACEOF |
| 4994 | /* end confdefs.h. */ |
| 4995 | |
| 4996 | #include <pthread.h> |
| 4997 | |
| 4998 | void* routine(void* p){return NULL;} |
| 4999 | |
| 5000 | int main(){ |
| 5001 | pthread_t p; |
| 5002 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5003 | return 1; |
| 5004 | (void)pthread_detach(p); |
| 5005 | return 0; |
| 5006 | } |
| 5007 | |
| 5008 | _ACEOF |
| 5009 | rm -f conftest$ac_exeext |
| 5010 | if { (ac_try="$ac_link" |
| 5011 | case "(($ac_try" in |
| 5012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5013 | *) ac_try_echo=$ac_try;; |
| 5014 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5016 | (eval "$ac_link") 2>&5 |
| 5017 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5019 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5020 | { (case "(($ac_try" in |
| 5021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5022 | *) ac_try_echo=$ac_try;; |
| 5023 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5025 | (eval "$ac_try") 2>&5 |
| 5026 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5028 | (exit $ac_status); }; }; then |
| 5029 | |
| 5030 | ac_cv_pthread_is_default=yes |
| 5031 | ac_cv_kthread=no |
| 5032 | ac_cv_pthread=no |
| 5033 | |
| 5034 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5035 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5036 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5038 | |
| 5039 | ( exit $ac_status ) |
| 5040 | ac_cv_pthread_is_default=no |
| 5041 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5042 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5043 | fi |
| 5044 | |
| 5045 | |
| 5046 | |
| 5047 | fi |
| 5048 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5049 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 5050 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5051 | |
| 5052 | |
| 5053 | if test $ac_cv_pthread_is_default = yes |
| 5054 | then |
| 5055 | ac_cv_kpthread=no |
| 5056 | else |
| 5057 | # -Kpthread, if available, provides the right #defines |
| 5058 | # and linker options to make pthread_create available |
| 5059 | # Some compilers won't report that they do not support -Kpthread, |
| 5060 | # so we need to run a program to see whether it really made the |
| 5061 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5062 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 5063 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5064 | if test "${ac_cv_kpthread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5066 | else |
| 5067 | ac_save_cc="$CC" |
| 5068 | CC="$CC -Kpthread" |
| 5069 | if test "$cross_compiling" = yes; then |
| 5070 | ac_cv_kpthread=no |
| 5071 | else |
| 5072 | cat >conftest.$ac_ext <<_ACEOF |
| 5073 | /* confdefs.h. */ |
| 5074 | _ACEOF |
| 5075 | cat confdefs.h >>conftest.$ac_ext |
| 5076 | cat >>conftest.$ac_ext <<_ACEOF |
| 5077 | /* end confdefs.h. */ |
| 5078 | |
| 5079 | #include <pthread.h> |
| 5080 | |
| 5081 | void* routine(void* p){return NULL;} |
| 5082 | |
| 5083 | int main(){ |
| 5084 | pthread_t p; |
| 5085 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5086 | return 1; |
| 5087 | (void)pthread_detach(p); |
| 5088 | return 0; |
| 5089 | } |
| 5090 | |
| 5091 | _ACEOF |
| 5092 | rm -f conftest$ac_exeext |
| 5093 | if { (ac_try="$ac_link" |
| 5094 | case "(($ac_try" in |
| 5095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5096 | *) ac_try_echo=$ac_try;; |
| 5097 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5099 | (eval "$ac_link") 2>&5 |
| 5100 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5102 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5103 | { (case "(($ac_try" in |
| 5104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5105 | *) ac_try_echo=$ac_try;; |
| 5106 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5108 | (eval "$ac_try") 2>&5 |
| 5109 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5111 | (exit $ac_status); }; }; then |
| 5112 | ac_cv_kpthread=yes |
| 5113 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5114 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5115 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5116 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5117 | |
| 5118 | ( exit $ac_status ) |
| 5119 | ac_cv_kpthread=no |
| 5120 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5121 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5122 | fi |
| 5123 | |
| 5124 | |
| 5125 | CC="$ac_save_cc" |
| 5126 | fi |
| 5127 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5128 | { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 5129 | echo "${ECHO_T}$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5130 | fi |
| 5131 | |
| 5132 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 5133 | then |
| 5134 | # -Kthread, if available, provides the right #defines |
| 5135 | # and linker options to make pthread_create available |
| 5136 | # Some compilers won't report that they do not support -Kthread, |
| 5137 | # so we need to run a program to see whether it really made the |
| 5138 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5139 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 5140 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5141 | if test "${ac_cv_kthread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5143 | else |
| 5144 | ac_save_cc="$CC" |
| 5145 | CC="$CC -Kthread" |
| 5146 | if test "$cross_compiling" = yes; then |
| 5147 | ac_cv_kthread=no |
| 5148 | else |
| 5149 | cat >conftest.$ac_ext <<_ACEOF |
| 5150 | /* confdefs.h. */ |
| 5151 | _ACEOF |
| 5152 | cat confdefs.h >>conftest.$ac_ext |
| 5153 | cat >>conftest.$ac_ext <<_ACEOF |
| 5154 | /* end confdefs.h. */ |
| 5155 | |
| 5156 | #include <pthread.h> |
| 5157 | |
| 5158 | void* routine(void* p){return NULL;} |
| 5159 | |
| 5160 | int main(){ |
| 5161 | pthread_t p; |
| 5162 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5163 | return 1; |
| 5164 | (void)pthread_detach(p); |
| 5165 | return 0; |
| 5166 | } |
| 5167 | |
| 5168 | _ACEOF |
| 5169 | rm -f conftest$ac_exeext |
| 5170 | if { (ac_try="$ac_link" |
| 5171 | case "(($ac_try" in |
| 5172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5173 | *) ac_try_echo=$ac_try;; |
| 5174 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5176 | (eval "$ac_link") 2>&5 |
| 5177 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5179 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5180 | { (case "(($ac_try" in |
| 5181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5182 | *) ac_try_echo=$ac_try;; |
| 5183 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5185 | (eval "$ac_try") 2>&5 |
| 5186 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5188 | (exit $ac_status); }; }; then |
| 5189 | ac_cv_kthread=yes |
| 5190 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5191 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5192 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5194 | |
| 5195 | ( exit $ac_status ) |
| 5196 | ac_cv_kthread=no |
| 5197 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5198 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5199 | fi |
| 5200 | |
| 5201 | |
| 5202 | CC="$ac_save_cc" |
| 5203 | fi |
| 5204 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5205 | { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 5206 | echo "${ECHO_T}$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5207 | fi |
| 5208 | |
| 5209 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 5210 | then |
| 5211 | # -pthread, if available, provides the right #defines |
| 5212 | # and linker options to make pthread_create available |
| 5213 | # Some compilers won't report that they do not support -pthread, |
| 5214 | # so we need to run a program to see whether it really made the |
| 5215 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5216 | { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 5217 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5218 | if test "${ac_cv_thread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5220 | else |
| 5221 | ac_save_cc="$CC" |
| 5222 | CC="$CC -pthread" |
| 5223 | if test "$cross_compiling" = yes; then |
| 5224 | ac_cv_pthread=no |
| 5225 | else |
| 5226 | cat >conftest.$ac_ext <<_ACEOF |
| 5227 | /* confdefs.h. */ |
| 5228 | _ACEOF |
| 5229 | cat confdefs.h >>conftest.$ac_ext |
| 5230 | cat >>conftest.$ac_ext <<_ACEOF |
| 5231 | /* end confdefs.h. */ |
| 5232 | |
| 5233 | #include <pthread.h> |
| 5234 | |
| 5235 | void* routine(void* p){return NULL;} |
| 5236 | |
| 5237 | int main(){ |
| 5238 | pthread_t p; |
| 5239 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5240 | return 1; |
| 5241 | (void)pthread_detach(p); |
| 5242 | return 0; |
| 5243 | } |
| 5244 | |
| 5245 | _ACEOF |
| 5246 | rm -f conftest$ac_exeext |
| 5247 | if { (ac_try="$ac_link" |
| 5248 | case "(($ac_try" in |
| 5249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5250 | *) ac_try_echo=$ac_try;; |
| 5251 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5253 | (eval "$ac_link") 2>&5 |
| 5254 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5256 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5257 | { (case "(($ac_try" in |
| 5258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5259 | *) ac_try_echo=$ac_try;; |
| 5260 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5262 | (eval "$ac_try") 2>&5 |
| 5263 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5265 | (exit $ac_status); }; }; then |
| 5266 | ac_cv_pthread=yes |
| 5267 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5268 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5269 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5271 | |
| 5272 | ( exit $ac_status ) |
| 5273 | ac_cv_pthread=no |
| 5274 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5275 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5276 | fi |
| 5277 | |
| 5278 | |
| 5279 | CC="$ac_save_cc" |
| 5280 | fi |
| 5281 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5282 | { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 5283 | echo "${ECHO_T}$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5284 | fi |
| 5285 | |
| 5286 | # If we have set a CC compiler flag for thread support then |
| 5287 | # check if it works for CXX, too. |
| 5288 | ac_cv_cxx_thread=no |
| 5289 | if test ! -z "$CXX" |
| 5290 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5291 | { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 5292 | 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] | 5293 | ac_save_cxx="$CXX" |
| 5294 | |
| 5295 | if test "$ac_cv_kpthread" = "yes" |
| 5296 | then |
| 5297 | CXX="$CXX -Kpthread" |
| 5298 | ac_cv_cxx_thread=yes |
| 5299 | elif test "$ac_cv_kthread" = "yes" |
| 5300 | then |
| 5301 | CXX="$CXX -Kthread" |
| 5302 | ac_cv_cxx_thread=yes |
| 5303 | elif test "$ac_cv_pthread" = "yes" |
| 5304 | then |
| 5305 | CXX="$CXX -pthread" |
| 5306 | ac_cv_cxx_thread=yes |
| 5307 | fi |
| 5308 | |
| 5309 | if test $ac_cv_cxx_thread = yes |
| 5310 | then |
| 5311 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5312 | $CXX -c conftest.$ac_ext 2>&5 |
| 5313 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5314 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5315 | then |
| 5316 | ac_cv_cxx_thread=yes |
| 5317 | else |
| 5318 | ac_cv_cxx_thread=no |
| 5319 | fi |
| 5320 | rm -fr conftest* |
| 5321 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5322 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 5323 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5324 | fi |
| 5325 | CXX="$ac_save_cxx" |
| 5326 | |
| 5327 | |
| 5328 | # checks for header files |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5329 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5330 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5331 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5333 | else |
| 5334 | cat >conftest.$ac_ext <<_ACEOF |
| 5335 | /* confdefs.h. */ |
| 5336 | _ACEOF |
| 5337 | cat confdefs.h >>conftest.$ac_ext |
| 5338 | cat >>conftest.$ac_ext <<_ACEOF |
| 5339 | /* end confdefs.h. */ |
| 5340 | #include <stdlib.h> |
| 5341 | #include <stdarg.h> |
| 5342 | #include <string.h> |
| 5343 | #include <float.h> |
| 5344 | |
| 5345 | int |
| 5346 | main () |
| 5347 | { |
| 5348 | |
| 5349 | ; |
| 5350 | return 0; |
| 5351 | } |
| 5352 | _ACEOF |
| 5353 | rm -f conftest.$ac_objext |
| 5354 | if { (ac_try="$ac_compile" |
| 5355 | case "(($ac_try" in |
| 5356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5357 | *) ac_try_echo=$ac_try;; |
| 5358 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5360 | (eval "$ac_compile") 2>conftest.er1 |
| 5361 | ac_status=$? |
| 5362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5363 | rm -f conftest.er1 |
| 5364 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5366 | (exit $ac_status); } && { |
| 5367 | test -z "$ac_c_werror_flag" || |
| 5368 | test ! -s conftest.err |
| 5369 | } && test -s conftest.$ac_objext; then |
| 5370 | ac_cv_header_stdc=yes |
| 5371 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5372 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5374 | |
| 5375 | ac_cv_header_stdc=no |
| 5376 | fi |
| 5377 | |
| 5378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5379 | |
| 5380 | if test $ac_cv_header_stdc = yes; then |
| 5381 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5382 | cat >conftest.$ac_ext <<_ACEOF |
| 5383 | /* confdefs.h. */ |
| 5384 | _ACEOF |
| 5385 | cat confdefs.h >>conftest.$ac_ext |
| 5386 | cat >>conftest.$ac_ext <<_ACEOF |
| 5387 | /* end confdefs.h. */ |
| 5388 | #include <string.h> |
| 5389 | |
| 5390 | _ACEOF |
| 5391 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5392 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5393 | : |
| 5394 | else |
| 5395 | ac_cv_header_stdc=no |
| 5396 | fi |
| 5397 | rm -f conftest* |
| 5398 | |
| 5399 | fi |
| 5400 | |
| 5401 | if test $ac_cv_header_stdc = yes; then |
| 5402 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5403 | cat >conftest.$ac_ext <<_ACEOF |
| 5404 | /* confdefs.h. */ |
| 5405 | _ACEOF |
| 5406 | cat confdefs.h >>conftest.$ac_ext |
| 5407 | cat >>conftest.$ac_ext <<_ACEOF |
| 5408 | /* end confdefs.h. */ |
| 5409 | #include <stdlib.h> |
| 5410 | |
| 5411 | _ACEOF |
| 5412 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5413 | $EGREP "free" >/dev/null 2>&1; then |
| 5414 | : |
| 5415 | else |
| 5416 | ac_cv_header_stdc=no |
| 5417 | fi |
| 5418 | rm -f conftest* |
| 5419 | |
| 5420 | fi |
| 5421 | |
| 5422 | if test $ac_cv_header_stdc = yes; then |
| 5423 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5424 | if test "$cross_compiling" = yes; then |
| 5425 | : |
| 5426 | else |
| 5427 | cat >conftest.$ac_ext <<_ACEOF |
| 5428 | /* confdefs.h. */ |
| 5429 | _ACEOF |
| 5430 | cat confdefs.h >>conftest.$ac_ext |
| 5431 | cat >>conftest.$ac_ext <<_ACEOF |
| 5432 | /* end confdefs.h. */ |
| 5433 | #include <ctype.h> |
| 5434 | #include <stdlib.h> |
| 5435 | #if ((' ' & 0x0FF) == 0x020) |
| 5436 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5437 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5438 | #else |
| 5439 | # define ISLOWER(c) \ |
| 5440 | (('a' <= (c) && (c) <= 'i') \ |
| 5441 | || ('j' <= (c) && (c) <= 'r') \ |
| 5442 | || ('s' <= (c) && (c) <= 'z')) |
| 5443 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5444 | #endif |
| 5445 | |
| 5446 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5447 | int |
| 5448 | main () |
| 5449 | { |
| 5450 | int i; |
| 5451 | for (i = 0; i < 256; i++) |
| 5452 | if (XOR (islower (i), ISLOWER (i)) |
| 5453 | || toupper (i) != TOUPPER (i)) |
| 5454 | return 2; |
| 5455 | return 0; |
| 5456 | } |
| 5457 | _ACEOF |
| 5458 | rm -f conftest$ac_exeext |
| 5459 | if { (ac_try="$ac_link" |
| 5460 | case "(($ac_try" in |
| 5461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5462 | *) ac_try_echo=$ac_try;; |
| 5463 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5465 | (eval "$ac_link") 2>&5 |
| 5466 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5468 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5469 | { (case "(($ac_try" in |
| 5470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5471 | *) ac_try_echo=$ac_try;; |
| 5472 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5474 | (eval "$ac_try") 2>&5 |
| 5475 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5477 | (exit $ac_status); }; }; then |
| 5478 | : |
| 5479 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5480 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5481 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5483 | |
| 5484 | ( exit $ac_status ) |
| 5485 | ac_cv_header_stdc=no |
| 5486 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5487 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5488 | fi |
| 5489 | |
| 5490 | |
| 5491 | fi |
| 5492 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5493 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5494 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5495 | if test $ac_cv_header_stdc = yes; then |
| 5496 | |
| 5497 | cat >>confdefs.h <<\_ACEOF |
| 5498 | #define STDC_HEADERS 1 |
| 5499 | _ACEOF |
| 5500 | |
| 5501 | fi |
| 5502 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5503 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5504 | |
| 5505 | |
| 5506 | |
| 5507 | |
| 5508 | |
| 5509 | |
| 5510 | |
| 5511 | |
| 5512 | |
| 5513 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5514 | inttypes.h stdint.h unistd.h |
| 5515 | do |
| 5516 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5517 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5518 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5519 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5521 | else |
| 5522 | cat >conftest.$ac_ext <<_ACEOF |
| 5523 | /* confdefs.h. */ |
| 5524 | _ACEOF |
| 5525 | cat confdefs.h >>conftest.$ac_ext |
| 5526 | cat >>conftest.$ac_ext <<_ACEOF |
| 5527 | /* end confdefs.h. */ |
| 5528 | $ac_includes_default |
| 5529 | |
| 5530 | #include <$ac_header> |
| 5531 | _ACEOF |
| 5532 | rm -f conftest.$ac_objext |
| 5533 | if { (ac_try="$ac_compile" |
| 5534 | case "(($ac_try" in |
| 5535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5536 | *) ac_try_echo=$ac_try;; |
| 5537 | esac |
| 5538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5539 | (eval "$ac_compile") 2>conftest.er1 |
| 5540 | ac_status=$? |
| 5541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5542 | rm -f conftest.er1 |
| 5543 | cat conftest.err >&5 |
| 5544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5545 | (exit $ac_status); } && { |
| 5546 | test -z "$ac_c_werror_flag" || |
| 5547 | test ! -s conftest.err |
| 5548 | } && test -s conftest.$ac_objext; then |
| 5549 | eval "$as_ac_Header=yes" |
| 5550 | else |
| 5551 | echo "$as_me: failed program was:" >&5 |
| 5552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5553 | |
| 5554 | eval "$as_ac_Header=no" |
| 5555 | fi |
| 5556 | |
| 5557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5558 | fi |
| 5559 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5560 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5561 | echo "${ECHO_T}$ac_res" >&6; } |
| 5562 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5563 | cat >>confdefs.h <<_ACEOF |
| 5564 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5565 | _ACEOF |
| 5566 | |
| 5567 | fi |
| 5568 | |
| 5569 | done |
| 5570 | |
| 5571 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5572 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5573 | |
| 5574 | |
| 5575 | |
| 5576 | |
| 5577 | |
| 5578 | |
| 5579 | |
| 5580 | |
| 5581 | |
| 5582 | |
| 5583 | |
| 5584 | |
| 5585 | |
| 5586 | |
| 5587 | |
| 5588 | |
| 5589 | |
| 5590 | |
| 5591 | |
| 5592 | |
| 5593 | |
| 5594 | |
| 5595 | |
| 5596 | |
| 5597 | |
| 5598 | |
| 5599 | |
| 5600 | |
| 5601 | |
| 5602 | |
| 5603 | |
| 5604 | |
| 5605 | |
| 5606 | |
| 5607 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 5608 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 5609 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 5610 | |
Martin v. Löwis | 5f5d99c | 2006-05-16 07:05:37 +0000 | [diff] [blame] | 5611 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5612 | |
| 5613 | |
| 5614 | |
| 5615 | |
| 5616 | |
| 5617 | |
| 5618 | |
| 5619 | |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 5620 | |
Christian Heimes | fb2d25a | 2008-01-07 16:12:44 +0000 | [diff] [blame] | 5621 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5622 | |
| 5623 | |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5624 | |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 5625 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5626 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 5627 | fcntl.h grp.h \ |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5628 | 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] | 5629 | 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] | 5630 | unistd.h utime.h \ |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5631 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 5632 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5633 | 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] | 5634 | sys/termio.h sys/time.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5635 | 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] | 5636 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Christian Heimes | fb2d25a | 2008-01-07 16:12:44 +0000 | [diff] [blame] | 5637 | bluetooth/bluetooth.h linux/tipc.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5638 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5639 | 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] | 5640 | 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^] | 5641 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5642 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5643 | 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^] | 5644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5645 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5646 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5647 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5648 | echo "${ECHO_T}$ac_res" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5649 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5650 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5651 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5652 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5653 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5654 | /* confdefs.h. */ |
| 5655 | _ACEOF |
| 5656 | cat confdefs.h >>conftest.$ac_ext |
| 5657 | cat >>conftest.$ac_ext <<_ACEOF |
| 5658 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5659 | $ac_includes_default |
| 5660 | #include <$ac_header> |
| 5661 | _ACEOF |
| 5662 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5663 | if { (ac_try="$ac_compile" |
| 5664 | case "(($ac_try" in |
| 5665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5666 | *) ac_try_echo=$ac_try;; |
| 5667 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5669 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5670 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5672 | rm -f conftest.er1 |
| 5673 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5675 | (exit $ac_status); } && { |
| 5676 | test -z "$ac_c_werror_flag" || |
| 5677 | test ! -s conftest.err |
| 5678 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5679 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5680 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5681 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5683 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5684 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5685 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5686 | |
| 5687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5688 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5689 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5690 | |
| 5691 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5692 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5693 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5694 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5695 | /* confdefs.h. */ |
| 5696 | _ACEOF |
| 5697 | cat confdefs.h >>conftest.$ac_ext |
| 5698 | cat >>conftest.$ac_ext <<_ACEOF |
| 5699 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5700 | #include <$ac_header> |
| 5701 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5702 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5703 | case "(($ac_try" in |
| 5704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5705 | *) ac_try_echo=$ac_try;; |
| 5706 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5708 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5709 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5710 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5711 | rm -f conftest.er1 |
| 5712 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5714 | (exit $ac_status); } >/dev/null && { |
| 5715 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5716 | test ! -s conftest.err |
| 5717 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5718 | ac_header_preproc=yes |
| 5719 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5720 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5722 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5723 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5724 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5726 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5727 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5728 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5729 | |
| 5730 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5731 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5732 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5733 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5734 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5735 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5736 | 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] | 5737 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5738 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5739 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5740 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5741 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5742 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5743 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5744 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5745 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5746 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5747 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5748 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5749 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5750 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5751 | 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] | 5752 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 5753 | ## -------------------------------------- ## |
| 5754 | ## Report this to http://bugs.python.org/ ## |
| 5755 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5756 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5757 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5758 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5759 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5760 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5761 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5762 | 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^] | 5763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5764 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5765 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5766 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5767 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5768 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5769 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5770 | |
| 5771 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5772 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5773 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5774 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5775 | _ACEOF |
| 5776 | |
| 5777 | fi |
| 5778 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5779 | done |
| 5780 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5781 | |
| 5782 | |
| 5783 | |
| 5784 | |
| 5785 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5786 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5787 | 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^] | 5788 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 5789 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 5790 | 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] | 5791 | 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^] | 5792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5793 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5794 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5795 | /* confdefs.h. */ |
| 5796 | _ACEOF |
| 5797 | cat confdefs.h >>conftest.$ac_ext |
| 5798 | cat >>conftest.$ac_ext <<_ACEOF |
| 5799 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5800 | #include <sys/types.h> |
| 5801 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5802 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5803 | int |
| 5804 | main () |
| 5805 | { |
| 5806 | if ((DIR *) 0) |
| 5807 | return 0; |
| 5808 | ; |
| 5809 | return 0; |
| 5810 | } |
| 5811 | _ACEOF |
| 5812 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5813 | if { (ac_try="$ac_compile" |
| 5814 | case "(($ac_try" in |
| 5815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5816 | *) ac_try_echo=$ac_try;; |
| 5817 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5819 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5820 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5822 | rm -f conftest.er1 |
| 5823 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5825 | (exit $ac_status); } && { |
| 5826 | test -z "$ac_c_werror_flag" || |
| 5827 | test ! -s conftest.err |
| 5828 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5829 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5830 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5831 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5833 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5834 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5835 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5836 | |
| 5837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5838 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5839 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5840 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5841 | echo "${ECHO_T}$ac_res" >&6; } |
| 5842 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5843 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5844 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5845 | _ACEOF |
| 5846 | |
| 5847 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5848 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5849 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5850 | done |
| 5851 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 5852 | if test $ac_header_dirent = dirent.h; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5853 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5854 | 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] | 5855 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5857 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5858 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5859 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5860 | /* confdefs.h. */ |
| 5861 | _ACEOF |
| 5862 | cat confdefs.h >>conftest.$ac_ext |
| 5863 | cat >>conftest.$ac_ext <<_ACEOF |
| 5864 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5865 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5866 | /* Override any GCC internal prototype to avoid an error. |
| 5867 | Use char because int might match the return type of a GCC |
| 5868 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5869 | #ifdef __cplusplus |
| 5870 | extern "C" |
| 5871 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5872 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5873 | int |
| 5874 | main () |
| 5875 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5876 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5877 | ; |
| 5878 | return 0; |
| 5879 | } |
| 5880 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5881 | for ac_lib in '' dir; do |
| 5882 | if test -z "$ac_lib"; then |
| 5883 | ac_res="none required" |
| 5884 | else |
| 5885 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5886 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5887 | fi |
| 5888 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5889 | if { (ac_try="$ac_link" |
| 5890 | case "(($ac_try" in |
| 5891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5892 | *) ac_try_echo=$ac_try;; |
| 5893 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5895 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5896 | ac_status=$? |
| 5897 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5898 | rm -f conftest.er1 |
| 5899 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5901 | (exit $ac_status); } && { |
| 5902 | test -z "$ac_c_werror_flag" || |
| 5903 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5904 | } && test -s conftest$ac_exeext && |
| 5905 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5906 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5907 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5908 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5910 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5911 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5912 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5913 | |
| 5914 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5915 | conftest$ac_exeext |
| 5916 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5917 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5918 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5919 | done |
| 5920 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5921 | : |
| 5922 | else |
| 5923 | ac_cv_search_opendir=no |
| 5924 | fi |
| 5925 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5926 | LIBS=$ac_func_search_save_LIBS |
| 5927 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5928 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5929 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5930 | ac_res=$ac_cv_search_opendir |
| 5931 | if test "$ac_res" != no; then |
| 5932 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5933 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5934 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5935 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5936 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5937 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5938 | 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] | 5939 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5941 | else |
| 5942 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5943 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5944 | /* confdefs.h. */ |
| 5945 | _ACEOF |
| 5946 | cat confdefs.h >>conftest.$ac_ext |
| 5947 | cat >>conftest.$ac_ext <<_ACEOF |
| 5948 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5949 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5950 | /* Override any GCC internal prototype to avoid an error. |
| 5951 | Use char because int might match the return type of a GCC |
| 5952 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5953 | #ifdef __cplusplus |
| 5954 | extern "C" |
| 5955 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5956 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5957 | int |
| 5958 | main () |
| 5959 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5960 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5961 | ; |
| 5962 | return 0; |
| 5963 | } |
| 5964 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5965 | for ac_lib in '' x; do |
| 5966 | if test -z "$ac_lib"; then |
| 5967 | ac_res="none required" |
| 5968 | else |
| 5969 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5970 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5971 | fi |
| 5972 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5973 | if { (ac_try="$ac_link" |
| 5974 | case "(($ac_try" in |
| 5975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5976 | *) ac_try_echo=$ac_try;; |
| 5977 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5979 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5980 | ac_status=$? |
| 5981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5982 | rm -f conftest.er1 |
| 5983 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5985 | (exit $ac_status); } && { |
| 5986 | test -z "$ac_c_werror_flag" || |
| 5987 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5988 | } && test -s conftest$ac_exeext && |
| 5989 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5990 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5991 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 5992 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5994 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5995 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5996 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5997 | |
| 5998 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5999 | conftest$ac_exeext |
| 6000 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6001 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6002 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6003 | done |
| 6004 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6005 | : |
| 6006 | else |
| 6007 | ac_cv_search_opendir=no |
| 6008 | fi |
| 6009 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6010 | LIBS=$ac_func_search_save_LIBS |
| 6011 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6012 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6013 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6014 | ac_res=$ac_cv_search_opendir |
| 6015 | if test "$ac_res" != no; then |
| 6016 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6017 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6018 | fi |
| 6019 | |
| 6020 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6021 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6022 | { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 6023 | 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] | 6024 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6026 | else |
| 6027 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6028 | /* confdefs.h. */ |
| 6029 | _ACEOF |
| 6030 | cat confdefs.h >>conftest.$ac_ext |
| 6031 | cat >>conftest.$ac_ext <<_ACEOF |
| 6032 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6033 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6034 | int |
| 6035 | main () |
| 6036 | { |
| 6037 | return makedev(0, 0); |
| 6038 | ; |
| 6039 | return 0; |
| 6040 | } |
| 6041 | _ACEOF |
| 6042 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6043 | if { (ac_try="$ac_link" |
| 6044 | case "(($ac_try" in |
| 6045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6046 | *) ac_try_echo=$ac_try;; |
| 6047 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6049 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6050 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6052 | rm -f conftest.er1 |
| 6053 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6055 | (exit $ac_status); } && { |
| 6056 | test -z "$ac_c_werror_flag" || |
| 6057 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6058 | } && test -s conftest$ac_exeext && |
| 6059 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6060 | ac_cv_header_sys_types_h_makedev=yes |
| 6061 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6062 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6064 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6065 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6066 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6067 | |
| 6068 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6069 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6070 | |
| 6071 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6072 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 6073 | 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] | 6074 | |
| 6075 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 6076 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6077 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6078 | 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] | 6079 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6081 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6082 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6083 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6084 | else |
| 6085 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6086 | { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 6087 | 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] | 6088 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6089 | /* confdefs.h. */ |
| 6090 | _ACEOF |
| 6091 | cat confdefs.h >>conftest.$ac_ext |
| 6092 | cat >>conftest.$ac_ext <<_ACEOF |
| 6093 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6094 | $ac_includes_default |
| 6095 | #include <sys/mkdev.h> |
| 6096 | _ACEOF |
| 6097 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6098 | if { (ac_try="$ac_compile" |
| 6099 | case "(($ac_try" in |
| 6100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6101 | *) ac_try_echo=$ac_try;; |
| 6102 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6104 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6105 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6107 | rm -f conftest.er1 |
| 6108 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6110 | (exit $ac_status); } && { |
| 6111 | test -z "$ac_c_werror_flag" || |
| 6112 | test ! -s conftest.err |
| 6113 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6114 | ac_header_compiler=yes |
| 6115 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6116 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6118 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6119 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6120 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6121 | |
| 6122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6123 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6124 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6125 | |
| 6126 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6127 | { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 6128 | 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] | 6129 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6130 | /* confdefs.h. */ |
| 6131 | _ACEOF |
| 6132 | cat confdefs.h >>conftest.$ac_ext |
| 6133 | cat >>conftest.$ac_ext <<_ACEOF |
| 6134 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6135 | #include <sys/mkdev.h> |
| 6136 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6137 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6138 | case "(($ac_try" in |
| 6139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6140 | *) ac_try_echo=$ac_try;; |
| 6141 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6143 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6144 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6145 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6146 | rm -f conftest.er1 |
| 6147 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6149 | (exit $ac_status); } >/dev/null && { |
| 6150 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6151 | test ! -s conftest.err |
| 6152 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6153 | ac_header_preproc=yes |
| 6154 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6155 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6157 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6158 | ac_header_preproc=no |
| 6159 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6160 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6161 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6162 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6163 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6164 | |
| 6165 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6166 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6167 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6168 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6169 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6170 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 6171 | 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] | 6172 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6173 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6174 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6175 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 6176 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 6177 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 6178 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 6179 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 6180 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 6181 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6182 | echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6183 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 6184 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 6185 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 6186 | 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] | 6187 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6188 | ## -------------------------------------- ## |
| 6189 | ## Report this to http://bugs.python.org/ ## |
| 6190 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6191 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6192 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6193 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6194 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6195 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6196 | 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] | 6197 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6199 | else |
| 6200 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 6201 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6202 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6203 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6204 | |
| 6205 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6206 | if test $ac_cv_header_sys_mkdev_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6207 | |
| 6208 | cat >>confdefs.h <<\_ACEOF |
| 6209 | #define MAJOR_IN_MKDEV 1 |
| 6210 | _ACEOF |
| 6211 | |
| 6212 | fi |
| 6213 | |
| 6214 | |
| 6215 | |
| 6216 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 6217 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6218 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6219 | 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] | 6220 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6222 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6223 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6224 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6225 | else |
| 6226 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6227 | { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 6228 | 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] | 6229 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6230 | /* confdefs.h. */ |
| 6231 | _ACEOF |
| 6232 | cat confdefs.h >>conftest.$ac_ext |
| 6233 | cat >>conftest.$ac_ext <<_ACEOF |
| 6234 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6235 | $ac_includes_default |
| 6236 | #include <sys/sysmacros.h> |
| 6237 | _ACEOF |
| 6238 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6239 | if { (ac_try="$ac_compile" |
| 6240 | case "(($ac_try" in |
| 6241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6242 | *) ac_try_echo=$ac_try;; |
| 6243 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6245 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6246 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6248 | rm -f conftest.er1 |
| 6249 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6251 | (exit $ac_status); } && { |
| 6252 | test -z "$ac_c_werror_flag" || |
| 6253 | test ! -s conftest.err |
| 6254 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6255 | ac_header_compiler=yes |
| 6256 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6257 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6258 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6259 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6260 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6261 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6262 | |
| 6263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6264 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6265 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6266 | |
| 6267 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6268 | { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 6269 | 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] | 6270 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6271 | /* confdefs.h. */ |
| 6272 | _ACEOF |
| 6273 | cat confdefs.h >>conftest.$ac_ext |
| 6274 | cat >>conftest.$ac_ext <<_ACEOF |
| 6275 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6276 | #include <sys/sysmacros.h> |
| 6277 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6278 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6279 | case "(($ac_try" in |
| 6280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6281 | *) ac_try_echo=$ac_try;; |
| 6282 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6284 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6285 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6286 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6287 | rm -f conftest.er1 |
| 6288 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6290 | (exit $ac_status); } >/dev/null && { |
| 6291 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6292 | test ! -s conftest.err |
| 6293 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6294 | ac_header_preproc=yes |
| 6295 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6296 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6298 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6299 | ac_header_preproc=no |
| 6300 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6301 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6302 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6303 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6304 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6305 | |
| 6306 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6307 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6308 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6309 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6310 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6311 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 6312 | 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] | 6313 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6314 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6315 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6316 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 6317 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 6318 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 6319 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 6320 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 6321 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 6322 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6323 | echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6324 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 6325 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 6326 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 6327 | 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] | 6328 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6329 | ## -------------------------------------- ## |
| 6330 | ## Report this to http://bugs.python.org/ ## |
| 6331 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6332 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6333 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6334 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6335 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6336 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6337 | 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] | 6338 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6340 | else |
| 6341 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 6342 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6343 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6344 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6345 | |
| 6346 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6347 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6348 | |
| 6349 | cat >>confdefs.h <<\_ACEOF |
| 6350 | #define MAJOR_IN_SYSMACROS 1 |
| 6351 | _ACEOF |
| 6352 | |
| 6353 | fi |
| 6354 | |
| 6355 | |
| 6356 | fi |
| 6357 | fi |
| 6358 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6359 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6360 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6361 | |
| 6362 | for ac_header in term.h |
| 6363 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6364 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6365 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6366 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6367 | 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^] | 6368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6369 | else |
| 6370 | cat >conftest.$ac_ext <<_ACEOF |
| 6371 | /* confdefs.h. */ |
| 6372 | _ACEOF |
| 6373 | cat confdefs.h >>conftest.$ac_ext |
| 6374 | cat >>conftest.$ac_ext <<_ACEOF |
| 6375 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6376 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6377 | #ifdef HAVE_CURSES_H |
| 6378 | #include <curses.h> |
| 6379 | #endif |
| 6380 | |
| 6381 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6382 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6383 | _ACEOF |
| 6384 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6385 | if { (ac_try="$ac_compile" |
| 6386 | case "(($ac_try" in |
| 6387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6388 | *) ac_try_echo=$ac_try;; |
| 6389 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6391 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6392 | ac_status=$? |
| 6393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6394 | rm -f conftest.er1 |
| 6395 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6397 | (exit $ac_status); } && { |
| 6398 | test -z "$ac_c_werror_flag" || |
| 6399 | test ! -s conftest.err |
| 6400 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6401 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6402 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6403 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6404 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6405 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6406 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6407 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6408 | |
| 6409 | 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] | 6410 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6411 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6412 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6413 | echo "${ECHO_T}$ac_res" >&6; } |
| 6414 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6415 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6416 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6417 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6418 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6419 | fi |
| 6420 | |
| 6421 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6422 | |
| 6423 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6424 | # On Linux, netlink.h requires asm/types.h |
| 6425 | |
| 6426 | for ac_header in linux/netlink.h |
| 6427 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6428 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6429 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6430 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6431 | 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^] | 6432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6433 | else |
| 6434 | cat >conftest.$ac_ext <<_ACEOF |
| 6435 | /* confdefs.h. */ |
| 6436 | _ACEOF |
| 6437 | cat confdefs.h >>conftest.$ac_ext |
| 6438 | cat >>conftest.$ac_ext <<_ACEOF |
| 6439 | /* end confdefs.h. */ |
| 6440 | |
| 6441 | #ifdef HAVE_ASM_TYPES_H |
| 6442 | #include <asm/types.h> |
| 6443 | #endif |
| 6444 | #ifdef HAVE_SYS_SOCKET_H |
| 6445 | #include <sys/socket.h> |
| 6446 | #endif |
| 6447 | |
| 6448 | |
| 6449 | #include <$ac_header> |
| 6450 | _ACEOF |
| 6451 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6452 | if { (ac_try="$ac_compile" |
| 6453 | case "(($ac_try" in |
| 6454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6455 | *) ac_try_echo=$ac_try;; |
| 6456 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6458 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6459 | ac_status=$? |
| 6460 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6461 | rm -f conftest.er1 |
| 6462 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6464 | (exit $ac_status); } && { |
| 6465 | test -z "$ac_c_werror_flag" || |
| 6466 | test ! -s conftest.err |
| 6467 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6468 | eval "$as_ac_Header=yes" |
| 6469 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6470 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6472 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6473 | eval "$as_ac_Header=no" |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6474 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6475 | |
| 6476 | 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] | 6477 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6478 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6479 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6480 | echo "${ECHO_T}$ac_res" >&6; } |
| 6481 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6482 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6483 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6484 | _ACEOF |
| 6485 | |
| 6486 | fi |
| 6487 | |
| 6488 | done |
| 6489 | |
| 6490 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6491 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6492 | was_it_defined=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6493 | { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 6494 | 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] | 6495 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6496 | /* confdefs.h. */ |
| 6497 | _ACEOF |
| 6498 | cat confdefs.h >>conftest.$ac_ext |
| 6499 | cat >>conftest.$ac_ext <<_ACEOF |
| 6500 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6501 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6502 | |
| 6503 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6504 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6505 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6506 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6507 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6508 | |
| 6509 | |
| 6510 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6511 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6512 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6513 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6514 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6515 | fi |
| 6516 | rm -f conftest* |
| 6517 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6518 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 6519 | echo "${ECHO_T}$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6520 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6521 | # Check whether using makedev requires defining _OSF_SOURCE |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6522 | { echo "$as_me:$LINENO: checking for makedev" >&5 |
| 6523 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6524 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6525 | /* confdefs.h. */ |
| 6526 | _ACEOF |
| 6527 | cat confdefs.h >>conftest.$ac_ext |
| 6528 | cat >>conftest.$ac_ext <<_ACEOF |
| 6529 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6530 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6531 | int |
| 6532 | main () |
| 6533 | { |
| 6534 | makedev(0, 0) |
| 6535 | ; |
| 6536 | return 0; |
| 6537 | } |
| 6538 | _ACEOF |
| 6539 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6540 | if { (ac_try="$ac_link" |
| 6541 | case "(($ac_try" in |
| 6542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6543 | *) ac_try_echo=$ac_try;; |
| 6544 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6546 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6547 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6548 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6549 | rm -f conftest.er1 |
| 6550 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6552 | (exit $ac_status); } && { |
| 6553 | test -z "$ac_c_werror_flag" || |
| 6554 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6555 | } && test -s conftest$ac_exeext && |
| 6556 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6557 | ac_cv_has_makedev=yes |
| 6558 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6559 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6561 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6562 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6563 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6564 | |
| 6565 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6566 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6567 | if test "$ac_cv_has_makedev" = "no"; then |
| 6568 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 6569 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6570 | /* confdefs.h. */ |
| 6571 | _ACEOF |
| 6572 | cat confdefs.h >>conftest.$ac_ext |
| 6573 | cat >>conftest.$ac_ext <<_ACEOF |
| 6574 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6575 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6576 | #define _OSF_SOURCE 1 |
| 6577 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6578 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6579 | int |
| 6580 | main () |
| 6581 | { |
| 6582 | makedev(0, 0) |
| 6583 | ; |
| 6584 | return 0; |
| 6585 | } |
| 6586 | _ACEOF |
| 6587 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6588 | if { (ac_try="$ac_link" |
| 6589 | case "(($ac_try" in |
| 6590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6591 | *) ac_try_echo=$ac_try;; |
| 6592 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6594 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6595 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6596 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6597 | rm -f conftest.er1 |
| 6598 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6600 | (exit $ac_status); } && { |
| 6601 | test -z "$ac_c_werror_flag" || |
| 6602 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6603 | } && test -s conftest$ac_exeext && |
| 6604 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6605 | ac_cv_has_makedev=yes |
| 6606 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6607 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6609 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6610 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6611 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6612 | |
| 6613 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6614 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6615 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6616 | |
| 6617 | cat >>confdefs.h <<\_ACEOF |
| 6618 | #define _OSF_SOURCE 1 |
| 6619 | _ACEOF |
| 6620 | |
| 6621 | fi |
| 6622 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6623 | { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 6624 | echo "${ECHO_T}$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6625 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6626 | |
| 6627 | cat >>confdefs.h <<\_ACEOF |
| 6628 | #define HAVE_MAKEDEV 1 |
| 6629 | _ACEOF |
| 6630 | |
| 6631 | fi |
| 6632 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6633 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6634 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6635 | # defined, but the compiler does not support pragma redefine_extname, |
| 6636 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6637 | # structures (such as rlimit64) without declaring them. As a |
| 6638 | # work-around, disable LFS on such configurations |
| 6639 | |
| 6640 | use_lfs=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6641 | { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 6642 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6643 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6644 | /* confdefs.h. */ |
| 6645 | _ACEOF |
| 6646 | cat confdefs.h >>conftest.$ac_ext |
| 6647 | cat >>conftest.$ac_ext <<_ACEOF |
| 6648 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6649 | |
| 6650 | #define _LARGEFILE_SOURCE 1 |
| 6651 | #define _FILE_OFFSET_BITS 64 |
| 6652 | #include <sys/resource.h> |
| 6653 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6654 | int |
| 6655 | main () |
| 6656 | { |
| 6657 | struct rlimit foo; |
| 6658 | ; |
| 6659 | return 0; |
| 6660 | } |
| 6661 | _ACEOF |
| 6662 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6663 | if { (ac_try="$ac_compile" |
| 6664 | case "(($ac_try" in |
| 6665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6666 | *) ac_try_echo=$ac_try;; |
| 6667 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6669 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6670 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6672 | rm -f conftest.er1 |
| 6673 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6675 | (exit $ac_status); } && { |
| 6676 | test -z "$ac_c_werror_flag" || |
| 6677 | test ! -s conftest.err |
| 6678 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6679 | sol_lfs_bug=no |
| 6680 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6681 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6683 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6684 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6685 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6686 | |
| 6687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6688 | { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 6689 | echo "${ECHO_T}$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6690 | if test "$sol_lfs_bug" = "yes"; then |
| 6691 | use_lfs=no |
| 6692 | fi |
| 6693 | |
| 6694 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6695 | # Two defines needed to enable largefile support on various platforms |
| 6696 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6697 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6698 | cat >>confdefs.h <<\_ACEOF |
| 6699 | #define _LARGEFILE_SOURCE 1 |
| 6700 | _ACEOF |
| 6701 | |
| 6702 | |
| 6703 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6704 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6705 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6706 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6707 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6708 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6709 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6710 | cat >> confdefs.h <<\EOF |
| 6711 | #if defined(SCO_DS) |
| 6712 | #undef _OFF_T |
| 6713 | #endif |
| 6714 | EOF |
| 6715 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6716 | # Type availability checks |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6717 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 6718 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6719 | if test "${ac_cv_type_mode_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6721 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6722 | cat >conftest.$ac_ext <<_ACEOF |
| 6723 | /* confdefs.h. */ |
| 6724 | _ACEOF |
| 6725 | cat confdefs.h >>conftest.$ac_ext |
| 6726 | cat >>conftest.$ac_ext <<_ACEOF |
| 6727 | /* end confdefs.h. */ |
| 6728 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6729 | typedef mode_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6730 | int |
| 6731 | main () |
| 6732 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6733 | if ((ac__type_new_ *) 0) |
| 6734 | return 0; |
| 6735 | if (sizeof (ac__type_new_)) |
| 6736 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6737 | ; |
| 6738 | return 0; |
| 6739 | } |
| 6740 | _ACEOF |
| 6741 | rm -f conftest.$ac_objext |
| 6742 | if { (ac_try="$ac_compile" |
| 6743 | case "(($ac_try" in |
| 6744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6745 | *) ac_try_echo=$ac_try;; |
| 6746 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6748 | (eval "$ac_compile") 2>conftest.er1 |
| 6749 | ac_status=$? |
| 6750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6751 | rm -f conftest.er1 |
| 6752 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6754 | (exit $ac_status); } && { |
| 6755 | test -z "$ac_c_werror_flag" || |
| 6756 | test ! -s conftest.err |
| 6757 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6758 | ac_cv_type_mode_t=yes |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6759 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6760 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6761 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6762 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6763 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6764 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6765 | |
| 6766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6767 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6768 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 6769 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
| 6770 | if test $ac_cv_type_mode_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6771 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6772 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6773 | |
| 6774 | cat >>confdefs.h <<_ACEOF |
| 6775 | #define mode_t int |
| 6776 | _ACEOF |
| 6777 | |
| 6778 | fi |
| 6779 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6780 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 6781 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6782 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6784 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6785 | cat >conftest.$ac_ext <<_ACEOF |
| 6786 | /* confdefs.h. */ |
| 6787 | _ACEOF |
| 6788 | cat confdefs.h >>conftest.$ac_ext |
| 6789 | cat >>conftest.$ac_ext <<_ACEOF |
| 6790 | /* end confdefs.h. */ |
| 6791 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6792 | typedef off_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6793 | int |
| 6794 | main () |
| 6795 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6796 | if ((ac__type_new_ *) 0) |
| 6797 | return 0; |
| 6798 | if (sizeof (ac__type_new_)) |
| 6799 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6800 | ; |
| 6801 | return 0; |
| 6802 | } |
| 6803 | _ACEOF |
| 6804 | rm -f conftest.$ac_objext |
| 6805 | if { (ac_try="$ac_compile" |
| 6806 | case "(($ac_try" in |
| 6807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6808 | *) ac_try_echo=$ac_try;; |
| 6809 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6811 | (eval "$ac_compile") 2>conftest.er1 |
| 6812 | ac_status=$? |
| 6813 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6814 | rm -f conftest.er1 |
| 6815 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6817 | (exit $ac_status); } && { |
| 6818 | test -z "$ac_c_werror_flag" || |
| 6819 | test ! -s conftest.err |
| 6820 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6821 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6822 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6823 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6825 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6826 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6827 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6828 | |
| 6829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6830 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6831 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 6832 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 6833 | if test $ac_cv_type_off_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6834 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6835 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6836 | |
| 6837 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6838 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6839 | _ACEOF |
| 6840 | |
| 6841 | fi |
| 6842 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6843 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 6844 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6845 | if test "${ac_cv_type_pid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6847 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6848 | cat >conftest.$ac_ext <<_ACEOF |
| 6849 | /* confdefs.h. */ |
| 6850 | _ACEOF |
| 6851 | cat confdefs.h >>conftest.$ac_ext |
| 6852 | cat >>conftest.$ac_ext <<_ACEOF |
| 6853 | /* end confdefs.h. */ |
| 6854 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6855 | typedef pid_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6856 | int |
| 6857 | main () |
| 6858 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6859 | if ((ac__type_new_ *) 0) |
| 6860 | return 0; |
| 6861 | if (sizeof (ac__type_new_)) |
| 6862 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6863 | ; |
| 6864 | return 0; |
| 6865 | } |
| 6866 | _ACEOF |
| 6867 | rm -f conftest.$ac_objext |
| 6868 | if { (ac_try="$ac_compile" |
| 6869 | case "(($ac_try" in |
| 6870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6871 | *) ac_try_echo=$ac_try;; |
| 6872 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6874 | (eval "$ac_compile") 2>conftest.er1 |
| 6875 | ac_status=$? |
| 6876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6877 | rm -f conftest.er1 |
| 6878 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6880 | (exit $ac_status); } && { |
| 6881 | test -z "$ac_c_werror_flag" || |
| 6882 | test ! -s conftest.err |
| 6883 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6884 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6885 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6886 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6888 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6889 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6890 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6891 | |
| 6892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6893 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6894 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 6895 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 6896 | if test $ac_cv_type_pid_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6897 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6898 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6899 | |
| 6900 | cat >>confdefs.h <<_ACEOF |
| 6901 | #define pid_t int |
| 6902 | _ACEOF |
| 6903 | |
| 6904 | fi |
| 6905 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6906 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 6907 | 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] | 6908 | if test "${ac_cv_type_signal+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6910 | else |
| 6911 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6912 | /* confdefs.h. */ |
| 6913 | _ACEOF |
| 6914 | cat confdefs.h >>conftest.$ac_ext |
| 6915 | cat >>conftest.$ac_ext <<_ACEOF |
| 6916 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6917 | #include <sys/types.h> |
| 6918 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6920 | int |
| 6921 | main () |
| 6922 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6923 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6924 | ; |
| 6925 | return 0; |
| 6926 | } |
| 6927 | _ACEOF |
| 6928 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6929 | if { (ac_try="$ac_compile" |
| 6930 | case "(($ac_try" in |
| 6931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6932 | *) ac_try_echo=$ac_try;; |
| 6933 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6935 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6936 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6937 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6938 | rm -f conftest.er1 |
| 6939 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6941 | (exit $ac_status); } && { |
| 6942 | test -z "$ac_c_werror_flag" || |
| 6943 | test ! -s conftest.err |
| 6944 | } && test -s conftest.$ac_objext; then |
| 6945 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6946 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6947 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6949 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6950 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6951 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6952 | |
| 6953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6954 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6955 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 6956 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6957 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6958 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6959 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6960 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6961 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6962 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6963 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 6964 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6965 | if test "${ac_cv_type_size_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6967 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6968 | cat >conftest.$ac_ext <<_ACEOF |
| 6969 | /* confdefs.h. */ |
| 6970 | _ACEOF |
| 6971 | cat confdefs.h >>conftest.$ac_ext |
| 6972 | cat >>conftest.$ac_ext <<_ACEOF |
| 6973 | /* end confdefs.h. */ |
| 6974 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6975 | typedef size_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6976 | int |
| 6977 | main () |
| 6978 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6979 | if ((ac__type_new_ *) 0) |
| 6980 | return 0; |
| 6981 | if (sizeof (ac__type_new_)) |
| 6982 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6983 | ; |
| 6984 | return 0; |
| 6985 | } |
| 6986 | _ACEOF |
| 6987 | rm -f conftest.$ac_objext |
| 6988 | if { (ac_try="$ac_compile" |
| 6989 | case "(($ac_try" in |
| 6990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6991 | *) ac_try_echo=$ac_try;; |
| 6992 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6994 | (eval "$ac_compile") 2>conftest.er1 |
| 6995 | ac_status=$? |
| 6996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6997 | rm -f conftest.er1 |
| 6998 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 6999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7000 | (exit $ac_status); } && { |
| 7001 | test -z "$ac_c_werror_flag" || |
| 7002 | test ! -s conftest.err |
| 7003 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7004 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7005 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7006 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7008 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7009 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7010 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7011 | |
| 7012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7013 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7014 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 7015 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 7016 | if test $ac_cv_type_size_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7017 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7018 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7019 | |
| 7020 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7021 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7022 | _ACEOF |
| 7023 | |
| 7024 | fi |
| 7025 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7026 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 7027 | 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] | 7028 | if test "${ac_cv_type_uid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7030 | else |
| 7031 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7032 | /* confdefs.h. */ |
| 7033 | _ACEOF |
| 7034 | cat confdefs.h >>conftest.$ac_ext |
| 7035 | cat >>conftest.$ac_ext <<_ACEOF |
| 7036 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7037 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7038 | |
| 7039 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7040 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7041 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7042 | ac_cv_type_uid_t=yes |
| 7043 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7044 | ac_cv_type_uid_t=no |
| 7045 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7046 | rm -f conftest* |
| 7047 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7048 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7049 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 7050 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7051 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7052 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7053 | cat >>confdefs.h <<\_ACEOF |
| 7054 | #define uid_t int |
| 7055 | _ACEOF |
| 7056 | |
| 7057 | |
| 7058 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7059 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7060 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7061 | |
| 7062 | fi |
| 7063 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7064 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7065 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 7066 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7067 | if test "${ac_cv_c_uint32_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7069 | else |
| 7070 | ac_cv_c_uint32_t=no |
| 7071 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
| 7072 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7073 | cat >conftest.$ac_ext <<_ACEOF |
| 7074 | /* confdefs.h. */ |
| 7075 | _ACEOF |
| 7076 | cat confdefs.h >>conftest.$ac_ext |
| 7077 | cat >>conftest.$ac_ext <<_ACEOF |
| 7078 | /* end confdefs.h. */ |
| 7079 | $ac_includes_default |
| 7080 | int |
| 7081 | main () |
| 7082 | { |
| 7083 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
| 7084 | test_array [0] = 0 |
| 7085 | |
| 7086 | ; |
| 7087 | return 0; |
| 7088 | } |
| 7089 | _ACEOF |
| 7090 | rm -f conftest.$ac_objext |
| 7091 | if { (ac_try="$ac_compile" |
| 7092 | case "(($ac_try" in |
| 7093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7094 | *) ac_try_echo=$ac_try;; |
| 7095 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7097 | (eval "$ac_compile") 2>conftest.er1 |
| 7098 | ac_status=$? |
| 7099 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7100 | rm -f conftest.er1 |
| 7101 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7103 | (exit $ac_status); } && { |
| 7104 | test -z "$ac_c_werror_flag" || |
| 7105 | test ! -s conftest.err |
| 7106 | } && test -s conftest.$ac_objext; then |
| 7107 | case $ac_type in |
| 7108 | uint32_t) ac_cv_c_uint32_t=yes ;; |
| 7109 | *) ac_cv_c_uint32_t=$ac_type ;; |
| 7110 | esac |
| 7111 | |
| 7112 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7113 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7115 | |
| 7116 | |
| 7117 | fi |
| 7118 | |
| 7119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7120 | test "$ac_cv_c_uint32_t" != no && break |
| 7121 | done |
| 7122 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7123 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
| 7124 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7125 | case $ac_cv_c_uint32_t in #( |
| 7126 | no|yes) ;; #( |
| 7127 | *) |
| 7128 | |
| 7129 | cat >>confdefs.h <<\_ACEOF |
| 7130 | #define _UINT32_T 1 |
| 7131 | _ACEOF |
| 7132 | |
| 7133 | |
| 7134 | cat >>confdefs.h <<_ACEOF |
| 7135 | #define uint32_t $ac_cv_c_uint32_t |
| 7136 | _ACEOF |
| 7137 | ;; |
| 7138 | esac |
| 7139 | |
| 7140 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7141 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 7142 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7143 | if test "${ac_cv_c_uint64_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7145 | else |
| 7146 | ac_cv_c_uint64_t=no |
| 7147 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ |
| 7148 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7149 | cat >conftest.$ac_ext <<_ACEOF |
| 7150 | /* confdefs.h. */ |
| 7151 | _ACEOF |
| 7152 | cat confdefs.h >>conftest.$ac_ext |
| 7153 | cat >>conftest.$ac_ext <<_ACEOF |
| 7154 | /* end confdefs.h. */ |
| 7155 | $ac_includes_default |
| 7156 | int |
| 7157 | main () |
| 7158 | { |
| 7159 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
| 7160 | test_array [0] = 0 |
| 7161 | |
| 7162 | ; |
| 7163 | return 0; |
| 7164 | } |
| 7165 | _ACEOF |
| 7166 | rm -f conftest.$ac_objext |
| 7167 | if { (ac_try="$ac_compile" |
| 7168 | case "(($ac_try" in |
| 7169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7170 | *) ac_try_echo=$ac_try;; |
| 7171 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7173 | (eval "$ac_compile") 2>conftest.er1 |
| 7174 | ac_status=$? |
| 7175 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7176 | rm -f conftest.er1 |
| 7177 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7179 | (exit $ac_status); } && { |
| 7180 | test -z "$ac_c_werror_flag" || |
| 7181 | test ! -s conftest.err |
| 7182 | } && test -s conftest.$ac_objext; then |
| 7183 | case $ac_type in |
| 7184 | uint64_t) ac_cv_c_uint64_t=yes ;; |
| 7185 | *) ac_cv_c_uint64_t=$ac_type ;; |
| 7186 | esac |
| 7187 | |
| 7188 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7189 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7191 | |
| 7192 | |
| 7193 | fi |
| 7194 | |
| 7195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7196 | test "$ac_cv_c_uint64_t" != no && break |
| 7197 | done |
| 7198 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7199 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
| 7200 | echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7201 | case $ac_cv_c_uint64_t in #( |
| 7202 | no|yes) ;; #( |
| 7203 | *) |
| 7204 | |
| 7205 | cat >>confdefs.h <<\_ACEOF |
| 7206 | #define _UINT64_T 1 |
| 7207 | _ACEOF |
| 7208 | |
| 7209 | |
| 7210 | cat >>confdefs.h <<_ACEOF |
| 7211 | #define uint64_t $ac_cv_c_uint64_t |
| 7212 | _ACEOF |
| 7213 | ;; |
| 7214 | esac |
| 7215 | |
| 7216 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7217 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
| 7218 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7219 | if test "${ac_cv_c_int32_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7221 | else |
| 7222 | ac_cv_c_int32_t=no |
| 7223 | for ac_type in 'int32_t' 'int' 'long int' \ |
| 7224 | 'long long int' 'short int' 'signed char'; do |
| 7225 | cat >conftest.$ac_ext <<_ACEOF |
| 7226 | /* confdefs.h. */ |
| 7227 | _ACEOF |
| 7228 | cat confdefs.h >>conftest.$ac_ext |
| 7229 | cat >>conftest.$ac_ext <<_ACEOF |
| 7230 | /* end confdefs.h. */ |
| 7231 | $ac_includes_default |
| 7232 | int |
| 7233 | main () |
| 7234 | { |
| 7235 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
| 7236 | test_array [0] = 0 |
| 7237 | |
| 7238 | ; |
| 7239 | return 0; |
| 7240 | } |
| 7241 | _ACEOF |
| 7242 | rm -f conftest.$ac_objext |
| 7243 | if { (ac_try="$ac_compile" |
| 7244 | case "(($ac_try" in |
| 7245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7246 | *) ac_try_echo=$ac_try;; |
| 7247 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7249 | (eval "$ac_compile") 2>conftest.er1 |
| 7250 | ac_status=$? |
| 7251 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7252 | rm -f conftest.er1 |
| 7253 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7255 | (exit $ac_status); } && { |
| 7256 | test -z "$ac_c_werror_flag" || |
| 7257 | test ! -s conftest.err |
| 7258 | } && test -s conftest.$ac_objext; then |
| 7259 | cat >conftest.$ac_ext <<_ACEOF |
| 7260 | /* confdefs.h. */ |
| 7261 | _ACEOF |
| 7262 | cat confdefs.h >>conftest.$ac_ext |
| 7263 | cat >>conftest.$ac_ext <<_ACEOF |
| 7264 | /* end confdefs.h. */ |
| 7265 | $ac_includes_default |
| 7266 | int |
| 7267 | main () |
| 7268 | { |
| 7269 | 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^] | 7270 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7271 | test_array [0] = 0 |
| 7272 | |
| 7273 | ; |
| 7274 | return 0; |
| 7275 | } |
| 7276 | _ACEOF |
| 7277 | rm -f conftest.$ac_objext |
| 7278 | if { (ac_try="$ac_compile" |
| 7279 | case "(($ac_try" in |
| 7280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7281 | *) ac_try_echo=$ac_try;; |
| 7282 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7284 | (eval "$ac_compile") 2>conftest.er1 |
| 7285 | ac_status=$? |
| 7286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7287 | rm -f conftest.er1 |
| 7288 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7290 | (exit $ac_status); } && { |
| 7291 | test -z "$ac_c_werror_flag" || |
| 7292 | test ! -s conftest.err |
| 7293 | } && test -s conftest.$ac_objext; then |
| 7294 | : |
| 7295 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7296 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7298 | |
| 7299 | case $ac_type in |
| 7300 | int32_t) ac_cv_c_int32_t=yes ;; |
| 7301 | *) ac_cv_c_int32_t=$ac_type ;; |
| 7302 | esac |
| 7303 | |
| 7304 | fi |
| 7305 | |
| 7306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7307 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7308 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7310 | |
| 7311 | |
| 7312 | fi |
| 7313 | |
| 7314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7315 | test "$ac_cv_c_int32_t" != no && break |
| 7316 | done |
| 7317 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7318 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
| 7319 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7320 | case $ac_cv_c_int32_t in #( |
| 7321 | no|yes) ;; #( |
| 7322 | *) |
| 7323 | |
| 7324 | cat >>confdefs.h <<_ACEOF |
| 7325 | #define int32_t $ac_cv_c_int32_t |
| 7326 | _ACEOF |
| 7327 | ;; |
| 7328 | esac |
| 7329 | |
| 7330 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7331 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 7332 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7333 | if test "${ac_cv_c_int64_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7335 | else |
| 7336 | ac_cv_c_int64_t=no |
| 7337 | for ac_type in 'int64_t' 'int' 'long int' \ |
| 7338 | 'long long int' 'short int' 'signed char'; do |
| 7339 | cat >conftest.$ac_ext <<_ACEOF |
| 7340 | /* confdefs.h. */ |
| 7341 | _ACEOF |
| 7342 | cat confdefs.h >>conftest.$ac_ext |
| 7343 | cat >>conftest.$ac_ext <<_ACEOF |
| 7344 | /* end confdefs.h. */ |
| 7345 | $ac_includes_default |
| 7346 | int |
| 7347 | main () |
| 7348 | { |
| 7349 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
| 7350 | test_array [0] = 0 |
| 7351 | |
| 7352 | ; |
| 7353 | return 0; |
| 7354 | } |
| 7355 | _ACEOF |
| 7356 | rm -f conftest.$ac_objext |
| 7357 | if { (ac_try="$ac_compile" |
| 7358 | case "(($ac_try" in |
| 7359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7360 | *) ac_try_echo=$ac_try;; |
| 7361 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7363 | (eval "$ac_compile") 2>conftest.er1 |
| 7364 | ac_status=$? |
| 7365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7366 | rm -f conftest.er1 |
| 7367 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7369 | (exit $ac_status); } && { |
| 7370 | test -z "$ac_c_werror_flag" || |
| 7371 | test ! -s conftest.err |
| 7372 | } && test -s conftest.$ac_objext; then |
| 7373 | cat >conftest.$ac_ext <<_ACEOF |
| 7374 | /* confdefs.h. */ |
| 7375 | _ACEOF |
| 7376 | cat confdefs.h >>conftest.$ac_ext |
| 7377 | cat >>conftest.$ac_ext <<_ACEOF |
| 7378 | /* end confdefs.h. */ |
| 7379 | $ac_includes_default |
| 7380 | int |
| 7381 | main () |
| 7382 | { |
| 7383 | 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^] | 7384 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7385 | test_array [0] = 0 |
| 7386 | |
| 7387 | ; |
| 7388 | return 0; |
| 7389 | } |
| 7390 | _ACEOF |
| 7391 | rm -f conftest.$ac_objext |
| 7392 | if { (ac_try="$ac_compile" |
| 7393 | case "(($ac_try" in |
| 7394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7395 | *) ac_try_echo=$ac_try;; |
| 7396 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7398 | (eval "$ac_compile") 2>conftest.er1 |
| 7399 | ac_status=$? |
| 7400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7401 | rm -f conftest.er1 |
| 7402 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7404 | (exit $ac_status); } && { |
| 7405 | test -z "$ac_c_werror_flag" || |
| 7406 | test ! -s conftest.err |
| 7407 | } && test -s conftest.$ac_objext; then |
| 7408 | : |
| 7409 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7410 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7411 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7412 | |
| 7413 | case $ac_type in |
| 7414 | int64_t) ac_cv_c_int64_t=yes ;; |
| 7415 | *) ac_cv_c_int64_t=$ac_type ;; |
| 7416 | esac |
| 7417 | |
| 7418 | fi |
| 7419 | |
| 7420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7421 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7422 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7424 | |
| 7425 | |
| 7426 | fi |
| 7427 | |
| 7428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7429 | test "$ac_cv_c_int64_t" != no && break |
| 7430 | done |
| 7431 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7432 | { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
| 7433 | echo "${ECHO_T}$ac_cv_c_int64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7434 | case $ac_cv_c_int64_t in #( |
| 7435 | no|yes) ;; #( |
| 7436 | *) |
| 7437 | |
| 7438 | cat >>confdefs.h <<_ACEOF |
| 7439 | #define int64_t $ac_cv_c_int64_t |
| 7440 | _ACEOF |
| 7441 | ;; |
| 7442 | esac |
| 7443 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7444 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 7445 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7446 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7448 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7449 | cat >conftest.$ac_ext <<_ACEOF |
| 7450 | /* confdefs.h. */ |
| 7451 | _ACEOF |
| 7452 | cat confdefs.h >>conftest.$ac_ext |
| 7453 | cat >>conftest.$ac_ext <<_ACEOF |
| 7454 | /* end confdefs.h. */ |
| 7455 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7456 | typedef ssize_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7457 | int |
| 7458 | main () |
| 7459 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7460 | if ((ac__type_new_ *) 0) |
| 7461 | return 0; |
| 7462 | if (sizeof (ac__type_new_)) |
| 7463 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7464 | ; |
| 7465 | return 0; |
| 7466 | } |
| 7467 | _ACEOF |
| 7468 | rm -f conftest.$ac_objext |
| 7469 | if { (ac_try="$ac_compile" |
| 7470 | case "(($ac_try" in |
| 7471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7472 | *) ac_try_echo=$ac_try;; |
| 7473 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7475 | (eval "$ac_compile") 2>conftest.er1 |
| 7476 | ac_status=$? |
| 7477 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7478 | rm -f conftest.er1 |
| 7479 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7481 | (exit $ac_status); } && { |
| 7482 | test -z "$ac_c_werror_flag" || |
| 7483 | test ! -s conftest.err |
| 7484 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7485 | ac_cv_type_ssize_t=yes |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7486 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7487 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7489 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7490 | ac_cv_type_ssize_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7491 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7492 | |
| 7493 | 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] | 7494 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7495 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 7496 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
| 7497 | if test $ac_cv_type_ssize_t = yes; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7498 | |
| 7499 | cat >>confdefs.h <<\_ACEOF |
| 7500 | #define HAVE_SSIZE_T 1 |
| 7501 | _ACEOF |
| 7502 | |
| 7503 | fi |
| 7504 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7505 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7506 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 7507 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7508 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 7509 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
| 7510 | if test "${ac_cv_type_int+set}" = set; then |
| 7511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7512 | else |
| 7513 | cat >conftest.$ac_ext <<_ACEOF |
| 7514 | /* confdefs.h. */ |
| 7515 | _ACEOF |
| 7516 | cat confdefs.h >>conftest.$ac_ext |
| 7517 | cat >>conftest.$ac_ext <<_ACEOF |
| 7518 | /* end confdefs.h. */ |
| 7519 | $ac_includes_default |
| 7520 | typedef int ac__type_new_; |
| 7521 | int |
| 7522 | main () |
| 7523 | { |
| 7524 | if ((ac__type_new_ *) 0) |
| 7525 | return 0; |
| 7526 | if (sizeof (ac__type_new_)) |
| 7527 | return 0; |
| 7528 | ; |
| 7529 | return 0; |
| 7530 | } |
| 7531 | _ACEOF |
| 7532 | rm -f conftest.$ac_objext |
| 7533 | if { (ac_try="$ac_compile" |
| 7534 | case "(($ac_try" in |
| 7535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7536 | *) ac_try_echo=$ac_try;; |
| 7537 | esac |
| 7538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7539 | (eval "$ac_compile") 2>conftest.er1 |
| 7540 | ac_status=$? |
| 7541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7542 | rm -f conftest.er1 |
| 7543 | cat conftest.err >&5 |
| 7544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7545 | (exit $ac_status); } && { |
| 7546 | test -z "$ac_c_werror_flag" || |
| 7547 | test ! -s conftest.err |
| 7548 | } && test -s conftest.$ac_objext; then |
| 7549 | ac_cv_type_int=yes |
| 7550 | else |
| 7551 | echo "$as_me: failed program was:" >&5 |
| 7552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7553 | |
| 7554 | ac_cv_type_int=no |
| 7555 | fi |
| 7556 | |
| 7557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7558 | fi |
| 7559 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 7560 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 7561 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7562 | # The cast to long int works around a bug in the HP C Compiler |
| 7563 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7564 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7565 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7566 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 7567 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7568 | if test "${ac_cv_sizeof_int+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7570 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7571 | if test "$cross_compiling" = yes; then |
| 7572 | # Depending upon the size, compute the lo and hi bounds. |
| 7573 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7574 | /* confdefs.h. */ |
| 7575 | _ACEOF |
| 7576 | cat confdefs.h >>conftest.$ac_ext |
| 7577 | cat >>conftest.$ac_ext <<_ACEOF |
| 7578 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7579 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7580 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7581 | int |
| 7582 | main () |
| 7583 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7584 | 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] | 7585 | test_array [0] = 0 |
| 7586 | |
| 7587 | ; |
| 7588 | return 0; |
| 7589 | } |
| 7590 | _ACEOF |
| 7591 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7592 | if { (ac_try="$ac_compile" |
| 7593 | case "(($ac_try" in |
| 7594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7595 | *) ac_try_echo=$ac_try;; |
| 7596 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7598 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7599 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7601 | rm -f conftest.er1 |
| 7602 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7604 | (exit $ac_status); } && { |
| 7605 | test -z "$ac_c_werror_flag" || |
| 7606 | test ! -s conftest.err |
| 7607 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7608 | ac_lo=0 ac_mid=0 |
| 7609 | while :; do |
| 7610 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7611 | /* confdefs.h. */ |
| 7612 | _ACEOF |
| 7613 | cat confdefs.h >>conftest.$ac_ext |
| 7614 | cat >>conftest.$ac_ext <<_ACEOF |
| 7615 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7616 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7617 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7618 | int |
| 7619 | main () |
| 7620 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7621 | 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] | 7622 | test_array [0] = 0 |
| 7623 | |
| 7624 | ; |
| 7625 | return 0; |
| 7626 | } |
| 7627 | _ACEOF |
| 7628 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7629 | if { (ac_try="$ac_compile" |
| 7630 | case "(($ac_try" in |
| 7631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7632 | *) ac_try_echo=$ac_try;; |
| 7633 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7635 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7636 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7638 | rm -f conftest.er1 |
| 7639 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7641 | (exit $ac_status); } && { |
| 7642 | test -z "$ac_c_werror_flag" || |
| 7643 | test ! -s conftest.err |
| 7644 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7645 | ac_hi=$ac_mid; break |
| 7646 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7647 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7649 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7650 | ac_lo=`expr $ac_mid + 1` |
| 7651 | if test $ac_lo -le $ac_mid; then |
| 7652 | ac_lo= ac_hi= |
| 7653 | break |
| 7654 | fi |
| 7655 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7656 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7657 | |
| 7658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7659 | done |
| 7660 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7661 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7663 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7664 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7665 | /* confdefs.h. */ |
| 7666 | _ACEOF |
| 7667 | cat confdefs.h >>conftest.$ac_ext |
| 7668 | cat >>conftest.$ac_ext <<_ACEOF |
| 7669 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7670 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7671 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7672 | int |
| 7673 | main () |
| 7674 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7675 | 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] | 7676 | test_array [0] = 0 |
| 7677 | |
| 7678 | ; |
| 7679 | return 0; |
| 7680 | } |
| 7681 | _ACEOF |
| 7682 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7683 | if { (ac_try="$ac_compile" |
| 7684 | case "(($ac_try" in |
| 7685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7686 | *) ac_try_echo=$ac_try;; |
| 7687 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7689 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7690 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7692 | rm -f conftest.er1 |
| 7693 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7695 | (exit $ac_status); } && { |
| 7696 | test -z "$ac_c_werror_flag" || |
| 7697 | test ! -s conftest.err |
| 7698 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7699 | ac_hi=-1 ac_mid=-1 |
| 7700 | while :; do |
| 7701 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7702 | /* confdefs.h. */ |
| 7703 | _ACEOF |
| 7704 | cat confdefs.h >>conftest.$ac_ext |
| 7705 | cat >>conftest.$ac_ext <<_ACEOF |
| 7706 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7707 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7708 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7709 | int |
| 7710 | main () |
| 7711 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7712 | 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] | 7713 | test_array [0] = 0 |
| 7714 | |
| 7715 | ; |
| 7716 | return 0; |
| 7717 | } |
| 7718 | _ACEOF |
| 7719 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7720 | if { (ac_try="$ac_compile" |
| 7721 | case "(($ac_try" in |
| 7722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7723 | *) ac_try_echo=$ac_try;; |
| 7724 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7726 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7727 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7728 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7729 | rm -f conftest.er1 |
| 7730 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7732 | (exit $ac_status); } && { |
| 7733 | test -z "$ac_c_werror_flag" || |
| 7734 | test ! -s conftest.err |
| 7735 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7736 | ac_lo=$ac_mid; break |
| 7737 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7738 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7739 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7740 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7741 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7742 | if test $ac_mid -le $ac_hi; then |
| 7743 | ac_lo= ac_hi= |
| 7744 | break |
| 7745 | fi |
| 7746 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7747 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7748 | |
| 7749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7750 | done |
| 7751 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7752 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7754 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7755 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7756 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7757 | |
| 7758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7759 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7760 | |
| 7761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7762 | # Binary search between lo and hi bounds. |
| 7763 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7764 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7765 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7766 | /* confdefs.h. */ |
| 7767 | _ACEOF |
| 7768 | cat confdefs.h >>conftest.$ac_ext |
| 7769 | cat >>conftest.$ac_ext <<_ACEOF |
| 7770 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7771 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7772 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7773 | int |
| 7774 | main () |
| 7775 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7776 | 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] | 7777 | test_array [0] = 0 |
| 7778 | |
| 7779 | ; |
| 7780 | return 0; |
| 7781 | } |
| 7782 | _ACEOF |
| 7783 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7784 | if { (ac_try="$ac_compile" |
| 7785 | case "(($ac_try" in |
| 7786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7787 | *) ac_try_echo=$ac_try;; |
| 7788 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7790 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7791 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7793 | rm -f conftest.er1 |
| 7794 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7796 | (exit $ac_status); } && { |
| 7797 | test -z "$ac_c_werror_flag" || |
| 7798 | test ! -s conftest.err |
| 7799 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7800 | ac_hi=$ac_mid |
| 7801 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7802 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7804 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7805 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7806 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7807 | |
| 7808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7809 | done |
| 7810 | case $ac_lo in |
| 7811 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7812 | '') if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7813 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7814 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7815 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7816 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7817 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7818 | else |
| 7819 | ac_cv_sizeof_int=0 |
| 7820 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7821 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7822 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7823 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7824 | /* confdefs.h. */ |
| 7825 | _ACEOF |
| 7826 | cat confdefs.h >>conftest.$ac_ext |
| 7827 | cat >>conftest.$ac_ext <<_ACEOF |
| 7828 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7829 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7830 | typedef int ac__type_sizeof_; |
| 7831 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 7832 | 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] | 7833 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7834 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7835 | int |
| 7836 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7837 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7838 | |
| 7839 | FILE *f = fopen ("conftest.val", "w"); |
| 7840 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7841 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7842 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7843 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7844 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7845 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7846 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7847 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7848 | } |
| 7849 | else |
| 7850 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7851 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7852 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7853 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7854 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7855 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7856 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7857 | |
| 7858 | ; |
| 7859 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7860 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7861 | _ACEOF |
| 7862 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7863 | if { (ac_try="$ac_link" |
| 7864 | case "(($ac_try" in |
| 7865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7866 | *) ac_try_echo=$ac_try;; |
| 7867 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7869 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7870 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7872 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7873 | { (case "(($ac_try" in |
| 7874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7875 | *) ac_try_echo=$ac_try;; |
| 7876 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7878 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7879 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7881 | (exit $ac_status); }; }; then |
| 7882 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7883 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7884 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7885 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7887 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7888 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7889 | if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7890 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7891 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7892 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7893 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7894 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7895 | else |
| 7896 | ac_cv_sizeof_int=0 |
| 7897 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7898 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7899 | 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] | 7900 | fi |
| 7901 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7902 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7903 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 7904 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7905 | |
| 7906 | |
| 7907 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7908 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7909 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7910 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7911 | |
| 7912 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7913 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 7914 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
| 7915 | if test "${ac_cv_type_long+set}" = set; then |
| 7916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7917 | else |
| 7918 | cat >conftest.$ac_ext <<_ACEOF |
| 7919 | /* confdefs.h. */ |
| 7920 | _ACEOF |
| 7921 | cat confdefs.h >>conftest.$ac_ext |
| 7922 | cat >>conftest.$ac_ext <<_ACEOF |
| 7923 | /* end confdefs.h. */ |
| 7924 | $ac_includes_default |
| 7925 | typedef long ac__type_new_; |
| 7926 | int |
| 7927 | main () |
| 7928 | { |
| 7929 | if ((ac__type_new_ *) 0) |
| 7930 | return 0; |
| 7931 | if (sizeof (ac__type_new_)) |
| 7932 | return 0; |
| 7933 | ; |
| 7934 | return 0; |
| 7935 | } |
| 7936 | _ACEOF |
| 7937 | rm -f conftest.$ac_objext |
| 7938 | if { (ac_try="$ac_compile" |
| 7939 | case "(($ac_try" in |
| 7940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7941 | *) ac_try_echo=$ac_try;; |
| 7942 | esac |
| 7943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7944 | (eval "$ac_compile") 2>conftest.er1 |
| 7945 | ac_status=$? |
| 7946 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7947 | rm -f conftest.er1 |
| 7948 | cat conftest.err >&5 |
| 7949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7950 | (exit $ac_status); } && { |
| 7951 | test -z "$ac_c_werror_flag" || |
| 7952 | test ! -s conftest.err |
| 7953 | } && test -s conftest.$ac_objext; then |
| 7954 | ac_cv_type_long=yes |
| 7955 | else |
| 7956 | echo "$as_me: failed program was:" >&5 |
| 7957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7958 | |
| 7959 | ac_cv_type_long=no |
| 7960 | fi |
| 7961 | |
| 7962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7963 | fi |
| 7964 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 7965 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 7966 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7967 | # The cast to long int works around a bug in the HP C Compiler |
| 7968 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7969 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7970 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7971 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 7972 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7973 | if test "${ac_cv_sizeof_long+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7975 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7976 | if test "$cross_compiling" = yes; then |
| 7977 | # Depending upon the size, compute the lo and hi bounds. |
| 7978 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7979 | /* confdefs.h. */ |
| 7980 | _ACEOF |
| 7981 | cat confdefs.h >>conftest.$ac_ext |
| 7982 | cat >>conftest.$ac_ext <<_ACEOF |
| 7983 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7984 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7985 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7986 | int |
| 7987 | main () |
| 7988 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 7989 | 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] | 7990 | test_array [0] = 0 |
| 7991 | |
| 7992 | ; |
| 7993 | return 0; |
| 7994 | } |
| 7995 | _ACEOF |
| 7996 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7997 | if { (ac_try="$ac_compile" |
| 7998 | case "(($ac_try" in |
| 7999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8000 | *) ac_try_echo=$ac_try;; |
| 8001 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8003 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8004 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8006 | rm -f conftest.er1 |
| 8007 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8009 | (exit $ac_status); } && { |
| 8010 | test -z "$ac_c_werror_flag" || |
| 8011 | test ! -s conftest.err |
| 8012 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8013 | ac_lo=0 ac_mid=0 |
| 8014 | while :; do |
| 8015 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8016 | /* confdefs.h. */ |
| 8017 | _ACEOF |
| 8018 | cat confdefs.h >>conftest.$ac_ext |
| 8019 | cat >>conftest.$ac_ext <<_ACEOF |
| 8020 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8021 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8022 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8023 | int |
| 8024 | main () |
| 8025 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8026 | 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] | 8027 | test_array [0] = 0 |
| 8028 | |
| 8029 | ; |
| 8030 | return 0; |
| 8031 | } |
| 8032 | _ACEOF |
| 8033 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8034 | if { (ac_try="$ac_compile" |
| 8035 | case "(($ac_try" in |
| 8036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8037 | *) ac_try_echo=$ac_try;; |
| 8038 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8040 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8041 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8043 | rm -f conftest.er1 |
| 8044 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8046 | (exit $ac_status); } && { |
| 8047 | test -z "$ac_c_werror_flag" || |
| 8048 | test ! -s conftest.err |
| 8049 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8050 | ac_hi=$ac_mid; break |
| 8051 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8052 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8053 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8054 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8055 | ac_lo=`expr $ac_mid + 1` |
| 8056 | if test $ac_lo -le $ac_mid; then |
| 8057 | ac_lo= ac_hi= |
| 8058 | break |
| 8059 | fi |
| 8060 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8061 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8062 | |
| 8063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8064 | done |
| 8065 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8066 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8068 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8069 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8070 | /* confdefs.h. */ |
| 8071 | _ACEOF |
| 8072 | cat confdefs.h >>conftest.$ac_ext |
| 8073 | cat >>conftest.$ac_ext <<_ACEOF |
| 8074 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8075 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8076 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8077 | int |
| 8078 | main () |
| 8079 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8080 | 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] | 8081 | test_array [0] = 0 |
| 8082 | |
| 8083 | ; |
| 8084 | return 0; |
| 8085 | } |
| 8086 | _ACEOF |
| 8087 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8088 | if { (ac_try="$ac_compile" |
| 8089 | case "(($ac_try" in |
| 8090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8091 | *) ac_try_echo=$ac_try;; |
| 8092 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8094 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8095 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8097 | rm -f conftest.er1 |
| 8098 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8100 | (exit $ac_status); } && { |
| 8101 | test -z "$ac_c_werror_flag" || |
| 8102 | test ! -s conftest.err |
| 8103 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8104 | ac_hi=-1 ac_mid=-1 |
| 8105 | while :; do |
| 8106 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8107 | /* confdefs.h. */ |
| 8108 | _ACEOF |
| 8109 | cat confdefs.h >>conftest.$ac_ext |
| 8110 | cat >>conftest.$ac_ext <<_ACEOF |
| 8111 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8112 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8113 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8114 | int |
| 8115 | main () |
| 8116 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8117 | 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] | 8118 | test_array [0] = 0 |
| 8119 | |
| 8120 | ; |
| 8121 | return 0; |
| 8122 | } |
| 8123 | _ACEOF |
| 8124 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8125 | if { (ac_try="$ac_compile" |
| 8126 | case "(($ac_try" in |
| 8127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8128 | *) ac_try_echo=$ac_try;; |
| 8129 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8131 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8132 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8133 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8134 | rm -f conftest.er1 |
| 8135 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8137 | (exit $ac_status); } && { |
| 8138 | test -z "$ac_c_werror_flag" || |
| 8139 | test ! -s conftest.err |
| 8140 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8141 | ac_lo=$ac_mid; break |
| 8142 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8143 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8145 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8146 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8147 | if test $ac_mid -le $ac_hi; then |
| 8148 | ac_lo= ac_hi= |
| 8149 | break |
| 8150 | fi |
| 8151 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8152 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8153 | |
| 8154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8155 | done |
| 8156 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8157 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8159 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8160 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8161 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8162 | |
| 8163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8164 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8165 | |
| 8166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8167 | # Binary search between lo and hi bounds. |
| 8168 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8169 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8170 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8171 | /* confdefs.h. */ |
| 8172 | _ACEOF |
| 8173 | cat confdefs.h >>conftest.$ac_ext |
| 8174 | cat >>conftest.$ac_ext <<_ACEOF |
| 8175 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8176 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8177 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8178 | int |
| 8179 | main () |
| 8180 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8181 | 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] | 8182 | test_array [0] = 0 |
| 8183 | |
| 8184 | ; |
| 8185 | return 0; |
| 8186 | } |
| 8187 | _ACEOF |
| 8188 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8189 | if { (ac_try="$ac_compile" |
| 8190 | case "(($ac_try" in |
| 8191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8192 | *) ac_try_echo=$ac_try;; |
| 8193 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8195 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8196 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8198 | rm -f conftest.er1 |
| 8199 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8201 | (exit $ac_status); } && { |
| 8202 | test -z "$ac_c_werror_flag" || |
| 8203 | test ! -s conftest.err |
| 8204 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8205 | ac_hi=$ac_mid |
| 8206 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8207 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8209 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8210 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8211 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8212 | |
| 8213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8214 | done |
| 8215 | case $ac_lo in |
| 8216 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8217 | '') if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8218 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8219 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8220 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8221 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8222 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8223 | else |
| 8224 | ac_cv_sizeof_long=0 |
| 8225 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8226 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8227 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8228 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8229 | /* confdefs.h. */ |
| 8230 | _ACEOF |
| 8231 | cat confdefs.h >>conftest.$ac_ext |
| 8232 | cat >>conftest.$ac_ext <<_ACEOF |
| 8233 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8234 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8235 | typedef long ac__type_sizeof_; |
| 8236 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8237 | 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] | 8238 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8239 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8240 | int |
| 8241 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8242 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8243 | |
| 8244 | FILE *f = fopen ("conftest.val", "w"); |
| 8245 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8246 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8247 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8248 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8249 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8250 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8251 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8252 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8253 | } |
| 8254 | else |
| 8255 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8256 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8257 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8258 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8259 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8260 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8261 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8262 | |
| 8263 | ; |
| 8264 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8265 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8266 | _ACEOF |
| 8267 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8268 | if { (ac_try="$ac_link" |
| 8269 | case "(($ac_try" in |
| 8270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8271 | *) ac_try_echo=$ac_try;; |
| 8272 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8274 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8275 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8277 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8278 | { (case "(($ac_try" in |
| 8279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8280 | *) ac_try_echo=$ac_try;; |
| 8281 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8283 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8284 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8286 | (exit $ac_status); }; }; then |
| 8287 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8288 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8289 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8290 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8293 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8294 | if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8295 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8296 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8297 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8298 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8299 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8300 | else |
| 8301 | ac_cv_sizeof_long=0 |
| 8302 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8303 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8304 | 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] | 8305 | fi |
| 8306 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8307 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8308 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 8309 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8310 | |
| 8311 | |
| 8312 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8313 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8314 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8315 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8316 | |
| 8317 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8318 | { echo "$as_me:$LINENO: checking for void *" >&5 |
| 8319 | echo $ECHO_N "checking for void *... $ECHO_C" >&6; } |
| 8320 | if test "${ac_cv_type_void_p+set}" = set; then |
| 8321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8322 | else |
| 8323 | cat >conftest.$ac_ext <<_ACEOF |
| 8324 | /* confdefs.h. */ |
| 8325 | _ACEOF |
| 8326 | cat confdefs.h >>conftest.$ac_ext |
| 8327 | cat >>conftest.$ac_ext <<_ACEOF |
| 8328 | /* end confdefs.h. */ |
| 8329 | $ac_includes_default |
| 8330 | typedef void * ac__type_new_; |
| 8331 | int |
| 8332 | main () |
| 8333 | { |
| 8334 | if ((ac__type_new_ *) 0) |
| 8335 | return 0; |
| 8336 | if (sizeof (ac__type_new_)) |
| 8337 | return 0; |
| 8338 | ; |
| 8339 | return 0; |
| 8340 | } |
| 8341 | _ACEOF |
| 8342 | rm -f conftest.$ac_objext |
| 8343 | if { (ac_try="$ac_compile" |
| 8344 | case "(($ac_try" in |
| 8345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8346 | *) ac_try_echo=$ac_try;; |
| 8347 | esac |
| 8348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8349 | (eval "$ac_compile") 2>conftest.er1 |
| 8350 | ac_status=$? |
| 8351 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8352 | rm -f conftest.er1 |
| 8353 | cat conftest.err >&5 |
| 8354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8355 | (exit $ac_status); } && { |
| 8356 | test -z "$ac_c_werror_flag" || |
| 8357 | test ! -s conftest.err |
| 8358 | } && test -s conftest.$ac_objext; then |
| 8359 | ac_cv_type_void_p=yes |
| 8360 | else |
| 8361 | echo "$as_me: failed program was:" >&5 |
| 8362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8363 | |
| 8364 | ac_cv_type_void_p=no |
| 8365 | fi |
| 8366 | |
| 8367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8368 | fi |
| 8369 | { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 8370 | echo "${ECHO_T}$ac_cv_type_void_p" >&6; } |
| 8371 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8372 | # The cast to long int works around a bug in the HP C Compiler |
| 8373 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8374 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8375 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8376 | { echo "$as_me:$LINENO: checking size of void *" >&5 |
| 8377 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8378 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8380 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8381 | if test "$cross_compiling" = yes; then |
| 8382 | # Depending upon the size, compute the lo and hi bounds. |
| 8383 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8384 | /* confdefs.h. */ |
| 8385 | _ACEOF |
| 8386 | cat confdefs.h >>conftest.$ac_ext |
| 8387 | cat >>conftest.$ac_ext <<_ACEOF |
| 8388 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8389 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8390 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8391 | int |
| 8392 | main () |
| 8393 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8394 | 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] | 8395 | test_array [0] = 0 |
| 8396 | |
| 8397 | ; |
| 8398 | return 0; |
| 8399 | } |
| 8400 | _ACEOF |
| 8401 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8402 | if { (ac_try="$ac_compile" |
| 8403 | case "(($ac_try" in |
| 8404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8405 | *) ac_try_echo=$ac_try;; |
| 8406 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8408 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8409 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8411 | rm -f conftest.er1 |
| 8412 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8414 | (exit $ac_status); } && { |
| 8415 | test -z "$ac_c_werror_flag" || |
| 8416 | test ! -s conftest.err |
| 8417 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8418 | ac_lo=0 ac_mid=0 |
| 8419 | while :; do |
| 8420 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8421 | /* confdefs.h. */ |
| 8422 | _ACEOF |
| 8423 | cat confdefs.h >>conftest.$ac_ext |
| 8424 | cat >>conftest.$ac_ext <<_ACEOF |
| 8425 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8426 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8427 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8428 | int |
| 8429 | main () |
| 8430 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8431 | 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] | 8432 | test_array [0] = 0 |
| 8433 | |
| 8434 | ; |
| 8435 | return 0; |
| 8436 | } |
| 8437 | _ACEOF |
| 8438 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8439 | if { (ac_try="$ac_compile" |
| 8440 | case "(($ac_try" in |
| 8441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8442 | *) ac_try_echo=$ac_try;; |
| 8443 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8445 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8446 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8448 | rm -f conftest.er1 |
| 8449 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8451 | (exit $ac_status); } && { |
| 8452 | test -z "$ac_c_werror_flag" || |
| 8453 | test ! -s conftest.err |
| 8454 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8455 | ac_hi=$ac_mid; break |
| 8456 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8457 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8459 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8460 | ac_lo=`expr $ac_mid + 1` |
| 8461 | if test $ac_lo -le $ac_mid; then |
| 8462 | ac_lo= ac_hi= |
| 8463 | break |
| 8464 | fi |
| 8465 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8466 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8467 | |
| 8468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8469 | done |
| 8470 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8471 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8473 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8474 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8475 | /* confdefs.h. */ |
| 8476 | _ACEOF |
| 8477 | cat confdefs.h >>conftest.$ac_ext |
| 8478 | cat >>conftest.$ac_ext <<_ACEOF |
| 8479 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8480 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8481 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8482 | int |
| 8483 | main () |
| 8484 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8485 | 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] | 8486 | test_array [0] = 0 |
| 8487 | |
| 8488 | ; |
| 8489 | return 0; |
| 8490 | } |
| 8491 | _ACEOF |
| 8492 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8493 | if { (ac_try="$ac_compile" |
| 8494 | case "(($ac_try" in |
| 8495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8496 | *) ac_try_echo=$ac_try;; |
| 8497 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8499 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8500 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8501 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8502 | rm -f conftest.er1 |
| 8503 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8505 | (exit $ac_status); } && { |
| 8506 | test -z "$ac_c_werror_flag" || |
| 8507 | test ! -s conftest.err |
| 8508 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8509 | ac_hi=-1 ac_mid=-1 |
| 8510 | while :; do |
| 8511 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8512 | /* confdefs.h. */ |
| 8513 | _ACEOF |
| 8514 | cat confdefs.h >>conftest.$ac_ext |
| 8515 | cat >>conftest.$ac_ext <<_ACEOF |
| 8516 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8517 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8518 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8519 | int |
| 8520 | main () |
| 8521 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8522 | 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] | 8523 | test_array [0] = 0 |
| 8524 | |
| 8525 | ; |
| 8526 | return 0; |
| 8527 | } |
| 8528 | _ACEOF |
| 8529 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8530 | if { (ac_try="$ac_compile" |
| 8531 | case "(($ac_try" in |
| 8532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8533 | *) ac_try_echo=$ac_try;; |
| 8534 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8536 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8537 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8538 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8539 | rm -f conftest.er1 |
| 8540 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8542 | (exit $ac_status); } && { |
| 8543 | test -z "$ac_c_werror_flag" || |
| 8544 | test ! -s conftest.err |
| 8545 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8546 | ac_lo=$ac_mid; break |
| 8547 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8548 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8550 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8551 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8552 | if test $ac_mid -le $ac_hi; then |
| 8553 | ac_lo= ac_hi= |
| 8554 | break |
| 8555 | fi |
| 8556 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8557 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8558 | |
| 8559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8560 | done |
| 8561 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8562 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8563 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8564 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8565 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8566 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8567 | |
| 8568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8569 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8570 | |
| 8571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8572 | # Binary search between lo and hi bounds. |
| 8573 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8574 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8575 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8576 | /* confdefs.h. */ |
| 8577 | _ACEOF |
| 8578 | cat confdefs.h >>conftest.$ac_ext |
| 8579 | cat >>conftest.$ac_ext <<_ACEOF |
| 8580 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8581 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8582 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8583 | int |
| 8584 | main () |
| 8585 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8586 | 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] | 8587 | test_array [0] = 0 |
| 8588 | |
| 8589 | ; |
| 8590 | return 0; |
| 8591 | } |
| 8592 | _ACEOF |
| 8593 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8594 | if { (ac_try="$ac_compile" |
| 8595 | case "(($ac_try" in |
| 8596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8597 | *) ac_try_echo=$ac_try;; |
| 8598 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8600 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8601 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8603 | rm -f conftest.er1 |
| 8604 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8606 | (exit $ac_status); } && { |
| 8607 | test -z "$ac_c_werror_flag" || |
| 8608 | test ! -s conftest.err |
| 8609 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8610 | ac_hi=$ac_mid |
| 8611 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8612 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8614 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8615 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8616 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8617 | |
| 8618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8619 | done |
| 8620 | case $ac_lo in |
| 8621 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8622 | '') if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8623 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8624 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8625 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8626 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8627 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8628 | else |
| 8629 | ac_cv_sizeof_void_p=0 |
| 8630 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8631 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8632 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8633 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8634 | /* confdefs.h. */ |
| 8635 | _ACEOF |
| 8636 | cat confdefs.h >>conftest.$ac_ext |
| 8637 | cat >>conftest.$ac_ext <<_ACEOF |
| 8638 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8639 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8640 | typedef void * ac__type_sizeof_; |
| 8641 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8642 | 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] | 8643 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8644 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8645 | int |
| 8646 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8647 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8648 | |
| 8649 | FILE *f = fopen ("conftest.val", "w"); |
| 8650 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8651 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8652 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8653 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8654 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8655 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8656 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8657 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8658 | } |
| 8659 | else |
| 8660 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8661 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8662 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8663 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8664 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8665 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8666 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8667 | |
| 8668 | ; |
| 8669 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8670 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8671 | _ACEOF |
| 8672 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8673 | if { (ac_try="$ac_link" |
| 8674 | case "(($ac_try" in |
| 8675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8676 | *) ac_try_echo=$ac_try;; |
| 8677 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8679 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8680 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8682 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8683 | { (case "(($ac_try" in |
| 8684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8685 | *) ac_try_echo=$ac_try;; |
| 8686 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8688 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8689 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8691 | (exit $ac_status); }; }; then |
| 8692 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8693 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8694 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8695 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8697 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8698 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8699 | if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8700 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8701 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8702 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8703 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8704 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8705 | else |
| 8706 | ac_cv_sizeof_void_p=0 |
| 8707 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8708 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8709 | 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] | 8710 | fi |
| 8711 | rm -f conftest.val |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8712 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8713 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 8714 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8715 | |
| 8716 | |
| 8717 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8718 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8719 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8720 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8721 | |
| 8722 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8723 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 8724 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
| 8725 | if test "${ac_cv_type_short+set}" = set; then |
| 8726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8727 | else |
| 8728 | cat >conftest.$ac_ext <<_ACEOF |
| 8729 | /* confdefs.h. */ |
| 8730 | _ACEOF |
| 8731 | cat confdefs.h >>conftest.$ac_ext |
| 8732 | cat >>conftest.$ac_ext <<_ACEOF |
| 8733 | /* end confdefs.h. */ |
| 8734 | $ac_includes_default |
| 8735 | typedef short ac__type_new_; |
| 8736 | int |
| 8737 | main () |
| 8738 | { |
| 8739 | if ((ac__type_new_ *) 0) |
| 8740 | return 0; |
| 8741 | if (sizeof (ac__type_new_)) |
| 8742 | return 0; |
| 8743 | ; |
| 8744 | return 0; |
| 8745 | } |
| 8746 | _ACEOF |
| 8747 | rm -f conftest.$ac_objext |
| 8748 | if { (ac_try="$ac_compile" |
| 8749 | case "(($ac_try" in |
| 8750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8751 | *) ac_try_echo=$ac_try;; |
| 8752 | esac |
| 8753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8754 | (eval "$ac_compile") 2>conftest.er1 |
| 8755 | ac_status=$? |
| 8756 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8757 | rm -f conftest.er1 |
| 8758 | cat conftest.err >&5 |
| 8759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8760 | (exit $ac_status); } && { |
| 8761 | test -z "$ac_c_werror_flag" || |
| 8762 | test ! -s conftest.err |
| 8763 | } && test -s conftest.$ac_objext; then |
| 8764 | ac_cv_type_short=yes |
| 8765 | else |
| 8766 | echo "$as_me: failed program was:" >&5 |
| 8767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8768 | |
| 8769 | ac_cv_type_short=no |
| 8770 | fi |
| 8771 | |
| 8772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8773 | fi |
| 8774 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 8775 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 8776 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8777 | # The cast to long int works around a bug in the HP C Compiler |
| 8778 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8779 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8780 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8781 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 8782 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8783 | if test "${ac_cv_sizeof_short+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8785 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8786 | if test "$cross_compiling" = yes; then |
| 8787 | # Depending upon the size, compute the lo and hi bounds. |
| 8788 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8789 | /* confdefs.h. */ |
| 8790 | _ACEOF |
| 8791 | cat confdefs.h >>conftest.$ac_ext |
| 8792 | cat >>conftest.$ac_ext <<_ACEOF |
| 8793 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8794 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8795 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8796 | int |
| 8797 | main () |
| 8798 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8799 | 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] | 8800 | test_array [0] = 0 |
| 8801 | |
| 8802 | ; |
| 8803 | return 0; |
| 8804 | } |
| 8805 | _ACEOF |
| 8806 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8807 | if { (ac_try="$ac_compile" |
| 8808 | case "(($ac_try" in |
| 8809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8810 | *) ac_try_echo=$ac_try;; |
| 8811 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8813 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8814 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8816 | rm -f conftest.er1 |
| 8817 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8819 | (exit $ac_status); } && { |
| 8820 | test -z "$ac_c_werror_flag" || |
| 8821 | test ! -s conftest.err |
| 8822 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8823 | ac_lo=0 ac_mid=0 |
| 8824 | while :; do |
| 8825 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8826 | /* confdefs.h. */ |
| 8827 | _ACEOF |
| 8828 | cat confdefs.h >>conftest.$ac_ext |
| 8829 | cat >>conftest.$ac_ext <<_ACEOF |
| 8830 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8831 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8832 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8833 | int |
| 8834 | main () |
| 8835 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8836 | 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] | 8837 | test_array [0] = 0 |
| 8838 | |
| 8839 | ; |
| 8840 | return 0; |
| 8841 | } |
| 8842 | _ACEOF |
| 8843 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8844 | if { (ac_try="$ac_compile" |
| 8845 | case "(($ac_try" in |
| 8846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8847 | *) ac_try_echo=$ac_try;; |
| 8848 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8850 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8851 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8852 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8853 | rm -f conftest.er1 |
| 8854 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8856 | (exit $ac_status); } && { |
| 8857 | test -z "$ac_c_werror_flag" || |
| 8858 | test ! -s conftest.err |
| 8859 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8860 | ac_hi=$ac_mid; break |
| 8861 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8862 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8864 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8865 | ac_lo=`expr $ac_mid + 1` |
| 8866 | if test $ac_lo -le $ac_mid; then |
| 8867 | ac_lo= ac_hi= |
| 8868 | break |
| 8869 | fi |
| 8870 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8871 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8872 | |
| 8873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8874 | done |
| 8875 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8876 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8878 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8879 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8880 | /* confdefs.h. */ |
| 8881 | _ACEOF |
| 8882 | cat confdefs.h >>conftest.$ac_ext |
| 8883 | cat >>conftest.$ac_ext <<_ACEOF |
| 8884 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8885 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8886 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8887 | int |
| 8888 | main () |
| 8889 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8890 | 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] | 8891 | test_array [0] = 0 |
| 8892 | |
| 8893 | ; |
| 8894 | return 0; |
| 8895 | } |
| 8896 | _ACEOF |
| 8897 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8898 | if { (ac_try="$ac_compile" |
| 8899 | case "(($ac_try" in |
| 8900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8901 | *) ac_try_echo=$ac_try;; |
| 8902 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8904 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8905 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8907 | rm -f conftest.er1 |
| 8908 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8910 | (exit $ac_status); } && { |
| 8911 | test -z "$ac_c_werror_flag" || |
| 8912 | test ! -s conftest.err |
| 8913 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8914 | ac_hi=-1 ac_mid=-1 |
| 8915 | while :; do |
| 8916 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8917 | /* confdefs.h. */ |
| 8918 | _ACEOF |
| 8919 | cat confdefs.h >>conftest.$ac_ext |
| 8920 | cat >>conftest.$ac_ext <<_ACEOF |
| 8921 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8922 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8923 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8924 | int |
| 8925 | main () |
| 8926 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8927 | 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] | 8928 | test_array [0] = 0 |
| 8929 | |
| 8930 | ; |
| 8931 | return 0; |
| 8932 | } |
| 8933 | _ACEOF |
| 8934 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8935 | if { (ac_try="$ac_compile" |
| 8936 | case "(($ac_try" in |
| 8937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8938 | *) ac_try_echo=$ac_try;; |
| 8939 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8941 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8942 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8944 | rm -f conftest.er1 |
| 8945 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8947 | (exit $ac_status); } && { |
| 8948 | test -z "$ac_c_werror_flag" || |
| 8949 | test ! -s conftest.err |
| 8950 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8951 | ac_lo=$ac_mid; break |
| 8952 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8953 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8955 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8956 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8957 | if test $ac_mid -le $ac_hi; then |
| 8958 | ac_lo= ac_hi= |
| 8959 | break |
| 8960 | fi |
| 8961 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8962 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8963 | |
| 8964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8965 | done |
| 8966 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8967 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8969 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8970 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8971 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8972 | |
| 8973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8974 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8975 | |
| 8976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8977 | # Binary search between lo and hi bounds. |
| 8978 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8979 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8980 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8981 | /* confdefs.h. */ |
| 8982 | _ACEOF |
| 8983 | cat confdefs.h >>conftest.$ac_ext |
| 8984 | cat >>conftest.$ac_ext <<_ACEOF |
| 8985 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8986 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8987 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8988 | int |
| 8989 | main () |
| 8990 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 8991 | 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] | 8992 | test_array [0] = 0 |
| 8993 | |
| 8994 | ; |
| 8995 | return 0; |
| 8996 | } |
| 8997 | _ACEOF |
| 8998 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8999 | if { (ac_try="$ac_compile" |
| 9000 | case "(($ac_try" in |
| 9001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9002 | *) ac_try_echo=$ac_try;; |
| 9003 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9005 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9006 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9008 | rm -f conftest.er1 |
| 9009 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9011 | (exit $ac_status); } && { |
| 9012 | test -z "$ac_c_werror_flag" || |
| 9013 | test ! -s conftest.err |
| 9014 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9015 | ac_hi=$ac_mid |
| 9016 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9017 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9018 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9019 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9020 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9021 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9022 | |
| 9023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9024 | done |
| 9025 | case $ac_lo in |
| 9026 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9027 | '') if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9028 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9029 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9030 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9031 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9032 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9033 | else |
| 9034 | ac_cv_sizeof_short=0 |
| 9035 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9036 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9037 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9038 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9039 | /* confdefs.h. */ |
| 9040 | _ACEOF |
| 9041 | cat confdefs.h >>conftest.$ac_ext |
| 9042 | cat >>conftest.$ac_ext <<_ACEOF |
| 9043 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9044 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9045 | typedef short ac__type_sizeof_; |
| 9046 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9047 | 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] | 9048 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9049 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9050 | int |
| 9051 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9052 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9053 | |
| 9054 | FILE *f = fopen ("conftest.val", "w"); |
| 9055 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9056 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9057 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9058 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9059 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9060 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9061 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9062 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9063 | } |
| 9064 | else |
| 9065 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9066 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9067 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9068 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9069 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9070 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9071 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9072 | |
| 9073 | ; |
| 9074 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9075 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9076 | _ACEOF |
| 9077 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9078 | if { (ac_try="$ac_link" |
| 9079 | case "(($ac_try" in |
| 9080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9081 | *) ac_try_echo=$ac_try;; |
| 9082 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9084 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9085 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9087 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9088 | { (case "(($ac_try" in |
| 9089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9090 | *) ac_try_echo=$ac_try;; |
| 9091 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9093 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9094 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9096 | (exit $ac_status); }; }; then |
| 9097 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9098 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9099 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9100 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9102 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9103 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9104 | if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9105 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9106 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9107 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9108 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9109 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9110 | else |
| 9111 | ac_cv_sizeof_short=0 |
| 9112 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9113 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9114 | 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] | 9115 | fi |
| 9116 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9117 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9118 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 9119 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9120 | |
| 9121 | |
| 9122 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9123 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9124 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9125 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9126 | |
| 9127 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9128 | { echo "$as_me:$LINENO: checking for float" >&5 |
| 9129 | echo $ECHO_N "checking for float... $ECHO_C" >&6; } |
| 9130 | if test "${ac_cv_type_float+set}" = set; then |
| 9131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9132 | else |
| 9133 | cat >conftest.$ac_ext <<_ACEOF |
| 9134 | /* confdefs.h. */ |
| 9135 | _ACEOF |
| 9136 | cat confdefs.h >>conftest.$ac_ext |
| 9137 | cat >>conftest.$ac_ext <<_ACEOF |
| 9138 | /* end confdefs.h. */ |
| 9139 | $ac_includes_default |
| 9140 | typedef float ac__type_new_; |
| 9141 | int |
| 9142 | main () |
| 9143 | { |
| 9144 | if ((ac__type_new_ *) 0) |
| 9145 | return 0; |
| 9146 | if (sizeof (ac__type_new_)) |
| 9147 | return 0; |
| 9148 | ; |
| 9149 | return 0; |
| 9150 | } |
| 9151 | _ACEOF |
| 9152 | rm -f conftest.$ac_objext |
| 9153 | if { (ac_try="$ac_compile" |
| 9154 | case "(($ac_try" in |
| 9155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9156 | *) ac_try_echo=$ac_try;; |
| 9157 | esac |
| 9158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9159 | (eval "$ac_compile") 2>conftest.er1 |
| 9160 | ac_status=$? |
| 9161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9162 | rm -f conftest.er1 |
| 9163 | cat conftest.err >&5 |
| 9164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9165 | (exit $ac_status); } && { |
| 9166 | test -z "$ac_c_werror_flag" || |
| 9167 | test ! -s conftest.err |
| 9168 | } && test -s conftest.$ac_objext; then |
| 9169 | ac_cv_type_float=yes |
| 9170 | else |
| 9171 | echo "$as_me: failed program was:" >&5 |
| 9172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9173 | |
| 9174 | ac_cv_type_float=no |
| 9175 | fi |
| 9176 | |
| 9177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9178 | fi |
| 9179 | { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 9180 | echo "${ECHO_T}$ac_cv_type_float" >&6; } |
| 9181 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9182 | # The cast to long int works around a bug in the HP C Compiler |
| 9183 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9184 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9185 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9186 | { echo "$as_me:$LINENO: checking size of float" >&5 |
| 9187 | echo $ECHO_N "checking size of float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9188 | if test "${ac_cv_sizeof_float+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9190 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9191 | if test "$cross_compiling" = yes; then |
| 9192 | # Depending upon the size, compute the lo and hi bounds. |
| 9193 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9194 | /* confdefs.h. */ |
| 9195 | _ACEOF |
| 9196 | cat confdefs.h >>conftest.$ac_ext |
| 9197 | cat >>conftest.$ac_ext <<_ACEOF |
| 9198 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9199 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9200 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9201 | int |
| 9202 | main () |
| 9203 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9204 | 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] | 9205 | test_array [0] = 0 |
| 9206 | |
| 9207 | ; |
| 9208 | return 0; |
| 9209 | } |
| 9210 | _ACEOF |
| 9211 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9212 | if { (ac_try="$ac_compile" |
| 9213 | case "(($ac_try" in |
| 9214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9215 | *) ac_try_echo=$ac_try;; |
| 9216 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9218 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9219 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9221 | rm -f conftest.er1 |
| 9222 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9224 | (exit $ac_status); } && { |
| 9225 | test -z "$ac_c_werror_flag" || |
| 9226 | test ! -s conftest.err |
| 9227 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9228 | ac_lo=0 ac_mid=0 |
| 9229 | while :; do |
| 9230 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9231 | /* confdefs.h. */ |
| 9232 | _ACEOF |
| 9233 | cat confdefs.h >>conftest.$ac_ext |
| 9234 | cat >>conftest.$ac_ext <<_ACEOF |
| 9235 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9236 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9237 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9238 | int |
| 9239 | main () |
| 9240 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9241 | 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] | 9242 | test_array [0] = 0 |
| 9243 | |
| 9244 | ; |
| 9245 | return 0; |
| 9246 | } |
| 9247 | _ACEOF |
| 9248 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9249 | if { (ac_try="$ac_compile" |
| 9250 | case "(($ac_try" in |
| 9251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9252 | *) ac_try_echo=$ac_try;; |
| 9253 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9255 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9256 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9257 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9258 | rm -f conftest.er1 |
| 9259 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9261 | (exit $ac_status); } && { |
| 9262 | test -z "$ac_c_werror_flag" || |
| 9263 | test ! -s conftest.err |
| 9264 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9265 | ac_hi=$ac_mid; break |
| 9266 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9267 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9269 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9270 | ac_lo=`expr $ac_mid + 1` |
| 9271 | if test $ac_lo -le $ac_mid; then |
| 9272 | ac_lo= ac_hi= |
| 9273 | break |
| 9274 | fi |
| 9275 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9276 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9277 | |
| 9278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9279 | done |
| 9280 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9281 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9283 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9284 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9285 | /* confdefs.h. */ |
| 9286 | _ACEOF |
| 9287 | cat confdefs.h >>conftest.$ac_ext |
| 9288 | cat >>conftest.$ac_ext <<_ACEOF |
| 9289 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9290 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9291 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9292 | int |
| 9293 | main () |
| 9294 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9295 | 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] | 9296 | test_array [0] = 0 |
| 9297 | |
| 9298 | ; |
| 9299 | return 0; |
| 9300 | } |
| 9301 | _ACEOF |
| 9302 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9303 | if { (ac_try="$ac_compile" |
| 9304 | case "(($ac_try" in |
| 9305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9306 | *) ac_try_echo=$ac_try;; |
| 9307 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9309 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9310 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9312 | rm -f conftest.er1 |
| 9313 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9315 | (exit $ac_status); } && { |
| 9316 | test -z "$ac_c_werror_flag" || |
| 9317 | test ! -s conftest.err |
| 9318 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9319 | ac_hi=-1 ac_mid=-1 |
| 9320 | while :; do |
| 9321 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9322 | /* confdefs.h. */ |
| 9323 | _ACEOF |
| 9324 | cat confdefs.h >>conftest.$ac_ext |
| 9325 | cat >>conftest.$ac_ext <<_ACEOF |
| 9326 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9327 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9328 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9329 | int |
| 9330 | main () |
| 9331 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9332 | 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] | 9333 | test_array [0] = 0 |
| 9334 | |
| 9335 | ; |
| 9336 | return 0; |
| 9337 | } |
| 9338 | _ACEOF |
| 9339 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9340 | if { (ac_try="$ac_compile" |
| 9341 | case "(($ac_try" in |
| 9342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9343 | *) ac_try_echo=$ac_try;; |
| 9344 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9346 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9347 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9349 | rm -f conftest.er1 |
| 9350 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9352 | (exit $ac_status); } && { |
| 9353 | test -z "$ac_c_werror_flag" || |
| 9354 | test ! -s conftest.err |
| 9355 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9356 | ac_lo=$ac_mid; break |
| 9357 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9358 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9360 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9361 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9362 | if test $ac_mid -le $ac_hi; then |
| 9363 | ac_lo= ac_hi= |
| 9364 | break |
| 9365 | fi |
| 9366 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9367 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9368 | |
| 9369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9370 | done |
| 9371 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9372 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9374 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9375 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9376 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9377 | |
| 9378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9379 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9380 | |
| 9381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9382 | # Binary search between lo and hi bounds. |
| 9383 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9384 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9385 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9386 | /* confdefs.h. */ |
| 9387 | _ACEOF |
| 9388 | cat confdefs.h >>conftest.$ac_ext |
| 9389 | cat >>conftest.$ac_ext <<_ACEOF |
| 9390 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9391 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9392 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9393 | int |
| 9394 | main () |
| 9395 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9396 | 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] | 9397 | test_array [0] = 0 |
| 9398 | |
| 9399 | ; |
| 9400 | return 0; |
| 9401 | } |
| 9402 | _ACEOF |
| 9403 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9404 | if { (ac_try="$ac_compile" |
| 9405 | case "(($ac_try" in |
| 9406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9407 | *) ac_try_echo=$ac_try;; |
| 9408 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9410 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9411 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9413 | rm -f conftest.er1 |
| 9414 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9416 | (exit $ac_status); } && { |
| 9417 | test -z "$ac_c_werror_flag" || |
| 9418 | test ! -s conftest.err |
| 9419 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9420 | ac_hi=$ac_mid |
| 9421 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9422 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9424 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9425 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9426 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9427 | |
| 9428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9429 | done |
| 9430 | case $ac_lo in |
| 9431 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9432 | '') if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9433 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9434 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9435 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9436 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9437 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9438 | else |
| 9439 | ac_cv_sizeof_float=0 |
| 9440 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9441 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9442 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9443 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9444 | /* confdefs.h. */ |
| 9445 | _ACEOF |
| 9446 | cat confdefs.h >>conftest.$ac_ext |
| 9447 | cat >>conftest.$ac_ext <<_ACEOF |
| 9448 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9449 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9450 | typedef float ac__type_sizeof_; |
| 9451 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9452 | 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] | 9453 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9454 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9455 | int |
| 9456 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9457 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9458 | |
| 9459 | FILE *f = fopen ("conftest.val", "w"); |
| 9460 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9461 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9462 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9463 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9464 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9465 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9466 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9467 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9468 | } |
| 9469 | else |
| 9470 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9471 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9472 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9473 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9474 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9475 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9476 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9477 | |
| 9478 | ; |
| 9479 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9480 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9481 | _ACEOF |
| 9482 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9483 | if { (ac_try="$ac_link" |
| 9484 | case "(($ac_try" in |
| 9485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9486 | *) ac_try_echo=$ac_try;; |
| 9487 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9489 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9490 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9492 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9493 | { (case "(($ac_try" in |
| 9494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9495 | *) ac_try_echo=$ac_try;; |
| 9496 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9498 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9499 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9501 | (exit $ac_status); }; }; then |
| 9502 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9503 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9504 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9505 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9507 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9508 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9509 | if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9510 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9511 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9512 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9513 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9514 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9515 | else |
| 9516 | ac_cv_sizeof_float=0 |
| 9517 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9518 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9519 | 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] | 9520 | fi |
| 9521 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9522 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9523 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 9524 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9525 | |
| 9526 | |
| 9527 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9528 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9529 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9530 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9531 | |
| 9532 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9533 | { echo "$as_me:$LINENO: checking for double" >&5 |
| 9534 | echo $ECHO_N "checking for double... $ECHO_C" >&6; } |
| 9535 | if test "${ac_cv_type_double+set}" = set; then |
| 9536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9537 | else |
| 9538 | cat >conftest.$ac_ext <<_ACEOF |
| 9539 | /* confdefs.h. */ |
| 9540 | _ACEOF |
| 9541 | cat confdefs.h >>conftest.$ac_ext |
| 9542 | cat >>conftest.$ac_ext <<_ACEOF |
| 9543 | /* end confdefs.h. */ |
| 9544 | $ac_includes_default |
| 9545 | typedef double ac__type_new_; |
| 9546 | int |
| 9547 | main () |
| 9548 | { |
| 9549 | if ((ac__type_new_ *) 0) |
| 9550 | return 0; |
| 9551 | if (sizeof (ac__type_new_)) |
| 9552 | return 0; |
| 9553 | ; |
| 9554 | return 0; |
| 9555 | } |
| 9556 | _ACEOF |
| 9557 | rm -f conftest.$ac_objext |
| 9558 | if { (ac_try="$ac_compile" |
| 9559 | case "(($ac_try" in |
| 9560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9561 | *) ac_try_echo=$ac_try;; |
| 9562 | esac |
| 9563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9564 | (eval "$ac_compile") 2>conftest.er1 |
| 9565 | ac_status=$? |
| 9566 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9567 | rm -f conftest.er1 |
| 9568 | cat conftest.err >&5 |
| 9569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9570 | (exit $ac_status); } && { |
| 9571 | test -z "$ac_c_werror_flag" || |
| 9572 | test ! -s conftest.err |
| 9573 | } && test -s conftest.$ac_objext; then |
| 9574 | ac_cv_type_double=yes |
| 9575 | else |
| 9576 | echo "$as_me: failed program was:" >&5 |
| 9577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9578 | |
| 9579 | ac_cv_type_double=no |
| 9580 | fi |
| 9581 | |
| 9582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9583 | fi |
| 9584 | { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 9585 | echo "${ECHO_T}$ac_cv_type_double" >&6; } |
| 9586 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9587 | # The cast to long int works around a bug in the HP C Compiler |
| 9588 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9589 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9590 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9591 | { echo "$as_me:$LINENO: checking size of double" >&5 |
| 9592 | echo $ECHO_N "checking size of double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9593 | if test "${ac_cv_sizeof_double+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9595 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9596 | if test "$cross_compiling" = yes; then |
| 9597 | # Depending upon the size, compute the lo and hi bounds. |
| 9598 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9599 | /* confdefs.h. */ |
| 9600 | _ACEOF |
| 9601 | cat confdefs.h >>conftest.$ac_ext |
| 9602 | cat >>conftest.$ac_ext <<_ACEOF |
| 9603 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9604 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9605 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9606 | int |
| 9607 | main () |
| 9608 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9609 | 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] | 9610 | test_array [0] = 0 |
| 9611 | |
| 9612 | ; |
| 9613 | return 0; |
| 9614 | } |
| 9615 | _ACEOF |
| 9616 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9617 | if { (ac_try="$ac_compile" |
| 9618 | case "(($ac_try" in |
| 9619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9620 | *) ac_try_echo=$ac_try;; |
| 9621 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9623 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9624 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9625 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9626 | rm -f conftest.er1 |
| 9627 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9629 | (exit $ac_status); } && { |
| 9630 | test -z "$ac_c_werror_flag" || |
| 9631 | test ! -s conftest.err |
| 9632 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9633 | ac_lo=0 ac_mid=0 |
| 9634 | while :; do |
| 9635 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9636 | /* confdefs.h. */ |
| 9637 | _ACEOF |
| 9638 | cat confdefs.h >>conftest.$ac_ext |
| 9639 | cat >>conftest.$ac_ext <<_ACEOF |
| 9640 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9641 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9642 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9643 | int |
| 9644 | main () |
| 9645 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9646 | 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] | 9647 | test_array [0] = 0 |
| 9648 | |
| 9649 | ; |
| 9650 | return 0; |
| 9651 | } |
| 9652 | _ACEOF |
| 9653 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9654 | if { (ac_try="$ac_compile" |
| 9655 | case "(($ac_try" in |
| 9656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9657 | *) ac_try_echo=$ac_try;; |
| 9658 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9660 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9661 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9663 | rm -f conftest.er1 |
| 9664 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9666 | (exit $ac_status); } && { |
| 9667 | test -z "$ac_c_werror_flag" || |
| 9668 | test ! -s conftest.err |
| 9669 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9670 | ac_hi=$ac_mid; break |
| 9671 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9672 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9674 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9675 | ac_lo=`expr $ac_mid + 1` |
| 9676 | if test $ac_lo -le $ac_mid; then |
| 9677 | ac_lo= ac_hi= |
| 9678 | break |
| 9679 | fi |
| 9680 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9681 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9682 | |
| 9683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9684 | done |
| 9685 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9686 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9688 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9689 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9690 | /* confdefs.h. */ |
| 9691 | _ACEOF |
| 9692 | cat confdefs.h >>conftest.$ac_ext |
| 9693 | cat >>conftest.$ac_ext <<_ACEOF |
| 9694 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9695 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9696 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9697 | int |
| 9698 | main () |
| 9699 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9700 | 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] | 9701 | test_array [0] = 0 |
| 9702 | |
| 9703 | ; |
| 9704 | return 0; |
| 9705 | } |
| 9706 | _ACEOF |
| 9707 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9708 | if { (ac_try="$ac_compile" |
| 9709 | case "(($ac_try" in |
| 9710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9711 | *) ac_try_echo=$ac_try;; |
| 9712 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9714 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9715 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9717 | rm -f conftest.er1 |
| 9718 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9720 | (exit $ac_status); } && { |
| 9721 | test -z "$ac_c_werror_flag" || |
| 9722 | test ! -s conftest.err |
| 9723 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9724 | ac_hi=-1 ac_mid=-1 |
| 9725 | while :; do |
| 9726 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9727 | /* confdefs.h. */ |
| 9728 | _ACEOF |
| 9729 | cat confdefs.h >>conftest.$ac_ext |
| 9730 | cat >>conftest.$ac_ext <<_ACEOF |
| 9731 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9732 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9733 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9734 | int |
| 9735 | main () |
| 9736 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9737 | 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] | 9738 | test_array [0] = 0 |
| 9739 | |
| 9740 | ; |
| 9741 | return 0; |
| 9742 | } |
| 9743 | _ACEOF |
| 9744 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9745 | if { (ac_try="$ac_compile" |
| 9746 | case "(($ac_try" in |
| 9747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9748 | *) ac_try_echo=$ac_try;; |
| 9749 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9751 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9752 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9753 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9754 | rm -f conftest.er1 |
| 9755 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9757 | (exit $ac_status); } && { |
| 9758 | test -z "$ac_c_werror_flag" || |
| 9759 | test ! -s conftest.err |
| 9760 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9761 | ac_lo=$ac_mid; break |
| 9762 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9763 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9765 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9766 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9767 | if test $ac_mid -le $ac_hi; then |
| 9768 | ac_lo= ac_hi= |
| 9769 | break |
| 9770 | fi |
| 9771 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9772 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9773 | |
| 9774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9775 | done |
| 9776 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9777 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9779 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9780 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9781 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9782 | |
| 9783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9784 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9785 | |
| 9786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9787 | # Binary search between lo and hi bounds. |
| 9788 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9789 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9790 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9791 | /* confdefs.h. */ |
| 9792 | _ACEOF |
| 9793 | cat confdefs.h >>conftest.$ac_ext |
| 9794 | cat >>conftest.$ac_ext <<_ACEOF |
| 9795 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9796 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9797 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9798 | int |
| 9799 | main () |
| 9800 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9801 | 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] | 9802 | test_array [0] = 0 |
| 9803 | |
| 9804 | ; |
| 9805 | return 0; |
| 9806 | } |
| 9807 | _ACEOF |
| 9808 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9809 | if { (ac_try="$ac_compile" |
| 9810 | case "(($ac_try" in |
| 9811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9812 | *) ac_try_echo=$ac_try;; |
| 9813 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9815 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9816 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9818 | rm -f conftest.er1 |
| 9819 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9821 | (exit $ac_status); } && { |
| 9822 | test -z "$ac_c_werror_flag" || |
| 9823 | test ! -s conftest.err |
| 9824 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9825 | ac_hi=$ac_mid |
| 9826 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9827 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9829 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9830 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9831 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9832 | |
| 9833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9834 | done |
| 9835 | case $ac_lo in |
| 9836 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9837 | '') if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9838 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9839 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9840 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9841 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9842 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9843 | else |
| 9844 | ac_cv_sizeof_double=0 |
| 9845 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9846 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9847 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9848 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9849 | /* confdefs.h. */ |
| 9850 | _ACEOF |
| 9851 | cat confdefs.h >>conftest.$ac_ext |
| 9852 | cat >>conftest.$ac_ext <<_ACEOF |
| 9853 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9854 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9855 | typedef double ac__type_sizeof_; |
| 9856 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9857 | 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] | 9858 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9859 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9860 | int |
| 9861 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9862 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9863 | |
| 9864 | FILE *f = fopen ("conftest.val", "w"); |
| 9865 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9866 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9867 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9868 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9869 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9870 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9871 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9872 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9873 | } |
| 9874 | else |
| 9875 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9876 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9877 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9878 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9879 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9880 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9881 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9882 | |
| 9883 | ; |
| 9884 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9885 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9886 | _ACEOF |
| 9887 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9888 | if { (ac_try="$ac_link" |
| 9889 | case "(($ac_try" in |
| 9890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9891 | *) ac_try_echo=$ac_try;; |
| 9892 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9894 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9895 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9897 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9898 | { (case "(($ac_try" in |
| 9899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9900 | *) ac_try_echo=$ac_try;; |
| 9901 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9903 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9904 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9906 | (exit $ac_status); }; }; then |
| 9907 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9908 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9909 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9910 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9912 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9913 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9914 | if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9915 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9916 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9917 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9918 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9919 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9920 | else |
| 9921 | ac_cv_sizeof_double=0 |
| 9922 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9923 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9924 | 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] | 9925 | fi |
| 9926 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9927 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9928 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 9929 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9930 | |
| 9931 | |
| 9932 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9933 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9934 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9935 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9936 | |
| 9937 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9938 | { echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 9939 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; } |
| 9940 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 9941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9942 | else |
| 9943 | cat >conftest.$ac_ext <<_ACEOF |
| 9944 | /* confdefs.h. */ |
| 9945 | _ACEOF |
| 9946 | cat confdefs.h >>conftest.$ac_ext |
| 9947 | cat >>conftest.$ac_ext <<_ACEOF |
| 9948 | /* end confdefs.h. */ |
| 9949 | $ac_includes_default |
| 9950 | typedef fpos_t ac__type_new_; |
| 9951 | int |
| 9952 | main () |
| 9953 | { |
| 9954 | if ((ac__type_new_ *) 0) |
| 9955 | return 0; |
| 9956 | if (sizeof (ac__type_new_)) |
| 9957 | return 0; |
| 9958 | ; |
| 9959 | return 0; |
| 9960 | } |
| 9961 | _ACEOF |
| 9962 | rm -f conftest.$ac_objext |
| 9963 | if { (ac_try="$ac_compile" |
| 9964 | case "(($ac_try" in |
| 9965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9966 | *) ac_try_echo=$ac_try;; |
| 9967 | esac |
| 9968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9969 | (eval "$ac_compile") 2>conftest.er1 |
| 9970 | ac_status=$? |
| 9971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9972 | rm -f conftest.er1 |
| 9973 | cat conftest.err >&5 |
| 9974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9975 | (exit $ac_status); } && { |
| 9976 | test -z "$ac_c_werror_flag" || |
| 9977 | test ! -s conftest.err |
| 9978 | } && test -s conftest.$ac_objext; then |
| 9979 | ac_cv_type_fpos_t=yes |
| 9980 | else |
| 9981 | echo "$as_me: failed program was:" >&5 |
| 9982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9983 | |
| 9984 | ac_cv_type_fpos_t=no |
| 9985 | fi |
| 9986 | |
| 9987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9988 | fi |
| 9989 | { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 9990 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; } |
| 9991 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9992 | # The cast to long int works around a bug in the HP C Compiler |
| 9993 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9994 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9995 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9996 | { echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 9997 | 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] | 9998 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 9999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10000 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10001 | if test "$cross_compiling" = yes; then |
| 10002 | # Depending upon the size, compute the lo and hi bounds. |
| 10003 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10004 | /* confdefs.h. */ |
| 10005 | _ACEOF |
| 10006 | cat confdefs.h >>conftest.$ac_ext |
| 10007 | cat >>conftest.$ac_ext <<_ACEOF |
| 10008 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10009 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10010 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10011 | int |
| 10012 | main () |
| 10013 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10014 | 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] | 10015 | test_array [0] = 0 |
| 10016 | |
| 10017 | ; |
| 10018 | return 0; |
| 10019 | } |
| 10020 | _ACEOF |
| 10021 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10022 | if { (ac_try="$ac_compile" |
| 10023 | case "(($ac_try" in |
| 10024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10025 | *) ac_try_echo=$ac_try;; |
| 10026 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10028 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10029 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10031 | rm -f conftest.er1 |
| 10032 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10034 | (exit $ac_status); } && { |
| 10035 | test -z "$ac_c_werror_flag" || |
| 10036 | test ! -s conftest.err |
| 10037 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10038 | ac_lo=0 ac_mid=0 |
| 10039 | while :; do |
| 10040 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10041 | /* confdefs.h. */ |
| 10042 | _ACEOF |
| 10043 | cat confdefs.h >>conftest.$ac_ext |
| 10044 | cat >>conftest.$ac_ext <<_ACEOF |
| 10045 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10046 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10047 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10048 | int |
| 10049 | main () |
| 10050 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10051 | 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] | 10052 | test_array [0] = 0 |
| 10053 | |
| 10054 | ; |
| 10055 | return 0; |
| 10056 | } |
| 10057 | _ACEOF |
| 10058 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10059 | if { (ac_try="$ac_compile" |
| 10060 | case "(($ac_try" in |
| 10061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10062 | *) ac_try_echo=$ac_try;; |
| 10063 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10065 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10066 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10067 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10068 | rm -f conftest.er1 |
| 10069 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10071 | (exit $ac_status); } && { |
| 10072 | test -z "$ac_c_werror_flag" || |
| 10073 | test ! -s conftest.err |
| 10074 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10075 | ac_hi=$ac_mid; break |
| 10076 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10077 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10079 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10080 | ac_lo=`expr $ac_mid + 1` |
| 10081 | if test $ac_lo -le $ac_mid; then |
| 10082 | ac_lo= ac_hi= |
| 10083 | break |
| 10084 | fi |
| 10085 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10086 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10087 | |
| 10088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10089 | done |
| 10090 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10091 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10093 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10094 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10095 | /* confdefs.h. */ |
| 10096 | _ACEOF |
| 10097 | cat confdefs.h >>conftest.$ac_ext |
| 10098 | cat >>conftest.$ac_ext <<_ACEOF |
| 10099 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10100 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10101 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10102 | int |
| 10103 | main () |
| 10104 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10105 | 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] | 10106 | test_array [0] = 0 |
| 10107 | |
| 10108 | ; |
| 10109 | return 0; |
| 10110 | } |
| 10111 | _ACEOF |
| 10112 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10113 | if { (ac_try="$ac_compile" |
| 10114 | case "(($ac_try" in |
| 10115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10116 | *) ac_try_echo=$ac_try;; |
| 10117 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10119 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10120 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10122 | rm -f conftest.er1 |
| 10123 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10125 | (exit $ac_status); } && { |
| 10126 | test -z "$ac_c_werror_flag" || |
| 10127 | test ! -s conftest.err |
| 10128 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10129 | ac_hi=-1 ac_mid=-1 |
| 10130 | while :; do |
| 10131 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10132 | /* confdefs.h. */ |
| 10133 | _ACEOF |
| 10134 | cat confdefs.h >>conftest.$ac_ext |
| 10135 | cat >>conftest.$ac_ext <<_ACEOF |
| 10136 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10137 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10138 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10139 | int |
| 10140 | main () |
| 10141 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10142 | 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] | 10143 | test_array [0] = 0 |
| 10144 | |
| 10145 | ; |
| 10146 | return 0; |
| 10147 | } |
| 10148 | _ACEOF |
| 10149 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10150 | if { (ac_try="$ac_compile" |
| 10151 | case "(($ac_try" in |
| 10152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10153 | *) ac_try_echo=$ac_try;; |
| 10154 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10156 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10157 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10158 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10159 | rm -f conftest.er1 |
| 10160 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10162 | (exit $ac_status); } && { |
| 10163 | test -z "$ac_c_werror_flag" || |
| 10164 | test ! -s conftest.err |
| 10165 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10166 | ac_lo=$ac_mid; break |
| 10167 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10168 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10170 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10171 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10172 | if test $ac_mid -le $ac_hi; then |
| 10173 | ac_lo= ac_hi= |
| 10174 | break |
| 10175 | fi |
| 10176 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10177 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10178 | |
| 10179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10180 | done |
| 10181 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10182 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10184 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10185 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10186 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10187 | |
| 10188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10189 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10190 | |
| 10191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10192 | # Binary search between lo and hi bounds. |
| 10193 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10194 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10195 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10196 | /* confdefs.h. */ |
| 10197 | _ACEOF |
| 10198 | cat confdefs.h >>conftest.$ac_ext |
| 10199 | cat >>conftest.$ac_ext <<_ACEOF |
| 10200 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10201 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10202 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10203 | int |
| 10204 | main () |
| 10205 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10206 | 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] | 10207 | test_array [0] = 0 |
| 10208 | |
| 10209 | ; |
| 10210 | return 0; |
| 10211 | } |
| 10212 | _ACEOF |
| 10213 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10214 | if { (ac_try="$ac_compile" |
| 10215 | case "(($ac_try" in |
| 10216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10217 | *) ac_try_echo=$ac_try;; |
| 10218 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10220 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10221 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10223 | rm -f conftest.er1 |
| 10224 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10226 | (exit $ac_status); } && { |
| 10227 | test -z "$ac_c_werror_flag" || |
| 10228 | test ! -s conftest.err |
| 10229 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10230 | ac_hi=$ac_mid |
| 10231 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10232 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10234 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10235 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10236 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10237 | |
| 10238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10239 | done |
| 10240 | case $ac_lo in |
| 10241 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10242 | '') if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10243 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10244 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10245 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10246 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10247 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10248 | else |
| 10249 | ac_cv_sizeof_fpos_t=0 |
| 10250 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10251 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10252 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10253 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10254 | /* confdefs.h. */ |
| 10255 | _ACEOF |
| 10256 | cat confdefs.h >>conftest.$ac_ext |
| 10257 | cat >>conftest.$ac_ext <<_ACEOF |
| 10258 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10259 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10260 | typedef fpos_t ac__type_sizeof_; |
| 10261 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10262 | 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] | 10263 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10264 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10265 | int |
| 10266 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10267 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10268 | |
| 10269 | FILE *f = fopen ("conftest.val", "w"); |
| 10270 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10271 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10272 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10273 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10274 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10275 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10276 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10277 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10278 | } |
| 10279 | else |
| 10280 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10281 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10282 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10283 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10284 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10285 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10286 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10287 | |
| 10288 | ; |
| 10289 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10290 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10291 | _ACEOF |
| 10292 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10293 | if { (ac_try="$ac_link" |
| 10294 | case "(($ac_try" in |
| 10295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10296 | *) ac_try_echo=$ac_try;; |
| 10297 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10299 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10300 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10302 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10303 | { (case "(($ac_try" in |
| 10304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10305 | *) ac_try_echo=$ac_try;; |
| 10306 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10308 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10309 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10311 | (exit $ac_status); }; }; then |
| 10312 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10313 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10314 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10315 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10317 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10318 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10319 | if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10320 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10321 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10322 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10323 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10324 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10325 | else |
| 10326 | ac_cv_sizeof_fpos_t=0 |
| 10327 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10328 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10329 | 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] | 10330 | fi |
| 10331 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10332 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10333 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 10334 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10335 | |
| 10336 | |
| 10337 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10338 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10339 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10340 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10341 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10342 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10343 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 10344 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 10345 | if test "${ac_cv_type_size_t+set}" = set; then |
| 10346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10347 | else |
| 10348 | cat >conftest.$ac_ext <<_ACEOF |
| 10349 | /* confdefs.h. */ |
| 10350 | _ACEOF |
| 10351 | cat confdefs.h >>conftest.$ac_ext |
| 10352 | cat >>conftest.$ac_ext <<_ACEOF |
| 10353 | /* end confdefs.h. */ |
| 10354 | $ac_includes_default |
| 10355 | typedef size_t ac__type_new_; |
| 10356 | int |
| 10357 | main () |
| 10358 | { |
| 10359 | if ((ac__type_new_ *) 0) |
| 10360 | return 0; |
| 10361 | if (sizeof (ac__type_new_)) |
| 10362 | return 0; |
| 10363 | ; |
| 10364 | return 0; |
| 10365 | } |
| 10366 | _ACEOF |
| 10367 | rm -f conftest.$ac_objext |
| 10368 | if { (ac_try="$ac_compile" |
| 10369 | case "(($ac_try" in |
| 10370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10371 | *) ac_try_echo=$ac_try;; |
| 10372 | esac |
| 10373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10374 | (eval "$ac_compile") 2>conftest.er1 |
| 10375 | ac_status=$? |
| 10376 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10377 | rm -f conftest.er1 |
| 10378 | cat conftest.err >&5 |
| 10379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10380 | (exit $ac_status); } && { |
| 10381 | test -z "$ac_c_werror_flag" || |
| 10382 | test ! -s conftest.err |
| 10383 | } && test -s conftest.$ac_objext; then |
| 10384 | ac_cv_type_size_t=yes |
| 10385 | else |
| 10386 | echo "$as_me: failed program was:" >&5 |
| 10387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10388 | |
| 10389 | ac_cv_type_size_t=no |
| 10390 | fi |
| 10391 | |
| 10392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10393 | fi |
| 10394 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 10395 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 10396 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10397 | # The cast to long int works around a bug in the HP C Compiler |
| 10398 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10399 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10400 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10401 | { echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 10402 | 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] | 10403 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10405 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10406 | if test "$cross_compiling" = yes; then |
| 10407 | # Depending upon the size, compute the lo and hi bounds. |
| 10408 | cat >conftest.$ac_ext <<_ACEOF |
| 10409 | /* confdefs.h. */ |
| 10410 | _ACEOF |
| 10411 | cat confdefs.h >>conftest.$ac_ext |
| 10412 | cat >>conftest.$ac_ext <<_ACEOF |
| 10413 | /* end confdefs.h. */ |
| 10414 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10415 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10416 | int |
| 10417 | main () |
| 10418 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10419 | 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] | 10420 | test_array [0] = 0 |
| 10421 | |
| 10422 | ; |
| 10423 | return 0; |
| 10424 | } |
| 10425 | _ACEOF |
| 10426 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10427 | if { (ac_try="$ac_compile" |
| 10428 | case "(($ac_try" in |
| 10429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10430 | *) ac_try_echo=$ac_try;; |
| 10431 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10433 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10434 | ac_status=$? |
| 10435 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10436 | rm -f conftest.er1 |
| 10437 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10439 | (exit $ac_status); } && { |
| 10440 | test -z "$ac_c_werror_flag" || |
| 10441 | test ! -s conftest.err |
| 10442 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10443 | ac_lo=0 ac_mid=0 |
| 10444 | while :; do |
| 10445 | cat >conftest.$ac_ext <<_ACEOF |
| 10446 | /* confdefs.h. */ |
| 10447 | _ACEOF |
| 10448 | cat confdefs.h >>conftest.$ac_ext |
| 10449 | cat >>conftest.$ac_ext <<_ACEOF |
| 10450 | /* end confdefs.h. */ |
| 10451 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10452 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10453 | int |
| 10454 | main () |
| 10455 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10456 | 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] | 10457 | test_array [0] = 0 |
| 10458 | |
| 10459 | ; |
| 10460 | return 0; |
| 10461 | } |
| 10462 | _ACEOF |
| 10463 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10464 | if { (ac_try="$ac_compile" |
| 10465 | case "(($ac_try" in |
| 10466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10467 | *) ac_try_echo=$ac_try;; |
| 10468 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10470 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10471 | ac_status=$? |
| 10472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10473 | rm -f conftest.er1 |
| 10474 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10476 | (exit $ac_status); } && { |
| 10477 | test -z "$ac_c_werror_flag" || |
| 10478 | test ! -s conftest.err |
| 10479 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10480 | ac_hi=$ac_mid; break |
| 10481 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10482 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10484 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10485 | ac_lo=`expr $ac_mid + 1` |
| 10486 | if test $ac_lo -le $ac_mid; then |
| 10487 | ac_lo= ac_hi= |
| 10488 | break |
| 10489 | fi |
| 10490 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10491 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10492 | |
| 10493 | 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] | 10494 | done |
| 10495 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10496 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10498 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10499 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10500 | /* confdefs.h. */ |
| 10501 | _ACEOF |
| 10502 | cat confdefs.h >>conftest.$ac_ext |
| 10503 | cat >>conftest.$ac_ext <<_ACEOF |
| 10504 | /* end confdefs.h. */ |
| 10505 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10506 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10507 | int |
| 10508 | main () |
| 10509 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10510 | 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] | 10511 | test_array [0] = 0 |
| 10512 | |
| 10513 | ; |
| 10514 | return 0; |
| 10515 | } |
| 10516 | _ACEOF |
| 10517 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10518 | if { (ac_try="$ac_compile" |
| 10519 | case "(($ac_try" in |
| 10520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10521 | *) ac_try_echo=$ac_try;; |
| 10522 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10524 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10525 | ac_status=$? |
| 10526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10527 | rm -f conftest.er1 |
| 10528 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10530 | (exit $ac_status); } && { |
| 10531 | test -z "$ac_c_werror_flag" || |
| 10532 | test ! -s conftest.err |
| 10533 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10534 | ac_hi=-1 ac_mid=-1 |
| 10535 | while :; do |
| 10536 | cat >conftest.$ac_ext <<_ACEOF |
| 10537 | /* confdefs.h. */ |
| 10538 | _ACEOF |
| 10539 | cat confdefs.h >>conftest.$ac_ext |
| 10540 | cat >>conftest.$ac_ext <<_ACEOF |
| 10541 | /* end confdefs.h. */ |
| 10542 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10543 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10544 | int |
| 10545 | main () |
| 10546 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10547 | 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] | 10548 | test_array [0] = 0 |
| 10549 | |
| 10550 | ; |
| 10551 | return 0; |
| 10552 | } |
| 10553 | _ACEOF |
| 10554 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10555 | if { (ac_try="$ac_compile" |
| 10556 | case "(($ac_try" in |
| 10557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10558 | *) ac_try_echo=$ac_try;; |
| 10559 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10561 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10562 | ac_status=$? |
| 10563 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10564 | rm -f conftest.er1 |
| 10565 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10567 | (exit $ac_status); } && { |
| 10568 | test -z "$ac_c_werror_flag" || |
| 10569 | test ! -s conftest.err |
| 10570 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10571 | ac_lo=$ac_mid; break |
| 10572 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10573 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10575 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10576 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10577 | if test $ac_mid -le $ac_hi; then |
| 10578 | ac_lo= ac_hi= |
| 10579 | break |
| 10580 | fi |
| 10581 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10582 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10583 | |
| 10584 | 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] | 10585 | done |
| 10586 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10587 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10589 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10590 | ac_lo= ac_hi= |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10591 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10592 | |
| 10593 | 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] | 10594 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10595 | |
| 10596 | 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] | 10597 | # Binary search between lo and hi bounds. |
| 10598 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10599 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10600 | cat >conftest.$ac_ext <<_ACEOF |
| 10601 | /* confdefs.h. */ |
| 10602 | _ACEOF |
| 10603 | cat confdefs.h >>conftest.$ac_ext |
| 10604 | cat >>conftest.$ac_ext <<_ACEOF |
| 10605 | /* end confdefs.h. */ |
| 10606 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10607 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10608 | int |
| 10609 | main () |
| 10610 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10611 | 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] | 10612 | test_array [0] = 0 |
| 10613 | |
| 10614 | ; |
| 10615 | return 0; |
| 10616 | } |
| 10617 | _ACEOF |
| 10618 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10619 | if { (ac_try="$ac_compile" |
| 10620 | case "(($ac_try" in |
| 10621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10622 | *) ac_try_echo=$ac_try;; |
| 10623 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10625 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10626 | ac_status=$? |
| 10627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10628 | rm -f conftest.er1 |
| 10629 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10631 | (exit $ac_status); } && { |
| 10632 | test -z "$ac_c_werror_flag" || |
| 10633 | test ! -s conftest.err |
| 10634 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10635 | ac_hi=$ac_mid |
| 10636 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10637 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10639 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10640 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10641 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10642 | |
| 10643 | 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] | 10644 | done |
| 10645 | case $ac_lo in |
| 10646 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10647 | '') if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10648 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10649 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10650 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10651 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10652 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10653 | else |
| 10654 | ac_cv_sizeof_size_t=0 |
| 10655 | fi ;; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10656 | esac |
| 10657 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10658 | cat >conftest.$ac_ext <<_ACEOF |
| 10659 | /* confdefs.h. */ |
| 10660 | _ACEOF |
| 10661 | cat confdefs.h >>conftest.$ac_ext |
| 10662 | cat >>conftest.$ac_ext <<_ACEOF |
| 10663 | /* end confdefs.h. */ |
| 10664 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10665 | typedef size_t ac__type_sizeof_; |
| 10666 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10667 | 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] | 10668 | #include <stdio.h> |
| 10669 | #include <stdlib.h> |
| 10670 | int |
| 10671 | main () |
| 10672 | { |
| 10673 | |
| 10674 | FILE *f = fopen ("conftest.val", "w"); |
| 10675 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10676 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10677 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10678 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10679 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10680 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10681 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10682 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10683 | } |
| 10684 | else |
| 10685 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10686 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10687 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10688 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10689 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10690 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10691 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10692 | |
| 10693 | ; |
| 10694 | return 0; |
| 10695 | } |
| 10696 | _ACEOF |
| 10697 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10698 | if { (ac_try="$ac_link" |
| 10699 | case "(($ac_try" in |
| 10700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10701 | *) ac_try_echo=$ac_try;; |
| 10702 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10704 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10705 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10707 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10708 | { (case "(($ac_try" in |
| 10709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10710 | *) ac_try_echo=$ac_try;; |
| 10711 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10713 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10714 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10716 | (exit $ac_status); }; }; then |
| 10717 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 10718 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10719 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10720 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10722 | |
| 10723 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10724 | if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10725 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10726 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10727 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10728 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10729 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10730 | else |
| 10731 | ac_cv_sizeof_size_t=0 |
| 10732 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10733 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10734 | 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] | 10735 | fi |
| 10736 | rm -f conftest.val |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10737 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10738 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 10739 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10740 | |
| 10741 | |
| 10742 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10743 | cat >>confdefs.h <<_ACEOF |
| 10744 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 10745 | _ACEOF |
| 10746 | |
| 10747 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10748 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 10749 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 10750 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 10751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10752 | else |
| 10753 | cat >conftest.$ac_ext <<_ACEOF |
| 10754 | /* confdefs.h. */ |
| 10755 | _ACEOF |
| 10756 | cat confdefs.h >>conftest.$ac_ext |
| 10757 | cat >>conftest.$ac_ext <<_ACEOF |
| 10758 | /* end confdefs.h. */ |
| 10759 | $ac_includes_default |
| 10760 | typedef pid_t ac__type_new_; |
| 10761 | int |
| 10762 | main () |
| 10763 | { |
| 10764 | if ((ac__type_new_ *) 0) |
| 10765 | return 0; |
| 10766 | if (sizeof (ac__type_new_)) |
| 10767 | return 0; |
| 10768 | ; |
| 10769 | return 0; |
| 10770 | } |
| 10771 | _ACEOF |
| 10772 | rm -f conftest.$ac_objext |
| 10773 | if { (ac_try="$ac_compile" |
| 10774 | case "(($ac_try" in |
| 10775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10776 | *) ac_try_echo=$ac_try;; |
| 10777 | esac |
| 10778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10779 | (eval "$ac_compile") 2>conftest.er1 |
| 10780 | ac_status=$? |
| 10781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10782 | rm -f conftest.er1 |
| 10783 | cat conftest.err >&5 |
| 10784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10785 | (exit $ac_status); } && { |
| 10786 | test -z "$ac_c_werror_flag" || |
| 10787 | test ! -s conftest.err |
| 10788 | } && test -s conftest.$ac_objext; then |
| 10789 | ac_cv_type_pid_t=yes |
| 10790 | else |
| 10791 | echo "$as_me: failed program was:" >&5 |
| 10792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10793 | |
| 10794 | ac_cv_type_pid_t=no |
| 10795 | fi |
| 10796 | |
| 10797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10798 | fi |
| 10799 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 10800 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 10801 | |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10802 | # The cast to long int works around a bug in the HP C Compiler |
| 10803 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10804 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10805 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10806 | { echo "$as_me:$LINENO: checking size of pid_t" >&5 |
| 10807 | echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10808 | if test "${ac_cv_sizeof_pid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10810 | else |
| 10811 | if test "$cross_compiling" = yes; then |
| 10812 | # Depending upon the size, compute the lo and hi bounds. |
| 10813 | cat >conftest.$ac_ext <<_ACEOF |
| 10814 | /* confdefs.h. */ |
| 10815 | _ACEOF |
| 10816 | cat confdefs.h >>conftest.$ac_ext |
| 10817 | cat >>conftest.$ac_ext <<_ACEOF |
| 10818 | /* end confdefs.h. */ |
| 10819 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10820 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10821 | int |
| 10822 | main () |
| 10823 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10824 | 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] | 10825 | test_array [0] = 0 |
| 10826 | |
| 10827 | ; |
| 10828 | return 0; |
| 10829 | } |
| 10830 | _ACEOF |
| 10831 | rm -f conftest.$ac_objext |
| 10832 | if { (ac_try="$ac_compile" |
| 10833 | case "(($ac_try" in |
| 10834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10835 | *) ac_try_echo=$ac_try;; |
| 10836 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10838 | (eval "$ac_compile") 2>conftest.er1 |
| 10839 | ac_status=$? |
| 10840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10841 | rm -f conftest.er1 |
| 10842 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10844 | (exit $ac_status); } && { |
| 10845 | test -z "$ac_c_werror_flag" || |
| 10846 | test ! -s conftest.err |
| 10847 | } && test -s conftest.$ac_objext; then |
| 10848 | ac_lo=0 ac_mid=0 |
| 10849 | while :; do |
| 10850 | cat >conftest.$ac_ext <<_ACEOF |
| 10851 | /* confdefs.h. */ |
| 10852 | _ACEOF |
| 10853 | cat confdefs.h >>conftest.$ac_ext |
| 10854 | cat >>conftest.$ac_ext <<_ACEOF |
| 10855 | /* end confdefs.h. */ |
| 10856 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10857 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10858 | int |
| 10859 | main () |
| 10860 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10861 | 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] | 10862 | test_array [0] = 0 |
| 10863 | |
| 10864 | ; |
| 10865 | return 0; |
| 10866 | } |
| 10867 | _ACEOF |
| 10868 | rm -f conftest.$ac_objext |
| 10869 | if { (ac_try="$ac_compile" |
| 10870 | case "(($ac_try" in |
| 10871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10872 | *) ac_try_echo=$ac_try;; |
| 10873 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10875 | (eval "$ac_compile") 2>conftest.er1 |
| 10876 | ac_status=$? |
| 10877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10878 | rm -f conftest.er1 |
| 10879 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10881 | (exit $ac_status); } && { |
| 10882 | test -z "$ac_c_werror_flag" || |
| 10883 | test ! -s conftest.err |
| 10884 | } && test -s conftest.$ac_objext; then |
| 10885 | ac_hi=$ac_mid; break |
| 10886 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10887 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10888 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10889 | |
| 10890 | ac_lo=`expr $ac_mid + 1` |
| 10891 | if test $ac_lo -le $ac_mid; then |
| 10892 | ac_lo= ac_hi= |
| 10893 | break |
| 10894 | fi |
| 10895 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 10896 | fi |
| 10897 | |
| 10898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10899 | done |
| 10900 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10901 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10903 | |
| 10904 | cat >conftest.$ac_ext <<_ACEOF |
| 10905 | /* confdefs.h. */ |
| 10906 | _ACEOF |
| 10907 | cat confdefs.h >>conftest.$ac_ext |
| 10908 | cat >>conftest.$ac_ext <<_ACEOF |
| 10909 | /* end confdefs.h. */ |
| 10910 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10911 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10912 | int |
| 10913 | main () |
| 10914 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10915 | 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] | 10916 | test_array [0] = 0 |
| 10917 | |
| 10918 | ; |
| 10919 | return 0; |
| 10920 | } |
| 10921 | _ACEOF |
| 10922 | rm -f conftest.$ac_objext |
| 10923 | if { (ac_try="$ac_compile" |
| 10924 | case "(($ac_try" in |
| 10925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10926 | *) ac_try_echo=$ac_try;; |
| 10927 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10929 | (eval "$ac_compile") 2>conftest.er1 |
| 10930 | ac_status=$? |
| 10931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10932 | rm -f conftest.er1 |
| 10933 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10935 | (exit $ac_status); } && { |
| 10936 | test -z "$ac_c_werror_flag" || |
| 10937 | test ! -s conftest.err |
| 10938 | } && test -s conftest.$ac_objext; then |
| 10939 | ac_hi=-1 ac_mid=-1 |
| 10940 | while :; do |
| 10941 | cat >conftest.$ac_ext <<_ACEOF |
| 10942 | /* confdefs.h. */ |
| 10943 | _ACEOF |
| 10944 | cat confdefs.h >>conftest.$ac_ext |
| 10945 | cat >>conftest.$ac_ext <<_ACEOF |
| 10946 | /* end confdefs.h. */ |
| 10947 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10948 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10949 | int |
| 10950 | main () |
| 10951 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10952 | 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] | 10953 | test_array [0] = 0 |
| 10954 | |
| 10955 | ; |
| 10956 | return 0; |
| 10957 | } |
| 10958 | _ACEOF |
| 10959 | rm -f conftest.$ac_objext |
| 10960 | if { (ac_try="$ac_compile" |
| 10961 | case "(($ac_try" in |
| 10962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10963 | *) ac_try_echo=$ac_try;; |
| 10964 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10966 | (eval "$ac_compile") 2>conftest.er1 |
| 10967 | ac_status=$? |
| 10968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10969 | rm -f conftest.er1 |
| 10970 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10972 | (exit $ac_status); } && { |
| 10973 | test -z "$ac_c_werror_flag" || |
| 10974 | test ! -s conftest.err |
| 10975 | } && test -s conftest.$ac_objext; then |
| 10976 | ac_lo=$ac_mid; break |
| 10977 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10978 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10980 | |
| 10981 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10982 | if test $ac_mid -le $ac_hi; then |
| 10983 | ac_lo= ac_hi= |
| 10984 | break |
| 10985 | fi |
| 10986 | ac_mid=`expr 2 '*' $ac_mid` |
| 10987 | fi |
| 10988 | |
| 10989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10990 | done |
| 10991 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 10992 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10994 | |
| 10995 | ac_lo= ac_hi= |
| 10996 | fi |
| 10997 | |
| 10998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10999 | fi |
| 11000 | |
| 11001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11002 | # Binary search between lo and hi bounds. |
| 11003 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11004 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11005 | cat >conftest.$ac_ext <<_ACEOF |
| 11006 | /* confdefs.h. */ |
| 11007 | _ACEOF |
| 11008 | cat confdefs.h >>conftest.$ac_ext |
| 11009 | cat >>conftest.$ac_ext <<_ACEOF |
| 11010 | /* end confdefs.h. */ |
| 11011 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11012 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11013 | int |
| 11014 | main () |
| 11015 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11016 | 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] | 11017 | test_array [0] = 0 |
| 11018 | |
| 11019 | ; |
| 11020 | return 0; |
| 11021 | } |
| 11022 | _ACEOF |
| 11023 | rm -f conftest.$ac_objext |
| 11024 | if { (ac_try="$ac_compile" |
| 11025 | case "(($ac_try" in |
| 11026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11027 | *) ac_try_echo=$ac_try;; |
| 11028 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11030 | (eval "$ac_compile") 2>conftest.er1 |
| 11031 | ac_status=$? |
| 11032 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11033 | rm -f conftest.er1 |
| 11034 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11036 | (exit $ac_status); } && { |
| 11037 | test -z "$ac_c_werror_flag" || |
| 11038 | test ! -s conftest.err |
| 11039 | } && test -s conftest.$ac_objext; then |
| 11040 | ac_hi=$ac_mid |
| 11041 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11042 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11044 | |
| 11045 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11046 | fi |
| 11047 | |
| 11048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11049 | done |
| 11050 | case $ac_lo in |
| 11051 | ?*) ac_cv_sizeof_pid_t=$ac_lo;; |
| 11052 | '') if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11053 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11054 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11055 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11056 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11057 | { (exit 77); exit 77; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11058 | else |
| 11059 | ac_cv_sizeof_pid_t=0 |
| 11060 | fi ;; |
| 11061 | esac |
| 11062 | else |
| 11063 | cat >conftest.$ac_ext <<_ACEOF |
| 11064 | /* confdefs.h. */ |
| 11065 | _ACEOF |
| 11066 | cat confdefs.h >>conftest.$ac_ext |
| 11067 | cat >>conftest.$ac_ext <<_ACEOF |
| 11068 | /* end confdefs.h. */ |
| 11069 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11070 | typedef pid_t ac__type_sizeof_; |
| 11071 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11072 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11073 | #include <stdio.h> |
| 11074 | #include <stdlib.h> |
| 11075 | int |
| 11076 | main () |
| 11077 | { |
| 11078 | |
| 11079 | FILE *f = fopen ("conftest.val", "w"); |
| 11080 | if (! f) |
| 11081 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11082 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11083 | { |
| 11084 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11085 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11086 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11087 | fprintf (f, "%ld\n", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11088 | } |
| 11089 | else |
| 11090 | { |
| 11091 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11092 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11093 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11094 | fprintf (f, "%lu\n", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11095 | } |
| 11096 | return ferror (f) || fclose (f) != 0; |
| 11097 | |
| 11098 | ; |
| 11099 | return 0; |
| 11100 | } |
| 11101 | _ACEOF |
| 11102 | rm -f conftest$ac_exeext |
| 11103 | if { (ac_try="$ac_link" |
| 11104 | case "(($ac_try" in |
| 11105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11106 | *) ac_try_echo=$ac_try;; |
| 11107 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11109 | (eval "$ac_link") 2>&5 |
| 11110 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11112 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11113 | { (case "(($ac_try" in |
| 11114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11115 | *) ac_try_echo=$ac_try;; |
| 11116 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11118 | (eval "$ac_try") 2>&5 |
| 11119 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11121 | (exit $ac_status); }; }; then |
| 11122 | ac_cv_sizeof_pid_t=`cat conftest.val` |
| 11123 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11124 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11125 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11127 | |
| 11128 | ( exit $ac_status ) |
| 11129 | if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11130 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11131 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11132 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11133 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11134 | { (exit 77); exit 77; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11135 | else |
| 11136 | ac_cv_sizeof_pid_t=0 |
| 11137 | fi |
| 11138 | fi |
| 11139 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11140 | fi |
| 11141 | rm -f conftest.val |
| 11142 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11143 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5 |
| 11144 | echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11145 | |
| 11146 | |
| 11147 | |
| 11148 | cat >>confdefs.h <<_ACEOF |
| 11149 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 11150 | _ACEOF |
| 11151 | |
| 11152 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11153 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11154 | { echo "$as_me:$LINENO: checking for long long support" >&5 |
| 11155 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11156 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11157 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11158 | /* confdefs.h. */ |
| 11159 | _ACEOF |
| 11160 | cat confdefs.h >>conftest.$ac_ext |
| 11161 | cat >>conftest.$ac_ext <<_ACEOF |
| 11162 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11163 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11164 | int |
| 11165 | main () |
| 11166 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11167 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11168 | ; |
| 11169 | return 0; |
| 11170 | } |
| 11171 | _ACEOF |
| 11172 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11173 | if { (ac_try="$ac_compile" |
| 11174 | case "(($ac_try" in |
| 11175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11176 | *) ac_try_echo=$ac_try;; |
| 11177 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11179 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11180 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11182 | rm -f conftest.er1 |
| 11183 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11185 | (exit $ac_status); } && { |
| 11186 | test -z "$ac_c_werror_flag" || |
| 11187 | test ! -s conftest.err |
| 11188 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11189 | |
| 11190 | |
| 11191 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11192 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11193 | _ACEOF |
| 11194 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11195 | have_long_long=yes |
| 11196 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11197 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11198 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11200 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11201 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11202 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11203 | |
| 11204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11205 | { echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 11206 | echo "${ECHO_T}$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 11207 | if test "$have_long_long" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11208 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 11209 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
| 11210 | if test "${ac_cv_type_long_long+set}" = set; then |
| 11211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11212 | else |
| 11213 | cat >conftest.$ac_ext <<_ACEOF |
| 11214 | /* confdefs.h. */ |
| 11215 | _ACEOF |
| 11216 | cat confdefs.h >>conftest.$ac_ext |
| 11217 | cat >>conftest.$ac_ext <<_ACEOF |
| 11218 | /* end confdefs.h. */ |
| 11219 | $ac_includes_default |
| 11220 | typedef long long ac__type_new_; |
| 11221 | int |
| 11222 | main () |
| 11223 | { |
| 11224 | if ((ac__type_new_ *) 0) |
| 11225 | return 0; |
| 11226 | if (sizeof (ac__type_new_)) |
| 11227 | return 0; |
| 11228 | ; |
| 11229 | return 0; |
| 11230 | } |
| 11231 | _ACEOF |
| 11232 | rm -f conftest.$ac_objext |
| 11233 | if { (ac_try="$ac_compile" |
| 11234 | case "(($ac_try" in |
| 11235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11236 | *) ac_try_echo=$ac_try;; |
| 11237 | esac |
| 11238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11239 | (eval "$ac_compile") 2>conftest.er1 |
| 11240 | ac_status=$? |
| 11241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11242 | rm -f conftest.er1 |
| 11243 | cat conftest.err >&5 |
| 11244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11245 | (exit $ac_status); } && { |
| 11246 | test -z "$ac_c_werror_flag" || |
| 11247 | test ! -s conftest.err |
| 11248 | } && test -s conftest.$ac_objext; then |
| 11249 | ac_cv_type_long_long=yes |
| 11250 | else |
| 11251 | echo "$as_me: failed program was:" >&5 |
| 11252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11253 | |
| 11254 | ac_cv_type_long_long=no |
| 11255 | fi |
| 11256 | |
| 11257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11258 | fi |
| 11259 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 11260 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 11261 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11262 | # The cast to long int works around a bug in the HP C Compiler |
| 11263 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11264 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11265 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11266 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 11267 | 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] | 11268 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11270 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11271 | if test "$cross_compiling" = yes; then |
| 11272 | # Depending upon the size, compute the lo and hi bounds. |
| 11273 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11274 | /* confdefs.h. */ |
| 11275 | _ACEOF |
| 11276 | cat confdefs.h >>conftest.$ac_ext |
| 11277 | cat >>conftest.$ac_ext <<_ACEOF |
| 11278 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11279 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11280 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11281 | int |
| 11282 | main () |
| 11283 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11284 | 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] | 11285 | test_array [0] = 0 |
| 11286 | |
| 11287 | ; |
| 11288 | return 0; |
| 11289 | } |
| 11290 | _ACEOF |
| 11291 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11292 | if { (ac_try="$ac_compile" |
| 11293 | case "(($ac_try" in |
| 11294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11295 | *) ac_try_echo=$ac_try;; |
| 11296 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11298 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11299 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11300 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11301 | rm -f conftest.er1 |
| 11302 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11304 | (exit $ac_status); } && { |
| 11305 | test -z "$ac_c_werror_flag" || |
| 11306 | test ! -s conftest.err |
| 11307 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11308 | ac_lo=0 ac_mid=0 |
| 11309 | while :; do |
| 11310 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11311 | /* confdefs.h. */ |
| 11312 | _ACEOF |
| 11313 | cat confdefs.h >>conftest.$ac_ext |
| 11314 | cat >>conftest.$ac_ext <<_ACEOF |
| 11315 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11316 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11317 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11318 | int |
| 11319 | main () |
| 11320 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11321 | 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] | 11322 | test_array [0] = 0 |
| 11323 | |
| 11324 | ; |
| 11325 | return 0; |
| 11326 | } |
| 11327 | _ACEOF |
| 11328 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11329 | if { (ac_try="$ac_compile" |
| 11330 | case "(($ac_try" in |
| 11331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11332 | *) ac_try_echo=$ac_try;; |
| 11333 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11335 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11336 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11337 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11338 | rm -f conftest.er1 |
| 11339 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11341 | (exit $ac_status); } && { |
| 11342 | test -z "$ac_c_werror_flag" || |
| 11343 | test ! -s conftest.err |
| 11344 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11345 | ac_hi=$ac_mid; break |
| 11346 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11347 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11348 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11349 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11350 | ac_lo=`expr $ac_mid + 1` |
| 11351 | if test $ac_lo -le $ac_mid; then |
| 11352 | ac_lo= ac_hi= |
| 11353 | break |
| 11354 | fi |
| 11355 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11356 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11357 | |
| 11358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11359 | done |
| 11360 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11361 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11363 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11364 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11365 | /* confdefs.h. */ |
| 11366 | _ACEOF |
| 11367 | cat confdefs.h >>conftest.$ac_ext |
| 11368 | cat >>conftest.$ac_ext <<_ACEOF |
| 11369 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11370 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11371 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11372 | int |
| 11373 | main () |
| 11374 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11375 | 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] | 11376 | test_array [0] = 0 |
| 11377 | |
| 11378 | ; |
| 11379 | return 0; |
| 11380 | } |
| 11381 | _ACEOF |
| 11382 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11383 | if { (ac_try="$ac_compile" |
| 11384 | case "(($ac_try" in |
| 11385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11386 | *) ac_try_echo=$ac_try;; |
| 11387 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11389 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11390 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11392 | rm -f conftest.er1 |
| 11393 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11395 | (exit $ac_status); } && { |
| 11396 | test -z "$ac_c_werror_flag" || |
| 11397 | test ! -s conftest.err |
| 11398 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11399 | ac_hi=-1 ac_mid=-1 |
| 11400 | while :; do |
| 11401 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11402 | /* confdefs.h. */ |
| 11403 | _ACEOF |
| 11404 | cat confdefs.h >>conftest.$ac_ext |
| 11405 | cat >>conftest.$ac_ext <<_ACEOF |
| 11406 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11407 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11408 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11409 | int |
| 11410 | main () |
| 11411 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11412 | 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] | 11413 | test_array [0] = 0 |
| 11414 | |
| 11415 | ; |
| 11416 | return 0; |
| 11417 | } |
| 11418 | _ACEOF |
| 11419 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11420 | if { (ac_try="$ac_compile" |
| 11421 | case "(($ac_try" in |
| 11422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11423 | *) ac_try_echo=$ac_try;; |
| 11424 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11426 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11427 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11429 | rm -f conftest.er1 |
| 11430 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11432 | (exit $ac_status); } && { |
| 11433 | test -z "$ac_c_werror_flag" || |
| 11434 | test ! -s conftest.err |
| 11435 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11436 | ac_lo=$ac_mid; break |
| 11437 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11438 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11440 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11441 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11442 | if test $ac_mid -le $ac_hi; then |
| 11443 | ac_lo= ac_hi= |
| 11444 | break |
| 11445 | fi |
| 11446 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11447 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11448 | |
| 11449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11450 | done |
| 11451 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11452 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11454 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11455 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11456 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11457 | |
| 11458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11459 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11460 | |
| 11461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11462 | # Binary search between lo and hi bounds. |
| 11463 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11464 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11465 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11466 | /* confdefs.h. */ |
| 11467 | _ACEOF |
| 11468 | cat confdefs.h >>conftest.$ac_ext |
| 11469 | cat >>conftest.$ac_ext <<_ACEOF |
| 11470 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11471 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11472 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11473 | int |
| 11474 | main () |
| 11475 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11476 | 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] | 11477 | test_array [0] = 0 |
| 11478 | |
| 11479 | ; |
| 11480 | return 0; |
| 11481 | } |
| 11482 | _ACEOF |
| 11483 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11484 | if { (ac_try="$ac_compile" |
| 11485 | case "(($ac_try" in |
| 11486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11487 | *) ac_try_echo=$ac_try;; |
| 11488 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11490 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11491 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11493 | rm -f conftest.er1 |
| 11494 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11496 | (exit $ac_status); } && { |
| 11497 | test -z "$ac_c_werror_flag" || |
| 11498 | test ! -s conftest.err |
| 11499 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11500 | ac_hi=$ac_mid |
| 11501 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11502 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11504 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11505 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11506 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11507 | |
| 11508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11509 | done |
| 11510 | case $ac_lo in |
| 11511 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11512 | '') if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11513 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11514 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11515 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11516 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11517 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11518 | else |
| 11519 | ac_cv_sizeof_long_long=0 |
| 11520 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11521 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11522 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11523 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11524 | /* confdefs.h. */ |
| 11525 | _ACEOF |
| 11526 | cat confdefs.h >>conftest.$ac_ext |
| 11527 | cat >>conftest.$ac_ext <<_ACEOF |
| 11528 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11529 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11530 | typedef long long ac__type_sizeof_; |
| 11531 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11532 | 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] | 11533 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11534 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11535 | int |
| 11536 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11537 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11538 | |
| 11539 | FILE *f = fopen ("conftest.val", "w"); |
| 11540 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11541 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11542 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11543 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11544 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11545 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11546 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11547 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11548 | } |
| 11549 | else |
| 11550 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11551 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11552 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11553 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11554 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11555 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11556 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11557 | |
| 11558 | ; |
| 11559 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11560 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11561 | _ACEOF |
| 11562 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11563 | if { (ac_try="$ac_link" |
| 11564 | case "(($ac_try" in |
| 11565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11566 | *) ac_try_echo=$ac_try;; |
| 11567 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11569 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11570 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11572 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11573 | { (case "(($ac_try" in |
| 11574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11575 | *) ac_try_echo=$ac_try;; |
| 11576 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11578 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11579 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11581 | (exit $ac_status); }; }; then |
| 11582 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11583 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11584 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11585 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11587 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11588 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11589 | if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11590 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11591 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11592 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11593 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11594 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11595 | else |
| 11596 | ac_cv_sizeof_long_long=0 |
| 11597 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11598 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11599 | 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] | 11600 | fi |
| 11601 | rm -f conftest.val |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11602 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11603 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 11604 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11605 | |
| 11606 | |
| 11607 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11608 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11609 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11610 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11611 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11612 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11613 | fi |
| 11614 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11615 | { echo "$as_me:$LINENO: checking for long double support" >&5 |
| 11616 | echo $ECHO_N "checking for long double support... $ECHO_C" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11617 | have_long_double=no |
| 11618 | cat >conftest.$ac_ext <<_ACEOF |
| 11619 | /* confdefs.h. */ |
| 11620 | _ACEOF |
| 11621 | cat confdefs.h >>conftest.$ac_ext |
| 11622 | cat >>conftest.$ac_ext <<_ACEOF |
| 11623 | /* end confdefs.h. */ |
| 11624 | |
| 11625 | int |
| 11626 | main () |
| 11627 | { |
| 11628 | long double x; x = (long double)0.; |
| 11629 | ; |
| 11630 | return 0; |
| 11631 | } |
| 11632 | _ACEOF |
| 11633 | rm -f conftest.$ac_objext |
| 11634 | if { (ac_try="$ac_compile" |
| 11635 | case "(($ac_try" in |
| 11636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11637 | *) ac_try_echo=$ac_try;; |
| 11638 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11640 | (eval "$ac_compile") 2>conftest.er1 |
| 11641 | ac_status=$? |
| 11642 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11643 | rm -f conftest.er1 |
| 11644 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11646 | (exit $ac_status); } && { |
| 11647 | test -z "$ac_c_werror_flag" || |
| 11648 | test ! -s conftest.err |
| 11649 | } && test -s conftest.$ac_objext; then |
| 11650 | |
| 11651 | |
| 11652 | cat >>confdefs.h <<\_ACEOF |
| 11653 | #define HAVE_LONG_DOUBLE 1 |
| 11654 | _ACEOF |
| 11655 | |
| 11656 | have_long_double=yes |
| 11657 | |
| 11658 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11659 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11661 | |
| 11662 | |
| 11663 | fi |
| 11664 | |
| 11665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11666 | { echo "$as_me:$LINENO: result: $have_long_double" >&5 |
| 11667 | echo "${ECHO_T}$have_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11668 | if test "$have_long_double" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11669 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 11670 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
| 11671 | if test "${ac_cv_type_long_double+set}" = set; then |
| 11672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11673 | else |
| 11674 | cat >conftest.$ac_ext <<_ACEOF |
| 11675 | /* confdefs.h. */ |
| 11676 | _ACEOF |
| 11677 | cat confdefs.h >>conftest.$ac_ext |
| 11678 | cat >>conftest.$ac_ext <<_ACEOF |
| 11679 | /* end confdefs.h. */ |
| 11680 | $ac_includes_default |
| 11681 | typedef long double ac__type_new_; |
| 11682 | int |
| 11683 | main () |
| 11684 | { |
| 11685 | if ((ac__type_new_ *) 0) |
| 11686 | return 0; |
| 11687 | if (sizeof (ac__type_new_)) |
| 11688 | return 0; |
| 11689 | ; |
| 11690 | return 0; |
| 11691 | } |
| 11692 | _ACEOF |
| 11693 | rm -f conftest.$ac_objext |
| 11694 | if { (ac_try="$ac_compile" |
| 11695 | case "(($ac_try" in |
| 11696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11697 | *) ac_try_echo=$ac_try;; |
| 11698 | esac |
| 11699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11700 | (eval "$ac_compile") 2>conftest.er1 |
| 11701 | ac_status=$? |
| 11702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11703 | rm -f conftest.er1 |
| 11704 | cat conftest.err >&5 |
| 11705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11706 | (exit $ac_status); } && { |
| 11707 | test -z "$ac_c_werror_flag" || |
| 11708 | test ! -s conftest.err |
| 11709 | } && test -s conftest.$ac_objext; then |
| 11710 | ac_cv_type_long_double=yes |
| 11711 | else |
| 11712 | echo "$as_me: failed program was:" >&5 |
| 11713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11714 | |
| 11715 | ac_cv_type_long_double=no |
| 11716 | fi |
| 11717 | |
| 11718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11719 | fi |
| 11720 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 |
| 11721 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } |
| 11722 | |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11723 | # The cast to long int works around a bug in the HP C Compiler |
| 11724 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11725 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11726 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11727 | { echo "$as_me:$LINENO: checking size of long double" >&5 |
| 11728 | echo $ECHO_N "checking size of long double... $ECHO_C" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11729 | if test "${ac_cv_sizeof_long_double+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11731 | else |
| 11732 | if test "$cross_compiling" = yes; then |
| 11733 | # Depending upon the size, compute the lo and hi bounds. |
| 11734 | cat >conftest.$ac_ext <<_ACEOF |
| 11735 | /* confdefs.h. */ |
| 11736 | _ACEOF |
| 11737 | cat confdefs.h >>conftest.$ac_ext |
| 11738 | cat >>conftest.$ac_ext <<_ACEOF |
| 11739 | /* end confdefs.h. */ |
| 11740 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11741 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11742 | int |
| 11743 | main () |
| 11744 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11745 | 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] | 11746 | test_array [0] = 0 |
| 11747 | |
| 11748 | ; |
| 11749 | return 0; |
| 11750 | } |
| 11751 | _ACEOF |
| 11752 | rm -f conftest.$ac_objext |
| 11753 | if { (ac_try="$ac_compile" |
| 11754 | case "(($ac_try" in |
| 11755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11756 | *) ac_try_echo=$ac_try;; |
| 11757 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11759 | (eval "$ac_compile") 2>conftest.er1 |
| 11760 | ac_status=$? |
| 11761 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11762 | rm -f conftest.er1 |
| 11763 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11765 | (exit $ac_status); } && { |
| 11766 | test -z "$ac_c_werror_flag" || |
| 11767 | test ! -s conftest.err |
| 11768 | } && test -s conftest.$ac_objext; then |
| 11769 | ac_lo=0 ac_mid=0 |
| 11770 | while :; do |
| 11771 | cat >conftest.$ac_ext <<_ACEOF |
| 11772 | /* confdefs.h. */ |
| 11773 | _ACEOF |
| 11774 | cat confdefs.h >>conftest.$ac_ext |
| 11775 | cat >>conftest.$ac_ext <<_ACEOF |
| 11776 | /* end confdefs.h. */ |
| 11777 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11778 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11779 | int |
| 11780 | main () |
| 11781 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11782 | 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] | 11783 | test_array [0] = 0 |
| 11784 | |
| 11785 | ; |
| 11786 | return 0; |
| 11787 | } |
| 11788 | _ACEOF |
| 11789 | rm -f conftest.$ac_objext |
| 11790 | if { (ac_try="$ac_compile" |
| 11791 | case "(($ac_try" in |
| 11792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11793 | *) ac_try_echo=$ac_try;; |
| 11794 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11796 | (eval "$ac_compile") 2>conftest.er1 |
| 11797 | ac_status=$? |
| 11798 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11799 | rm -f conftest.er1 |
| 11800 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11802 | (exit $ac_status); } && { |
| 11803 | test -z "$ac_c_werror_flag" || |
| 11804 | test ! -s conftest.err |
| 11805 | } && test -s conftest.$ac_objext; then |
| 11806 | ac_hi=$ac_mid; break |
| 11807 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11808 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11810 | |
| 11811 | ac_lo=`expr $ac_mid + 1` |
| 11812 | if test $ac_lo -le $ac_mid; then |
| 11813 | ac_lo= ac_hi= |
| 11814 | break |
| 11815 | fi |
| 11816 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11817 | fi |
| 11818 | |
| 11819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11820 | done |
| 11821 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11822 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11824 | |
| 11825 | cat >conftest.$ac_ext <<_ACEOF |
| 11826 | /* confdefs.h. */ |
| 11827 | _ACEOF |
| 11828 | cat confdefs.h >>conftest.$ac_ext |
| 11829 | cat >>conftest.$ac_ext <<_ACEOF |
| 11830 | /* end confdefs.h. */ |
| 11831 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11832 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11833 | int |
| 11834 | main () |
| 11835 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11836 | 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] | 11837 | test_array [0] = 0 |
| 11838 | |
| 11839 | ; |
| 11840 | return 0; |
| 11841 | } |
| 11842 | _ACEOF |
| 11843 | rm -f conftest.$ac_objext |
| 11844 | if { (ac_try="$ac_compile" |
| 11845 | case "(($ac_try" in |
| 11846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11847 | *) ac_try_echo=$ac_try;; |
| 11848 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11850 | (eval "$ac_compile") 2>conftest.er1 |
| 11851 | ac_status=$? |
| 11852 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11853 | rm -f conftest.er1 |
| 11854 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11856 | (exit $ac_status); } && { |
| 11857 | test -z "$ac_c_werror_flag" || |
| 11858 | test ! -s conftest.err |
| 11859 | } && test -s conftest.$ac_objext; then |
| 11860 | ac_hi=-1 ac_mid=-1 |
| 11861 | while :; do |
| 11862 | cat >conftest.$ac_ext <<_ACEOF |
| 11863 | /* confdefs.h. */ |
| 11864 | _ACEOF |
| 11865 | cat confdefs.h >>conftest.$ac_ext |
| 11866 | cat >>conftest.$ac_ext <<_ACEOF |
| 11867 | /* end confdefs.h. */ |
| 11868 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11869 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11870 | int |
| 11871 | main () |
| 11872 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11873 | 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] | 11874 | test_array [0] = 0 |
| 11875 | |
| 11876 | ; |
| 11877 | return 0; |
| 11878 | } |
| 11879 | _ACEOF |
| 11880 | rm -f conftest.$ac_objext |
| 11881 | if { (ac_try="$ac_compile" |
| 11882 | case "(($ac_try" in |
| 11883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11884 | *) ac_try_echo=$ac_try;; |
| 11885 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11887 | (eval "$ac_compile") 2>conftest.er1 |
| 11888 | ac_status=$? |
| 11889 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11890 | rm -f conftest.er1 |
| 11891 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11893 | (exit $ac_status); } && { |
| 11894 | test -z "$ac_c_werror_flag" || |
| 11895 | test ! -s conftest.err |
| 11896 | } && test -s conftest.$ac_objext; then |
| 11897 | ac_lo=$ac_mid; break |
| 11898 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11899 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11901 | |
| 11902 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11903 | if test $ac_mid -le $ac_hi; then |
| 11904 | ac_lo= ac_hi= |
| 11905 | break |
| 11906 | fi |
| 11907 | ac_mid=`expr 2 '*' $ac_mid` |
| 11908 | fi |
| 11909 | |
| 11910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11911 | done |
| 11912 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11913 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11915 | |
| 11916 | ac_lo= ac_hi= |
| 11917 | fi |
| 11918 | |
| 11919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11920 | fi |
| 11921 | |
| 11922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11923 | # Binary search between lo and hi bounds. |
| 11924 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11925 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11926 | cat >conftest.$ac_ext <<_ACEOF |
| 11927 | /* confdefs.h. */ |
| 11928 | _ACEOF |
| 11929 | cat confdefs.h >>conftest.$ac_ext |
| 11930 | cat >>conftest.$ac_ext <<_ACEOF |
| 11931 | /* end confdefs.h. */ |
| 11932 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11933 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11934 | int |
| 11935 | main () |
| 11936 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11937 | 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] | 11938 | test_array [0] = 0 |
| 11939 | |
| 11940 | ; |
| 11941 | return 0; |
| 11942 | } |
| 11943 | _ACEOF |
| 11944 | rm -f conftest.$ac_objext |
| 11945 | if { (ac_try="$ac_compile" |
| 11946 | case "(($ac_try" in |
| 11947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11948 | *) ac_try_echo=$ac_try;; |
| 11949 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11951 | (eval "$ac_compile") 2>conftest.er1 |
| 11952 | ac_status=$? |
| 11953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11954 | rm -f conftest.er1 |
| 11955 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11957 | (exit $ac_status); } && { |
| 11958 | test -z "$ac_c_werror_flag" || |
| 11959 | test ! -s conftest.err |
| 11960 | } && test -s conftest.$ac_objext; then |
| 11961 | ac_hi=$ac_mid |
| 11962 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11963 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11965 | |
| 11966 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11967 | fi |
| 11968 | |
| 11969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11970 | done |
| 11971 | case $ac_lo in |
| 11972 | ?*) ac_cv_sizeof_long_double=$ac_lo;; |
| 11973 | '') if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11974 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11975 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11976 | echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11977 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11978 | { (exit 77); exit 77; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11979 | else |
| 11980 | ac_cv_sizeof_long_double=0 |
| 11981 | fi ;; |
| 11982 | esac |
| 11983 | else |
| 11984 | cat >conftest.$ac_ext <<_ACEOF |
| 11985 | /* confdefs.h. */ |
| 11986 | _ACEOF |
| 11987 | cat confdefs.h >>conftest.$ac_ext |
| 11988 | cat >>conftest.$ac_ext <<_ACEOF |
| 11989 | /* end confdefs.h. */ |
| 11990 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 11991 | typedef long double ac__type_sizeof_; |
| 11992 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11993 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11994 | #include <stdio.h> |
| 11995 | #include <stdlib.h> |
| 11996 | int |
| 11997 | main () |
| 11998 | { |
| 11999 | |
| 12000 | FILE *f = fopen ("conftest.val", "w"); |
| 12001 | if (! f) |
| 12002 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12003 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12004 | { |
| 12005 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12006 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12007 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12008 | fprintf (f, "%ld\n", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12009 | } |
| 12010 | else |
| 12011 | { |
| 12012 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12013 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12014 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12015 | fprintf (f, "%lu\n", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12016 | } |
| 12017 | return ferror (f) || fclose (f) != 0; |
| 12018 | |
| 12019 | ; |
| 12020 | return 0; |
| 12021 | } |
| 12022 | _ACEOF |
| 12023 | rm -f conftest$ac_exeext |
| 12024 | if { (ac_try="$ac_link" |
| 12025 | case "(($ac_try" in |
| 12026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12027 | *) ac_try_echo=$ac_try;; |
| 12028 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12030 | (eval "$ac_link") 2>&5 |
| 12031 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12033 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12034 | { (case "(($ac_try" in |
| 12035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12036 | *) ac_try_echo=$ac_try;; |
| 12037 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12039 | (eval "$ac_try") 2>&5 |
| 12040 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12042 | (exit $ac_status); }; }; then |
| 12043 | ac_cv_sizeof_long_double=`cat conftest.val` |
| 12044 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12045 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12046 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12048 | |
| 12049 | ( exit $ac_status ) |
| 12050 | if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12051 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12052 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12053 | echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12054 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12055 | { (exit 77); exit 77; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12056 | else |
| 12057 | ac_cv_sizeof_long_double=0 |
| 12058 | fi |
| 12059 | fi |
| 12060 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12061 | fi |
| 12062 | rm -f conftest.val |
| 12063 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12064 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 |
| 12065 | echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12066 | |
| 12067 | |
| 12068 | |
| 12069 | cat >>confdefs.h <<_ACEOF |
| 12070 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 12071 | _ACEOF |
| 12072 | |
| 12073 | |
| 12074 | fi |
| 12075 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12076 | { echo "$as_me:$LINENO: checking for _Bool support" >&5 |
| 12077 | echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12078 | have_c99_bool=no |
| 12079 | cat >conftest.$ac_ext <<_ACEOF |
| 12080 | /* confdefs.h. */ |
| 12081 | _ACEOF |
| 12082 | cat confdefs.h >>conftest.$ac_ext |
| 12083 | cat >>conftest.$ac_ext <<_ACEOF |
| 12084 | /* end confdefs.h. */ |
| 12085 | |
| 12086 | int |
| 12087 | main () |
| 12088 | { |
| 12089 | _Bool x; x = (_Bool)0; |
| 12090 | ; |
| 12091 | return 0; |
| 12092 | } |
| 12093 | _ACEOF |
| 12094 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12095 | if { (ac_try="$ac_compile" |
| 12096 | case "(($ac_try" in |
| 12097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12098 | *) ac_try_echo=$ac_try;; |
| 12099 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12101 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12102 | ac_status=$? |
| 12103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12104 | rm -f conftest.er1 |
| 12105 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12107 | (exit $ac_status); } && { |
| 12108 | test -z "$ac_c_werror_flag" || |
| 12109 | test ! -s conftest.err |
| 12110 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12111 | |
| 12112 | |
| 12113 | cat >>confdefs.h <<\_ACEOF |
| 12114 | #define HAVE_C99_BOOL 1 |
| 12115 | _ACEOF |
| 12116 | |
| 12117 | have_c99_bool=yes |
| 12118 | |
| 12119 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12120 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12122 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12123 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12124 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12125 | |
| 12126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12127 | { echo "$as_me:$LINENO: result: $have_c99_bool" >&5 |
| 12128 | echo "${ECHO_T}$have_c99_bool" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12129 | if test "$have_c99_bool" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12130 | { echo "$as_me:$LINENO: checking for _Bool" >&5 |
| 12131 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
| 12132 | if test "${ac_cv_type__Bool+set}" = set; then |
| 12133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12134 | else |
| 12135 | cat >conftest.$ac_ext <<_ACEOF |
| 12136 | /* confdefs.h. */ |
| 12137 | _ACEOF |
| 12138 | cat confdefs.h >>conftest.$ac_ext |
| 12139 | cat >>conftest.$ac_ext <<_ACEOF |
| 12140 | /* end confdefs.h. */ |
| 12141 | $ac_includes_default |
| 12142 | typedef _Bool ac__type_new_; |
| 12143 | int |
| 12144 | main () |
| 12145 | { |
| 12146 | if ((ac__type_new_ *) 0) |
| 12147 | return 0; |
| 12148 | if (sizeof (ac__type_new_)) |
| 12149 | return 0; |
| 12150 | ; |
| 12151 | return 0; |
| 12152 | } |
| 12153 | _ACEOF |
| 12154 | rm -f conftest.$ac_objext |
| 12155 | if { (ac_try="$ac_compile" |
| 12156 | case "(($ac_try" in |
| 12157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12158 | *) ac_try_echo=$ac_try;; |
| 12159 | esac |
| 12160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12161 | (eval "$ac_compile") 2>conftest.er1 |
| 12162 | ac_status=$? |
| 12163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12164 | rm -f conftest.er1 |
| 12165 | cat conftest.err >&5 |
| 12166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12167 | (exit $ac_status); } && { |
| 12168 | test -z "$ac_c_werror_flag" || |
| 12169 | test ! -s conftest.err |
| 12170 | } && test -s conftest.$ac_objext; then |
| 12171 | ac_cv_type__Bool=yes |
| 12172 | else |
| 12173 | echo "$as_me: failed program was:" >&5 |
| 12174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12175 | |
| 12176 | ac_cv_type__Bool=no |
| 12177 | fi |
| 12178 | |
| 12179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12180 | fi |
| 12181 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
| 12182 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
| 12183 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12184 | # The cast to long int works around a bug in the HP C Compiler |
| 12185 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12186 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12187 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12188 | { echo "$as_me:$LINENO: checking size of _Bool" >&5 |
| 12189 | echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12190 | if test "${ac_cv_sizeof__Bool+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12192 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12193 | if test "$cross_compiling" = yes; then |
| 12194 | # Depending upon the size, compute the lo and hi bounds. |
| 12195 | cat >conftest.$ac_ext <<_ACEOF |
| 12196 | /* confdefs.h. */ |
| 12197 | _ACEOF |
| 12198 | cat confdefs.h >>conftest.$ac_ext |
| 12199 | cat >>conftest.$ac_ext <<_ACEOF |
| 12200 | /* end confdefs.h. */ |
| 12201 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12202 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12203 | int |
| 12204 | main () |
| 12205 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12206 | 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] | 12207 | test_array [0] = 0 |
| 12208 | |
| 12209 | ; |
| 12210 | return 0; |
| 12211 | } |
| 12212 | _ACEOF |
| 12213 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12214 | if { (ac_try="$ac_compile" |
| 12215 | case "(($ac_try" in |
| 12216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12217 | *) ac_try_echo=$ac_try;; |
| 12218 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12220 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12221 | ac_status=$? |
| 12222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12223 | rm -f conftest.er1 |
| 12224 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12226 | (exit $ac_status); } && { |
| 12227 | test -z "$ac_c_werror_flag" || |
| 12228 | test ! -s conftest.err |
| 12229 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12230 | ac_lo=0 ac_mid=0 |
| 12231 | while :; do |
| 12232 | cat >conftest.$ac_ext <<_ACEOF |
| 12233 | /* confdefs.h. */ |
| 12234 | _ACEOF |
| 12235 | cat confdefs.h >>conftest.$ac_ext |
| 12236 | cat >>conftest.$ac_ext <<_ACEOF |
| 12237 | /* end confdefs.h. */ |
| 12238 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12239 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12240 | int |
| 12241 | main () |
| 12242 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12243 | 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] | 12244 | test_array [0] = 0 |
| 12245 | |
| 12246 | ; |
| 12247 | return 0; |
| 12248 | } |
| 12249 | _ACEOF |
| 12250 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12251 | if { (ac_try="$ac_compile" |
| 12252 | case "(($ac_try" in |
| 12253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12254 | *) ac_try_echo=$ac_try;; |
| 12255 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12257 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12258 | ac_status=$? |
| 12259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12260 | rm -f conftest.er1 |
| 12261 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12263 | (exit $ac_status); } && { |
| 12264 | test -z "$ac_c_werror_flag" || |
| 12265 | test ! -s conftest.err |
| 12266 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12267 | ac_hi=$ac_mid; break |
| 12268 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12269 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12271 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12272 | ac_lo=`expr $ac_mid + 1` |
| 12273 | if test $ac_lo -le $ac_mid; then |
| 12274 | ac_lo= ac_hi= |
| 12275 | break |
| 12276 | fi |
| 12277 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12278 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12279 | |
| 12280 | 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] | 12281 | done |
| 12282 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12283 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12285 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12286 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12287 | /* confdefs.h. */ |
| 12288 | _ACEOF |
| 12289 | cat confdefs.h >>conftest.$ac_ext |
| 12290 | cat >>conftest.$ac_ext <<_ACEOF |
| 12291 | /* end confdefs.h. */ |
| 12292 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12293 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12294 | int |
| 12295 | main () |
| 12296 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12297 | 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] | 12298 | test_array [0] = 0 |
| 12299 | |
| 12300 | ; |
| 12301 | return 0; |
| 12302 | } |
| 12303 | _ACEOF |
| 12304 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12305 | if { (ac_try="$ac_compile" |
| 12306 | case "(($ac_try" in |
| 12307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12308 | *) ac_try_echo=$ac_try;; |
| 12309 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12311 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12312 | ac_status=$? |
| 12313 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12314 | rm -f conftest.er1 |
| 12315 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12317 | (exit $ac_status); } && { |
| 12318 | test -z "$ac_c_werror_flag" || |
| 12319 | test ! -s conftest.err |
| 12320 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12321 | ac_hi=-1 ac_mid=-1 |
| 12322 | while :; do |
| 12323 | cat >conftest.$ac_ext <<_ACEOF |
| 12324 | /* confdefs.h. */ |
| 12325 | _ACEOF |
| 12326 | cat confdefs.h >>conftest.$ac_ext |
| 12327 | cat >>conftest.$ac_ext <<_ACEOF |
| 12328 | /* end confdefs.h. */ |
| 12329 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12330 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12331 | int |
| 12332 | main () |
| 12333 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12334 | 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] | 12335 | test_array [0] = 0 |
| 12336 | |
| 12337 | ; |
| 12338 | return 0; |
| 12339 | } |
| 12340 | _ACEOF |
| 12341 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12342 | if { (ac_try="$ac_compile" |
| 12343 | case "(($ac_try" in |
| 12344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12345 | *) ac_try_echo=$ac_try;; |
| 12346 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12348 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12349 | ac_status=$? |
| 12350 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12351 | rm -f conftest.er1 |
| 12352 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12354 | (exit $ac_status); } && { |
| 12355 | test -z "$ac_c_werror_flag" || |
| 12356 | test ! -s conftest.err |
| 12357 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12358 | ac_lo=$ac_mid; break |
| 12359 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12360 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12362 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12363 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12364 | if test $ac_mid -le $ac_hi; then |
| 12365 | ac_lo= ac_hi= |
| 12366 | break |
| 12367 | fi |
| 12368 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12369 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12370 | |
| 12371 | 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] | 12372 | done |
| 12373 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12374 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12376 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12377 | ac_lo= ac_hi= |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12378 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12379 | |
| 12380 | 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] | 12381 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12382 | |
| 12383 | 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] | 12384 | # Binary search between lo and hi bounds. |
| 12385 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12386 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12387 | cat >conftest.$ac_ext <<_ACEOF |
| 12388 | /* confdefs.h. */ |
| 12389 | _ACEOF |
| 12390 | cat confdefs.h >>conftest.$ac_ext |
| 12391 | cat >>conftest.$ac_ext <<_ACEOF |
| 12392 | /* end confdefs.h. */ |
| 12393 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12394 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12395 | int |
| 12396 | main () |
| 12397 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12398 | 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] | 12399 | test_array [0] = 0 |
| 12400 | |
| 12401 | ; |
| 12402 | return 0; |
| 12403 | } |
| 12404 | _ACEOF |
| 12405 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12406 | if { (ac_try="$ac_compile" |
| 12407 | case "(($ac_try" in |
| 12408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12409 | *) ac_try_echo=$ac_try;; |
| 12410 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12412 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12413 | ac_status=$? |
| 12414 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12415 | rm -f conftest.er1 |
| 12416 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12418 | (exit $ac_status); } && { |
| 12419 | test -z "$ac_c_werror_flag" || |
| 12420 | test ! -s conftest.err |
| 12421 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12422 | ac_hi=$ac_mid |
| 12423 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12424 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12426 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12427 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12428 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12429 | |
| 12430 | 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] | 12431 | done |
| 12432 | case $ac_lo in |
| 12433 | ?*) ac_cv_sizeof__Bool=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12434 | '') if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12435 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12436 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12437 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12438 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12439 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12440 | else |
| 12441 | ac_cv_sizeof__Bool=0 |
| 12442 | fi ;; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12443 | esac |
| 12444 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12445 | cat >conftest.$ac_ext <<_ACEOF |
| 12446 | /* confdefs.h. */ |
| 12447 | _ACEOF |
| 12448 | cat confdefs.h >>conftest.$ac_ext |
| 12449 | cat >>conftest.$ac_ext <<_ACEOF |
| 12450 | /* end confdefs.h. */ |
| 12451 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12452 | typedef _Bool ac__type_sizeof_; |
| 12453 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12454 | 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] | 12455 | #include <stdio.h> |
| 12456 | #include <stdlib.h> |
| 12457 | int |
| 12458 | main () |
| 12459 | { |
| 12460 | |
| 12461 | FILE *f = fopen ("conftest.val", "w"); |
| 12462 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12463 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12464 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12465 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12466 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12467 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12468 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12469 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12470 | } |
| 12471 | else |
| 12472 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12473 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12474 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12475 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12476 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12477 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12478 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12479 | |
| 12480 | ; |
| 12481 | return 0; |
| 12482 | } |
| 12483 | _ACEOF |
| 12484 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12485 | if { (ac_try="$ac_link" |
| 12486 | case "(($ac_try" in |
| 12487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12488 | *) ac_try_echo=$ac_try;; |
| 12489 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12491 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12492 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12494 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12495 | { (case "(($ac_try" in |
| 12496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12497 | *) ac_try_echo=$ac_try;; |
| 12498 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12500 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12501 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12503 | (exit $ac_status); }; }; then |
| 12504 | ac_cv_sizeof__Bool=`cat conftest.val` |
| 12505 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12506 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12507 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12509 | |
| 12510 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12511 | if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12512 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12513 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12514 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12515 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12516 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12517 | else |
| 12518 | ac_cv_sizeof__Bool=0 |
| 12519 | fi |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12520 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12521 | 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] | 12522 | fi |
| 12523 | rm -f conftest.val |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12524 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12525 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5 |
| 12526 | echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12527 | |
| 12528 | |
| 12529 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12530 | cat >>confdefs.h <<_ACEOF |
| 12531 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 12532 | _ACEOF |
| 12533 | |
| 12534 | |
| 12535 | fi |
| 12536 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12537 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12538 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12539 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12541 | else |
| 12542 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12543 | /* confdefs.h. */ |
| 12544 | _ACEOF |
| 12545 | cat confdefs.h >>conftest.$ac_ext |
| 12546 | cat >>conftest.$ac_ext <<_ACEOF |
| 12547 | /* end confdefs.h. */ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 12548 | #ifdef HAVE_STDINT_H |
| 12549 | #include <stdint.h> |
| 12550 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12551 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12552 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12553 | int |
| 12554 | main () |
| 12555 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12556 | if ((ac__type_new_ *) 0) |
| 12557 | return 0; |
| 12558 | if (sizeof (ac__type_new_)) |
| 12559 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12560 | ; |
| 12561 | return 0; |
| 12562 | } |
| 12563 | _ACEOF |
| 12564 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12565 | if { (ac_try="$ac_compile" |
| 12566 | case "(($ac_try" in |
| 12567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12568 | *) ac_try_echo=$ac_try;; |
| 12569 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12571 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12572 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12574 | rm -f conftest.er1 |
| 12575 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12577 | (exit $ac_status); } && { |
| 12578 | test -z "$ac_c_werror_flag" || |
| 12579 | test ! -s conftest.err |
| 12580 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12581 | ac_cv_type_uintptr_t=yes |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12582 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12583 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12585 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12586 | ac_cv_type_uintptr_t=no |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12587 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12588 | |
| 12589 | 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] | 12590 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12591 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12592 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12593 | if test $ac_cv_type_uintptr_t = yes; then |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12594 | |
| 12595 | cat >>confdefs.h <<_ACEOF |
| 12596 | #define HAVE_UINTPTR_T 1 |
| 12597 | _ACEOF |
| 12598 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12599 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12600 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
| 12601 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 12602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12603 | else |
| 12604 | cat >conftest.$ac_ext <<_ACEOF |
| 12605 | /* confdefs.h. */ |
| 12606 | _ACEOF |
| 12607 | cat confdefs.h >>conftest.$ac_ext |
| 12608 | cat >>conftest.$ac_ext <<_ACEOF |
| 12609 | /* end confdefs.h. */ |
| 12610 | $ac_includes_default |
| 12611 | typedef uintptr_t ac__type_new_; |
| 12612 | int |
| 12613 | main () |
| 12614 | { |
| 12615 | if ((ac__type_new_ *) 0) |
| 12616 | return 0; |
| 12617 | if (sizeof (ac__type_new_)) |
| 12618 | return 0; |
| 12619 | ; |
| 12620 | return 0; |
| 12621 | } |
| 12622 | _ACEOF |
| 12623 | rm -f conftest.$ac_objext |
| 12624 | if { (ac_try="$ac_compile" |
| 12625 | case "(($ac_try" in |
| 12626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12627 | *) ac_try_echo=$ac_try;; |
| 12628 | esac |
| 12629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12630 | (eval "$ac_compile") 2>conftest.er1 |
| 12631 | ac_status=$? |
| 12632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12633 | rm -f conftest.er1 |
| 12634 | cat conftest.err >&5 |
| 12635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12636 | (exit $ac_status); } && { |
| 12637 | test -z "$ac_c_werror_flag" || |
| 12638 | test ! -s conftest.err |
| 12639 | } && test -s conftest.$ac_objext; then |
| 12640 | ac_cv_type_uintptr_t=yes |
| 12641 | else |
| 12642 | echo "$as_me: failed program was:" >&5 |
| 12643 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12644 | |
| 12645 | ac_cv_type_uintptr_t=no |
| 12646 | fi |
| 12647 | |
| 12648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12649 | fi |
| 12650 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12651 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12652 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12653 | # The cast to long int works around a bug in the HP C Compiler |
| 12654 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12655 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12656 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12657 | { echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 12658 | 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] | 12659 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12661 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12662 | if test "$cross_compiling" = yes; then |
| 12663 | # Depending upon the size, compute the lo and hi bounds. |
| 12664 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12665 | /* confdefs.h. */ |
| 12666 | _ACEOF |
| 12667 | cat confdefs.h >>conftest.$ac_ext |
| 12668 | cat >>conftest.$ac_ext <<_ACEOF |
| 12669 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12670 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12671 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12672 | int |
| 12673 | main () |
| 12674 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12675 | 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] | 12676 | test_array [0] = 0 |
| 12677 | |
| 12678 | ; |
| 12679 | return 0; |
| 12680 | } |
| 12681 | _ACEOF |
| 12682 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12683 | if { (ac_try="$ac_compile" |
| 12684 | case "(($ac_try" in |
| 12685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12686 | *) ac_try_echo=$ac_try;; |
| 12687 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12689 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12690 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12692 | rm -f conftest.er1 |
| 12693 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12695 | (exit $ac_status); } && { |
| 12696 | test -z "$ac_c_werror_flag" || |
| 12697 | test ! -s conftest.err |
| 12698 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12699 | ac_lo=0 ac_mid=0 |
| 12700 | while :; do |
| 12701 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12702 | /* confdefs.h. */ |
| 12703 | _ACEOF |
| 12704 | cat confdefs.h >>conftest.$ac_ext |
| 12705 | cat >>conftest.$ac_ext <<_ACEOF |
| 12706 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12707 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12708 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12709 | int |
| 12710 | main () |
| 12711 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12712 | 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] | 12713 | test_array [0] = 0 |
| 12714 | |
| 12715 | ; |
| 12716 | return 0; |
| 12717 | } |
| 12718 | _ACEOF |
| 12719 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12720 | if { (ac_try="$ac_compile" |
| 12721 | case "(($ac_try" in |
| 12722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12723 | *) ac_try_echo=$ac_try;; |
| 12724 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12726 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12727 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12728 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12729 | rm -f conftest.er1 |
| 12730 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12732 | (exit $ac_status); } && { |
| 12733 | test -z "$ac_c_werror_flag" || |
| 12734 | test ! -s conftest.err |
| 12735 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12736 | ac_hi=$ac_mid; break |
| 12737 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12738 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12739 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12740 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12741 | ac_lo=`expr $ac_mid + 1` |
| 12742 | if test $ac_lo -le $ac_mid; then |
| 12743 | ac_lo= ac_hi= |
| 12744 | break |
| 12745 | fi |
| 12746 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12747 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12748 | |
| 12749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12750 | done |
| 12751 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12752 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12754 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12755 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12756 | /* confdefs.h. */ |
| 12757 | _ACEOF |
| 12758 | cat confdefs.h >>conftest.$ac_ext |
| 12759 | cat >>conftest.$ac_ext <<_ACEOF |
| 12760 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12761 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12762 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12763 | int |
| 12764 | main () |
| 12765 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12766 | 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] | 12767 | test_array [0] = 0 |
| 12768 | |
| 12769 | ; |
| 12770 | return 0; |
| 12771 | } |
| 12772 | _ACEOF |
| 12773 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12774 | if { (ac_try="$ac_compile" |
| 12775 | case "(($ac_try" in |
| 12776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12777 | *) ac_try_echo=$ac_try;; |
| 12778 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12780 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12781 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12783 | rm -f conftest.er1 |
| 12784 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12786 | (exit $ac_status); } && { |
| 12787 | test -z "$ac_c_werror_flag" || |
| 12788 | test ! -s conftest.err |
| 12789 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12790 | ac_hi=-1 ac_mid=-1 |
| 12791 | while :; do |
| 12792 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12793 | /* confdefs.h. */ |
| 12794 | _ACEOF |
| 12795 | cat confdefs.h >>conftest.$ac_ext |
| 12796 | cat >>conftest.$ac_ext <<_ACEOF |
| 12797 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12798 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12799 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12800 | int |
| 12801 | main () |
| 12802 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12803 | 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] | 12804 | test_array [0] = 0 |
| 12805 | |
| 12806 | ; |
| 12807 | return 0; |
| 12808 | } |
| 12809 | _ACEOF |
| 12810 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12811 | if { (ac_try="$ac_compile" |
| 12812 | case "(($ac_try" in |
| 12813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12814 | *) ac_try_echo=$ac_try;; |
| 12815 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12817 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12818 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12819 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12820 | rm -f conftest.er1 |
| 12821 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12823 | (exit $ac_status); } && { |
| 12824 | test -z "$ac_c_werror_flag" || |
| 12825 | test ! -s conftest.err |
| 12826 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12827 | ac_lo=$ac_mid; break |
| 12828 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12829 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12831 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12832 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12833 | if test $ac_mid -le $ac_hi; then |
| 12834 | ac_lo= ac_hi= |
| 12835 | break |
| 12836 | fi |
| 12837 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12838 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12839 | |
| 12840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12841 | done |
| 12842 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12843 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12845 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12846 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12847 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12848 | |
| 12849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12850 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12851 | |
| 12852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12853 | # Binary search between lo and hi bounds. |
| 12854 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12855 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12856 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12857 | /* confdefs.h. */ |
| 12858 | _ACEOF |
| 12859 | cat confdefs.h >>conftest.$ac_ext |
| 12860 | cat >>conftest.$ac_ext <<_ACEOF |
| 12861 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12862 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12863 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12864 | int |
| 12865 | main () |
| 12866 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12867 | 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] | 12868 | test_array [0] = 0 |
| 12869 | |
| 12870 | ; |
| 12871 | return 0; |
| 12872 | } |
| 12873 | _ACEOF |
| 12874 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12875 | if { (ac_try="$ac_compile" |
| 12876 | case "(($ac_try" in |
| 12877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12878 | *) ac_try_echo=$ac_try;; |
| 12879 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12881 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12882 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12884 | rm -f conftest.er1 |
| 12885 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12887 | (exit $ac_status); } && { |
| 12888 | test -z "$ac_c_werror_flag" || |
| 12889 | test ! -s conftest.err |
| 12890 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12891 | ac_hi=$ac_mid |
| 12892 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12893 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12894 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12895 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12896 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12897 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12898 | |
| 12899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12900 | done |
| 12901 | case $ac_lo in |
| 12902 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12903 | '') if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12904 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12905 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12906 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12907 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12908 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12909 | else |
| 12910 | ac_cv_sizeof_uintptr_t=0 |
| 12911 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12912 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12913 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12914 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12915 | /* confdefs.h. */ |
| 12916 | _ACEOF |
| 12917 | cat confdefs.h >>conftest.$ac_ext |
| 12918 | cat >>conftest.$ac_ext <<_ACEOF |
| 12919 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12920 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12921 | typedef uintptr_t ac__type_sizeof_; |
| 12922 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12923 | 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] | 12924 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12925 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12926 | int |
| 12927 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12928 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12929 | |
| 12930 | FILE *f = fopen ("conftest.val", "w"); |
| 12931 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12932 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12933 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12934 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12935 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12936 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12937 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12938 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12939 | } |
| 12940 | else |
| 12941 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12942 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12943 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12944 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12945 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12946 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12947 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12948 | |
| 12949 | ; |
| 12950 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12951 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12952 | _ACEOF |
| 12953 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12954 | if { (ac_try="$ac_link" |
| 12955 | case "(($ac_try" in |
| 12956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12957 | *) ac_try_echo=$ac_try;; |
| 12958 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12960 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12961 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12963 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12964 | { (case "(($ac_try" in |
| 12965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12966 | *) ac_try_echo=$ac_try;; |
| 12967 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12969 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12970 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12972 | (exit $ac_status); }; }; then |
| 12973 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12974 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12975 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12976 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12978 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12979 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12980 | if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12981 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12982 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12983 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12984 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12985 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12986 | else |
| 12987 | ac_cv_sizeof_uintptr_t=0 |
| 12988 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12989 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12990 | 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] | 12991 | fi |
| 12992 | rm -f conftest.val |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12993 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 12994 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 12995 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12996 | |
| 12997 | |
| 12998 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12999 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13000 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13001 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13002 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13003 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13004 | fi |
| 13005 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 13006 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13007 | |
| 13008 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
| 13009 | { echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 13010 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13011 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13013 | else |
| 13014 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13015 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13016 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13017 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13018 | /* confdefs.h. */ |
| 13019 | _ACEOF |
| 13020 | cat confdefs.h >>conftest.$ac_ext |
| 13021 | cat >>conftest.$ac_ext <<_ACEOF |
| 13022 | /* end confdefs.h. */ |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 13023 | #include <stdio.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13024 | #include <sys/types.h> |
| 13025 | main() |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13026 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13027 | FILE *f=fopen("conftestval", "w"); |
| 13028 | if (!f) exit(1); |
| 13029 | fprintf(f, "%d\n", sizeof(off_t)); |
| 13030 | exit(0); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13031 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13032 | _ACEOF |
| 13033 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13034 | if { (ac_try="$ac_link" |
| 13035 | case "(($ac_try" in |
| 13036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13037 | *) ac_try_echo=$ac_try;; |
| 13038 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13040 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13041 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13043 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13044 | { (case "(($ac_try" in |
| 13045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13046 | *) ac_try_echo=$ac_try;; |
| 13047 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13049 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13050 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13052 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13053 | ac_cv_sizeof_off_t=`cat conftestval` |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13054 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13055 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13056 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13058 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13059 | ( exit $ac_status ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13060 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13061 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13062 | 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] | 13063 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13064 | |
| 13065 | |
| 13066 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13067 | fi |
| 13068 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13069 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 13070 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13071 | |
| 13072 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13073 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13074 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13075 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13076 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13077 | { echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 13078 | echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 13079 | if test "$have_long_long" = yes -a \ |
| 13080 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 13081 | "$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] | 13082 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13083 | cat >>confdefs.h <<\_ACEOF |
| 13084 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 13085 | _ACEOF |
| 13086 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13087 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13088 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13089 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13090 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13091 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13092 | fi |
| 13093 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13094 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
| 13095 | { echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 13096 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13097 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13099 | else |
| 13100 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13101 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13102 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13103 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13104 | /* confdefs.h. */ |
| 13105 | _ACEOF |
| 13106 | cat confdefs.h >>conftest.$ac_ext |
| 13107 | cat >>conftest.$ac_ext <<_ACEOF |
| 13108 | /* end confdefs.h. */ |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 13109 | #include <stdio.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13110 | #include <time.h> |
| 13111 | main() |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13112 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13113 | FILE *f=fopen("conftestval", "w"); |
| 13114 | if (!f) exit(1); |
| 13115 | fprintf(f, "%d\n", sizeof(time_t)); |
| 13116 | exit(0); |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13117 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13118 | _ACEOF |
| 13119 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13120 | if { (ac_try="$ac_link" |
| 13121 | case "(($ac_try" in |
| 13122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13123 | *) ac_try_echo=$ac_try;; |
| 13124 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13126 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13127 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13129 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13130 | { (case "(($ac_try" in |
| 13131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13132 | *) ac_try_echo=$ac_try;; |
| 13133 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13135 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13136 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13138 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13139 | ac_cv_sizeof_time_t=`cat conftestval` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13140 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13141 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13142 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13144 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13145 | ( exit $ac_status ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13146 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13147 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13148 | 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] | 13149 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13150 | |
| 13151 | |
| 13152 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13153 | fi |
| 13154 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13155 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 13156 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13157 | |
| 13158 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13159 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13160 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13161 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13162 | |
| 13163 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13164 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13165 | ac_save_cc="$CC" |
| 13166 | if test "$ac_cv_kpthread" = "yes" |
| 13167 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 13168 | elif test "$ac_cv_kthread" = "yes" |
| 13169 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13170 | elif test "$ac_cv_pthread" = "yes" |
| 13171 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13172 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13173 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 13174 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13175 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13176 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13177 | /* confdefs.h. */ |
| 13178 | _ACEOF |
| 13179 | cat confdefs.h >>conftest.$ac_ext |
| 13180 | cat >>conftest.$ac_ext <<_ACEOF |
| 13181 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13182 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13183 | int |
| 13184 | main () |
| 13185 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 13186 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13187 | ; |
| 13188 | return 0; |
| 13189 | } |
| 13190 | _ACEOF |
| 13191 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13192 | if { (ac_try="$ac_compile" |
| 13193 | case "(($ac_try" in |
| 13194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13195 | *) ac_try_echo=$ac_try;; |
| 13196 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13198 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13199 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13200 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13201 | rm -f conftest.er1 |
| 13202 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13204 | (exit $ac_status); } && { |
| 13205 | test -z "$ac_c_werror_flag" || |
| 13206 | test ! -s conftest.err |
| 13207 | } && test -s conftest.$ac_objext; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13208 | have_pthread_t=yes |
| 13209 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13210 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13212 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13213 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13214 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13215 | |
| 13216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13217 | { echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 13218 | echo "${ECHO_T}$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13219 | if test "$have_pthread_t" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13220 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
| 13221 | { echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 13222 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; } |
| 13223 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 13224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13225 | else |
| 13226 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13227 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13228 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13229 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13230 | /* confdefs.h. */ |
| 13231 | _ACEOF |
| 13232 | cat confdefs.h >>conftest.$ac_ext |
| 13233 | cat >>conftest.$ac_ext <<_ACEOF |
| 13234 | /* end confdefs.h. */ |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 13235 | #include <stdio.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13236 | #include <pthread.h> |
| 13237 | main() |
| 13238 | { |
| 13239 | FILE *f=fopen("conftestval", "w"); |
| 13240 | if (!f) exit(1); |
| 13241 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 13242 | exit(0); |
| 13243 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13244 | _ACEOF |
| 13245 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13246 | if { (ac_try="$ac_link" |
| 13247 | case "(($ac_try" in |
| 13248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13249 | *) ac_try_echo=$ac_try;; |
| 13250 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13252 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13253 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13255 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13256 | { (case "(($ac_try" in |
| 13257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13258 | *) ac_try_echo=$ac_try;; |
| 13259 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13261 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13262 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13264 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13265 | ac_cv_sizeof_pthread_t=`cat conftestval` |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13266 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13267 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13268 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13269 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13270 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13271 | ( exit $ac_status ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13272 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13273 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13274 | 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] | 13275 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13276 | |
| 13277 | |
| 13278 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13279 | fi |
| 13280 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13281 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 13282 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13283 | |
| 13284 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13285 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13286 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13287 | |
| 13288 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13289 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13290 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13291 | { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 13292 | 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] | 13293 | # Check whether --enable-toolbox-glue was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13294 | if test "${enable_toolbox_glue+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13295 | enableval=$enable_toolbox_glue; |
| 13296 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13297 | |
| 13298 | |
| 13299 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13300 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13301 | case $ac_sys_system/$ac_sys_release in |
| 13302 | Darwin/*) |
| 13303 | enable_toolbox_glue="yes";; |
| 13304 | *) |
| 13305 | enable_toolbox_glue="no";; |
| 13306 | esac |
| 13307 | fi |
| 13308 | case "$enable_toolbox_glue" in |
| 13309 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13310 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 13311 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13312 | |
| 13313 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13314 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13315 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13316 | |
| 13317 | ;; |
| 13318 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13319 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 13320 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13321 | ;; |
| 13322 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13323 | { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 13324 | echo "${ECHO_T}$enable_toolbox_glue" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13325 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13326 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 13327 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13328 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 13329 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 13330 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 13331 | ;; |
| 13332 | Darwin/*) |
| 13333 | OTHER_LIBTOOL_OPT="" |
| 13334 | ;; |
| 13335 | esac |
| 13336 | |
| 13337 | |
| 13338 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 13339 | Darwin/[01567]\..*) |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 13340 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 13341 | if test "${enable_universalsdk}"; then |
| 13342 | : |
| 13343 | else |
| 13344 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`" |
| 13345 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 13346 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 13347 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 13348 | Darwin/*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 13349 | gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| 13350 | if test ${gcc_version} '<' 4.0 |
| 13351 | then |
| 13352 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 13353 | else |
| 13354 | LIBTOOL_CRUFT="" |
| 13355 | fi |
Jack Jansen | 39fd231 | 2006-02-23 15:12:19 +0000 | [diff] [blame] | 13356 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 13357 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13358 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13359 | esac |
| 13360 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13361 | { echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 13362 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13363 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13364 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13365 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13366 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13367 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13368 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13369 | cat >>confdefs.h <<\_ACEOF |
| 13370 | #define WITH_NEXT_FRAMEWORK 1 |
| 13371 | _ACEOF |
| 13372 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13373 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13374 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 13375 | if test $enable_shared = "yes" |
| 13376 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13377 | { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5 |
| 13378 | echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;} |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 13379 | { (exit 1); exit 1; }; } |
| 13380 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13381 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13382 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13383 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13384 | fi |
| 13385 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13386 | { echo "$as_me:$LINENO: checking for dyld" >&5 |
| 13387 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13388 | case $ac_sys_system/$ac_sys_release in |
| 13389 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13390 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13391 | cat >>confdefs.h <<\_ACEOF |
| 13392 | #define WITH_DYLD 1 |
| 13393 | _ACEOF |
| 13394 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13395 | { echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 13396 | echo "${ECHO_T}always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13397 | ;; |
| 13398 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13399 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13400 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13401 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13402 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13403 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13404 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13405 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13406 | |
| 13407 | |
| 13408 | |
| 13409 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13410 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 13411 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13412 | { echo "$as_me:$LINENO: checking SO" >&5 |
| 13413 | echo $ECHO_N "checking SO... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13414 | if test -z "$SO" |
| 13415 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13416 | case $ac_sys_system in |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 13417 | hp*|HP*) |
| 13418 | case `uname -m` in |
| 13419 | ia64) SO=.so;; |
| 13420 | *) SO=.sl;; |
| 13421 | esac |
| 13422 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 13423 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13424 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13425 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 13426 | else |
| 13427 | # this might also be a termcap variable, see #610332 |
| 13428 | echo |
| 13429 | echo '=====================================================================' |
| 13430 | echo '+ +' |
| 13431 | echo '+ WARNING: You have set SO in your environment. +' |
| 13432 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 13433 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 13434 | echo '+ +' |
| 13435 | echo '=====================================================================' |
| 13436 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13437 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13438 | { echo "$as_me:$LINENO: result: $SO" >&5 |
| 13439 | echo "${ECHO_T}$SO" >&6; } |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 13440 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 13441 | |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 13442 | cat >>confdefs.h <<_ACEOF |
| 13443 | #define SHLIB_EXT "$SO" |
| 13444 | _ACEOF |
| 13445 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13446 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 13447 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13448 | # (Shared libraries in this instance are shared modules to be loaded into |
| 13449 | # Python, as opposed to building Python itself as a shared library.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13450 | { echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 13451 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13452 | if test -z "$LDSHARED" |
| 13453 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13454 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13455 | AIX*) |
| 13456 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 13457 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13458 | ;; |
| 13459 | BeOS*) |
| 13460 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 13461 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13462 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 13463 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 13464 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13465 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 13466 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 13467 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 13468 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 13469 | fi ;; |
Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 13470 | hp*|HP*) |
| 13471 | if test "$GCC" = "yes" |
| 13472 | then LDSHARED='$(CC) -shared' |
| 13473 | else LDSHARED='ld -b'; |
| 13474 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13475 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 13476 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 13477 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 13478 | if test "$enable_framework" ; then |
| 13479 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 13480 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 13481 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 13482 | else |
| 13483 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 13484 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 13485 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13486 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13487 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 13488 | if test "$enable_framework" ; then |
| 13489 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 13490 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 13491 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13492 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 13493 | # No framework, use the Python app as bundle-loader |
| 13494 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 13495 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13496 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13497 | Darwin/*) |
| 13498 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 13499 | # This allows an extension to be used in any Python |
Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 13500 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 13501 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13502 | then |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 13503 | if test "${enable_universalsdk}"; then |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 13504 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 13505 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13506 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 13507 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13508 | else |
| 13509 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 13510 | if test "$enable_framework" ; then |
| 13511 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 13512 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 13513 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13514 | else |
| 13515 | # No framework, use the Python app as bundle-loader |
| 13516 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 13517 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 13518 | fi |
| 13519 | fi |
| 13520 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 13521 | Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 13522 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 13523 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 13524 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 13525 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 13526 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 13527 | else |
| 13528 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 13529 | fi;; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 13530 | OpenBSD*) |
| 13531 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 13532 | then |
| 13533 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 13534 | else |
| 13535 | case `uname -r` in |
| 13536 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 13537 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 13538 | ;; |
| 13539 | *) |
| 13540 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 13541 | ;; |
| 13542 | esac |
| 13543 | fi;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 13544 | NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 13545 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 13546 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 13547 | then LDSHARED='$(CC) -shared' |
| 13548 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 13549 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 13550 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13551 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 13552 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13553 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13554 | *) LDSHARED="ld";; |
| 13555 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13556 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13557 | { echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 13558 | echo "${ECHO_T}$LDSHARED" >&6; } |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13559 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13560 | # 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] | 13561 | # library (module) -- this is only needed for a few systems |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13562 | { echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 13563 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13564 | if test -z "$CCSHARED" |
| 13565 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 13566 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 13567 | SunOS*) if test "$GCC" = yes; |
Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 13568 | then CCSHARED="-fPIC"; |
| 13569 | elif test `uname -p` = sparc; |
| 13570 | then CCSHARED="-xcode=pic32"; |
| 13571 | else CCSHARED="-Kpic"; |
| 13572 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 13573 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 13574 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 13575 | else CCSHARED="+z"; |
| 13576 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13577 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 13578 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 13579 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 13580 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 13581 | if test "$GCC" = "yes" |
| 13582 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13583 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 13584 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 13585 | SCO_SV*) |
| 13586 | if test "$GCC" = "yes" |
| 13587 | then CCSHARED="-fPIC" |
| 13588 | else CCSHARED="-Kpic -belf" |
| 13589 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13590 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13591 | IRIX*/6*) case $CC in |
| 13592 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 13593 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13594 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13595 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13596 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13597 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13598 | { echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 13599 | echo "${ECHO_T}$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13600 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13601 | # the python executable -- this is only needed for a few systems |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13602 | { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 13603 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13604 | if test -z "$LINKFORSHARED" |
| 13605 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 13606 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13607 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 13608 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13609 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 13610 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 13611 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13612 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13613 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13614 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 13615 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 13616 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13617 | # not used by the core itself but which needs to be in the core so |
| 13618 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 13619 | # -prebind is no longer used, because it actually seems to give a |
| 13620 | # slowdown in stead of a speedup, maybe due to the large number of |
| 13621 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 13622 | |
| 13623 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13624 | if test "$enable_framework" |
| 13625 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 13626 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13627 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 13628 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 13629 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 13630 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 13631 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 13632 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 13633 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 13634 | then |
| 13635 | LINKFORSHARED="-Wl,--export-dynamic" |
| 13636 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13637 | SunOS/5*) case $CC in |
| 13638 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 13639 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 13640 | then |
| 13641 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13642 | fi;; |
| 13643 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 13644 | CYGWIN*) |
| 13645 | if test $enable_shared = "no" |
| 13646 | then |
| 13647 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 13648 | fi;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 13649 | QNX*) |
| 13650 | # -Wl,-E causes the symbols to be added to the dynamic |
| 13651 | # symbol table so that they can be found when a module |
| 13652 | # is loaded. -N 2048K causes the stack size to be set |
| 13653 | # to 2048 kilobytes so that the stack doesn't overflow |
| 13654 | # when running test_compile.py. |
| 13655 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13656 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13657 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13658 | { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 13659 | echo "${ECHO_T}$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13660 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13661 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 13662 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13663 | { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 13664 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 13665 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 13666 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 13667 | case $ac_sys_system in |
| 13668 | CYGWIN*) |
| 13669 | # Cygwin needs CCSHARED when building extension DLLs |
| 13670 | # but not when building the interpreter DLL. |
| 13671 | CFLAGSFORSHARED='';; |
| 13672 | *) |
| 13673 | CFLAGSFORSHARED='$(CCSHARED)' |
| 13674 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 13675 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13676 | { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 13677 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 13678 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13679 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 13680 | # library (with --enable-shared). |
| 13681 | # 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] | 13682 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 13683 | # if it is not required, since it creates a dependency of the shared library |
| 13684 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 13685 | # don't need to link LIBS explicitly. The default should be only changed |
| 13686 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13687 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13688 | { echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 13689 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13690 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13691 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 13692 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13693 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13694 | { echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 13695 | echo "${ECHO_T}$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13696 | |
| 13697 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13698 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13699 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13700 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 13701 | 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] | 13702 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13704 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13705 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13706 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13707 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13708 | /* confdefs.h. */ |
| 13709 | _ACEOF |
| 13710 | cat confdefs.h >>conftest.$ac_ext |
| 13711 | cat >>conftest.$ac_ext <<_ACEOF |
| 13712 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13713 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13714 | /* Override any GCC internal prototype to avoid an error. |
| 13715 | Use char because int might match the return type of a GCC |
| 13716 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13717 | #ifdef __cplusplus |
| 13718 | extern "C" |
| 13719 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13720 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13721 | int |
| 13722 | main () |
| 13723 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13724 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13725 | ; |
| 13726 | return 0; |
| 13727 | } |
| 13728 | _ACEOF |
| 13729 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13730 | if { (ac_try="$ac_link" |
| 13731 | case "(($ac_try" in |
| 13732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13733 | *) ac_try_echo=$ac_try;; |
| 13734 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13736 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13737 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13738 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13739 | rm -f conftest.er1 |
| 13740 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13742 | (exit $ac_status); } && { |
| 13743 | test -z "$ac_c_werror_flag" || |
| 13744 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13745 | } && test -s conftest$ac_exeext && |
| 13746 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13747 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13748 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13749 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13751 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13752 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13753 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13754 | |
| 13755 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13756 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13757 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13758 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13759 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13760 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 13761 | if test $ac_cv_lib_dl_dlopen = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13762 | cat >>confdefs.h <<_ACEOF |
| 13763 | #define HAVE_LIBDL 1 |
| 13764 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13765 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13766 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13767 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13768 | fi |
| 13769 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13770 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13771 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 13772 | 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] | 13773 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13775 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13776 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13777 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13778 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13779 | /* confdefs.h. */ |
| 13780 | _ACEOF |
| 13781 | cat confdefs.h >>conftest.$ac_ext |
| 13782 | cat >>conftest.$ac_ext <<_ACEOF |
| 13783 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13784 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13785 | /* Override any GCC internal prototype to avoid an error. |
| 13786 | Use char because int might match the return type of a GCC |
| 13787 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13788 | #ifdef __cplusplus |
| 13789 | extern "C" |
| 13790 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13791 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13792 | int |
| 13793 | main () |
| 13794 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13795 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13796 | ; |
| 13797 | return 0; |
| 13798 | } |
| 13799 | _ACEOF |
| 13800 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13801 | if { (ac_try="$ac_link" |
| 13802 | case "(($ac_try" in |
| 13803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13804 | *) ac_try_echo=$ac_try;; |
| 13805 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13807 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13808 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13810 | rm -f conftest.er1 |
| 13811 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13813 | (exit $ac_status); } && { |
| 13814 | test -z "$ac_c_werror_flag" || |
| 13815 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13816 | } && test -s conftest$ac_exeext && |
| 13817 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13818 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13819 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13820 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13822 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13823 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13824 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13825 | |
| 13826 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13827 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13828 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13829 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13830 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 13831 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 13832 | if test $ac_cv_lib_dld_shl_load = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13833 | cat >>confdefs.h <<_ACEOF |
| 13834 | #define HAVE_LIBDLD 1 |
| 13835 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13836 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13837 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13838 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13839 | fi |
| 13840 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13841 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 13842 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13843 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13844 | { echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 13845 | 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] | 13846 | if test "${ac_cv_search_sem_init+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 13848 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 13849 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13850 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13851 | /* confdefs.h. */ |
| 13852 | _ACEOF |
| 13853 | cat confdefs.h >>conftest.$ac_ext |
| 13854 | cat >>conftest.$ac_ext <<_ACEOF |
| 13855 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13856 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13857 | /* Override any GCC internal prototype to avoid an error. |
| 13858 | Use char because int might match the return type of a GCC |
| 13859 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13860 | #ifdef __cplusplus |
| 13861 | extern "C" |
| 13862 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13863 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13864 | int |
| 13865 | main () |
| 13866 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13867 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13868 | ; |
| 13869 | return 0; |
| 13870 | } |
| 13871 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13872 | for ac_lib in '' pthread rt posix4; do |
| 13873 | if test -z "$ac_lib"; then |
| 13874 | ac_res="none required" |
| 13875 | else |
| 13876 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 13877 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13878 | fi |
| 13879 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13880 | if { (ac_try="$ac_link" |
| 13881 | case "(($ac_try" in |
| 13882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13883 | *) ac_try_echo=$ac_try;; |
| 13884 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13886 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 13887 | ac_status=$? |
| 13888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13889 | rm -f conftest.er1 |
| 13890 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13892 | (exit $ac_status); } && { |
| 13893 | test -z "$ac_c_werror_flag" || |
| 13894 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13895 | } && test -s conftest$ac_exeext && |
| 13896 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13897 | ac_cv_search_sem_init=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 13898 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13899 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 13900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13901 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13902 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 13903 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13904 | |
| 13905 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 13906 | conftest$ac_exeext |
| 13907 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 13908 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 13909 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13910 | done |
| 13911 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 13912 | : |
| 13913 | else |
| 13914 | ac_cv_search_sem_init=no |
| 13915 | fi |
| 13916 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 13917 | LIBS=$ac_func_search_save_LIBS |
| 13918 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13919 | { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 13920 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13921 | ac_res=$ac_cv_search_sem_init |
| 13922 | if test "$ac_res" != no; then |
| 13923 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 13924 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 13925 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 13926 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13927 | # posix4 on Solaris 2.6 |
| 13928 | # pthread (first!) on Linux |
| 13929 | fi |
| 13930 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13931 | # check if we need libintl for locale functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13932 | { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 13933 | 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] | 13934 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13936 | else |
| 13937 | ac_check_lib_save_LIBS=$LIBS |
| 13938 | LIBS="-lintl $LIBS" |
| 13939 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13940 | /* confdefs.h. */ |
| 13941 | _ACEOF |
| 13942 | cat confdefs.h >>conftest.$ac_ext |
| 13943 | cat >>conftest.$ac_ext <<_ACEOF |
| 13944 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13945 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13946 | /* Override any GCC internal prototype to avoid an error. |
| 13947 | Use char because int might match the return type of a GCC |
| 13948 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13949 | #ifdef __cplusplus |
| 13950 | extern "C" |
| 13951 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13952 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13953 | int |
| 13954 | main () |
| 13955 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13956 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13957 | ; |
| 13958 | return 0; |
| 13959 | } |
| 13960 | _ACEOF |
| 13961 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13962 | if { (ac_try="$ac_link" |
| 13963 | case "(($ac_try" in |
| 13964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13965 | *) ac_try_echo=$ac_try;; |
| 13966 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13968 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13969 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13970 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13971 | rm -f conftest.er1 |
| 13972 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13974 | (exit $ac_status); } && { |
| 13975 | test -z "$ac_c_werror_flag" || |
| 13976 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13977 | } && test -s conftest$ac_exeext && |
| 13978 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13979 | ac_cv_lib_intl_textdomain=yes |
| 13980 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13981 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13983 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13984 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13985 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13986 | |
| 13987 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13988 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13989 | LIBS=$ac_check_lib_save_LIBS |
| 13990 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 13991 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 13992 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; } |
| 13993 | if test $ac_cv_lib_intl_textdomain = yes; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13994 | |
| 13995 | cat >>confdefs.h <<\_ACEOF |
| 13996 | #define WITH_LIBINTL 1 |
| 13997 | _ACEOF |
| 13998 | |
| 13999 | fi |
| 14000 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 14001 | |
| 14002 | # checks for system dependent C++ extensions support |
| 14003 | case "$ac_sys_system" in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14004 | AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 14005 | 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] | 14006 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14007 | /* confdefs.h. */ |
| 14008 | _ACEOF |
| 14009 | cat confdefs.h >>conftest.$ac_ext |
| 14010 | cat >>conftest.$ac_ext <<_ACEOF |
| 14011 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 14012 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14013 | int |
| 14014 | main () |
| 14015 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 14016 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14017 | ; |
| 14018 | return 0; |
| 14019 | } |
| 14020 | _ACEOF |
| 14021 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14022 | if { (ac_try="$ac_link" |
| 14023 | case "(($ac_try" in |
| 14024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14025 | *) ac_try_echo=$ac_try;; |
| 14026 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14028 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14029 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14031 | rm -f conftest.er1 |
| 14032 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14034 | (exit $ac_status); } && { |
| 14035 | test -z "$ac_c_werror_flag" || |
| 14036 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14037 | } && test -s conftest$ac_exeext && |
| 14038 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 14039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14040 | cat >>confdefs.h <<\_ACEOF |
| 14041 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 14042 | _ACEOF |
| 14043 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14044 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14045 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 14046 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14047 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14049 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14050 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14051 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 14052 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14053 | |
| 14054 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14055 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 14056 | *) ;; |
| 14057 | esac |
| 14058 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 14059 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14060 | # BeOS' sockets are stashed in libnet. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14061 | { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 14062 | 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] | 14063 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 14065 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14066 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14067 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14068 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14069 | /* confdefs.h. */ |
| 14070 | _ACEOF |
| 14071 | cat confdefs.h >>conftest.$ac_ext |
| 14072 | cat >>conftest.$ac_ext <<_ACEOF |
| 14073 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14074 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14075 | /* Override any GCC internal prototype to avoid an error. |
| 14076 | Use char because int might match the return type of a GCC |
| 14077 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14078 | #ifdef __cplusplus |
| 14079 | extern "C" |
| 14080 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14081 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14082 | int |
| 14083 | main () |
| 14084 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14085 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14086 | ; |
| 14087 | return 0; |
| 14088 | } |
| 14089 | _ACEOF |
| 14090 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14091 | if { (ac_try="$ac_link" |
| 14092 | case "(($ac_try" in |
| 14093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14094 | *) ac_try_echo=$ac_try;; |
| 14095 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14097 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14098 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14099 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14100 | rm -f conftest.er1 |
| 14101 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14103 | (exit $ac_status); } && { |
| 14104 | test -z "$ac_c_werror_flag" || |
| 14105 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14106 | } && test -s conftest$ac_exeext && |
| 14107 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14108 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 14109 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14110 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14112 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14113 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 14114 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14115 | |
| 14116 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14117 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14118 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 14119 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14120 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 14121 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; } |
| 14122 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 14123 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 14124 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 14125 | # SVR4 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14126 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 14127 | 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] | 14128 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14130 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14131 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14132 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14133 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14134 | /* confdefs.h. */ |
| 14135 | _ACEOF |
| 14136 | cat confdefs.h >>conftest.$ac_ext |
| 14137 | cat >>conftest.$ac_ext <<_ACEOF |
| 14138 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14139 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14140 | /* Override any GCC internal prototype to avoid an error. |
| 14141 | Use char because int might match the return type of a GCC |
| 14142 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14143 | #ifdef __cplusplus |
| 14144 | extern "C" |
| 14145 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14146 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14147 | int |
| 14148 | main () |
| 14149 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14150 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14151 | ; |
| 14152 | return 0; |
| 14153 | } |
| 14154 | _ACEOF |
| 14155 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14156 | if { (ac_try="$ac_link" |
| 14157 | case "(($ac_try" in |
| 14158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14159 | *) ac_try_echo=$ac_try;; |
| 14160 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14162 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14163 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14165 | rm -f conftest.er1 |
| 14166 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14168 | (exit $ac_status); } && { |
| 14169 | test -z "$ac_c_werror_flag" || |
| 14170 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14171 | } && test -s conftest$ac_exeext && |
| 14172 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14173 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14174 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14175 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14177 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14178 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14179 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14180 | |
| 14181 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14182 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14183 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14184 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14185 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 14186 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
| 14187 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14188 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14189 | fi |
| 14190 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 14191 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 14192 | case "$ac_sys_system" in |
| 14193 | BeOS*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14194 | { echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 14195 | 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] | 14196 | if test "${ac_cv_lib_net_socket+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14198 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14199 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14200 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14201 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14202 | /* confdefs.h. */ |
| 14203 | _ACEOF |
| 14204 | cat confdefs.h >>conftest.$ac_ext |
| 14205 | cat >>conftest.$ac_ext <<_ACEOF |
| 14206 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14207 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14208 | /* Override any GCC internal prototype to avoid an error. |
| 14209 | Use char because int might match the return type of a GCC |
| 14210 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14211 | #ifdef __cplusplus |
| 14212 | extern "C" |
| 14213 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14214 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14215 | int |
| 14216 | main () |
| 14217 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14218 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14219 | ; |
| 14220 | return 0; |
| 14221 | } |
| 14222 | _ACEOF |
| 14223 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14224 | if { (ac_try="$ac_link" |
| 14225 | case "(($ac_try" in |
| 14226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14227 | *) ac_try_echo=$ac_try;; |
| 14228 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14230 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14231 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14233 | rm -f conftest.er1 |
| 14234 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14236 | (exit $ac_status); } && { |
| 14237 | test -z "$ac_c_werror_flag" || |
| 14238 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14239 | } && test -s conftest$ac_exeext && |
| 14240 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14241 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14242 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14243 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14245 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14246 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14247 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14248 | |
| 14249 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14250 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14251 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14252 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14253 | { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 14254 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; } |
| 14255 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14256 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14257 | fi |
| 14258 | # BeOS |
| 14259 | ;; |
| 14260 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 14261 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14262 | { echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 14263 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14264 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14265 | # Check whether --with-libs was given. |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 14266 | if test "${with_libs+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14267 | withval=$with_libs; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14268 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 14269 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 14270 | LIBS="$withval $LIBS" |
| 14271 | |
| 14272 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14273 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14274 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14275 | fi |
| 14276 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14277 | |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 14278 | # Check for use of the system libffi library |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14279 | { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 14280 | echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 14281 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14282 | # Check whether --with-system_ffi was given. |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 14283 | if test "${with_system_ffi+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14284 | withval=$with_system_ffi; |
| 14285 | fi |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 14286 | |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 14287 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14288 | { echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 14289 | echo "${ECHO_T}$with_system_ffi" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 14290 | |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 14291 | # Check for --with-dbmliborder |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14292 | { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5 |
| 14293 | echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 14294 | |
| 14295 | # Check whether --with-dbmliborder was given. |
| 14296 | if test "${with_dbmliborder+set}" = set; then |
| 14297 | withval=$with_dbmliborder; |
| 14298 | if test x$with_dbmliborder = xyes |
| 14299 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14300 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 14301 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 14302 | { (exit 1); exit 1; }; } |
| 14303 | else |
| 14304 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 14305 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 14306 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14307 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 14308 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 14309 | { (exit 1); exit 1; }; } |
| 14310 | fi |
| 14311 | done |
| 14312 | fi |
| 14313 | fi |
| 14314 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14315 | { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5 |
| 14316 | echo "${ECHO_T}$with_dbmliborder" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 14317 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 14318 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14319 | |
| 14320 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14321 | { echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 14322 | 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] | 14323 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14324 | # Check whether --with-signal-module was given. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14325 | if test "${with_signal_module+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14326 | withval=$with_signal_module; |
| 14327 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14328 | |
| 14329 | |
| 14330 | if test -z "$with_signal_module" |
| 14331 | then with_signal_module="yes" |
| 14332 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14333 | { echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 14334 | echo "${ECHO_T}$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14335 | |
| 14336 | if test "${with_signal_module}" = "yes"; then |
| 14337 | USE_SIGNAL_MODULE="" |
| 14338 | SIGNAL_OBJS="" |
| 14339 | else |
| 14340 | USE_SIGNAL_MODULE="#" |
| 14341 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 14342 | fi |
| 14343 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 14344 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 14345 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14346 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 14347 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14348 | { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 14349 | 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] | 14350 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14351 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14352 | # Check whether --with-dec-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14353 | if test "${with_dec_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14354 | withval=$with_dec_threads; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14355 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 14356 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14357 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14358 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14359 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14360 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14361 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14362 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14363 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14364 | fi |
| 14365 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14366 | |
| 14367 | # Templates for things AC_DEFINEd more than once. |
| 14368 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14369 | |
| 14370 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14371 | |
| 14372 | |
| 14373 | |
| 14374 | |
| 14375 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14376 | { echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 14377 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14378 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14379 | # Check whether --with-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14380 | if test "${with_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14381 | withval=$with_threads; |
| 14382 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14383 | |
| 14384 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14385 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14386 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14387 | # Check whether --with-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14388 | if test "${with_thread+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14389 | withval=$with_thread; with_threads=$with_thread |
| 14390 | fi |
| 14391 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14392 | |
| 14393 | if test -z "$with_threads" |
| 14394 | then with_threads="yes" |
| 14395 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14396 | { echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 14397 | echo "${ECHO_T}$with_threads" >&6; } |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14398 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14399 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14400 | if test "$with_threads" = "no" |
| 14401 | then |
| 14402 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14403 | elif test "$ac_cv_pthread_is_default" = yes |
| 14404 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14405 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14406 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14407 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14408 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14409 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14410 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14411 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14412 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14413 | |
| 14414 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14415 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14416 | elif test "$ac_cv_kpthread" = "yes" |
| 14417 | then |
| 14418 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 14419 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 14420 | CXX="$CXX -Kpthread" |
| 14421 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14422 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 14423 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14424 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 14425 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14426 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14427 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 14428 | elif test "$ac_cv_kthread" = "yes" |
| 14429 | then |
| 14430 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 14431 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 14432 | CXX="$CXX -Kthread" |
| 14433 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 14434 | cat >>confdefs.h <<\_ACEOF |
| 14435 | #define WITH_THREAD 1 |
| 14436 | _ACEOF |
| 14437 | |
| 14438 | posix_threads=yes |
| 14439 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14440 | elif test "$ac_cv_pthread" = "yes" |
| 14441 | then |
| 14442 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 14443 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 14444 | CXX="$CXX -pthread" |
| 14445 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14446 | cat >>confdefs.h <<\_ACEOF |
| 14447 | #define WITH_THREAD 1 |
| 14448 | _ACEOF |
| 14449 | |
| 14450 | posix_threads=yes |
| 14451 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14452 | else |
| 14453 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 14454 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 14455 | fi |
| 14456 | if test ! -z "$withval" -a -d "$withval" |
| 14457 | then LDFLAGS="$LDFLAGS -L$withval" |
| 14458 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14459 | |
| 14460 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 14461 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 14462 | # (e.g. gnu pth with pthread emulation) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14463 | { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 14464 | 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] | 14465 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14466 | /* confdefs.h. */ |
| 14467 | _ACEOF |
| 14468 | cat confdefs.h >>conftest.$ac_ext |
| 14469 | cat >>conftest.$ac_ext <<_ACEOF |
| 14470 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 14471 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14472 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 14473 | #ifdef _POSIX_THREADS |
| 14474 | yes |
| 14475 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14476 | |
| 14477 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14478 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14479 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14480 | unistd_defines_pthreads=yes |
| 14481 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14482 | unistd_defines_pthreads=no |
| 14483 | fi |
| 14484 | rm -f conftest* |
| 14485 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14486 | { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 14487 | echo "${ECHO_T}$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14488 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14489 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 14490 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14491 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 14492 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14493 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14494 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 14495 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14496 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14498 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14499 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 14500 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14501 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14502 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14503 | { echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 14504 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14505 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14506 | /* confdefs.h. */ |
| 14507 | _ACEOF |
| 14508 | cat confdefs.h >>conftest.$ac_ext |
| 14509 | cat >>conftest.$ac_ext <<_ACEOF |
| 14510 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14511 | $ac_includes_default |
| 14512 | #include <cthreads.h> |
| 14513 | _ACEOF |
| 14514 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14515 | if { (ac_try="$ac_compile" |
| 14516 | case "(($ac_try" in |
| 14517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14518 | *) ac_try_echo=$ac_try;; |
| 14519 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14521 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14522 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14524 | rm -f conftest.er1 |
| 14525 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14527 | (exit $ac_status); } && { |
| 14528 | test -z "$ac_c_werror_flag" || |
| 14529 | test ! -s conftest.err |
| 14530 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14531 | ac_header_compiler=yes |
| 14532 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14533 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14535 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14536 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14537 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14538 | |
| 14539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14540 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14541 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14542 | |
| 14543 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14544 | { echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 14545 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14546 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14547 | /* confdefs.h. */ |
| 14548 | _ACEOF |
| 14549 | cat confdefs.h >>conftest.$ac_ext |
| 14550 | cat >>conftest.$ac_ext <<_ACEOF |
| 14551 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14552 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14553 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14554 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14555 | case "(($ac_try" in |
| 14556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14557 | *) ac_try_echo=$ac_try;; |
| 14558 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14560 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14561 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14562 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14563 | rm -f conftest.er1 |
| 14564 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14566 | (exit $ac_status); } >/dev/null && { |
| 14567 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14568 | test ! -s conftest.err |
| 14569 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14570 | ac_header_preproc=yes |
| 14571 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14572 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14575 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14576 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14577 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14578 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14579 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14580 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14581 | |
| 14582 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14583 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14584 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14585 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14586 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14587 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 14588 | 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] | 14589 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14590 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14591 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14592 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 14593 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 14594 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 14595 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 14596 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 14597 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 14598 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14599 | echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14600 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 14601 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 14602 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 14603 | 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] | 14604 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 14605 | ## -------------------------------------- ## |
| 14606 | ## Report this to http://bugs.python.org/ ## |
| 14607 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14608 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14609 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14610 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14611 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14612 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 14613 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14614 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14616 | else |
| 14617 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14618 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14619 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 14620 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14621 | |
| 14622 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14623 | if test $ac_cv_header_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14624 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14625 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14626 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14627 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14628 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14629 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14630 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14631 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14632 | |
| 14633 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14634 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14635 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14636 | |
| 14637 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14638 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14639 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14640 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14641 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14642 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 14643 | 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] | 14644 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14646 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14647 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 14648 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14649 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14650 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14651 | { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 14652 | 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] | 14653 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14654 | /* confdefs.h. */ |
| 14655 | _ACEOF |
| 14656 | cat confdefs.h >>conftest.$ac_ext |
| 14657 | cat >>conftest.$ac_ext <<_ACEOF |
| 14658 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14659 | $ac_includes_default |
| 14660 | #include <mach/cthreads.h> |
| 14661 | _ACEOF |
| 14662 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14663 | if { (ac_try="$ac_compile" |
| 14664 | case "(($ac_try" in |
| 14665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14666 | *) ac_try_echo=$ac_try;; |
| 14667 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14669 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14670 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14672 | rm -f conftest.er1 |
| 14673 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14675 | (exit $ac_status); } && { |
| 14676 | test -z "$ac_c_werror_flag" || |
| 14677 | test ! -s conftest.err |
| 14678 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14679 | ac_header_compiler=yes |
| 14680 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14681 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14683 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14684 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14685 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14686 | |
| 14687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14688 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14689 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14690 | |
| 14691 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14692 | { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 14693 | 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] | 14694 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14695 | /* confdefs.h. */ |
| 14696 | _ACEOF |
| 14697 | cat confdefs.h >>conftest.$ac_ext |
| 14698 | cat >>conftest.$ac_ext <<_ACEOF |
| 14699 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14700 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14701 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14702 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14703 | case "(($ac_try" in |
| 14704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14705 | *) ac_try_echo=$ac_try;; |
| 14706 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14708 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14709 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14710 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14711 | rm -f conftest.er1 |
| 14712 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14714 | (exit $ac_status); } >/dev/null && { |
| 14715 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14716 | test ! -s conftest.err |
| 14717 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14718 | ac_header_preproc=yes |
| 14719 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14720 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14722 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14723 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14724 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14726 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14727 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14728 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14729 | |
| 14730 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14731 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14732 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14733 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14734 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14735 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 14736 | 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] | 14737 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14738 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14739 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14740 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 14741 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 14742 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 14743 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 14744 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 14745 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 14746 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14747 | echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14748 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 14749 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 14750 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 14751 | 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] | 14752 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 14753 | ## -------------------------------------- ## |
| 14754 | ## Report this to http://bugs.python.org/ ## |
| 14755 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14756 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14757 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14758 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14759 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14760 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 14761 | 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] | 14762 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14764 | else |
| 14765 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14766 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14767 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 14768 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14769 | |
| 14770 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14771 | if test $ac_cv_header_mach_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14772 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14773 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14774 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14775 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14776 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14777 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14778 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14779 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14780 | |
| 14781 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14782 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14783 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14784 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14785 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14786 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14787 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14788 | { echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 14789 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14790 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14791 | # Check whether --with-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14792 | if test "${with_pth+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14793 | withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5 |
| 14794 | echo "${ECHO_T}$withval" >&6; } |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 14795 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14796 | #define WITH_THREAD 1 |
| 14797 | _ACEOF |
| 14798 | |
| 14799 | |
| 14800 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14801 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14802 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14803 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 14804 | LIBS="-lpth $LIBS" |
| 14805 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14806 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14807 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14808 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14809 | |
| 14810 | # Just looking for pthread_create in libpthread is not enough: |
| 14811 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 14812 | # So we really have to include pthread.h, and then link. |
| 14813 | _libs=$LIBS |
| 14814 | LIBS="$LIBS -lpthread" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14815 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 14816 | 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] | 14817 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14818 | /* confdefs.h. */ |
| 14819 | _ACEOF |
| 14820 | cat confdefs.h >>conftest.$ac_ext |
| 14821 | cat >>conftest.$ac_ext <<_ACEOF |
| 14822 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14823 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14824 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14825 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14826 | int |
| 14827 | main () |
| 14828 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14829 | |
| 14830 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14831 | ; |
| 14832 | return 0; |
| 14833 | } |
| 14834 | _ACEOF |
| 14835 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14836 | if { (ac_try="$ac_link" |
| 14837 | case "(($ac_try" in |
| 14838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14839 | *) ac_try_echo=$ac_try;; |
| 14840 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14842 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14843 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14844 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14845 | rm -f conftest.er1 |
| 14846 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14848 | (exit $ac_status); } && { |
| 14849 | test -z "$ac_c_werror_flag" || |
| 14850 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14851 | } && test -s conftest$ac_exeext && |
| 14852 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14853 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14854 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14855 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14856 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14857 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14858 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14859 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14860 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14861 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14862 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14863 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14865 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14866 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14867 | LIBS=$_libs |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14868 | { echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 14869 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14870 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14872 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14873 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14874 | /* confdefs.h. */ |
| 14875 | _ACEOF |
| 14876 | cat confdefs.h >>conftest.$ac_ext |
| 14877 | cat >>conftest.$ac_ext <<_ACEOF |
| 14878 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14879 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 14880 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14881 | #define pthread_detach innocuous_pthread_detach |
| 14882 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14883 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14884 | which can conflict with char pthread_detach (); below. |
| 14885 | 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] | 14886 | <limits.h> exists even on freestanding compilers. */ |
| 14887 | |
| 14888 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14889 | # include <limits.h> |
| 14890 | #else |
| 14891 | # include <assert.h> |
| 14892 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14893 | |
| 14894 | #undef pthread_detach |
| 14895 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14896 | /* Override any GCC internal prototype to avoid an error. |
| 14897 | Use char because int might match the return type of a GCC |
| 14898 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14899 | #ifdef __cplusplus |
| 14900 | extern "C" |
| 14901 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14902 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14903 | /* The GNU C library defines this for functions which it implements |
| 14904 | to always fail with ENOSYS. Some functions are actually named |
| 14905 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14906 | #if defined __stub_pthread_detach || defined __stub___pthread_detach |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14907 | choke me |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14908 | #endif |
| 14909 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14910 | int |
| 14911 | main () |
| 14912 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14913 | return pthread_detach (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14914 | ; |
| 14915 | return 0; |
| 14916 | } |
| 14917 | _ACEOF |
| 14918 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14919 | if { (ac_try="$ac_link" |
| 14920 | case "(($ac_try" in |
| 14921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14922 | *) ac_try_echo=$ac_try;; |
| 14923 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14925 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14926 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14928 | rm -f conftest.er1 |
| 14929 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14931 | (exit $ac_status); } && { |
| 14932 | test -z "$ac_c_werror_flag" || |
| 14933 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14934 | } && test -s conftest$ac_exeext && |
| 14935 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14936 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14937 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14938 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14940 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14941 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14942 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14943 | |
| 14944 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14945 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14946 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14947 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 14948 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; } |
| 14949 | if test $ac_cv_func_pthread_detach = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14950 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14951 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14952 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14953 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14954 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14955 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14956 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14957 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14958 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14959 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 14960 | 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] | 14961 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14963 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14964 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 14965 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14966 | else |
| 14967 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14968 | { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 14969 | 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] | 14970 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14971 | /* confdefs.h. */ |
| 14972 | _ACEOF |
| 14973 | cat confdefs.h >>conftest.$ac_ext |
| 14974 | cat >>conftest.$ac_ext <<_ACEOF |
| 14975 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14976 | $ac_includes_default |
| 14977 | #include <atheos/threads.h> |
| 14978 | _ACEOF |
| 14979 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14980 | if { (ac_try="$ac_compile" |
| 14981 | case "(($ac_try" in |
| 14982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14983 | *) ac_try_echo=$ac_try;; |
| 14984 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14986 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14987 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14989 | rm -f conftest.er1 |
| 14990 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14992 | (exit $ac_status); } && { |
| 14993 | test -z "$ac_c_werror_flag" || |
| 14994 | test ! -s conftest.err |
| 14995 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14996 | ac_header_compiler=yes |
| 14997 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 14998 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15000 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15001 | ac_header_compiler=no |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15002 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15003 | |
| 15004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15005 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15006 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15007 | |
| 15008 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15009 | { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 15010 | 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] | 15011 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15012 | /* confdefs.h. */ |
| 15013 | _ACEOF |
| 15014 | cat confdefs.h >>conftest.$ac_ext |
| 15015 | cat >>conftest.$ac_ext <<_ACEOF |
| 15016 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15017 | #include <atheos/threads.h> |
| 15018 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15019 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15020 | case "(($ac_try" in |
| 15021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15022 | *) ac_try_echo=$ac_try;; |
| 15023 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15025 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15026 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15027 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15028 | rm -f conftest.er1 |
| 15029 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15031 | (exit $ac_status); } >/dev/null && { |
| 15032 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15033 | test ! -s conftest.err |
| 15034 | }; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15035 | ac_header_preproc=yes |
| 15036 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15037 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15039 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15040 | ac_header_preproc=no |
| 15041 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15042 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15043 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15044 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15045 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15046 | |
| 15047 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15048 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15049 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15050 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15051 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15052 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 15053 | 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] | 15054 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15055 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15056 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15057 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 15058 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 15059 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 15060 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 15061 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 15062 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 15063 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 15064 | echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15065 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 15066 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 15067 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 15068 | 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] | 15069 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 15070 | ## -------------------------------------- ## |
| 15071 | ## Report this to http://bugs.python.org/ ## |
| 15072 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15073 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15074 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15075 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15076 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15077 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 15078 | 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] | 15079 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15081 | else |
| 15082 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 15083 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15084 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 15085 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15086 | |
| 15087 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15088 | if test $ac_cv_header_atheos_threads_h = yes; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15089 | cat >>confdefs.h <<\_ACEOF |
| 15090 | #define WITH_THREAD 1 |
| 15091 | _ACEOF |
| 15092 | |
| 15093 | |
| 15094 | cat >>confdefs.h <<\_ACEOF |
| 15095 | #define ATHEOS_THREADS 1 |
| 15096 | _ACEOF |
| 15097 | |
| 15098 | THREADOBJ="Python/thread.o" |
| 15099 | else |
| 15100 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15101 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15102 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 15103 | 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] | 15104 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15106 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15107 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 15108 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15109 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15110 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15111 | { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 15112 | 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] | 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 | $ac_includes_default |
| 15120 | #include <kernel/OS.h> |
| 15121 | _ACEOF |
| 15122 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15123 | if { (ac_try="$ac_compile" |
| 15124 | case "(($ac_try" in |
| 15125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15126 | *) ac_try_echo=$ac_try;; |
| 15127 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15129 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15130 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15132 | rm -f conftest.er1 |
| 15133 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15135 | (exit $ac_status); } && { |
| 15136 | test -z "$ac_c_werror_flag" || |
| 15137 | test ! -s conftest.err |
| 15138 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15139 | ac_header_compiler=yes |
| 15140 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15141 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15143 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15144 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15145 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15146 | |
| 15147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15148 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15149 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15150 | |
| 15151 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15152 | { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 15153 | 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] | 15154 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15155 | /* confdefs.h. */ |
| 15156 | _ACEOF |
| 15157 | cat confdefs.h >>conftest.$ac_ext |
| 15158 | cat >>conftest.$ac_ext <<_ACEOF |
| 15159 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15160 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15161 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15162 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15163 | case "(($ac_try" in |
| 15164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15165 | *) ac_try_echo=$ac_try;; |
| 15166 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15168 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15169 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15170 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15171 | rm -f conftest.er1 |
| 15172 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15174 | (exit $ac_status); } >/dev/null && { |
| 15175 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15176 | test ! -s conftest.err |
| 15177 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15178 | ac_header_preproc=yes |
| 15179 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15180 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15182 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15183 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15184 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15185 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15186 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15187 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15188 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15189 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15190 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15191 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15192 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15193 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15194 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15195 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 15196 | 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] | 15197 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15198 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15199 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15200 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 15201 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 15202 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 15203 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 15204 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 15205 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 15206 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 15207 | echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15208 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 15209 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 15210 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 15211 | 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] | 15212 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 15213 | ## -------------------------------------- ## |
| 15214 | ## Report this to http://bugs.python.org/ ## |
| 15215 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15216 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15217 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15218 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15219 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15220 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 15221 | 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] | 15222 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15224 | else |
| 15225 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 15226 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15227 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 15228 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15229 | |
| 15230 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15231 | if test $ac_cv_header_kernel_OS_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15232 | cat >>confdefs.h <<\_ACEOF |
| 15233 | #define WITH_THREAD 1 |
| 15234 | _ACEOF |
| 15235 | |
| 15236 | |
| 15237 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15238 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15239 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15240 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15241 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15242 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15243 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15244 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 15245 | 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] | 15246 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15248 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15249 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15250 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15251 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15252 | /* confdefs.h. */ |
| 15253 | _ACEOF |
| 15254 | cat confdefs.h >>conftest.$ac_ext |
| 15255 | cat >>conftest.$ac_ext <<_ACEOF |
| 15256 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15257 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15258 | /* Override any GCC internal prototype to avoid an error. |
| 15259 | Use char because int might match the return type of a GCC |
| 15260 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15261 | #ifdef __cplusplus |
| 15262 | extern "C" |
| 15263 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15264 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15265 | int |
| 15266 | main () |
| 15267 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15268 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15269 | ; |
| 15270 | return 0; |
| 15271 | } |
| 15272 | _ACEOF |
| 15273 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15274 | if { (ac_try="$ac_link" |
| 15275 | case "(($ac_try" in |
| 15276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15277 | *) ac_try_echo=$ac_try;; |
| 15278 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15280 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15281 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15282 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15283 | rm -f conftest.er1 |
| 15284 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15286 | (exit $ac_status); } && { |
| 15287 | test -z "$ac_c_werror_flag" || |
| 15288 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15289 | } && test -s conftest$ac_exeext && |
| 15290 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15291 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15292 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15293 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15295 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15296 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15297 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15298 | |
| 15299 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15300 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15301 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15302 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15303 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 15304 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; } |
| 15305 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15306 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15307 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15308 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15309 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15310 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15311 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15312 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15313 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15314 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15315 | { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 15316 | 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] | 15317 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15319 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15320 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15321 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15322 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15323 | /* confdefs.h. */ |
| 15324 | _ACEOF |
| 15325 | cat confdefs.h >>conftest.$ac_ext |
| 15326 | cat >>conftest.$ac_ext <<_ACEOF |
| 15327 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15328 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15329 | /* Override any GCC internal prototype to avoid an error. |
| 15330 | Use char because int might match the return type of a GCC |
| 15331 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15332 | #ifdef __cplusplus |
| 15333 | extern "C" |
| 15334 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15335 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15336 | int |
| 15337 | main () |
| 15338 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15339 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15340 | ; |
| 15341 | return 0; |
| 15342 | } |
| 15343 | _ACEOF |
| 15344 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15345 | if { (ac_try="$ac_link" |
| 15346 | case "(($ac_try" in |
| 15347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15348 | *) ac_try_echo=$ac_try;; |
| 15349 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15351 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15352 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15354 | rm -f conftest.er1 |
| 15355 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15357 | (exit $ac_status); } && { |
| 15358 | test -z "$ac_c_werror_flag" || |
| 15359 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15360 | } && test -s conftest$ac_exeext && |
| 15361 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15362 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 15363 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15364 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15366 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15367 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 15368 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15369 | |
| 15370 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15371 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15372 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 15373 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15374 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 15375 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; } |
| 15376 | 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] | 15377 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 15378 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15379 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 15380 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15381 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15382 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15383 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 15384 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 15385 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15386 | { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 15387 | 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] | 15388 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15390 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15391 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15392 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15393 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15394 | /* confdefs.h. */ |
| 15395 | _ACEOF |
| 15396 | cat confdefs.h >>conftest.$ac_ext |
| 15397 | cat >>conftest.$ac_ext <<_ACEOF |
| 15398 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15399 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15400 | /* Override any GCC internal prototype to avoid an error. |
| 15401 | Use char because int might match the return type of a GCC |
| 15402 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15403 | #ifdef __cplusplus |
| 15404 | extern "C" |
| 15405 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15406 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15407 | int |
| 15408 | main () |
| 15409 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15410 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15411 | ; |
| 15412 | return 0; |
| 15413 | } |
| 15414 | _ACEOF |
| 15415 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15416 | if { (ac_try="$ac_link" |
| 15417 | case "(($ac_try" in |
| 15418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15419 | *) ac_try_echo=$ac_try;; |
| 15420 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15422 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15423 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15424 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15425 | rm -f conftest.er1 |
| 15426 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15428 | (exit $ac_status); } && { |
| 15429 | test -z "$ac_c_werror_flag" || |
| 15430 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15431 | } && test -s conftest$ac_exeext && |
| 15432 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15433 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15434 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15435 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15437 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15438 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15439 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15440 | |
| 15441 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15442 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15443 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15444 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15445 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 15446 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; } |
| 15447 | 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] | 15448 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15449 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15450 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15451 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15452 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15453 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15454 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15455 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15456 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15457 | { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 15458 | 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] | 15459 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15461 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15462 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15463 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15464 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15465 | /* confdefs.h. */ |
| 15466 | _ACEOF |
| 15467 | cat confdefs.h >>conftest.$ac_ext |
| 15468 | cat >>conftest.$ac_ext <<_ACEOF |
| 15469 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15470 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15471 | /* Override any GCC internal prototype to avoid an error. |
| 15472 | Use char because int might match the return type of a GCC |
| 15473 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15474 | #ifdef __cplusplus |
| 15475 | extern "C" |
| 15476 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15477 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15478 | int |
| 15479 | main () |
| 15480 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15481 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15482 | ; |
| 15483 | return 0; |
| 15484 | } |
| 15485 | _ACEOF |
| 15486 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15487 | if { (ac_try="$ac_link" |
| 15488 | case "(($ac_try" in |
| 15489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15490 | *) ac_try_echo=$ac_try;; |
| 15491 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15493 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15494 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15496 | rm -f conftest.er1 |
| 15497 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15499 | (exit $ac_status); } && { |
| 15500 | test -z "$ac_c_werror_flag" || |
| 15501 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15502 | } && test -s conftest$ac_exeext && |
| 15503 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15504 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15505 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15506 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15508 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15509 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15510 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15511 | |
| 15512 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15513 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15514 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15515 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15516 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 15517 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; } |
| 15518 | if test $ac_cv_lib_cma_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15519 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15520 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15521 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15522 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15523 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15524 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15525 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15526 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 15527 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15528 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 15529 | fi |
| 15530 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15531 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15532 | fi |
| 15533 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 15534 | fi |
| 15535 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 15536 | fi |
| 15537 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15538 | fi |
| 15539 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 15540 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15541 | fi |
| 15542 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15543 | |
| 15544 | fi |
| 15545 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15546 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15547 | |
| 15548 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15549 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15550 | fi |
| 15551 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15552 | fi |
| 15553 | |
| 15554 | |
| 15555 | fi |
| 15556 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15557 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15558 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15559 | { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 15560 | 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] | 15561 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15563 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15564 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15565 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15566 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15567 | /* confdefs.h. */ |
| 15568 | _ACEOF |
| 15569 | cat confdefs.h >>conftest.$ac_ext |
| 15570 | cat >>conftest.$ac_ext <<_ACEOF |
| 15571 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15572 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15573 | /* Override any GCC internal prototype to avoid an error. |
| 15574 | Use char because int might match the return type of a GCC |
| 15575 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15576 | #ifdef __cplusplus |
| 15577 | extern "C" |
| 15578 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15579 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15580 | int |
| 15581 | main () |
| 15582 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15583 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15584 | ; |
| 15585 | return 0; |
| 15586 | } |
| 15587 | _ACEOF |
| 15588 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15589 | if { (ac_try="$ac_link" |
| 15590 | case "(($ac_try" in |
| 15591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15592 | *) ac_try_echo=$ac_try;; |
| 15593 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15595 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15596 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15598 | rm -f conftest.er1 |
| 15599 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15601 | (exit $ac_status); } && { |
| 15602 | test -z "$ac_c_werror_flag" || |
| 15603 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15604 | } && test -s conftest$ac_exeext && |
| 15605 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15606 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15607 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15608 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15610 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15611 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15612 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15613 | |
| 15614 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15615 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15616 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15617 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15618 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 15619 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; } |
| 15620 | if test $ac_cv_lib_mpc_usconfig = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15621 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15622 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15623 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15624 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15625 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15626 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15627 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15628 | fi |
| 15629 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 15630 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 15631 | if test "$posix_threads" != "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15632 | { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 15633 | 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] | 15634 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15636 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15637 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15638 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15639 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15640 | /* confdefs.h. */ |
| 15641 | _ACEOF |
| 15642 | cat confdefs.h >>conftest.$ac_ext |
| 15643 | cat >>conftest.$ac_ext <<_ACEOF |
| 15644 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15645 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15646 | /* Override any GCC internal prototype to avoid an error. |
| 15647 | Use char because int might match the return type of a GCC |
| 15648 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15649 | #ifdef __cplusplus |
| 15650 | extern "C" |
| 15651 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15652 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15653 | int |
| 15654 | main () |
| 15655 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15656 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15657 | ; |
| 15658 | return 0; |
| 15659 | } |
| 15660 | _ACEOF |
| 15661 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15662 | if { (ac_try="$ac_link" |
| 15663 | case "(($ac_try" in |
| 15664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15665 | *) ac_try_echo=$ac_try;; |
| 15666 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15668 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15669 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15670 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15671 | rm -f conftest.er1 |
| 15672 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15674 | (exit $ac_status); } && { |
| 15675 | test -z "$ac_c_werror_flag" || |
| 15676 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15677 | } && test -s conftest$ac_exeext && |
| 15678 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15679 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15680 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15681 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15683 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15684 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15685 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15686 | |
| 15687 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15688 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15689 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15690 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15691 | { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 15692 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; } |
| 15693 | if test $ac_cv_lib_thread_thr_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15694 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15695 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15696 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15697 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 15698 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15699 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 15700 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15701 | fi |
| 15702 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 15703 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15704 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15705 | if test "$USE_THREAD_MODULE" != "#" |
| 15706 | then |
| 15707 | # If the above checks didn't disable threads, (at least) OSF1 |
| 15708 | # needs this '-threads' argument during linking. |
| 15709 | case $ac_sys_system in |
| 15710 | OSF1) LDLAST=-threads;; |
| 15711 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 15712 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15713 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 15714 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15715 | if test "$posix_threads" = "yes"; then |
| 15716 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 15717 | |
| 15718 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15719 | #define _POSIX_THREADS 1 |
| 15720 | _ACEOF |
| 15721 | |
| 15722 | fi |
| 15723 | |
| 15724 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 15725 | case $ac_sys_system/$ac_sys_release in |
| 15726 | SunOS/5.6) |
| 15727 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 15728 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 15729 | _ACEOF |
| 15730 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15731 | ;; |
| 15732 | SunOS/5.8) |
| 15733 | cat >>confdefs.h <<\_ACEOF |
| 15734 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 15735 | _ACEOF |
| 15736 | |
| 15737 | ;; |
Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 15738 | AIX/5) |
| 15739 | cat >>confdefs.h <<\_ACEOF |
| 15740 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 15741 | _ACEOF |
| 15742 | |
| 15743 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15744 | esac |
| 15745 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15746 | { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 15747 | 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] | 15748 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15750 | else |
| 15751 | if test "$cross_compiling" = yes; then |
| 15752 | ac_cv_pthread_system_supported=no |
| 15753 | else |
| 15754 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15755 | /* confdefs.h. */ |
| 15756 | _ACEOF |
| 15757 | cat confdefs.h >>conftest.$ac_ext |
| 15758 | cat >>conftest.$ac_ext <<_ACEOF |
| 15759 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15760 | #include <pthread.h> |
| 15761 | void *foo(void *parm) { |
| 15762 | return NULL; |
| 15763 | } |
| 15764 | main() { |
| 15765 | pthread_attr_t attr; |
| 15766 | pthread_t id; |
| 15767 | if (pthread_attr_init(&attr)) exit(-1); |
| 15768 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 15769 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 15770 | exit(0); |
| 15771 | } |
| 15772 | _ACEOF |
| 15773 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15774 | if { (ac_try="$ac_link" |
| 15775 | case "(($ac_try" in |
| 15776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15777 | *) ac_try_echo=$ac_try;; |
| 15778 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15780 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15781 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15783 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15784 | { (case "(($ac_try" in |
| 15785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15786 | *) ac_try_echo=$ac_try;; |
| 15787 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15789 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15790 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15792 | (exit $ac_status); }; }; then |
| 15793 | ac_cv_pthread_system_supported=yes |
| 15794 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15795 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15796 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15798 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15799 | ( exit $ac_status ) |
| 15800 | ac_cv_pthread_system_supported=no |
| 15801 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15802 | 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] | 15803 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 15804 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15805 | |
| 15806 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15807 | fi |
| 15808 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15809 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 15810 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15811 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 15812 | |
| 15813 | cat >>confdefs.h <<\_ACEOF |
| 15814 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 15815 | _ACEOF |
| 15816 | |
| 15817 | fi |
| 15818 | |
| 15819 | for ac_func in pthread_sigmask |
| 15820 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15821 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15822 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15823 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15824 | 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^] | 15825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15826 | else |
| 15827 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15828 | /* confdefs.h. */ |
| 15829 | _ACEOF |
| 15830 | cat confdefs.h >>conftest.$ac_ext |
| 15831 | cat >>conftest.$ac_ext <<_ACEOF |
| 15832 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15833 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15834 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15835 | #define $ac_func innocuous_$ac_func |
| 15836 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15837 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15838 | which can conflict with char $ac_func (); below. |
| 15839 | 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] | 15840 | <limits.h> exists even on freestanding compilers. */ |
| 15841 | |
| 15842 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15843 | # include <limits.h> |
| 15844 | #else |
| 15845 | # include <assert.h> |
| 15846 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15847 | |
| 15848 | #undef $ac_func |
| 15849 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15850 | /* Override any GCC internal prototype to avoid an error. |
| 15851 | Use char because int might match the return type of a GCC |
| 15852 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15853 | #ifdef __cplusplus |
| 15854 | extern "C" |
| 15855 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15856 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15857 | /* The GNU C library defines this for functions which it implements |
| 15858 | to always fail with ENOSYS. Some functions are actually named |
| 15859 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15860 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15861 | choke me |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15862 | #endif |
| 15863 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15864 | int |
| 15865 | main () |
| 15866 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15867 | return $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15868 | ; |
| 15869 | return 0; |
| 15870 | } |
| 15871 | _ACEOF |
| 15872 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15873 | if { (ac_try="$ac_link" |
| 15874 | case "(($ac_try" in |
| 15875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15876 | *) ac_try_echo=$ac_try;; |
| 15877 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15879 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15880 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15882 | rm -f conftest.er1 |
| 15883 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15885 | (exit $ac_status); } && { |
| 15886 | test -z "$ac_c_werror_flag" || |
| 15887 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15888 | } && test -s conftest$ac_exeext && |
| 15889 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15890 | eval "$as_ac_var=yes" |
| 15891 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15892 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15894 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15895 | eval "$as_ac_var=no" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15896 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15897 | |
| 15898 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15899 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15900 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15901 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 15902 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15903 | echo "${ECHO_T}$ac_res" >&6; } |
| 15904 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15905 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15906 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15907 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 15908 | case $ac_sys_system in |
| 15909 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15910 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 15911 | cat >>confdefs.h <<\_ACEOF |
| 15912 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 15913 | _ACEOF |
| 15914 | |
| 15915 | ;; |
| 15916 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15917 | fi |
| 15918 | done |
| 15919 | |
| 15920 | fi |
| 15921 | |
| 15922 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15923 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15924 | |
| 15925 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15926 | { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 15927 | 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] | 15928 | # Check whether --enable-ipv6 was given. |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15929 | if test "${enable_ipv6+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15930 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15931 | no) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15932 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15933 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15934 | ipv6=no |
| 15935 | ;; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15936 | *) { echo "$as_me:$LINENO: result: yes" >&5 |
| 15937 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15938 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15939 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15940 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15941 | |
| 15942 | ipv6=yes |
| 15943 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15944 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15945 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15946 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15947 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15948 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15949 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15950 | ipv6=no |
| 15951 | |
| 15952 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15953 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15954 | /* confdefs.h. */ |
| 15955 | _ACEOF |
| 15956 | cat confdefs.h >>conftest.$ac_ext |
| 15957 | cat >>conftest.$ac_ext <<_ACEOF |
| 15958 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15959 | /* AF_INET6 available check */ |
| 15960 | #include <sys/types.h> |
| 15961 | #include <sys/socket.h> |
| 15962 | main() |
| 15963 | { |
| 15964 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 15965 | exit(1); |
| 15966 | else |
| 15967 | exit(0); |
| 15968 | } |
| 15969 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15970 | _ACEOF |
| 15971 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15972 | if { (ac_try="$ac_link" |
| 15973 | case "(($ac_try" in |
| 15974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15975 | *) ac_try_echo=$ac_try;; |
| 15976 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15978 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15979 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15981 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15982 | { (case "(($ac_try" in |
| 15983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15984 | *) ac_try_echo=$ac_try;; |
| 15985 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15987 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15988 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15990 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15991 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15992 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15993 | ipv6=yes |
| 15994 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 15995 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15996 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15998 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15999 | ( exit $ac_status ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16000 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16001 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16002 | ipv6=no |
| 16003 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16004 | 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] | 16005 | fi |
| 16006 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16007 | |
| 16008 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 16009 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16010 | { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 16011 | 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] | 16012 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16013 | /* confdefs.h. */ |
| 16014 | _ACEOF |
| 16015 | cat confdefs.h >>conftest.$ac_ext |
| 16016 | cat >>conftest.$ac_ext <<_ACEOF |
| 16017 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 16018 | #include <sys/types.h> |
| 16019 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16020 | int |
| 16021 | main () |
| 16022 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 16023 | struct sockaddr_in6 x; |
| 16024 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16025 | ; |
| 16026 | return 0; |
| 16027 | } |
| 16028 | _ACEOF |
| 16029 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16030 | if { (ac_try="$ac_compile" |
| 16031 | case "(($ac_try" in |
| 16032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16033 | *) ac_try_echo=$ac_try;; |
| 16034 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16036 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16037 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16039 | rm -f conftest.er1 |
| 16040 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16042 | (exit $ac_status); } && { |
| 16043 | test -z "$ac_c_werror_flag" || |
| 16044 | test ! -s conftest.err |
| 16045 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16046 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16047 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 16048 | ipv6=yes |
| 16049 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16050 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16052 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16053 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16054 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 16055 | ipv6=no |
| 16056 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16057 | |
| 16058 | 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] | 16059 | fi |
| 16060 | |
| 16061 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16062 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 16063 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16064 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 16065 | |
| 16066 | fi |
| 16067 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16068 | fi |
| 16069 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16070 | |
| 16071 | ipv6type=unknown |
| 16072 | ipv6lib=none |
| 16073 | ipv6trylibc=no |
| 16074 | |
| 16075 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16076 | { echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 16077 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 16078 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 16079 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16080 | case $i in |
| 16081 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16082 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16083 | /* confdefs.h. */ |
| 16084 | _ACEOF |
| 16085 | cat confdefs.h >>conftest.$ac_ext |
| 16086 | cat >>conftest.$ac_ext <<_ACEOF |
| 16087 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 16088 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16089 | #include <netinet/in.h> |
| 16090 | #ifdef IPV6_INRIA_VERSION |
| 16091 | yes |
| 16092 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16093 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16094 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16095 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 16096 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16097 | fi |
| 16098 | rm -f conftest* |
| 16099 | |
| 16100 | ;; |
| 16101 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16102 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16103 | /* confdefs.h. */ |
| 16104 | _ACEOF |
| 16105 | cat confdefs.h >>conftest.$ac_ext |
| 16106 | cat >>conftest.$ac_ext <<_ACEOF |
| 16107 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 16108 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16109 | #include <netinet/in.h> |
| 16110 | #ifdef __KAME__ |
| 16111 | yes |
| 16112 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16113 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16114 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16115 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16116 | ipv6type=$i; |
| 16117 | ipv6lib=inet6 |
| 16118 | ipv6libdir=/usr/local/v6/lib |
| 16119 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16120 | fi |
| 16121 | rm -f conftest* |
| 16122 | |
| 16123 | ;; |
| 16124 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16125 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16126 | /* confdefs.h. */ |
| 16127 | _ACEOF |
| 16128 | cat confdefs.h >>conftest.$ac_ext |
| 16129 | cat >>conftest.$ac_ext <<_ACEOF |
| 16130 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 16131 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16132 | #include <features.h> |
| 16133 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 16134 | yes |
| 16135 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16136 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16137 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16138 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16139 | ipv6type=$i; |
| 16140 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16141 | fi |
| 16142 | rm -f conftest* |
| 16143 | |
| 16144 | ;; |
| 16145 | linux-inet6) |
| 16146 | if test -d /usr/inet6; then |
| 16147 | ipv6type=$i |
| 16148 | ipv6lib=inet6 |
| 16149 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16150 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16151 | fi |
| 16152 | ;; |
| 16153 | solaris) |
| 16154 | if test -f /etc/netconfig; then |
| 16155 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 16156 | ipv6type=$i |
| 16157 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16158 | fi |
| 16159 | fi |
| 16160 | ;; |
| 16161 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16162 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16163 | /* confdefs.h. */ |
| 16164 | _ACEOF |
| 16165 | cat confdefs.h >>conftest.$ac_ext |
| 16166 | cat >>conftest.$ac_ext <<_ACEOF |
| 16167 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 16168 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16169 | #include <sys/param.h> |
| 16170 | #ifdef _TOSHIBA_INET6 |
| 16171 | yes |
| 16172 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16173 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16174 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16175 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16176 | ipv6type=$i; |
| 16177 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 16178 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16179 | fi |
| 16180 | rm -f conftest* |
| 16181 | |
| 16182 | ;; |
| 16183 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16184 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16185 | /* confdefs.h. */ |
| 16186 | _ACEOF |
| 16187 | cat confdefs.h >>conftest.$ac_ext |
| 16188 | cat >>conftest.$ac_ext <<_ACEOF |
| 16189 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 16190 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16191 | #include </usr/local/v6/include/sys/v6config.h> |
| 16192 | #ifdef __V6D__ |
| 16193 | yes |
| 16194 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16195 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16196 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16197 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16198 | ipv6type=$i; |
| 16199 | ipv6lib=v6; |
| 16200 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16201 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16202 | fi |
| 16203 | rm -f conftest* |
| 16204 | |
| 16205 | ;; |
| 16206 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16207 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16208 | /* confdefs.h. */ |
| 16209 | _ACEOF |
| 16210 | cat confdefs.h >>conftest.$ac_ext |
| 16211 | cat >>conftest.$ac_ext <<_ACEOF |
| 16212 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 16213 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16214 | #include <sys/param.h> |
| 16215 | #ifdef _ZETA_MINAMI_INET6 |
| 16216 | yes |
| 16217 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16218 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16219 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16220 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16221 | ipv6type=$i; |
| 16222 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 16223 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16224 | fi |
| 16225 | rm -f conftest* |
| 16226 | |
| 16227 | ;; |
| 16228 | esac |
| 16229 | if test "$ipv6type" != "unknown"; then |
| 16230 | break |
| 16231 | fi |
| 16232 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16233 | { echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 16234 | echo "${ECHO_T}$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16235 | fi |
| 16236 | |
| 16237 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 16238 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 16239 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 16240 | echo "using lib$ipv6lib" |
| 16241 | else |
| 16242 | if test $ipv6trylibc = "yes"; then |
| 16243 | echo "using libc" |
| 16244 | else |
| 16245 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 16246 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 16247 | echo 'ipv6 kit and compile beforehand.' |
| 16248 | exit 1 |
| 16249 | fi |
| 16250 | fi |
| 16251 | fi |
| 16252 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16253 | { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5 |
| 16254 | 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] | 16255 | cat >conftest.$ac_ext <<_ACEOF |
| 16256 | /* confdefs.h. */ |
| 16257 | _ACEOF |
| 16258 | cat confdefs.h >>conftest.$ac_ext |
| 16259 | cat >>conftest.$ac_ext <<_ACEOF |
| 16260 | /* end confdefs.h. */ |
| 16261 | #include <Carbon/Carbon.h> |
| 16262 | int |
| 16263 | main () |
| 16264 | { |
| 16265 | FSIORefNum fRef = 0 |
| 16266 | ; |
| 16267 | return 0; |
| 16268 | } |
| 16269 | _ACEOF |
| 16270 | rm -f conftest.$ac_objext |
| 16271 | if { (ac_try="$ac_compile" |
| 16272 | case "(($ac_try" in |
| 16273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16274 | *) ac_try_echo=$ac_try;; |
| 16275 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 16277 | (eval "$ac_compile") 2>conftest.er1 |
| 16278 | ac_status=$? |
| 16279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16280 | rm -f conftest.er1 |
| 16281 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 16283 | (exit $ac_status); } && { |
| 16284 | test -z "$ac_c_werror_flag" || |
| 16285 | test ! -s conftest.err |
| 16286 | } && test -s conftest.$ac_objext; then |
| 16287 | |
| 16288 | cat >>confdefs.h <<\_ACEOF |
| 16289 | #define HAVE_OSX105_SDK 1 |
| 16290 | _ACEOF |
| 16291 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16292 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16293 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 16294 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16295 | echo "$as_me: failed program was:" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 16296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16297 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16298 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16299 | echo "${ECHO_T}no" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 16300 | |
| 16301 | fi |
| 16302 | |
| 16303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16304 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 16305 | # Check for --with-doc-strings |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16306 | { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 16307 | 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] | 16308 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16309 | # Check whether --with-doc-strings was given. |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 16310 | if test "${with_doc_strings+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16311 | withval=$with_doc_strings; |
| 16312 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 16313 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 16314 | |
| 16315 | if test -z "$with_doc_strings" |
| 16316 | then with_doc_strings="yes" |
| 16317 | fi |
| 16318 | if test "$with_doc_strings" != "no" |
| 16319 | then |
| 16320 | |
| 16321 | cat >>confdefs.h <<\_ACEOF |
| 16322 | #define WITH_DOC_STRINGS 1 |
| 16323 | _ACEOF |
| 16324 | |
| 16325 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16326 | { echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 16327 | echo "${ECHO_T}$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 16328 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 16329 | # Check for Python-specific malloc support |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16330 | { echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 16331 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 16332 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16333 | # Check whether --with-tsc was given. |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 16334 | if test "${with_tsc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16335 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 16336 | if test "$withval" != no |
| 16337 | then |
| 16338 | |
| 16339 | cat >>confdefs.h <<\_ACEOF |
| 16340 | #define WITH_TSC 1 |
| 16341 | _ACEOF |
| 16342 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16343 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16344 | echo "${ECHO_T}yes" >&6; } |
| 16345 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 16346 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 16347 | fi |
| 16348 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16349 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16350 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16351 | fi |
| 16352 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 16353 | |
| 16354 | # Check for Python-specific malloc support |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16355 | { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 16356 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16357 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16358 | # Check whether --with-pymalloc was given. |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 16359 | if test "${with_pymalloc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16360 | withval=$with_pymalloc; |
| 16361 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16362 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 16363 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 16364 | if test -z "$with_pymalloc" |
| 16365 | then with_pymalloc="yes" |
| 16366 | fi |
| 16367 | if test "$with_pymalloc" != "no" |
| 16368 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16369 | |
| 16370 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 16371 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16372 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 16373 | |
| 16374 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16375 | { echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 16376 | echo "${ECHO_T}$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 16377 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16378 | # Check for --with-wctype-functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16379 | { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 16380 | 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] | 16381 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16382 | # Check whether --with-wctype-functions was given. |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16383 | if test "${with_wctype_functions+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16384 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16385 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16386 | then |
| 16387 | |
| 16388 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16389 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16390 | _ACEOF |
| 16391 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16392 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16393 | echo "${ECHO_T}yes" >&6; } |
| 16394 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 16395 | echo "${ECHO_T}no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16396 | fi |
| 16397 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16398 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16399 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16400 | fi |
| 16401 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16402 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16403 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16404 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 16405 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16406 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16407 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 16408 | # 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] | 16409 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16410 | for ac_func in dlopen |
| 16411 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16412 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16413 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16414 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16415 | 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^] | 16416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16417 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16418 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16419 | /* confdefs.h. */ |
| 16420 | _ACEOF |
| 16421 | cat confdefs.h >>conftest.$ac_ext |
| 16422 | cat >>conftest.$ac_ext <<_ACEOF |
| 16423 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16424 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16425 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16426 | #define $ac_func innocuous_$ac_func |
| 16427 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16428 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16429 | which can conflict with char $ac_func (); below. |
| 16430 | 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] | 16431 | <limits.h> exists even on freestanding compilers. */ |
| 16432 | |
| 16433 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16434 | # include <limits.h> |
| 16435 | #else |
| 16436 | # include <assert.h> |
| 16437 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16438 | |
| 16439 | #undef $ac_func |
| 16440 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16441 | /* Override any GCC internal prototype to avoid an error. |
| 16442 | Use char because int might match the return type of a GCC |
| 16443 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16444 | #ifdef __cplusplus |
| 16445 | extern "C" |
| 16446 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16447 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16448 | /* The GNU C library defines this for functions which it implements |
| 16449 | to always fail with ENOSYS. Some functions are actually named |
| 16450 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16451 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16452 | choke me |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16453 | #endif |
| 16454 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16455 | int |
| 16456 | main () |
| 16457 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16458 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16459 | ; |
| 16460 | return 0; |
| 16461 | } |
| 16462 | _ACEOF |
| 16463 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16464 | if { (ac_try="$ac_link" |
| 16465 | case "(($ac_try" in |
| 16466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16467 | *) ac_try_echo=$ac_try;; |
| 16468 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16470 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16471 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16473 | rm -f conftest.er1 |
| 16474 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16476 | (exit $ac_status); } && { |
| 16477 | test -z "$ac_c_werror_flag" || |
| 16478 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16479 | } && test -s conftest$ac_exeext && |
| 16480 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16481 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16482 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16483 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16485 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16486 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16487 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16488 | |
| 16489 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16490 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16491 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16492 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16493 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16494 | echo "${ECHO_T}$ac_res" >&6; } |
| 16495 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16496 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16497 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16498 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16499 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16500 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16501 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16502 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16503 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16504 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 16505 | # loading of modules. |
| 16506 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16507 | { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 16508 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16509 | if test -z "$DYNLOADFILE" |
| 16510 | then |
| 16511 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 16512 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 16513 | if test "$ac_cv_func_dlopen" = yes |
| 16514 | then DYNLOADFILE="dynload_shlib.o" |
| 16515 | else DYNLOADFILE="dynload_aix.o" |
| 16516 | fi |
| 16517 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16518 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 16519 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 16520 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 16521 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16522 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16523 | *) |
| 16524 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 16525 | # out any dynamic loading |
| 16526 | if test "$ac_cv_func_dlopen" = yes |
| 16527 | then DYNLOADFILE="dynload_shlib.o" |
| 16528 | else DYNLOADFILE="dynload_stub.o" |
| 16529 | fi |
| 16530 | ;; |
| 16531 | esac |
| 16532 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16533 | { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 16534 | echo "${ECHO_T}$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16535 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 16536 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16537 | |
| 16538 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16539 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16540 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16541 | |
| 16542 | fi |
| 16543 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 16544 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 16545 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16546 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16547 | { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 16548 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 16549 | if test -z "$MACHDEP_OBJS" |
| 16550 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 16551 | MACHDEP_OBJS=$extra_machdep_objs |
| 16552 | else |
| 16553 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 16554 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16555 | { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 16556 | echo "${ECHO_T}MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 16557 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16558 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16559 | |
| 16560 | |
| 16561 | |
| 16562 | |
| 16563 | |
| 16564 | |
| 16565 | |
| 16566 | |
| 16567 | |
| 16568 | |
| 16569 | |
| 16570 | |
| 16571 | |
| 16572 | |
| 16573 | |
| 16574 | |
| 16575 | |
| 16576 | |
| 16577 | |
| 16578 | |
| 16579 | |
| 16580 | |
| 16581 | |
| 16582 | |
| 16583 | |
| 16584 | |
| 16585 | |
| 16586 | |
| 16587 | |
| 16588 | |
| 16589 | |
| 16590 | |
| 16591 | |
| 16592 | |
| 16593 | |
| 16594 | |
| 16595 | |
| 16596 | |
| 16597 | |
| 16598 | |
| 16599 | |
| 16600 | |
| 16601 | |
| 16602 | |
| 16603 | |
| 16604 | |
| 16605 | |
| 16606 | |
| 16607 | |
| 16608 | |
| 16609 | |
| 16610 | |
| 16611 | |
| 16612 | |
| 16613 | |
| 16614 | |
| 16615 | |
| 16616 | |
| 16617 | |
| 16618 | |
| 16619 | |
| 16620 | |
| 16621 | |
| 16622 | |
| 16623 | |
| 16624 | |
| 16625 | |
| 16626 | |
| 16627 | |
| 16628 | |
| 16629 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 16630 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 16631 | |
| 16632 | |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 16633 | |
| 16634 | |
Martin v. Löwis | 382abef | 2007-02-19 10:55:19 +0000 | [diff] [blame] | 16635 | |
| 16636 | |
Christian Heimes | 3628187 | 2007-11-30 21:11:28 +0000 | [diff] [blame] | 16637 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 16638 | |
| 16639 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 16640 | |
| 16641 | |
| 16642 | |
| 16643 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 16644 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 16645 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 16646 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 16647 | getpriority getpwent getspnam getspent getsid getwd \ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 16648 | kill killpg lchmod lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 16649 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 16650 | putenv readlink realpath \ |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 16651 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ |
| 16652 | setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 16653 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 16654 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 16655 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 16656 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16657 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16658 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16659 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16660 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16661 | 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^] | 16662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16663 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16664 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16665 | /* confdefs.h. */ |
| 16666 | _ACEOF |
| 16667 | cat confdefs.h >>conftest.$ac_ext |
| 16668 | cat >>conftest.$ac_ext <<_ACEOF |
| 16669 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16670 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16671 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16672 | #define $ac_func innocuous_$ac_func |
| 16673 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16674 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16675 | which can conflict with char $ac_func (); below. |
| 16676 | 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] | 16677 | <limits.h> exists even on freestanding compilers. */ |
| 16678 | |
| 16679 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16680 | # include <limits.h> |
| 16681 | #else |
| 16682 | # include <assert.h> |
| 16683 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16684 | |
| 16685 | #undef $ac_func |
| 16686 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16687 | /* Override any GCC internal prototype to avoid an error. |
| 16688 | Use char because int might match the return type of a GCC |
| 16689 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16690 | #ifdef __cplusplus |
| 16691 | extern "C" |
| 16692 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16693 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16694 | /* The GNU C library defines this for functions which it implements |
| 16695 | to always fail with ENOSYS. Some functions are actually named |
| 16696 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16697 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16698 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16699 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16700 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16701 | int |
| 16702 | main () |
| 16703 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16704 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16705 | ; |
| 16706 | return 0; |
| 16707 | } |
| 16708 | _ACEOF |
| 16709 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16710 | if { (ac_try="$ac_link" |
| 16711 | case "(($ac_try" in |
| 16712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16713 | *) ac_try_echo=$ac_try;; |
| 16714 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16716 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16717 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16718 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16719 | rm -f conftest.er1 |
| 16720 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16722 | (exit $ac_status); } && { |
| 16723 | test -z "$ac_c_werror_flag" || |
| 16724 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16725 | } && test -s conftest$ac_exeext && |
| 16726 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16727 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16728 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16729 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16731 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16732 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16733 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16734 | |
| 16735 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16736 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16737 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16738 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16739 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16740 | echo "${ECHO_T}$ac_res" >&6; } |
| 16741 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16742 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16743 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16744 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16745 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16746 | fi |
| 16747 | done |
| 16748 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16749 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16750 | # For some functions, having a definition is not sufficient, since |
| 16751 | # we want to take their address. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16752 | { echo "$as_me:$LINENO: checking for chroot" >&5 |
| 16753 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16754 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16755 | /* confdefs.h. */ |
| 16756 | _ACEOF |
| 16757 | cat confdefs.h >>conftest.$ac_ext |
| 16758 | cat >>conftest.$ac_ext <<_ACEOF |
| 16759 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16760 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16761 | int |
| 16762 | main () |
| 16763 | { |
| 16764 | void *x=chroot |
| 16765 | ; |
| 16766 | return 0; |
| 16767 | } |
| 16768 | _ACEOF |
| 16769 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16770 | if { (ac_try="$ac_compile" |
| 16771 | case "(($ac_try" in |
| 16772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16773 | *) ac_try_echo=$ac_try;; |
| 16774 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16776 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16777 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16779 | rm -f conftest.er1 |
| 16780 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16782 | (exit $ac_status); } && { |
| 16783 | test -z "$ac_c_werror_flag" || |
| 16784 | test ! -s conftest.err |
| 16785 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16786 | |
| 16787 | cat >>confdefs.h <<\_ACEOF |
| 16788 | #define HAVE_CHROOT 1 |
| 16789 | _ACEOF |
| 16790 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16791 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16792 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16793 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16794 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16796 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16797 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16798 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16799 | |
| 16800 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16801 | |
| 16802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16803 | { echo "$as_me:$LINENO: checking for link" >&5 |
| 16804 | echo $ECHO_N "checking for link... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16805 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16806 | /* confdefs.h. */ |
| 16807 | _ACEOF |
| 16808 | cat confdefs.h >>conftest.$ac_ext |
| 16809 | cat >>conftest.$ac_ext <<_ACEOF |
| 16810 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16811 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16812 | int |
| 16813 | main () |
| 16814 | { |
| 16815 | void *x=link |
| 16816 | ; |
| 16817 | return 0; |
| 16818 | } |
| 16819 | _ACEOF |
| 16820 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16821 | if { (ac_try="$ac_compile" |
| 16822 | case "(($ac_try" in |
| 16823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16824 | *) ac_try_echo=$ac_try;; |
| 16825 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16827 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16828 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16830 | rm -f conftest.er1 |
| 16831 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16833 | (exit $ac_status); } && { |
| 16834 | test -z "$ac_c_werror_flag" || |
| 16835 | test ! -s conftest.err |
| 16836 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16837 | |
| 16838 | cat >>confdefs.h <<\_ACEOF |
| 16839 | #define HAVE_LINK 1 |
| 16840 | _ACEOF |
| 16841 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16842 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16843 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16844 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16845 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16847 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16848 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16849 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16850 | |
| 16851 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16852 | |
| 16853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16854 | { echo "$as_me:$LINENO: checking for symlink" >&5 |
| 16855 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16856 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16857 | /* confdefs.h. */ |
| 16858 | _ACEOF |
| 16859 | cat confdefs.h >>conftest.$ac_ext |
| 16860 | cat >>conftest.$ac_ext <<_ACEOF |
| 16861 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16862 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16863 | int |
| 16864 | main () |
| 16865 | { |
| 16866 | void *x=symlink |
| 16867 | ; |
| 16868 | return 0; |
| 16869 | } |
| 16870 | _ACEOF |
| 16871 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16872 | if { (ac_try="$ac_compile" |
| 16873 | case "(($ac_try" in |
| 16874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16875 | *) ac_try_echo=$ac_try;; |
| 16876 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16878 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16879 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16881 | rm -f conftest.er1 |
| 16882 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16884 | (exit $ac_status); } && { |
| 16885 | test -z "$ac_c_werror_flag" || |
| 16886 | test ! -s conftest.err |
| 16887 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16888 | |
| 16889 | cat >>confdefs.h <<\_ACEOF |
| 16890 | #define HAVE_SYMLINK 1 |
| 16891 | _ACEOF |
| 16892 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16893 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16894 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16895 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16896 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16898 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16899 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16900 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16901 | |
| 16902 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16903 | |
| 16904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16905 | { echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 16906 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16907 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16908 | /* confdefs.h. */ |
| 16909 | _ACEOF |
| 16910 | cat confdefs.h >>conftest.$ac_ext |
| 16911 | cat >>conftest.$ac_ext <<_ACEOF |
| 16912 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16913 | #include <unistd.h> |
| 16914 | int |
| 16915 | main () |
| 16916 | { |
| 16917 | void *x=fchdir |
| 16918 | ; |
| 16919 | return 0; |
| 16920 | } |
| 16921 | _ACEOF |
| 16922 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16923 | if { (ac_try="$ac_compile" |
| 16924 | case "(($ac_try" in |
| 16925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16926 | *) ac_try_echo=$ac_try;; |
| 16927 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16929 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16930 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16932 | rm -f conftest.er1 |
| 16933 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16935 | (exit $ac_status); } && { |
| 16936 | test -z "$ac_c_werror_flag" || |
| 16937 | test ! -s conftest.err |
| 16938 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16939 | |
| 16940 | cat >>confdefs.h <<\_ACEOF |
| 16941 | #define HAVE_FCHDIR 1 |
| 16942 | _ACEOF |
| 16943 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16944 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16945 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16946 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16947 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16949 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16950 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16951 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16952 | |
| 16953 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16954 | |
| 16955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16956 | { echo "$as_me:$LINENO: checking for fsync" >&5 |
| 16957 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16958 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16959 | /* confdefs.h. */ |
| 16960 | _ACEOF |
| 16961 | cat confdefs.h >>conftest.$ac_ext |
| 16962 | cat >>conftest.$ac_ext <<_ACEOF |
| 16963 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16964 | #include <unistd.h> |
| 16965 | int |
| 16966 | main () |
| 16967 | { |
| 16968 | void *x=fsync |
| 16969 | ; |
| 16970 | return 0; |
| 16971 | } |
| 16972 | _ACEOF |
| 16973 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16974 | if { (ac_try="$ac_compile" |
| 16975 | case "(($ac_try" in |
| 16976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16977 | *) ac_try_echo=$ac_try;; |
| 16978 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16980 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16981 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16983 | rm -f conftest.er1 |
| 16984 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16986 | (exit $ac_status); } && { |
| 16987 | test -z "$ac_c_werror_flag" || |
| 16988 | test ! -s conftest.err |
| 16989 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16990 | |
| 16991 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16992 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16993 | _ACEOF |
| 16994 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16995 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16996 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16997 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 16998 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17000 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17001 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17002 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17003 | |
| 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.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17007 | { echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 17008 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17009 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17010 | /* confdefs.h. */ |
| 17011 | _ACEOF |
| 17012 | cat confdefs.h >>conftest.$ac_ext |
| 17013 | cat >>conftest.$ac_ext <<_ACEOF |
| 17014 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17015 | #include <unistd.h> |
| 17016 | int |
| 17017 | main () |
| 17018 | { |
| 17019 | void *x=fdatasync |
| 17020 | ; |
| 17021 | return 0; |
| 17022 | } |
| 17023 | _ACEOF |
| 17024 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17025 | if { (ac_try="$ac_compile" |
| 17026 | case "(($ac_try" in |
| 17027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17028 | *) ac_try_echo=$ac_try;; |
| 17029 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17031 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17032 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17034 | rm -f conftest.er1 |
| 17035 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17037 | (exit $ac_status); } && { |
| 17038 | test -z "$ac_c_werror_flag" || |
| 17039 | test ! -s conftest.err |
| 17040 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17041 | |
| 17042 | cat >>confdefs.h <<\_ACEOF |
| 17043 | #define HAVE_FDATASYNC 1 |
| 17044 | _ACEOF |
| 17045 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17046 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17047 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17048 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17049 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17051 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17052 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17053 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17054 | |
| 17055 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17056 | |
| 17057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17058 | { echo "$as_me:$LINENO: checking for epoll" >&5 |
| 17059 | echo $ECHO_N "checking for epoll... $ECHO_C" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 17060 | cat >conftest.$ac_ext <<_ACEOF |
| 17061 | /* confdefs.h. */ |
| 17062 | _ACEOF |
| 17063 | cat confdefs.h >>conftest.$ac_ext |
| 17064 | cat >>conftest.$ac_ext <<_ACEOF |
| 17065 | /* end confdefs.h. */ |
| 17066 | #include <sys/epoll.h> |
| 17067 | int |
| 17068 | main () |
| 17069 | { |
| 17070 | void *x=epoll_create |
| 17071 | ; |
| 17072 | return 0; |
| 17073 | } |
| 17074 | _ACEOF |
| 17075 | rm -f conftest.$ac_objext |
| 17076 | if { (ac_try="$ac_compile" |
| 17077 | case "(($ac_try" in |
| 17078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17079 | *) ac_try_echo=$ac_try;; |
| 17080 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 17082 | (eval "$ac_compile") 2>conftest.er1 |
| 17083 | ac_status=$? |
| 17084 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17085 | rm -f conftest.er1 |
| 17086 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 17088 | (exit $ac_status); } && { |
| 17089 | test -z "$ac_c_werror_flag" || |
| 17090 | test ! -s conftest.err |
| 17091 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17092 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 17093 | cat >>confdefs.h <<\_ACEOF |
| 17094 | #define HAVE_EPOLL 1 |
| 17095 | _ACEOF |
| 17096 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17097 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17098 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 17099 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17100 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 17101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17102 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17103 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17104 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 17105 | |
| 17106 | fi |
| 17107 | |
| 17108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17109 | { echo "$as_me:$LINENO: checking for kqueue" >&5 |
| 17110 | echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 17111 | cat >conftest.$ac_ext <<_ACEOF |
| 17112 | /* confdefs.h. */ |
| 17113 | _ACEOF |
| 17114 | cat confdefs.h >>conftest.$ac_ext |
| 17115 | cat >>conftest.$ac_ext <<_ACEOF |
| 17116 | /* end confdefs.h. */ |
| 17117 | |
| 17118 | #include <sys/types.h> |
| 17119 | #include <sys/event.h> |
| 17120 | |
| 17121 | int |
| 17122 | main () |
| 17123 | { |
| 17124 | int x=kqueue() |
| 17125 | ; |
| 17126 | return 0; |
| 17127 | } |
| 17128 | _ACEOF |
| 17129 | rm -f conftest.$ac_objext |
| 17130 | if { (ac_try="$ac_compile" |
| 17131 | case "(($ac_try" in |
| 17132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17133 | *) ac_try_echo=$ac_try;; |
| 17134 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 17136 | (eval "$ac_compile") 2>conftest.er1 |
| 17137 | ac_status=$? |
| 17138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17139 | rm -f conftest.er1 |
| 17140 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 17142 | (exit $ac_status); } && { |
| 17143 | test -z "$ac_c_werror_flag" || |
| 17144 | test ! -s conftest.err |
| 17145 | } && test -s conftest.$ac_objext; then |
| 17146 | |
| 17147 | cat >>confdefs.h <<\_ACEOF |
| 17148 | #define HAVE_KQUEUE 1 |
| 17149 | _ACEOF |
| 17150 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17151 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17152 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 17153 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17154 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 17155 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17156 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17157 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17158 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 17159 | |
| 17160 | fi |
| 17161 | |
| 17162 | 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] | 17163 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 17164 | # functions ctermid_r, setgroups in the library, but no prototype |
| 17165 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 17166 | # address to avoid compiler warnings and potential miscompilations |
| 17167 | # because of the missing prototypes. |
| 17168 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17169 | { echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 17170 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17171 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17172 | /* confdefs.h. */ |
| 17173 | _ACEOF |
| 17174 | cat confdefs.h >>conftest.$ac_ext |
| 17175 | cat >>conftest.$ac_ext <<_ACEOF |
| 17176 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17177 | |
| 17178 | #include "confdefs.h" |
| 17179 | #include <stdio.h> |
| 17180 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17181 | int |
| 17182 | main () |
| 17183 | { |
| 17184 | void* p = ctermid_r |
| 17185 | ; |
| 17186 | return 0; |
| 17187 | } |
| 17188 | _ACEOF |
| 17189 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17190 | if { (ac_try="$ac_compile" |
| 17191 | case "(($ac_try" in |
| 17192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17193 | *) ac_try_echo=$ac_try;; |
| 17194 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17196 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17197 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17198 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17199 | rm -f conftest.er1 |
| 17200 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17202 | (exit $ac_status); } && { |
| 17203 | test -z "$ac_c_werror_flag" || |
| 17204 | test ! -s conftest.err |
| 17205 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17206 | |
| 17207 | cat >>confdefs.h <<\_ACEOF |
| 17208 | #define HAVE_CTERMID_R 1 |
| 17209 | _ACEOF |
| 17210 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17211 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17212 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17213 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17214 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17216 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17217 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17218 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17219 | |
| 17220 | fi |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17221 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17223 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17224 | { echo "$as_me:$LINENO: checking for flock" >&5 |
| 17225 | echo $ECHO_N "checking for flock... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17226 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17227 | /* confdefs.h. */ |
| 17228 | _ACEOF |
| 17229 | cat confdefs.h >>conftest.$ac_ext |
| 17230 | cat >>conftest.$ac_ext <<_ACEOF |
| 17231 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17232 | |
| 17233 | #include "confdefs.h" |
| 17234 | #include <sys/file.h> |
| 17235 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17236 | int |
| 17237 | main () |
| 17238 | { |
| 17239 | void* p = flock |
| 17240 | ; |
| 17241 | return 0; |
| 17242 | } |
| 17243 | _ACEOF |
| 17244 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17245 | if { (ac_try="$ac_compile" |
| 17246 | case "(($ac_try" in |
| 17247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17248 | *) ac_try_echo=$ac_try;; |
| 17249 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17251 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17252 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17253 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17254 | rm -f conftest.er1 |
| 17255 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17257 | (exit $ac_status); } && { |
| 17258 | test -z "$ac_c_werror_flag" || |
| 17259 | test ! -s conftest.err |
| 17260 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17261 | |
| 17262 | cat >>confdefs.h <<\_ACEOF |
| 17263 | #define HAVE_FLOCK 1 |
| 17264 | _ACEOF |
| 17265 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17266 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17267 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17268 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17269 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17271 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17272 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17273 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17274 | |
| 17275 | fi |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17276 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17278 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17279 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 17280 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17281 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17282 | /* confdefs.h. */ |
| 17283 | _ACEOF |
| 17284 | cat confdefs.h >>conftest.$ac_ext |
| 17285 | cat >>conftest.$ac_ext <<_ACEOF |
| 17286 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17287 | |
| 17288 | #include "confdefs.h" |
| 17289 | #include <unistd.h> |
| 17290 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17291 | int |
| 17292 | main () |
| 17293 | { |
| 17294 | void* p = getpagesize |
| 17295 | ; |
| 17296 | return 0; |
| 17297 | } |
| 17298 | _ACEOF |
| 17299 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17300 | if { (ac_try="$ac_compile" |
| 17301 | case "(($ac_try" in |
| 17302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17303 | *) ac_try_echo=$ac_try;; |
| 17304 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17306 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17307 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17309 | rm -f conftest.er1 |
| 17310 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17312 | (exit $ac_status); } && { |
| 17313 | test -z "$ac_c_werror_flag" || |
| 17314 | test ! -s conftest.err |
| 17315 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17316 | |
| 17317 | cat >>confdefs.h <<\_ACEOF |
| 17318 | #define HAVE_GETPAGESIZE 1 |
| 17319 | _ACEOF |
| 17320 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17321 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17322 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17323 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17324 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17326 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17327 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17328 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17329 | |
| 17330 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17331 | |
| 17332 | 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] | 17333 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17334 | for ac_prog in true |
| 17335 | do |
| 17336 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 17337 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17338 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 17339 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17340 | if test "${ac_cv_prog_TRUE+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17342 | else |
| 17343 | if test -n "$TRUE"; then |
| 17344 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 17345 | else |
| 17346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17347 | for as_dir in $PATH |
| 17348 | do |
| 17349 | IFS=$as_save_IFS |
| 17350 | test -z "$as_dir" && as_dir=. |
| 17351 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17352 | 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] | 17353 | ac_cv_prog_TRUE="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17354 | 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] | 17355 | break 2 |
| 17356 | fi |
| 17357 | done |
| 17358 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17359 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17360 | |
| 17361 | fi |
| 17362 | fi |
| 17363 | TRUE=$ac_cv_prog_TRUE |
| 17364 | if test -n "$TRUE"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17365 | { echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 17366 | echo "${ECHO_T}$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17367 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17368 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17369 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17370 | fi |
| 17371 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17372 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17373 | test -n "$TRUE" && break |
| 17374 | done |
| 17375 | test -n "$TRUE" || TRUE="/bin/true" |
| 17376 | |
| 17377 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17378 | { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 17379 | 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] | 17380 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17382 | else |
| 17383 | ac_check_lib_save_LIBS=$LIBS |
| 17384 | LIBS="-lc $LIBS" |
| 17385 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17386 | /* confdefs.h. */ |
| 17387 | _ACEOF |
| 17388 | cat confdefs.h >>conftest.$ac_ext |
| 17389 | cat >>conftest.$ac_ext <<_ACEOF |
| 17390 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17391 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17392 | /* Override any GCC internal prototype to avoid an error. |
| 17393 | Use char because int might match the return type of a GCC |
| 17394 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17395 | #ifdef __cplusplus |
| 17396 | extern "C" |
| 17397 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17398 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17399 | int |
| 17400 | main () |
| 17401 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17402 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17403 | ; |
| 17404 | return 0; |
| 17405 | } |
| 17406 | _ACEOF |
| 17407 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17408 | if { (ac_try="$ac_link" |
| 17409 | case "(($ac_try" in |
| 17410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17411 | *) ac_try_echo=$ac_try;; |
| 17412 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17414 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17415 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17417 | rm -f conftest.er1 |
| 17418 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17420 | (exit $ac_status); } && { |
| 17421 | test -z "$ac_c_werror_flag" || |
| 17422 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17423 | } && test -s conftest$ac_exeext && |
| 17424 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17425 | ac_cv_lib_c_inet_aton=yes |
| 17426 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17427 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17429 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17430 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17431 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17432 | |
| 17433 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17434 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17435 | LIBS=$ac_check_lib_save_LIBS |
| 17436 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17437 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 17438 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; } |
| 17439 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17440 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17441 | else |
| 17442 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17443 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 17444 | 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] | 17445 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17447 | else |
| 17448 | ac_check_lib_save_LIBS=$LIBS |
| 17449 | LIBS="-lresolv $LIBS" |
| 17450 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17451 | /* confdefs.h. */ |
| 17452 | _ACEOF |
| 17453 | cat confdefs.h >>conftest.$ac_ext |
| 17454 | cat >>conftest.$ac_ext <<_ACEOF |
| 17455 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17456 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17457 | /* Override any GCC internal prototype to avoid an error. |
| 17458 | Use char because int might match the return type of a GCC |
| 17459 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17460 | #ifdef __cplusplus |
| 17461 | extern "C" |
| 17462 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17463 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17464 | int |
| 17465 | main () |
| 17466 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17467 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17468 | ; |
| 17469 | return 0; |
| 17470 | } |
| 17471 | _ACEOF |
| 17472 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17473 | if { (ac_try="$ac_link" |
| 17474 | case "(($ac_try" in |
| 17475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17476 | *) ac_try_echo=$ac_try;; |
| 17477 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17479 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17480 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17481 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17482 | rm -f conftest.er1 |
| 17483 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17485 | (exit $ac_status); } && { |
| 17486 | test -z "$ac_c_werror_flag" || |
| 17487 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17488 | } && test -s conftest$ac_exeext && |
| 17489 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17490 | ac_cv_lib_resolv_inet_aton=yes |
| 17491 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17492 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17494 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17495 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17496 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17497 | |
| 17498 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17499 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17500 | LIBS=$ac_check_lib_save_LIBS |
| 17501 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17502 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 17503 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
| 17504 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17505 | cat >>confdefs.h <<_ACEOF |
| 17506 | #define HAVE_LIBRESOLV 1 |
| 17507 | _ACEOF |
| 17508 | |
| 17509 | LIBS="-lresolv $LIBS" |
| 17510 | |
| 17511 | fi |
| 17512 | |
| 17513 | |
| 17514 | fi |
| 17515 | |
| 17516 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 17517 | # On Tru64, chflags seems to be present, but calling it will |
| 17518 | # exit Python |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17519 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 17520 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
| 17521 | if test "$cross_compiling" = yes; then |
| 17522 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 17523 | See \`config.log' for more details." >&5 |
| 17524 | echo "$as_me: error: cannot run test program while cross compiling |
| 17525 | See \`config.log' for more details." >&2;} |
| 17526 | { (exit 1); exit 1; }; } |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 17527 | else |
| 17528 | cat >conftest.$ac_ext <<_ACEOF |
| 17529 | /* confdefs.h. */ |
| 17530 | _ACEOF |
| 17531 | cat confdefs.h >>conftest.$ac_ext |
| 17532 | cat >>conftest.$ac_ext <<_ACEOF |
| 17533 | /* end confdefs.h. */ |
| 17534 | |
| 17535 | #include <sys/stat.h> |
| 17536 | #include <unistd.h> |
| 17537 | int main(int argc, char*argv[]) |
| 17538 | { |
| 17539 | if(chflags(argv[0], 0) != 0) |
| 17540 | return 1; |
| 17541 | return 0; |
| 17542 | } |
| 17543 | |
| 17544 | _ACEOF |
| 17545 | rm -f conftest$ac_exeext |
| 17546 | if { (ac_try="$ac_link" |
| 17547 | case "(($ac_try" in |
| 17548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17549 | *) ac_try_echo=$ac_try;; |
| 17550 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 17552 | (eval "$ac_link") 2>&5 |
| 17553 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 17555 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17556 | { (case "(($ac_try" in |
| 17557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17558 | *) ac_try_echo=$ac_try;; |
| 17559 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 17561 | (eval "$ac_try") 2>&5 |
| 17562 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 17564 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 17565 | |
| 17566 | cat >>confdefs.h <<\_ACEOF |
| 17567 | #define HAVE_CHFLAGS 1 |
| 17568 | _ACEOF |
| 17569 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17570 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17571 | echo "${ECHO_T}yes" >&6; } |
| 17572 | else |
| 17573 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17574 | echo "$as_me: failed program was:" >&5 |
| 17575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17576 | |
| 17577 | ( exit $ac_status ) |
| 17578 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17579 | echo "${ECHO_T}no" >&6; } |
| 17580 | |
| 17581 | fi |
| 17582 | 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] | 17583 | fi |
| 17584 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17585 | |
| 17586 | |
| 17587 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 17588 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
| 17589 | if test "$cross_compiling" = yes; then |
| 17590 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 17591 | See \`config.log' for more details." >&5 |
| 17592 | echo "$as_me: error: cannot run test program while cross compiling |
| 17593 | See \`config.log' for more details." >&2;} |
| 17594 | { (exit 1); exit 1; }; } |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 17595 | else |
| 17596 | cat >conftest.$ac_ext <<_ACEOF |
| 17597 | /* confdefs.h. */ |
| 17598 | _ACEOF |
| 17599 | cat confdefs.h >>conftest.$ac_ext |
| 17600 | cat >>conftest.$ac_ext <<_ACEOF |
| 17601 | /* end confdefs.h. */ |
| 17602 | |
| 17603 | #include <sys/stat.h> |
| 17604 | #include <unistd.h> |
| 17605 | int main(int argc, char*argv[]) |
| 17606 | { |
| 17607 | if(lchflags(argv[0], 0) != 0) |
| 17608 | return 1; |
| 17609 | return 0; |
| 17610 | } |
| 17611 | |
| 17612 | _ACEOF |
| 17613 | rm -f conftest$ac_exeext |
| 17614 | if { (ac_try="$ac_link" |
| 17615 | case "(($ac_try" in |
| 17616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17617 | *) ac_try_echo=$ac_try;; |
| 17618 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 17620 | (eval "$ac_link") 2>&5 |
| 17621 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 17623 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17624 | { (case "(($ac_try" in |
| 17625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17626 | *) ac_try_echo=$ac_try;; |
| 17627 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 17629 | (eval "$ac_try") 2>&5 |
| 17630 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 17632 | (exit $ac_status); }; }; then |
| 17633 | |
| 17634 | cat >>confdefs.h <<\_ACEOF |
| 17635 | #define HAVE_LCHFLAGS 1 |
| 17636 | _ACEOF |
| 17637 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17638 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17639 | echo "${ECHO_T}yes" >&6; } |
| 17640 | else |
| 17641 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17642 | echo "$as_me: failed program was:" >&5 |
| 17643 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17644 | |
| 17645 | ( exit $ac_status ) |
| 17646 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17647 | echo "${ECHO_T}no" >&6; } |
| 17648 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 17649 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17650 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 17651 | fi |
| 17652 | |
| 17653 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 17654 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 17655 | case $ac_sys_system/$ac_sys_release in |
| 17656 | Darwin/*) |
| 17657 | _CUR_CFLAGS="${CFLAGS}" |
| 17658 | _CUR_LDFLAGS="${LDFLAGS}" |
| 17659 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 17660 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 17661 | ;; |
| 17662 | esac |
| 17663 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17664 | { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 17665 | echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; } |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 17666 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 17668 | else |
| 17669 | ac_check_lib_save_LIBS=$LIBS |
| 17670 | LIBS="-lz $LIBS" |
| 17671 | cat >conftest.$ac_ext <<_ACEOF |
| 17672 | /* confdefs.h. */ |
| 17673 | _ACEOF |
| 17674 | cat confdefs.h >>conftest.$ac_ext |
| 17675 | cat >>conftest.$ac_ext <<_ACEOF |
| 17676 | /* end confdefs.h. */ |
| 17677 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17678 | /* Override any GCC internal prototype to avoid an error. |
| 17679 | Use char because int might match the return type of a GCC |
| 17680 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 17681 | #ifdef __cplusplus |
| 17682 | extern "C" |
| 17683 | #endif |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 17684 | char inflateCopy (); |
| 17685 | int |
| 17686 | main () |
| 17687 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17688 | return inflateCopy (); |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 17689 | ; |
| 17690 | return 0; |
| 17691 | } |
| 17692 | _ACEOF |
| 17693 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17694 | if { (ac_try="$ac_link" |
| 17695 | case "(($ac_try" in |
| 17696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17697 | *) ac_try_echo=$ac_try;; |
| 17698 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17700 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 17701 | ac_status=$? |
| 17702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17703 | rm -f conftest.er1 |
| 17704 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17706 | (exit $ac_status); } && { |
| 17707 | test -z "$ac_c_werror_flag" || |
| 17708 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17709 | } && test -s conftest$ac_exeext && |
| 17710 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 17711 | ac_cv_lib_z_inflateCopy=yes |
| 17712 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17713 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 17714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17715 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17716 | ac_cv_lib_z_inflateCopy=no |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 17717 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17718 | |
| 17719 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 17720 | conftest$ac_exeext conftest.$ac_ext |
| 17721 | LIBS=$ac_check_lib_save_LIBS |
| 17722 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17723 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 17724 | echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; } |
| 17725 | if test $ac_cv_lib_z_inflateCopy = yes; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 17726 | |
| 17727 | cat >>confdefs.h <<\_ACEOF |
| 17728 | #define HAVE_ZLIB_COPY 1 |
| 17729 | _ACEOF |
| 17730 | |
| 17731 | fi |
| 17732 | |
| 17733 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 17734 | case $ac_sys_system/$ac_sys_release in |
| 17735 | Darwin/*) |
| 17736 | CFLAGS="${_CUR_CFLAGS}" |
| 17737 | LDFLAGS="${_CUR_LDFLAGS}" |
| 17738 | ;; |
| 17739 | esac |
| 17740 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17741 | { echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 17742 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17743 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17744 | /* confdefs.h. */ |
| 17745 | _ACEOF |
| 17746 | cat confdefs.h >>conftest.$ac_ext |
| 17747 | cat >>conftest.$ac_ext <<_ACEOF |
| 17748 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17749 | |
| 17750 | #include "confdefs.h" |
| 17751 | #include <netdb.h> |
| 17752 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17753 | int |
| 17754 | main () |
| 17755 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17756 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17757 | ; |
| 17758 | return 0; |
| 17759 | } |
| 17760 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17761 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17762 | if { (ac_try="$ac_link" |
| 17763 | case "(($ac_try" in |
| 17764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17765 | *) ac_try_echo=$ac_try;; |
| 17766 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17768 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17769 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17770 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17771 | rm -f conftest.er1 |
| 17772 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17774 | (exit $ac_status); } && { |
| 17775 | test -z "$ac_c_werror_flag" || |
| 17776 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17777 | } && test -s conftest$ac_exeext && |
| 17778 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17779 | |
| 17780 | cat >>confdefs.h <<\_ACEOF |
| 17781 | #define HAVE_HSTRERROR 1 |
| 17782 | _ACEOF |
| 17783 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17784 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17785 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17786 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17787 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17789 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17790 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17791 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17792 | |
| 17793 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17794 | |
| 17795 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17796 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17797 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17798 | { echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 17799 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17800 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17801 | /* confdefs.h. */ |
| 17802 | _ACEOF |
| 17803 | cat confdefs.h >>conftest.$ac_ext |
| 17804 | cat >>conftest.$ac_ext <<_ACEOF |
| 17805 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17806 | |
| 17807 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 17808 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17809 | #include <sys/socket.h> |
| 17810 | #include <netinet/in.h> |
| 17811 | #include <arpa/inet.h> |
| 17812 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17813 | int |
| 17814 | main () |
| 17815 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17816 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17817 | ; |
| 17818 | return 0; |
| 17819 | } |
| 17820 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17821 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17822 | if { (ac_try="$ac_link" |
| 17823 | case "(($ac_try" in |
| 17824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17825 | *) ac_try_echo=$ac_try;; |
| 17826 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17828 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17829 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17830 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17831 | rm -f conftest.er1 |
| 17832 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17834 | (exit $ac_status); } && { |
| 17835 | test -z "$ac_c_werror_flag" || |
| 17836 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17837 | } && test -s conftest$ac_exeext && |
| 17838 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17839 | |
| 17840 | cat >>confdefs.h <<\_ACEOF |
| 17841 | #define HAVE_INET_ATON 1 |
| 17842 | _ACEOF |
| 17843 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17844 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17845 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17846 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17847 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17848 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17849 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17850 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17851 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17852 | |
| 17853 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17854 | |
| 17855 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17856 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17857 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17858 | { echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 17859 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17860 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17861 | /* confdefs.h. */ |
| 17862 | _ACEOF |
| 17863 | cat confdefs.h >>conftest.$ac_ext |
| 17864 | cat >>conftest.$ac_ext <<_ACEOF |
| 17865 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17866 | |
| 17867 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 17868 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17869 | #include <sys/socket.h> |
| 17870 | #include <netinet/in.h> |
| 17871 | #include <arpa/inet.h> |
| 17872 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17873 | int |
| 17874 | main () |
| 17875 | { |
| 17876 | void* p = inet_pton |
| 17877 | ; |
| 17878 | return 0; |
| 17879 | } |
| 17880 | _ACEOF |
| 17881 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17882 | if { (ac_try="$ac_compile" |
| 17883 | case "(($ac_try" in |
| 17884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17885 | *) ac_try_echo=$ac_try;; |
| 17886 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17888 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17889 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17890 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17891 | rm -f conftest.er1 |
| 17892 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17894 | (exit $ac_status); } && { |
| 17895 | test -z "$ac_c_werror_flag" || |
| 17896 | test ! -s conftest.err |
| 17897 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17898 | |
| 17899 | cat >>confdefs.h <<\_ACEOF |
| 17900 | #define HAVE_INET_PTON 1 |
| 17901 | _ACEOF |
| 17902 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17903 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17904 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17905 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17906 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17908 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17909 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17910 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17911 | |
| 17912 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17913 | |
| 17914 | 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] | 17915 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 17916 | # 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^] | 17917 | { echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 17918 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17919 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17920 | /* confdefs.h. */ |
| 17921 | _ACEOF |
| 17922 | cat confdefs.h >>conftest.$ac_ext |
| 17923 | cat >>conftest.$ac_ext <<_ACEOF |
| 17924 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17925 | |
| 17926 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 17927 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 17928 | #ifdef HAVE_GRP_H |
| 17929 | #include <grp.h> |
| 17930 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17931 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17932 | int |
| 17933 | main () |
| 17934 | { |
| 17935 | void* p = setgroups |
| 17936 | ; |
| 17937 | return 0; |
| 17938 | } |
| 17939 | _ACEOF |
| 17940 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17941 | if { (ac_try="$ac_compile" |
| 17942 | case "(($ac_try" in |
| 17943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17944 | *) ac_try_echo=$ac_try;; |
| 17945 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17947 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17948 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17950 | rm -f conftest.er1 |
| 17951 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17953 | (exit $ac_status); } && { |
| 17954 | test -z "$ac_c_werror_flag" || |
| 17955 | test ! -s conftest.err |
| 17956 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17957 | |
| 17958 | cat >>confdefs.h <<\_ACEOF |
| 17959 | #define HAVE_SETGROUPS 1 |
| 17960 | _ACEOF |
| 17961 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17962 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17963 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17964 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17965 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17967 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17968 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17969 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17970 | |
| 17971 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17972 | |
| 17973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17974 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17975 | # check for openpty and forkpty |
| 17976 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17977 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17978 | for ac_func in openpty |
| 17979 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 17980 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17981 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17982 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17983 | 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^] | 17984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17985 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17986 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17987 | /* confdefs.h. */ |
| 17988 | _ACEOF |
| 17989 | cat confdefs.h >>conftest.$ac_ext |
| 17990 | cat >>conftest.$ac_ext <<_ACEOF |
| 17991 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17992 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17993 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17994 | #define $ac_func innocuous_$ac_func |
| 17995 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17996 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17997 | which can conflict with char $ac_func (); below. |
| 17998 | 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] | 17999 | <limits.h> exists even on freestanding compilers. */ |
| 18000 | |
| 18001 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18002 | # include <limits.h> |
| 18003 | #else |
| 18004 | # include <assert.h> |
| 18005 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18006 | |
| 18007 | #undef $ac_func |
| 18008 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18009 | /* Override any GCC internal prototype to avoid an error. |
| 18010 | Use char because int might match the return type of a GCC |
| 18011 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18012 | #ifdef __cplusplus |
| 18013 | extern "C" |
| 18014 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18015 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18016 | /* The GNU C library defines this for functions which it implements |
| 18017 | to always fail with ENOSYS. Some functions are actually named |
| 18018 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18019 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18020 | choke me |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18021 | #endif |
| 18022 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18023 | int |
| 18024 | main () |
| 18025 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18026 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18027 | ; |
| 18028 | return 0; |
| 18029 | } |
| 18030 | _ACEOF |
| 18031 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18032 | if { (ac_try="$ac_link" |
| 18033 | case "(($ac_try" in |
| 18034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18035 | *) ac_try_echo=$ac_try;; |
| 18036 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18038 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18039 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18041 | rm -f conftest.er1 |
| 18042 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18044 | (exit $ac_status); } && { |
| 18045 | test -z "$ac_c_werror_flag" || |
| 18046 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18047 | } && test -s conftest$ac_exeext && |
| 18048 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18049 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18050 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18051 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18053 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18054 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18055 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18056 | |
| 18057 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18058 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18059 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18060 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18061 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18062 | echo "${ECHO_T}$ac_res" >&6; } |
| 18063 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18064 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18065 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18066 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18067 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18068 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18069 | { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 18070 | 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] | 18071 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18073 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18074 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18075 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18076 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18077 | /* confdefs.h. */ |
| 18078 | _ACEOF |
| 18079 | cat confdefs.h >>conftest.$ac_ext |
| 18080 | cat >>conftest.$ac_ext <<_ACEOF |
| 18081 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18082 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18083 | /* Override any GCC internal prototype to avoid an error. |
| 18084 | Use char because int might match the return type of a GCC |
| 18085 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18086 | #ifdef __cplusplus |
| 18087 | extern "C" |
| 18088 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18089 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18090 | int |
| 18091 | main () |
| 18092 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18093 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18094 | ; |
| 18095 | return 0; |
| 18096 | } |
| 18097 | _ACEOF |
| 18098 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18099 | if { (ac_try="$ac_link" |
| 18100 | case "(($ac_try" in |
| 18101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18102 | *) ac_try_echo=$ac_try;; |
| 18103 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18105 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18106 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18108 | rm -f conftest.er1 |
| 18109 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18111 | (exit $ac_status); } && { |
| 18112 | test -z "$ac_c_werror_flag" || |
| 18113 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18114 | } && test -s conftest$ac_exeext && |
| 18115 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18116 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18117 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18118 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18120 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18121 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18122 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18123 | |
| 18124 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18125 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18126 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18127 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18128 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 18129 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } |
| 18130 | if test $ac_cv_lib_util_openpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18131 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18132 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18133 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18134 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18135 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18136 | { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 18137 | 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] | 18138 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18140 | else |
| 18141 | ac_check_lib_save_LIBS=$LIBS |
| 18142 | LIBS="-lbsd $LIBS" |
| 18143 | cat >conftest.$ac_ext <<_ACEOF |
| 18144 | /* confdefs.h. */ |
| 18145 | _ACEOF |
| 18146 | cat confdefs.h >>conftest.$ac_ext |
| 18147 | cat >>conftest.$ac_ext <<_ACEOF |
| 18148 | /* end confdefs.h. */ |
| 18149 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18150 | /* Override any GCC internal prototype to avoid an error. |
| 18151 | Use char because int might match the return type of a GCC |
| 18152 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18153 | #ifdef __cplusplus |
| 18154 | extern "C" |
| 18155 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18156 | char openpty (); |
| 18157 | int |
| 18158 | main () |
| 18159 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18160 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18161 | ; |
| 18162 | return 0; |
| 18163 | } |
| 18164 | _ACEOF |
| 18165 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18166 | if { (ac_try="$ac_link" |
| 18167 | case "(($ac_try" in |
| 18168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18169 | *) ac_try_echo=$ac_try;; |
| 18170 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18172 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18173 | ac_status=$? |
| 18174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18175 | rm -f conftest.er1 |
| 18176 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18178 | (exit $ac_status); } && { |
| 18179 | test -z "$ac_c_werror_flag" || |
| 18180 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18181 | } && test -s conftest$ac_exeext && |
| 18182 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18183 | ac_cv_lib_bsd_openpty=yes |
| 18184 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18185 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18187 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18188 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18189 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18190 | |
| 18191 | 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] | 18192 | conftest$ac_exeext conftest.$ac_ext |
| 18193 | LIBS=$ac_check_lib_save_LIBS |
| 18194 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18195 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 18196 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; } |
| 18197 | if test $ac_cv_lib_bsd_openpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18198 | cat >>confdefs.h <<\_ACEOF |
| 18199 | #define HAVE_OPENPTY 1 |
| 18200 | _ACEOF |
| 18201 | LIBS="$LIBS -lbsd" |
| 18202 | fi |
| 18203 | |
| 18204 | |
| 18205 | fi |
| 18206 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18207 | |
| 18208 | fi |
| 18209 | done |
| 18210 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18211 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18212 | for ac_func in forkpty |
| 18213 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18214 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18215 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18216 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18217 | 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^] | 18218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18219 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18220 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18221 | /* confdefs.h. */ |
| 18222 | _ACEOF |
| 18223 | cat confdefs.h >>conftest.$ac_ext |
| 18224 | cat >>conftest.$ac_ext <<_ACEOF |
| 18225 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18226 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18227 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18228 | #define $ac_func innocuous_$ac_func |
| 18229 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18230 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18231 | which can conflict with char $ac_func (); below. |
| 18232 | 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] | 18233 | <limits.h> exists even on freestanding compilers. */ |
| 18234 | |
| 18235 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18236 | # include <limits.h> |
| 18237 | #else |
| 18238 | # include <assert.h> |
| 18239 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18240 | |
| 18241 | #undef $ac_func |
| 18242 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18243 | /* Override any GCC internal prototype to avoid an error. |
| 18244 | Use char because int might match the return type of a GCC |
| 18245 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18246 | #ifdef __cplusplus |
| 18247 | extern "C" |
| 18248 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18249 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18250 | /* The GNU C library defines this for functions which it implements |
| 18251 | to always fail with ENOSYS. Some functions are actually named |
| 18252 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18253 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18254 | choke me |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18255 | #endif |
| 18256 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18257 | int |
| 18258 | main () |
| 18259 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18260 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18261 | ; |
| 18262 | return 0; |
| 18263 | } |
| 18264 | _ACEOF |
| 18265 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18266 | if { (ac_try="$ac_link" |
| 18267 | case "(($ac_try" in |
| 18268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18269 | *) ac_try_echo=$ac_try;; |
| 18270 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18272 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18273 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18275 | rm -f conftest.er1 |
| 18276 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18278 | (exit $ac_status); } && { |
| 18279 | test -z "$ac_c_werror_flag" || |
| 18280 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18281 | } && test -s conftest$ac_exeext && |
| 18282 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18283 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18284 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18285 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18287 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18288 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18289 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18290 | |
| 18291 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18292 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18293 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18294 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18295 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18296 | echo "${ECHO_T}$ac_res" >&6; } |
| 18297 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18298 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18299 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18300 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18301 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18302 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18303 | { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 18304 | 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] | 18305 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18307 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18308 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18309 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18310 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18311 | /* confdefs.h. */ |
| 18312 | _ACEOF |
| 18313 | cat confdefs.h >>conftest.$ac_ext |
| 18314 | cat >>conftest.$ac_ext <<_ACEOF |
| 18315 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18316 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18317 | /* Override any GCC internal prototype to avoid an error. |
| 18318 | Use char because int might match the return type of a GCC |
| 18319 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18320 | #ifdef __cplusplus |
| 18321 | extern "C" |
| 18322 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18323 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18324 | int |
| 18325 | main () |
| 18326 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18327 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18328 | ; |
| 18329 | return 0; |
| 18330 | } |
| 18331 | _ACEOF |
| 18332 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18333 | if { (ac_try="$ac_link" |
| 18334 | case "(($ac_try" in |
| 18335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18336 | *) ac_try_echo=$ac_try;; |
| 18337 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18339 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18340 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18342 | rm -f conftest.er1 |
| 18343 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18345 | (exit $ac_status); } && { |
| 18346 | test -z "$ac_c_werror_flag" || |
| 18347 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18348 | } && test -s conftest$ac_exeext && |
| 18349 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18350 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18351 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18352 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18354 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18355 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18356 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18357 | |
| 18358 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18359 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18360 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18361 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18362 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 18363 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; } |
| 18364 | if test $ac_cv_lib_util_forkpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18365 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18366 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18367 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18368 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18369 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18370 | { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 18371 | 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] | 18372 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18374 | else |
| 18375 | ac_check_lib_save_LIBS=$LIBS |
| 18376 | LIBS="-lbsd $LIBS" |
| 18377 | cat >conftest.$ac_ext <<_ACEOF |
| 18378 | /* confdefs.h. */ |
| 18379 | _ACEOF |
| 18380 | cat confdefs.h >>conftest.$ac_ext |
| 18381 | cat >>conftest.$ac_ext <<_ACEOF |
| 18382 | /* end confdefs.h. */ |
| 18383 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18384 | /* Override any GCC internal prototype to avoid an error. |
| 18385 | Use char because int might match the return type of a GCC |
| 18386 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18387 | #ifdef __cplusplus |
| 18388 | extern "C" |
| 18389 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18390 | char forkpty (); |
| 18391 | int |
| 18392 | main () |
| 18393 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18394 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18395 | ; |
| 18396 | return 0; |
| 18397 | } |
| 18398 | _ACEOF |
| 18399 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18400 | if { (ac_try="$ac_link" |
| 18401 | case "(($ac_try" in |
| 18402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18403 | *) ac_try_echo=$ac_try;; |
| 18404 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18406 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18407 | ac_status=$? |
| 18408 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18409 | rm -f conftest.er1 |
| 18410 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18412 | (exit $ac_status); } && { |
| 18413 | test -z "$ac_c_werror_flag" || |
| 18414 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18415 | } && test -s conftest$ac_exeext && |
| 18416 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18417 | ac_cv_lib_bsd_forkpty=yes |
| 18418 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18419 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18421 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18422 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18423 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18424 | |
| 18425 | 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] | 18426 | conftest$ac_exeext conftest.$ac_ext |
| 18427 | LIBS=$ac_check_lib_save_LIBS |
| 18428 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18429 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 18430 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; } |
| 18431 | if test $ac_cv_lib_bsd_forkpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18432 | cat >>confdefs.h <<\_ACEOF |
| 18433 | #define HAVE_FORKPTY 1 |
| 18434 | _ACEOF |
| 18435 | LIBS="$LIBS -lbsd" |
| 18436 | fi |
| 18437 | |
| 18438 | |
| 18439 | fi |
| 18440 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18441 | |
| 18442 | fi |
| 18443 | done |
| 18444 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18445 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 18446 | # Stuff for expat. |
| 18447 | |
| 18448 | for ac_func in memmove |
| 18449 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18450 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18451 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18452 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 18453 | 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^] | 18454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 18455 | else |
| 18456 | cat >conftest.$ac_ext <<_ACEOF |
| 18457 | /* confdefs.h. */ |
| 18458 | _ACEOF |
| 18459 | cat confdefs.h >>conftest.$ac_ext |
| 18460 | cat >>conftest.$ac_ext <<_ACEOF |
| 18461 | /* end confdefs.h. */ |
| 18462 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18463 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18464 | #define $ac_func innocuous_$ac_func |
| 18465 | |
| 18466 | /* System header to define __stub macros and hopefully few prototypes, |
| 18467 | which can conflict with char $ac_func (); below. |
| 18468 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18469 | <limits.h> exists even on freestanding compilers. */ |
| 18470 | |
| 18471 | #ifdef __STDC__ |
| 18472 | # include <limits.h> |
| 18473 | #else |
| 18474 | # include <assert.h> |
| 18475 | #endif |
| 18476 | |
| 18477 | #undef $ac_func |
| 18478 | |
| 18479 | /* Override any GCC internal prototype to avoid an error. |
| 18480 | Use char because int might match the return type of a GCC |
| 18481 | builtin and then its argument prototype would still apply. */ |
| 18482 | #ifdef __cplusplus |
| 18483 | extern "C" |
| 18484 | #endif |
| 18485 | char $ac_func (); |
| 18486 | /* The GNU C library defines this for functions which it implements |
| 18487 | to always fail with ENOSYS. Some functions are actually named |
| 18488 | something starting with __ and the normal name is an alias. */ |
| 18489 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18490 | choke me |
| 18491 | #endif |
| 18492 | |
| 18493 | int |
| 18494 | main () |
| 18495 | { |
| 18496 | return $ac_func (); |
| 18497 | ; |
| 18498 | return 0; |
| 18499 | } |
| 18500 | _ACEOF |
| 18501 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18502 | if { (ac_try="$ac_link" |
| 18503 | case "(($ac_try" in |
| 18504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18505 | *) ac_try_echo=$ac_try;; |
| 18506 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 18508 | (eval "$ac_link") 2>conftest.er1 |
| 18509 | ac_status=$? |
| 18510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18511 | rm -f conftest.er1 |
| 18512 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 18514 | (exit $ac_status); } && { |
| 18515 | test -z "$ac_c_werror_flag" || |
| 18516 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18517 | } && test -s conftest$ac_exeext && |
| 18518 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 18519 | eval "$as_ac_var=yes" |
| 18520 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18521 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 18522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18523 | |
| 18524 | eval "$as_ac_var=no" |
| 18525 | fi |
| 18526 | |
| 18527 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 18528 | conftest$ac_exeext conftest.$ac_ext |
| 18529 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18530 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18531 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18532 | echo "${ECHO_T}$ac_res" >&6; } |
| 18533 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 18534 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18535 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 18536 | _ACEOF |
| 18537 | |
| 18538 | fi |
| 18539 | done |
| 18540 | |
| 18541 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18542 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18543 | |
| 18544 | |
| 18545 | |
| 18546 | |
| 18547 | |
| 18548 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18549 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 18550 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18551 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18552 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18553 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18554 | 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^] | 18555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18556 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18557 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18558 | /* confdefs.h. */ |
| 18559 | _ACEOF |
| 18560 | cat confdefs.h >>conftest.$ac_ext |
| 18561 | cat >>conftest.$ac_ext <<_ACEOF |
| 18562 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18563 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18564 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18565 | #define $ac_func innocuous_$ac_func |
| 18566 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18567 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18568 | which can conflict with char $ac_func (); below. |
| 18569 | 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] | 18570 | <limits.h> exists even on freestanding compilers. */ |
| 18571 | |
| 18572 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18573 | # include <limits.h> |
| 18574 | #else |
| 18575 | # include <assert.h> |
| 18576 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18577 | |
| 18578 | #undef $ac_func |
| 18579 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18580 | /* Override any GCC internal prototype to avoid an error. |
| 18581 | Use char because int might match the return type of a GCC |
| 18582 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18583 | #ifdef __cplusplus |
| 18584 | extern "C" |
| 18585 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18586 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18587 | /* The GNU C library defines this for functions which it implements |
| 18588 | to always fail with ENOSYS. Some functions are actually named |
| 18589 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18590 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18591 | choke me |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18592 | #endif |
| 18593 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18594 | int |
| 18595 | main () |
| 18596 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18597 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18598 | ; |
| 18599 | return 0; |
| 18600 | } |
| 18601 | _ACEOF |
| 18602 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18603 | if { (ac_try="$ac_link" |
| 18604 | case "(($ac_try" in |
| 18605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18606 | *) ac_try_echo=$ac_try;; |
| 18607 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18609 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18610 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18612 | rm -f conftest.er1 |
| 18613 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18615 | (exit $ac_status); } && { |
| 18616 | test -z "$ac_c_werror_flag" || |
| 18617 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18618 | } && test -s conftest$ac_exeext && |
| 18619 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18620 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18621 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18622 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18623 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18624 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18625 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18626 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18627 | |
| 18628 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18629 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18630 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18631 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18632 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18633 | echo "${ECHO_T}$ac_res" >&6; } |
| 18634 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18635 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18636 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18637 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18638 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18639 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18640 | done |
| 18641 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18642 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18643 | |
| 18644 | |
| 18645 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 18646 | for ac_func in dup2 getcwd strdup |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18647 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18648 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18649 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18650 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18651 | 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^] | 18652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18653 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18654 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18655 | /* confdefs.h. */ |
| 18656 | _ACEOF |
| 18657 | cat confdefs.h >>conftest.$ac_ext |
| 18658 | cat >>conftest.$ac_ext <<_ACEOF |
| 18659 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18660 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18661 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18662 | #define $ac_func innocuous_$ac_func |
| 18663 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18664 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18665 | which can conflict with char $ac_func (); below. |
| 18666 | 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] | 18667 | <limits.h> exists even on freestanding compilers. */ |
| 18668 | |
| 18669 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18670 | # include <limits.h> |
| 18671 | #else |
| 18672 | # include <assert.h> |
| 18673 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18674 | |
| 18675 | #undef $ac_func |
| 18676 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18677 | /* Override any GCC internal prototype to avoid an error. |
| 18678 | Use char because int might match the return type of a GCC |
| 18679 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18680 | #ifdef __cplusplus |
| 18681 | extern "C" |
| 18682 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18683 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18684 | /* The GNU C library defines this for functions which it implements |
| 18685 | to always fail with ENOSYS. Some functions are actually named |
| 18686 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18687 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18688 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18689 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18690 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18691 | int |
| 18692 | main () |
| 18693 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18694 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18695 | ; |
| 18696 | return 0; |
| 18697 | } |
| 18698 | _ACEOF |
| 18699 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18700 | if { (ac_try="$ac_link" |
| 18701 | case "(($ac_try" in |
| 18702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18703 | *) ac_try_echo=$ac_try;; |
| 18704 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18706 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18707 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18709 | rm -f conftest.er1 |
| 18710 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18712 | (exit $ac_status); } && { |
| 18713 | test -z "$ac_c_werror_flag" || |
| 18714 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18715 | } && test -s conftest$ac_exeext && |
| 18716 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18717 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18718 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18719 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18721 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18722 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18723 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18724 | |
| 18725 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18726 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18727 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18728 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18729 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18730 | echo "${ECHO_T}$ac_res" >&6; } |
| 18731 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18732 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18733 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18734 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18735 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18736 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18737 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18738 | *" $ac_func.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18739 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 18740 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18741 | esac |
| 18742 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18743 | fi |
| 18744 | done |
| 18745 | |
| 18746 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18747 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18748 | for ac_func in getpgrp |
| 18749 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18750 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18751 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18752 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18753 | 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^] | 18754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18755 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18756 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18757 | /* confdefs.h. */ |
| 18758 | _ACEOF |
| 18759 | cat confdefs.h >>conftest.$ac_ext |
| 18760 | cat >>conftest.$ac_ext <<_ACEOF |
| 18761 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18762 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18763 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18764 | #define $ac_func innocuous_$ac_func |
| 18765 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18766 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18767 | which can conflict with char $ac_func (); below. |
| 18768 | 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] | 18769 | <limits.h> exists even on freestanding compilers. */ |
| 18770 | |
| 18771 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18772 | # include <limits.h> |
| 18773 | #else |
| 18774 | # include <assert.h> |
| 18775 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18776 | |
| 18777 | #undef $ac_func |
| 18778 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18779 | /* Override any GCC internal prototype to avoid an error. |
| 18780 | Use char because int might match the return type of a GCC |
| 18781 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18782 | #ifdef __cplusplus |
| 18783 | extern "C" |
| 18784 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18785 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18786 | /* The GNU C library defines this for functions which it implements |
| 18787 | to always fail with ENOSYS. Some functions are actually named |
| 18788 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18789 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18790 | choke me |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18791 | #endif |
| 18792 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18793 | int |
| 18794 | main () |
| 18795 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18796 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18797 | ; |
| 18798 | return 0; |
| 18799 | } |
| 18800 | _ACEOF |
| 18801 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18802 | if { (ac_try="$ac_link" |
| 18803 | case "(($ac_try" in |
| 18804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18805 | *) ac_try_echo=$ac_try;; |
| 18806 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18808 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18809 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18811 | rm -f conftest.er1 |
| 18812 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18814 | (exit $ac_status); } && { |
| 18815 | test -z "$ac_c_werror_flag" || |
| 18816 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18817 | } && test -s conftest$ac_exeext && |
| 18818 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18819 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18820 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18821 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18823 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18824 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18825 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18826 | |
| 18827 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18828 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18829 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18830 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18831 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18832 | echo "${ECHO_T}$ac_res" >&6; } |
| 18833 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18834 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18835 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18836 | _ACEOF |
| 18837 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18838 | /* confdefs.h. */ |
| 18839 | _ACEOF |
| 18840 | cat confdefs.h >>conftest.$ac_ext |
| 18841 | cat >>conftest.$ac_ext <<_ACEOF |
| 18842 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18843 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18844 | int |
| 18845 | main () |
| 18846 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18847 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18848 | ; |
| 18849 | return 0; |
| 18850 | } |
| 18851 | _ACEOF |
| 18852 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18853 | if { (ac_try="$ac_compile" |
| 18854 | case "(($ac_try" in |
| 18855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18856 | *) ac_try_echo=$ac_try;; |
| 18857 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18859 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18860 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18861 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18862 | rm -f conftest.er1 |
| 18863 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18865 | (exit $ac_status); } && { |
| 18866 | test -z "$ac_c_werror_flag" || |
| 18867 | test ! -s conftest.err |
| 18868 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18869 | |
| 18870 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18871 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18872 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18874 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 18875 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18876 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18878 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18879 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18880 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18881 | |
| 18882 | 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] | 18883 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18884 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18885 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18886 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18887 | |
| 18888 | for ac_func in setpgrp |
| 18889 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18890 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18891 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18892 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18893 | 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^] | 18894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18895 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18896 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18897 | /* confdefs.h. */ |
| 18898 | _ACEOF |
| 18899 | cat confdefs.h >>conftest.$ac_ext |
| 18900 | cat >>conftest.$ac_ext <<_ACEOF |
| 18901 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18902 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18903 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18904 | #define $ac_func innocuous_$ac_func |
| 18905 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18906 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18907 | which can conflict with char $ac_func (); below. |
| 18908 | 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] | 18909 | <limits.h> exists even on freestanding compilers. */ |
| 18910 | |
| 18911 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18912 | # include <limits.h> |
| 18913 | #else |
| 18914 | # include <assert.h> |
| 18915 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18916 | |
| 18917 | #undef $ac_func |
| 18918 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18919 | /* Override any GCC internal prototype to avoid an error. |
| 18920 | Use char because int might match the return type of a GCC |
| 18921 | builtin and then its argument prototype would still apply. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18922 | #ifdef __cplusplus |
| 18923 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18924 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18925 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18926 | /* The GNU C library defines this for functions which it implements |
| 18927 | to always fail with ENOSYS. Some functions are actually named |
| 18928 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18929 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18930 | choke me |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18931 | #endif |
| 18932 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18933 | int |
| 18934 | main () |
| 18935 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18936 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18937 | ; |
| 18938 | return 0; |
| 18939 | } |
| 18940 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18941 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18942 | if { (ac_try="$ac_link" |
| 18943 | case "(($ac_try" in |
| 18944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18945 | *) ac_try_echo=$ac_try;; |
| 18946 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18948 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18949 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18951 | rm -f conftest.er1 |
| 18952 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18954 | (exit $ac_status); } && { |
| 18955 | test -z "$ac_c_werror_flag" || |
| 18956 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18957 | } && test -s conftest$ac_exeext && |
| 18958 | $as_test_x conftest$ac_exeext; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18959 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18960 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18961 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18963 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18964 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18965 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18966 | |
| 18967 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18968 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18969 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18970 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18971 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18972 | echo "${ECHO_T}$ac_res" >&6; } |
| 18973 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18974 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18975 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18976 | _ACEOF |
| 18977 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18978 | /* confdefs.h. */ |
| 18979 | _ACEOF |
| 18980 | cat confdefs.h >>conftest.$ac_ext |
| 18981 | cat >>conftest.$ac_ext <<_ACEOF |
| 18982 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18983 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18984 | int |
| 18985 | main () |
| 18986 | { |
| 18987 | setpgrp(0,0); |
| 18988 | ; |
| 18989 | return 0; |
| 18990 | } |
| 18991 | _ACEOF |
| 18992 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18993 | if { (ac_try="$ac_compile" |
| 18994 | case "(($ac_try" in |
| 18995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18996 | *) ac_try_echo=$ac_try;; |
| 18997 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 18998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18999 | (eval "$ac_compile") 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19000 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19002 | rm -f conftest.er1 |
| 19003 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19005 | (exit $ac_status); } && { |
| 19006 | test -z "$ac_c_werror_flag" || |
| 19007 | test ! -s conftest.err |
| 19008 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19009 | |
| 19010 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19011 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19012 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 19013 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19014 | |
| 19015 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19016 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19018 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19019 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 19020 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19021 | |
| 19022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19023 | |
| 19024 | fi |
| 19025 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 19026 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19027 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 19028 | for ac_func in gettimeofday |
| 19029 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19030 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19031 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19032 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19033 | 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^] | 19034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19035 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19036 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19037 | /* confdefs.h. */ |
| 19038 | _ACEOF |
| 19039 | cat confdefs.h >>conftest.$ac_ext |
| 19040 | cat >>conftest.$ac_ext <<_ACEOF |
| 19041 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19042 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19043 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19044 | #define $ac_func innocuous_$ac_func |
| 19045 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19046 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19047 | which can conflict with char $ac_func (); below. |
| 19048 | 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] | 19049 | <limits.h> exists even on freestanding compilers. */ |
| 19050 | |
| 19051 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19052 | # include <limits.h> |
| 19053 | #else |
| 19054 | # include <assert.h> |
| 19055 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19056 | |
| 19057 | #undef $ac_func |
| 19058 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19059 | /* Override any GCC internal prototype to avoid an error. |
| 19060 | Use char because int might match the return type of a GCC |
| 19061 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19062 | #ifdef __cplusplus |
| 19063 | extern "C" |
| 19064 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19065 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19066 | /* The GNU C library defines this for functions which it implements |
| 19067 | to always fail with ENOSYS. Some functions are actually named |
| 19068 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19069 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19070 | choke me |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19071 | #endif |
| 19072 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19073 | int |
| 19074 | main () |
| 19075 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19076 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19077 | ; |
| 19078 | return 0; |
| 19079 | } |
| 19080 | _ACEOF |
| 19081 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19082 | if { (ac_try="$ac_link" |
| 19083 | case "(($ac_try" in |
| 19084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19085 | *) ac_try_echo=$ac_try;; |
| 19086 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19088 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19089 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19090 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19091 | rm -f conftest.er1 |
| 19092 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19094 | (exit $ac_status); } && { |
| 19095 | test -z "$ac_c_werror_flag" || |
| 19096 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19097 | } && test -s conftest$ac_exeext && |
| 19098 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19099 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19100 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19101 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19103 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19104 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19105 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19106 | |
| 19107 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19108 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19109 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19110 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19111 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19112 | echo "${ECHO_T}$ac_res" >&6; } |
| 19113 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19114 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19115 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19116 | _ACEOF |
| 19117 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19118 | /* confdefs.h. */ |
| 19119 | _ACEOF |
| 19120 | cat confdefs.h >>conftest.$ac_ext |
| 19121 | cat >>conftest.$ac_ext <<_ACEOF |
| 19122 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19123 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19124 | int |
| 19125 | main () |
| 19126 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19127 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19128 | ; |
| 19129 | return 0; |
| 19130 | } |
| 19131 | _ACEOF |
| 19132 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19133 | if { (ac_try="$ac_compile" |
| 19134 | case "(($ac_try" in |
| 19135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19136 | *) ac_try_echo=$ac_try;; |
| 19137 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19139 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19140 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19142 | rm -f conftest.er1 |
| 19143 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19145 | (exit $ac_status); } && { |
| 19146 | test -z "$ac_c_werror_flag" || |
| 19147 | test ! -s conftest.err |
| 19148 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19149 | : |
| 19150 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19151 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19153 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19154 | |
| 19155 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19156 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19157 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19158 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19159 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19160 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19161 | |
| 19162 | 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] | 19163 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19164 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 19165 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19166 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19167 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19168 | { echo "$as_me:$LINENO: checking for major" >&5 |
| 19169 | echo $ECHO_N "checking for major... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19170 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19171 | /* confdefs.h. */ |
| 19172 | _ACEOF |
| 19173 | cat confdefs.h >>conftest.$ac_ext |
| 19174 | cat >>conftest.$ac_ext <<_ACEOF |
| 19175 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19176 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 19177 | #if defined(MAJOR_IN_MKDEV) |
| 19178 | #include <sys/mkdev.h> |
| 19179 | #elif defined(MAJOR_IN_SYSMACROS) |
| 19180 | #include <sys/sysmacros.h> |
| 19181 | #else |
| 19182 | #include <sys/types.h> |
| 19183 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19184 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19185 | int |
| 19186 | main () |
| 19187 | { |
| 19188 | |
| 19189 | makedev(major(0),minor(0)); |
| 19190 | |
| 19191 | ; |
| 19192 | return 0; |
| 19193 | } |
| 19194 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 19195 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19196 | if { (ac_try="$ac_link" |
| 19197 | case "(($ac_try" in |
| 19198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19199 | *) ac_try_echo=$ac_try;; |
| 19200 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19202 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19203 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19204 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19205 | rm -f conftest.er1 |
| 19206 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19208 | (exit $ac_status); } && { |
| 19209 | test -z "$ac_c_werror_flag" || |
| 19210 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19211 | } && test -s conftest$ac_exeext && |
| 19212 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19213 | |
| 19214 | |
| 19215 | cat >>confdefs.h <<\_ACEOF |
| 19216 | #define HAVE_DEVICE_MACROS 1 |
| 19217 | _ACEOF |
| 19218 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19219 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19220 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19221 | |
| 19222 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19223 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19225 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19226 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19227 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19228 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19229 | |
| 19230 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19231 | |
| 19232 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19233 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19234 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19235 | # 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] | 19236 | # for [no]getaddrinfo in netdb.h. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19237 | { echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 19238 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19239 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19240 | /* confdefs.h. */ |
| 19241 | _ACEOF |
| 19242 | cat confdefs.h >>conftest.$ac_ext |
| 19243 | cat >>conftest.$ac_ext <<_ACEOF |
| 19244 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19245 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 19246 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19247 | #include <sys/socket.h> |
| 19248 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 19249 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19250 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19251 | int |
| 19252 | main () |
| 19253 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19254 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19255 | getaddrinfo(NULL, NULL, NULL, NULL); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19256 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19257 | ; |
| 19258 | return 0; |
| 19259 | } |
| 19260 | _ACEOF |
| 19261 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19262 | if { (ac_try="$ac_link" |
| 19263 | case "(($ac_try" in |
| 19264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19265 | *) ac_try_echo=$ac_try;; |
| 19266 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19268 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19269 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19270 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19271 | rm -f conftest.er1 |
| 19272 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19274 | (exit $ac_status); } && { |
| 19275 | test -z "$ac_c_werror_flag" || |
| 19276 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19277 | } && test -s conftest$ac_exeext && |
| 19278 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19279 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19280 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19281 | echo "${ECHO_T}yes" >&6; } |
| 19282 | { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 19283 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; } |
| 19284 | if test "$cross_compiling" = yes; then |
| 19285 | { echo "$as_me:$LINENO: result: buggy" >&5 |
| 19286 | echo "${ECHO_T}buggy" >&6; } |
| 19287 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19288 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19289 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19290 | /* confdefs.h. */ |
| 19291 | _ACEOF |
| 19292 | cat confdefs.h >>conftest.$ac_ext |
| 19293 | cat >>conftest.$ac_ext <<_ACEOF |
| 19294 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19295 | |
| 19296 | #include <sys/types.h> |
| 19297 | #include <netdb.h> |
| 19298 | #include <string.h> |
| 19299 | #include <sys/socket.h> |
| 19300 | #include <netinet/in.h> |
| 19301 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19302 | main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19303 | { |
| 19304 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 19305 | struct addrinfo hints, *ai, *aitop; |
| 19306 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 19307 | |
| 19308 | for (passive = 0; passive <= 1; passive++) { |
| 19309 | memset(&hints, 0, sizeof(hints)); |
| 19310 | hints.ai_family = AF_UNSPEC; |
| 19311 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 19312 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 19313 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19314 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 19315 | (void)gai_strerror(gaierr); |
| 19316 | goto bad; |
| 19317 | } |
| 19318 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 19319 | if (ai->ai_addr == NULL || |
| 19320 | ai->ai_addrlen == 0 || |
| 19321 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 19322 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 19323 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 19324 | goto bad; |
| 19325 | } |
| 19326 | switch (ai->ai_family) { |
| 19327 | case AF_INET: |
| 19328 | if (strcmp(strport, "54321") != 0) { |
| 19329 | goto bad; |
| 19330 | } |
| 19331 | if (passive) { |
| 19332 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 19333 | goto bad; |
| 19334 | } |
| 19335 | } else { |
| 19336 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 19337 | goto bad; |
| 19338 | } |
| 19339 | } |
| 19340 | inet4++; |
| 19341 | break; |
| 19342 | case AF_INET6: |
| 19343 | if (strcmp(strport, "54321") != 0) { |
| 19344 | goto bad; |
| 19345 | } |
| 19346 | if (passive) { |
| 19347 | if (strcmp(straddr, "::") != 0) { |
| 19348 | goto bad; |
| 19349 | } |
| 19350 | } else { |
| 19351 | if (strcmp(straddr, "::1") != 0) { |
| 19352 | goto bad; |
| 19353 | } |
| 19354 | } |
| 19355 | inet6++; |
| 19356 | break; |
| 19357 | case AF_UNSPEC: |
| 19358 | goto bad; |
| 19359 | break; |
| 19360 | default: |
| 19361 | /* another family support? */ |
| 19362 | break; |
| 19363 | } |
| 19364 | } |
| 19365 | } |
| 19366 | |
| 19367 | if (!(inet4 == 0 || inet4 == 2)) |
| 19368 | goto bad; |
| 19369 | if (!(inet6 == 0 || inet6 == 2)) |
| 19370 | goto bad; |
| 19371 | |
| 19372 | if (aitop) |
| 19373 | freeaddrinfo(aitop); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19374 | exit(0); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19375 | |
| 19376 | bad: |
| 19377 | if (aitop) |
| 19378 | freeaddrinfo(aitop); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19379 | exit(1); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19380 | } |
| 19381 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19382 | _ACEOF |
| 19383 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19384 | if { (ac_try="$ac_link" |
| 19385 | case "(($ac_try" in |
| 19386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19387 | *) ac_try_echo=$ac_try;; |
| 19388 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19390 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19391 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19393 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19394 | { (case "(($ac_try" in |
| 19395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19396 | *) ac_try_echo=$ac_try;; |
| 19397 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19399 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19400 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19402 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19403 | { echo "$as_me:$LINENO: result: good" >&5 |
| 19404 | echo "${ECHO_T}good" >&6; } |
| 19405 | buggygetaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19406 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19407 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19408 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19410 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19411 | ( exit $ac_status ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19412 | { echo "$as_me:$LINENO: result: buggy" >&5 |
| 19413 | echo "${ECHO_T}buggy" >&6; } |
| 19414 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19415 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19416 | 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] | 19417 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19418 | |
| 19419 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19420 | else |
| 19421 | echo "$as_me: failed program was:" >&5 |
| 19422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19423 | |
| 19424 | |
| 19425 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19426 | echo "${ECHO_T}no" >&6; } |
| 19427 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19428 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19429 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19430 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19431 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19432 | conftest$ac_exeext conftest.$ac_ext |
| 19433 | |
| 19434 | if test "$buggygetaddrinfo" = "yes"; then |
| 19435 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19436 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 19437 | echo ' or you can specify "--disable-ipv6"'. |
| 19438 | exit 1 |
| 19439 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19440 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19441 | |
| 19442 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19443 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19444 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19445 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19446 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19447 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 19448 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19449 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19450 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19451 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19452 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19453 | 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^] | 19454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19455 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19456 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19457 | /* confdefs.h. */ |
| 19458 | _ACEOF |
| 19459 | cat confdefs.h >>conftest.$ac_ext |
| 19460 | cat >>conftest.$ac_ext <<_ACEOF |
| 19461 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19462 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19463 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19464 | #define $ac_func innocuous_$ac_func |
| 19465 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19466 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19467 | which can conflict with char $ac_func (); below. |
| 19468 | 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] | 19469 | <limits.h> exists even on freestanding compilers. */ |
| 19470 | |
| 19471 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19472 | # include <limits.h> |
| 19473 | #else |
| 19474 | # include <assert.h> |
| 19475 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19476 | |
| 19477 | #undef $ac_func |
| 19478 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19479 | /* Override any GCC internal prototype to avoid an error. |
| 19480 | Use char because int might match the return type of a GCC |
| 19481 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19482 | #ifdef __cplusplus |
| 19483 | extern "C" |
| 19484 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19485 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19486 | /* The GNU C library defines this for functions which it implements |
| 19487 | to always fail with ENOSYS. Some functions are actually named |
| 19488 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19489 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19490 | choke me |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19491 | #endif |
| 19492 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19493 | int |
| 19494 | main () |
| 19495 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19496 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19497 | ; |
| 19498 | return 0; |
| 19499 | } |
| 19500 | _ACEOF |
| 19501 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19502 | if { (ac_try="$ac_link" |
| 19503 | case "(($ac_try" in |
| 19504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19505 | *) ac_try_echo=$ac_try;; |
| 19506 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19508 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19509 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19511 | rm -f conftest.er1 |
| 19512 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19514 | (exit $ac_status); } && { |
| 19515 | test -z "$ac_c_werror_flag" || |
| 19516 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19517 | } && test -s conftest$ac_exeext && |
| 19518 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19519 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19520 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19521 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19523 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19524 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19525 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19526 | |
| 19527 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19528 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19529 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19530 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19531 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19532 | echo "${ECHO_T}$ac_res" >&6; } |
| 19533 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19534 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19535 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19536 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19537 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19538 | fi |
| 19539 | done |
| 19540 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19541 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19542 | # checks for structures |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19543 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 19544 | 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] | 19545 | if test "${ac_cv_header_time+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19547 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19548 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19549 | /* confdefs.h. */ |
| 19550 | _ACEOF |
| 19551 | cat confdefs.h >>conftest.$ac_ext |
| 19552 | cat >>conftest.$ac_ext <<_ACEOF |
| 19553 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19554 | #include <sys/types.h> |
| 19555 | #include <sys/time.h> |
| 19556 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19557 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19558 | int |
| 19559 | main () |
| 19560 | { |
| 19561 | if ((struct tm *) 0) |
| 19562 | return 0; |
| 19563 | ; |
| 19564 | return 0; |
| 19565 | } |
| 19566 | _ACEOF |
| 19567 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19568 | if { (ac_try="$ac_compile" |
| 19569 | case "(($ac_try" in |
| 19570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19571 | *) ac_try_echo=$ac_try;; |
| 19572 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19574 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19575 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19577 | rm -f conftest.er1 |
| 19578 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19580 | (exit $ac_status); } && { |
| 19581 | test -z "$ac_c_werror_flag" || |
| 19582 | test ! -s conftest.err |
| 19583 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19584 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19585 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19586 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19588 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19589 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19590 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19591 | |
| 19592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19593 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19594 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 19595 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19596 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19597 | |
| 19598 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19599 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19600 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19601 | |
| 19602 | fi |
| 19603 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19604 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 19605 | 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] | 19606 | if test "${ac_cv_struct_tm+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19608 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19609 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19610 | /* confdefs.h. */ |
| 19611 | _ACEOF |
| 19612 | cat confdefs.h >>conftest.$ac_ext |
| 19613 | cat >>conftest.$ac_ext <<_ACEOF |
| 19614 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19615 | #include <sys/types.h> |
| 19616 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19617 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19618 | int |
| 19619 | main () |
| 19620 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19621 | struct tm tm; |
| 19622 | int *p = &tm.tm_sec; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19623 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19624 | ; |
| 19625 | return 0; |
| 19626 | } |
| 19627 | _ACEOF |
| 19628 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19629 | if { (ac_try="$ac_compile" |
| 19630 | case "(($ac_try" in |
| 19631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19632 | *) ac_try_echo=$ac_try;; |
| 19633 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19635 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19636 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19638 | rm -f conftest.er1 |
| 19639 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19641 | (exit $ac_status); } && { |
| 19642 | test -z "$ac_c_werror_flag" || |
| 19643 | test ! -s conftest.err |
| 19644 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19645 | ac_cv_struct_tm=time.h |
| 19646 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19647 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19649 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19650 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19651 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19652 | |
| 19653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19654 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19655 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 19656 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19657 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19658 | |
| 19659 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19660 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19661 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19662 | |
| 19663 | fi |
| 19664 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19665 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 19666 | 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] | 19667 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19669 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19670 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19671 | /* confdefs.h. */ |
| 19672 | _ACEOF |
| 19673 | cat confdefs.h >>conftest.$ac_ext |
| 19674 | cat >>conftest.$ac_ext <<_ACEOF |
| 19675 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19676 | #include <sys/types.h> |
| 19677 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19678 | |
| 19679 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19680 | int |
| 19681 | main () |
| 19682 | { |
| 19683 | static struct tm ac_aggr; |
| 19684 | if (ac_aggr.tm_zone) |
| 19685 | return 0; |
| 19686 | ; |
| 19687 | return 0; |
| 19688 | } |
| 19689 | _ACEOF |
| 19690 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19691 | if { (ac_try="$ac_compile" |
| 19692 | case "(($ac_try" in |
| 19693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19694 | *) ac_try_echo=$ac_try;; |
| 19695 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19697 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19698 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19700 | rm -f conftest.er1 |
| 19701 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19703 | (exit $ac_status); } && { |
| 19704 | test -z "$ac_c_werror_flag" || |
| 19705 | test ! -s conftest.err |
| 19706 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19707 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19708 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19709 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19711 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19712 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19713 | /* confdefs.h. */ |
| 19714 | _ACEOF |
| 19715 | cat confdefs.h >>conftest.$ac_ext |
| 19716 | cat >>conftest.$ac_ext <<_ACEOF |
| 19717 | /* end confdefs.h. */ |
| 19718 | #include <sys/types.h> |
| 19719 | #include <$ac_cv_struct_tm> |
| 19720 | |
| 19721 | |
| 19722 | int |
| 19723 | main () |
| 19724 | { |
| 19725 | static struct tm ac_aggr; |
| 19726 | if (sizeof ac_aggr.tm_zone) |
| 19727 | return 0; |
| 19728 | ; |
| 19729 | return 0; |
| 19730 | } |
| 19731 | _ACEOF |
| 19732 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19733 | if { (ac_try="$ac_compile" |
| 19734 | case "(($ac_try" in |
| 19735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19736 | *) ac_try_echo=$ac_try;; |
| 19737 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19739 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19740 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19741 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19742 | rm -f conftest.er1 |
| 19743 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19745 | (exit $ac_status); } && { |
| 19746 | test -z "$ac_c_werror_flag" || |
| 19747 | test ! -s conftest.err |
| 19748 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19749 | ac_cv_member_struct_tm_tm_zone=yes |
| 19750 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19751 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19753 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19754 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19755 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19756 | |
| 19757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19758 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19759 | |
| 19760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19761 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19762 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 19763 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 19764 | 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] | 19765 | |
| 19766 | cat >>confdefs.h <<_ACEOF |
| 19767 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 19768 | _ACEOF |
| 19769 | |
| 19770 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19771 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 19772 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19773 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 19774 | |
| 19775 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19776 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19777 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19778 | |
| 19779 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19780 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 19781 | 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] | 19782 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19784 | else |
| 19785 | cat >conftest.$ac_ext <<_ACEOF |
| 19786 | /* confdefs.h. */ |
| 19787 | _ACEOF |
| 19788 | cat confdefs.h >>conftest.$ac_ext |
| 19789 | cat >>conftest.$ac_ext <<_ACEOF |
| 19790 | /* end confdefs.h. */ |
| 19791 | #include <time.h> |
| 19792 | |
| 19793 | int |
| 19794 | main () |
| 19795 | { |
| 19796 | #ifndef tzname |
| 19797 | (void) tzname; |
| 19798 | #endif |
| 19799 | |
| 19800 | ; |
| 19801 | return 0; |
| 19802 | } |
| 19803 | _ACEOF |
| 19804 | rm -f conftest.$ac_objext |
| 19805 | if { (ac_try="$ac_compile" |
| 19806 | case "(($ac_try" in |
| 19807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19808 | *) ac_try_echo=$ac_try;; |
| 19809 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19811 | (eval "$ac_compile") 2>conftest.er1 |
| 19812 | ac_status=$? |
| 19813 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19814 | rm -f conftest.er1 |
| 19815 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19817 | (exit $ac_status); } && { |
| 19818 | test -z "$ac_c_werror_flag" || |
| 19819 | test ! -s conftest.err |
| 19820 | } && test -s conftest.$ac_objext; then |
| 19821 | ac_cv_have_decl_tzname=yes |
| 19822 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19823 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19825 | |
| 19826 | ac_cv_have_decl_tzname=no |
| 19827 | fi |
| 19828 | |
| 19829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19830 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19831 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 19832 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 19833 | if test $ac_cv_have_decl_tzname = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19834 | |
| 19835 | cat >>confdefs.h <<_ACEOF |
| 19836 | #define HAVE_DECL_TZNAME 1 |
| 19837 | _ACEOF |
| 19838 | |
| 19839 | |
| 19840 | else |
| 19841 | cat >>confdefs.h <<_ACEOF |
| 19842 | #define HAVE_DECL_TZNAME 0 |
| 19843 | _ACEOF |
| 19844 | |
| 19845 | |
| 19846 | fi |
| 19847 | |
| 19848 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19849 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 19850 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19851 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19853 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19854 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19855 | /* confdefs.h. */ |
| 19856 | _ACEOF |
| 19857 | cat confdefs.h >>conftest.$ac_ext |
| 19858 | cat >>conftest.$ac_ext <<_ACEOF |
| 19859 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19860 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19861 | #if !HAVE_DECL_TZNAME |
| 19862 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19863 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19864 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19865 | int |
| 19866 | main () |
| 19867 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19868 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19869 | ; |
| 19870 | return 0; |
| 19871 | } |
| 19872 | _ACEOF |
| 19873 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19874 | if { (ac_try="$ac_link" |
| 19875 | case "(($ac_try" in |
| 19876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19877 | *) ac_try_echo=$ac_try;; |
| 19878 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19880 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19881 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19882 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19883 | rm -f conftest.er1 |
| 19884 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19886 | (exit $ac_status); } && { |
| 19887 | test -z "$ac_c_werror_flag" || |
| 19888 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19889 | } && test -s conftest$ac_exeext && |
| 19890 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19891 | ac_cv_var_tzname=yes |
| 19892 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19893 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19894 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19895 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19896 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19897 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19898 | |
| 19899 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19900 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19901 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19902 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 19903 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19904 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19905 | |
| 19906 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19907 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19908 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19909 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19910 | fi |
| 19911 | fi |
| 19912 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19913 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 19914 | 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] | 19915 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19917 | else |
| 19918 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19919 | /* confdefs.h. */ |
| 19920 | _ACEOF |
| 19921 | cat confdefs.h >>conftest.$ac_ext |
| 19922 | cat >>conftest.$ac_ext <<_ACEOF |
| 19923 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19924 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19925 | int |
| 19926 | main () |
| 19927 | { |
| 19928 | static struct stat ac_aggr; |
| 19929 | if (ac_aggr.st_rdev) |
| 19930 | return 0; |
| 19931 | ; |
| 19932 | return 0; |
| 19933 | } |
| 19934 | _ACEOF |
| 19935 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19936 | if { (ac_try="$ac_compile" |
| 19937 | case "(($ac_try" in |
| 19938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19939 | *) ac_try_echo=$ac_try;; |
| 19940 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19942 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19943 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19945 | rm -f conftest.er1 |
| 19946 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19948 | (exit $ac_status); } && { |
| 19949 | test -z "$ac_c_werror_flag" || |
| 19950 | test ! -s conftest.err |
| 19951 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19952 | ac_cv_member_struct_stat_st_rdev=yes |
| 19953 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19954 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19956 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19957 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19958 | /* confdefs.h. */ |
| 19959 | _ACEOF |
| 19960 | cat confdefs.h >>conftest.$ac_ext |
| 19961 | cat >>conftest.$ac_ext <<_ACEOF |
| 19962 | /* end confdefs.h. */ |
| 19963 | $ac_includes_default |
| 19964 | int |
| 19965 | main () |
| 19966 | { |
| 19967 | static struct stat ac_aggr; |
| 19968 | if (sizeof ac_aggr.st_rdev) |
| 19969 | return 0; |
| 19970 | ; |
| 19971 | return 0; |
| 19972 | } |
| 19973 | _ACEOF |
| 19974 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19975 | if { (ac_try="$ac_compile" |
| 19976 | case "(($ac_try" in |
| 19977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19978 | *) ac_try_echo=$ac_try;; |
| 19979 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19981 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19982 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19984 | rm -f conftest.er1 |
| 19985 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19987 | (exit $ac_status); } && { |
| 19988 | test -z "$ac_c_werror_flag" || |
| 19989 | test ! -s conftest.err |
| 19990 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19991 | ac_cv_member_struct_stat_st_rdev=yes |
| 19992 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 19993 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19995 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19996 | ac_cv_member_struct_stat_st_rdev=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19997 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19998 | |
| 19999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20000 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20001 | |
| 20002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20003 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20004 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 20005 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } |
| 20006 | 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] | 20007 | |
| 20008 | cat >>confdefs.h <<_ACEOF |
| 20009 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 20010 | _ACEOF |
| 20011 | |
| 20012 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20013 | fi |
| 20014 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20015 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 20016 | 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] | 20017 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20019 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20020 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20021 | /* confdefs.h. */ |
| 20022 | _ACEOF |
| 20023 | cat confdefs.h >>conftest.$ac_ext |
| 20024 | cat >>conftest.$ac_ext <<_ACEOF |
| 20025 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20026 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20027 | int |
| 20028 | main () |
| 20029 | { |
| 20030 | static struct stat ac_aggr; |
| 20031 | if (ac_aggr.st_blksize) |
| 20032 | return 0; |
| 20033 | ; |
| 20034 | return 0; |
| 20035 | } |
| 20036 | _ACEOF |
| 20037 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20038 | if { (ac_try="$ac_compile" |
| 20039 | case "(($ac_try" in |
| 20040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20041 | *) ac_try_echo=$ac_try;; |
| 20042 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20044 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20045 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20047 | rm -f conftest.er1 |
| 20048 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20050 | (exit $ac_status); } && { |
| 20051 | test -z "$ac_c_werror_flag" || |
| 20052 | test ! -s conftest.err |
| 20053 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20054 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20055 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20056 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20058 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20059 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20060 | /* confdefs.h. */ |
| 20061 | _ACEOF |
| 20062 | cat confdefs.h >>conftest.$ac_ext |
| 20063 | cat >>conftest.$ac_ext <<_ACEOF |
| 20064 | /* end confdefs.h. */ |
| 20065 | $ac_includes_default |
| 20066 | int |
| 20067 | main () |
| 20068 | { |
| 20069 | static struct stat ac_aggr; |
| 20070 | if (sizeof ac_aggr.st_blksize) |
| 20071 | return 0; |
| 20072 | ; |
| 20073 | return 0; |
| 20074 | } |
| 20075 | _ACEOF |
| 20076 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20077 | if { (ac_try="$ac_compile" |
| 20078 | case "(($ac_try" in |
| 20079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20080 | *) ac_try_echo=$ac_try;; |
| 20081 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20083 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20084 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20086 | rm -f conftest.er1 |
| 20087 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20089 | (exit $ac_status); } && { |
| 20090 | test -z "$ac_c_werror_flag" || |
| 20091 | test ! -s conftest.err |
| 20092 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20093 | ac_cv_member_struct_stat_st_blksize=yes |
| 20094 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20095 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20097 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20098 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20099 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20100 | |
| 20101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20102 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20103 | |
| 20104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20105 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20106 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 20107 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } |
| 20108 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20110 | cat >>confdefs.h <<_ACEOF |
| 20111 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 20112 | _ACEOF |
| 20113 | |
| 20114 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20115 | fi |
| 20116 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20117 | { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 20118 | 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] | 20119 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20121 | else |
| 20122 | cat >conftest.$ac_ext <<_ACEOF |
| 20123 | /* confdefs.h. */ |
| 20124 | _ACEOF |
| 20125 | cat confdefs.h >>conftest.$ac_ext |
| 20126 | cat >>conftest.$ac_ext <<_ACEOF |
| 20127 | /* end confdefs.h. */ |
| 20128 | $ac_includes_default |
| 20129 | int |
| 20130 | main () |
| 20131 | { |
| 20132 | static struct stat ac_aggr; |
| 20133 | if (ac_aggr.st_flags) |
| 20134 | return 0; |
| 20135 | ; |
| 20136 | return 0; |
| 20137 | } |
| 20138 | _ACEOF |
| 20139 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20140 | if { (ac_try="$ac_compile" |
| 20141 | case "(($ac_try" in |
| 20142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20143 | *) ac_try_echo=$ac_try;; |
| 20144 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20146 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20147 | ac_status=$? |
| 20148 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20149 | rm -f conftest.er1 |
| 20150 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20152 | (exit $ac_status); } && { |
| 20153 | test -z "$ac_c_werror_flag" || |
| 20154 | test ! -s conftest.err |
| 20155 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20156 | ac_cv_member_struct_stat_st_flags=yes |
| 20157 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20158 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20159 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20160 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20161 | cat >conftest.$ac_ext <<_ACEOF |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20162 | /* confdefs.h. */ |
| 20163 | _ACEOF |
| 20164 | cat confdefs.h >>conftest.$ac_ext |
| 20165 | cat >>conftest.$ac_ext <<_ACEOF |
| 20166 | /* end confdefs.h. */ |
| 20167 | $ac_includes_default |
| 20168 | int |
| 20169 | main () |
| 20170 | { |
| 20171 | static struct stat ac_aggr; |
| 20172 | if (sizeof ac_aggr.st_flags) |
| 20173 | return 0; |
| 20174 | ; |
| 20175 | return 0; |
| 20176 | } |
| 20177 | _ACEOF |
| 20178 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20179 | if { (ac_try="$ac_compile" |
| 20180 | case "(($ac_try" in |
| 20181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20182 | *) ac_try_echo=$ac_try;; |
| 20183 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20185 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20186 | ac_status=$? |
| 20187 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20188 | rm -f conftest.er1 |
| 20189 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20191 | (exit $ac_status); } && { |
| 20192 | test -z "$ac_c_werror_flag" || |
| 20193 | test ! -s conftest.err |
| 20194 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20195 | ac_cv_member_struct_stat_st_flags=yes |
| 20196 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20197 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20199 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20200 | ac_cv_member_struct_stat_st_flags=no |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20201 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20202 | |
| 20203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20204 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20205 | |
| 20206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20207 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20208 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 20209 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; } |
| 20210 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20211 | |
| 20212 | cat >>confdefs.h <<_ACEOF |
| 20213 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 20214 | _ACEOF |
| 20215 | |
| 20216 | |
| 20217 | fi |
| 20218 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20219 | { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 20220 | 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] | 20221 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20223 | else |
| 20224 | cat >conftest.$ac_ext <<_ACEOF |
| 20225 | /* confdefs.h. */ |
| 20226 | _ACEOF |
| 20227 | cat confdefs.h >>conftest.$ac_ext |
| 20228 | cat >>conftest.$ac_ext <<_ACEOF |
| 20229 | /* end confdefs.h. */ |
| 20230 | $ac_includes_default |
| 20231 | int |
| 20232 | main () |
| 20233 | { |
| 20234 | static struct stat ac_aggr; |
| 20235 | if (ac_aggr.st_gen) |
| 20236 | return 0; |
| 20237 | ; |
| 20238 | return 0; |
| 20239 | } |
| 20240 | _ACEOF |
| 20241 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20242 | if { (ac_try="$ac_compile" |
| 20243 | case "(($ac_try" in |
| 20244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20245 | *) ac_try_echo=$ac_try;; |
| 20246 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20248 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20249 | ac_status=$? |
| 20250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20251 | rm -f conftest.er1 |
| 20252 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20254 | (exit $ac_status); } && { |
| 20255 | test -z "$ac_c_werror_flag" || |
| 20256 | test ! -s conftest.err |
| 20257 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20258 | ac_cv_member_struct_stat_st_gen=yes |
| 20259 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20260 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20262 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20263 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20264 | /* confdefs.h. */ |
| 20265 | _ACEOF |
| 20266 | cat confdefs.h >>conftest.$ac_ext |
| 20267 | cat >>conftest.$ac_ext <<_ACEOF |
| 20268 | /* end confdefs.h. */ |
| 20269 | $ac_includes_default |
| 20270 | int |
| 20271 | main () |
| 20272 | { |
| 20273 | static struct stat ac_aggr; |
| 20274 | if (sizeof ac_aggr.st_gen) |
| 20275 | return 0; |
| 20276 | ; |
| 20277 | return 0; |
| 20278 | } |
| 20279 | _ACEOF |
| 20280 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20281 | if { (ac_try="$ac_compile" |
| 20282 | case "(($ac_try" in |
| 20283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20284 | *) ac_try_echo=$ac_try;; |
| 20285 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20287 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20288 | ac_status=$? |
| 20289 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20290 | rm -f conftest.er1 |
| 20291 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20293 | (exit $ac_status); } && { |
| 20294 | test -z "$ac_c_werror_flag" || |
| 20295 | test ! -s conftest.err |
| 20296 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20297 | ac_cv_member_struct_stat_st_gen=yes |
| 20298 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20299 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20301 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20302 | ac_cv_member_struct_stat_st_gen=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20303 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20304 | |
| 20305 | 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] | 20306 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20307 | |
| 20308 | 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] | 20309 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20310 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 20311 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; } |
| 20312 | 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] | 20313 | |
| 20314 | cat >>confdefs.h <<_ACEOF |
| 20315 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 20316 | _ACEOF |
| 20317 | |
| 20318 | |
| 20319 | fi |
| 20320 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20321 | { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 20322 | 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] | 20323 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20325 | else |
| 20326 | cat >conftest.$ac_ext <<_ACEOF |
| 20327 | /* confdefs.h. */ |
| 20328 | _ACEOF |
| 20329 | cat confdefs.h >>conftest.$ac_ext |
| 20330 | cat >>conftest.$ac_ext <<_ACEOF |
| 20331 | /* end confdefs.h. */ |
| 20332 | $ac_includes_default |
| 20333 | int |
| 20334 | main () |
| 20335 | { |
| 20336 | static struct stat ac_aggr; |
| 20337 | if (ac_aggr.st_birthtime) |
| 20338 | return 0; |
| 20339 | ; |
| 20340 | return 0; |
| 20341 | } |
| 20342 | _ACEOF |
| 20343 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20344 | if { (ac_try="$ac_compile" |
| 20345 | case "(($ac_try" in |
| 20346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20347 | *) ac_try_echo=$ac_try;; |
| 20348 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20350 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20351 | ac_status=$? |
| 20352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20353 | rm -f conftest.er1 |
| 20354 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20356 | (exit $ac_status); } && { |
| 20357 | test -z "$ac_c_werror_flag" || |
| 20358 | test ! -s conftest.err |
| 20359 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20360 | ac_cv_member_struct_stat_st_birthtime=yes |
| 20361 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20362 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20364 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20365 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20366 | /* confdefs.h. */ |
| 20367 | _ACEOF |
| 20368 | cat confdefs.h >>conftest.$ac_ext |
| 20369 | cat >>conftest.$ac_ext <<_ACEOF |
| 20370 | /* end confdefs.h. */ |
| 20371 | $ac_includes_default |
| 20372 | int |
| 20373 | main () |
| 20374 | { |
| 20375 | static struct stat ac_aggr; |
| 20376 | if (sizeof ac_aggr.st_birthtime) |
| 20377 | return 0; |
| 20378 | ; |
| 20379 | return 0; |
| 20380 | } |
| 20381 | _ACEOF |
| 20382 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20383 | if { (ac_try="$ac_compile" |
| 20384 | case "(($ac_try" in |
| 20385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20386 | *) ac_try_echo=$ac_try;; |
| 20387 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20389 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20390 | ac_status=$? |
| 20391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20392 | rm -f conftest.er1 |
| 20393 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20395 | (exit $ac_status); } && { |
| 20396 | test -z "$ac_c_werror_flag" || |
| 20397 | test ! -s conftest.err |
| 20398 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20399 | ac_cv_member_struct_stat_st_birthtime=yes |
| 20400 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20401 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20402 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20403 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20404 | ac_cv_member_struct_stat_st_birthtime=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20405 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20406 | |
| 20407 | 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] | 20408 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20409 | |
| 20410 | 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] | 20411 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20412 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 20413 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; } |
| 20414 | 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] | 20415 | |
| 20416 | cat >>confdefs.h <<_ACEOF |
| 20417 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 20418 | _ACEOF |
| 20419 | |
| 20420 | |
| 20421 | fi |
| 20422 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20423 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 20424 | 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] | 20425 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20427 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20428 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20429 | /* confdefs.h. */ |
| 20430 | _ACEOF |
| 20431 | cat confdefs.h >>conftest.$ac_ext |
| 20432 | cat >>conftest.$ac_ext <<_ACEOF |
| 20433 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20434 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20435 | int |
| 20436 | main () |
| 20437 | { |
| 20438 | static struct stat ac_aggr; |
| 20439 | if (ac_aggr.st_blocks) |
| 20440 | return 0; |
| 20441 | ; |
| 20442 | return 0; |
| 20443 | } |
| 20444 | _ACEOF |
| 20445 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20446 | if { (ac_try="$ac_compile" |
| 20447 | case "(($ac_try" in |
| 20448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20449 | *) ac_try_echo=$ac_try;; |
| 20450 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20452 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20453 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20455 | rm -f conftest.er1 |
| 20456 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20458 | (exit $ac_status); } && { |
| 20459 | test -z "$ac_c_werror_flag" || |
| 20460 | test ! -s conftest.err |
| 20461 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20462 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20463 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20464 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20466 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20467 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20468 | /* confdefs.h. */ |
| 20469 | _ACEOF |
| 20470 | cat confdefs.h >>conftest.$ac_ext |
| 20471 | cat >>conftest.$ac_ext <<_ACEOF |
| 20472 | /* end confdefs.h. */ |
| 20473 | $ac_includes_default |
| 20474 | int |
| 20475 | main () |
| 20476 | { |
| 20477 | static struct stat ac_aggr; |
| 20478 | if (sizeof ac_aggr.st_blocks) |
| 20479 | return 0; |
| 20480 | ; |
| 20481 | return 0; |
| 20482 | } |
| 20483 | _ACEOF |
| 20484 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20485 | if { (ac_try="$ac_compile" |
| 20486 | case "(($ac_try" in |
| 20487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20488 | *) ac_try_echo=$ac_try;; |
| 20489 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20491 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20492 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20493 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20494 | rm -f conftest.er1 |
| 20495 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20497 | (exit $ac_status); } && { |
| 20498 | test -z "$ac_c_werror_flag" || |
| 20499 | test ! -s conftest.err |
| 20500 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20501 | ac_cv_member_struct_stat_st_blocks=yes |
| 20502 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20503 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20505 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20506 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20507 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20508 | |
| 20509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20510 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20511 | |
| 20512 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20513 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20514 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 20515 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } |
| 20516 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20517 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20518 | cat >>confdefs.h <<_ACEOF |
| 20519 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 20520 | _ACEOF |
| 20521 | |
| 20522 | |
| 20523 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20524 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20525 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20526 | |
| 20527 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20528 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20529 | *" fileblocks.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20530 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 20531 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20532 | esac |
| 20533 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20534 | fi |
| 20535 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20536 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20537 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20538 | { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 20539 | 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] | 20540 | if test "${ac_cv_header_time_altzone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20542 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20543 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20544 | /* confdefs.h. */ |
| 20545 | _ACEOF |
| 20546 | cat confdefs.h >>conftest.$ac_ext |
| 20547 | cat >>conftest.$ac_ext <<_ACEOF |
| 20548 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20549 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20550 | int |
| 20551 | main () |
| 20552 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20553 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20554 | ; |
| 20555 | return 0; |
| 20556 | } |
| 20557 | _ACEOF |
| 20558 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20559 | if { (ac_try="$ac_compile" |
| 20560 | case "(($ac_try" in |
| 20561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20562 | *) ac_try_echo=$ac_try;; |
| 20563 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20565 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20566 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20568 | rm -f conftest.er1 |
| 20569 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20571 | (exit $ac_status); } && { |
| 20572 | test -z "$ac_c_werror_flag" || |
| 20573 | test ! -s conftest.err |
| 20574 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20575 | ac_cv_header_time_altzone=yes |
| 20576 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20577 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20579 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20580 | ac_cv_header_time_altzone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20581 | fi |
| 20582 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20584 | fi |
| 20585 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20586 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 20587 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20588 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20589 | |
| 20590 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20591 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20592 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20593 | |
| 20594 | fi |
| 20595 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20596 | was_it_defined=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20597 | { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 20598 | 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] | 20599 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20600 | /* confdefs.h. */ |
| 20601 | _ACEOF |
| 20602 | cat confdefs.h >>conftest.$ac_ext |
| 20603 | cat >>conftest.$ac_ext <<_ACEOF |
| 20604 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20605 | |
| 20606 | #include <sys/types.h> |
| 20607 | #include <sys/select.h> |
| 20608 | #include <sys/time.h> |
| 20609 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20610 | int |
| 20611 | main () |
| 20612 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20613 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20614 | ; |
| 20615 | return 0; |
| 20616 | } |
| 20617 | _ACEOF |
| 20618 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20619 | if { (ac_try="$ac_compile" |
| 20620 | case "(($ac_try" in |
| 20621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20622 | *) ac_try_echo=$ac_try;; |
| 20623 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20625 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20626 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20628 | rm -f conftest.er1 |
| 20629 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20631 | (exit $ac_status); } && { |
| 20632 | test -z "$ac_c_werror_flag" || |
| 20633 | test ! -s conftest.err |
| 20634 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20635 | |
| 20636 | |
| 20637 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20638 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20639 | _ACEOF |
| 20640 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20641 | was_it_defined=yes |
| 20642 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20643 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20644 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20646 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 20647 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20648 | fi |
| 20649 | |
| 20650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20651 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 20652 | echo "${ECHO_T}$was_it_defined" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20653 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20654 | { echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 20655 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20656 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20658 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20659 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20660 | /* confdefs.h. */ |
| 20661 | _ACEOF |
| 20662 | cat confdefs.h >>conftest.$ac_ext |
| 20663 | cat >>conftest.$ac_ext <<_ACEOF |
| 20664 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20665 | |
| 20666 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20667 | int |
| 20668 | main () |
| 20669 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20670 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20671 | ; |
| 20672 | return 0; |
| 20673 | } |
| 20674 | _ACEOF |
| 20675 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20676 | if { (ac_try="$ac_compile" |
| 20677 | case "(($ac_try" in |
| 20678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20679 | *) ac_try_echo=$ac_try;; |
| 20680 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20682 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20683 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20685 | rm -f conftest.er1 |
| 20686 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20688 | (exit $ac_status); } && { |
| 20689 | test -z "$ac_c_werror_flag" || |
| 20690 | test ! -s conftest.err |
| 20691 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20692 | ac_cv_struct_addrinfo=yes |
| 20693 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20694 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20696 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20697 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20698 | fi |
| 20699 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20701 | fi |
| 20702 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20703 | { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 20704 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20705 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20706 | |
| 20707 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20708 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20709 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20710 | |
| 20711 | fi |
| 20712 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20713 | { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 20714 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20715 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20717 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20718 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20719 | /* confdefs.h. */ |
| 20720 | _ACEOF |
| 20721 | cat confdefs.h >>conftest.$ac_ext |
| 20722 | cat >>conftest.$ac_ext <<_ACEOF |
| 20723 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20724 | |
| 20725 | # include <sys/types.h> |
| 20726 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20727 | int |
| 20728 | main () |
| 20729 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20730 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20731 | ; |
| 20732 | return 0; |
| 20733 | } |
| 20734 | _ACEOF |
| 20735 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20736 | if { (ac_try="$ac_compile" |
| 20737 | case "(($ac_try" in |
| 20738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20739 | *) ac_try_echo=$ac_try;; |
| 20740 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20742 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20743 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20745 | rm -f conftest.er1 |
| 20746 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20748 | (exit $ac_status); } && { |
| 20749 | test -z "$ac_c_werror_flag" || |
| 20750 | test ! -s conftest.err |
| 20751 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20752 | ac_cv_struct_sockaddr_storage=yes |
| 20753 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20754 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20756 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20757 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20758 | fi |
| 20759 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20761 | fi |
| 20762 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20763 | { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 20764 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20765 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20766 | |
| 20767 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20768 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20769 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20770 | |
| 20771 | fi |
| 20772 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20773 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20774 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20775 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20776 | { echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 20777 | 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] | 20778 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20780 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20781 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20782 | /* confdefs.h. */ |
| 20783 | _ACEOF |
| 20784 | cat confdefs.h >>conftest.$ac_ext |
| 20785 | cat >>conftest.$ac_ext <<_ACEOF |
| 20786 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20787 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20788 | int |
| 20789 | main () |
| 20790 | { |
| 20791 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 20792 | test_array [0] = 0 |
| 20793 | |
| 20794 | ; |
| 20795 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20796 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20797 | _ACEOF |
| 20798 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20799 | if { (ac_try="$ac_compile" |
| 20800 | case "(($ac_try" in |
| 20801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20802 | *) ac_try_echo=$ac_try;; |
| 20803 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20805 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20806 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20808 | rm -f conftest.er1 |
| 20809 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20811 | (exit $ac_status); } && { |
| 20812 | test -z "$ac_c_werror_flag" || |
| 20813 | test ! -s conftest.err |
| 20814 | } && test -s conftest.$ac_objext; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20815 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20816 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20817 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20819 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20820 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20821 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20822 | |
| 20823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20824 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20825 | { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 20826 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20827 | 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] | 20828 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20829 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20830 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20831 | |
| 20832 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20833 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20834 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 20835 | 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] | 20836 | if test "${ac_cv_c_const+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20838 | else |
| 20839 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20840 | /* confdefs.h. */ |
| 20841 | _ACEOF |
| 20842 | cat confdefs.h >>conftest.$ac_ext |
| 20843 | cat >>conftest.$ac_ext <<_ACEOF |
| 20844 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20845 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20846 | int |
| 20847 | main () |
| 20848 | { |
| 20849 | /* FIXME: Include the comments suggested by Paul. */ |
| 20850 | #ifndef __cplusplus |
| 20851 | /* Ultrix mips cc rejects this. */ |
| 20852 | typedef int charset[2]; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20853 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20854 | /* SunOS 4.1.1 cc rejects this. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20855 | char const *const *pcpcc; |
| 20856 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20857 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 20858 | struct point {int x, y;}; |
| 20859 | static struct point const zero = {0,0}; |
| 20860 | /* AIX XL C 1.02.0.0 rejects this. |
| 20861 | It does not let you subtract one const X* pointer from another in |
| 20862 | an arm of an if-expression whose if-part is not a constant |
| 20863 | expression */ |
| 20864 | const char *g = "string"; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20865 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20866 | /* HPUX 7.0 cc rejects these. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20867 | ++pcpcc; |
| 20868 | ppc = (char**) pcpcc; |
| 20869 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20870 | { /* SCO 3.2v4 cc rejects this. */ |
| 20871 | char *t; |
| 20872 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20874 | *t++ = 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20875 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20876 | } |
| 20877 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 20878 | int x[] = {25, 17}; |
| 20879 | const int *foo = &x[0]; |
| 20880 | ++foo; |
| 20881 | } |
| 20882 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 20883 | typedef const int *iptr; |
| 20884 | iptr p = 0; |
| 20885 | ++p; |
| 20886 | } |
| 20887 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 20888 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 20889 | struct s { int j; const int *ap[3]; }; |
| 20890 | struct s *b; b->j = 5; |
| 20891 | } |
| 20892 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 20893 | const int foo = 10; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20894 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20895 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20896 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20897 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20898 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20899 | ; |
| 20900 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20901 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20902 | _ACEOF |
| 20903 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20904 | if { (ac_try="$ac_compile" |
| 20905 | case "(($ac_try" in |
| 20906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20907 | *) ac_try_echo=$ac_try;; |
| 20908 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20910 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20911 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20913 | rm -f conftest.er1 |
| 20914 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20916 | (exit $ac_status); } && { |
| 20917 | test -z "$ac_c_werror_flag" || |
| 20918 | test ! -s conftest.err |
| 20919 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20920 | ac_cv_c_const=yes |
| 20921 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20922 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20923 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20924 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20925 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20926 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20927 | |
| 20928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20929 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20930 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 20931 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20932 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20933 | |
| 20934 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20935 | #define const |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20936 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20937 | |
| 20938 | fi |
| 20939 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20940 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20941 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20942 | { echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 20943 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20944 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20945 | /* confdefs.h. */ |
| 20946 | _ACEOF |
| 20947 | cat confdefs.h >>conftest.$ac_ext |
| 20948 | cat >>conftest.$ac_ext <<_ACEOF |
| 20949 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20950 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20951 | int |
| 20952 | main () |
| 20953 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20954 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20955 | ; |
| 20956 | return 0; |
| 20957 | } |
| 20958 | _ACEOF |
| 20959 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20960 | if { (ac_try="$ac_compile" |
| 20961 | case "(($ac_try" in |
| 20962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20963 | *) ac_try_echo=$ac_try;; |
| 20964 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20966 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20967 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20969 | rm -f conftest.er1 |
| 20970 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20972 | (exit $ac_status); } && { |
| 20973 | test -z "$ac_c_werror_flag" || |
| 20974 | test ! -s conftest.err |
| 20975 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20976 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20977 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20978 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20981 | |
| 20982 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20983 | #define volatile |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20984 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20985 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20986 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20987 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20988 | |
| 20989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20990 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 20991 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20992 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20993 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 20994 | { echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 20995 | 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] | 20996 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20997 | /* confdefs.h. */ |
| 20998 | _ACEOF |
| 20999 | cat confdefs.h >>conftest.$ac_ext |
| 21000 | cat >>conftest.$ac_ext <<_ACEOF |
| 21001 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 21002 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21003 | int |
| 21004 | main () |
| 21005 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21006 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21007 | ; |
| 21008 | return 0; |
| 21009 | } |
| 21010 | _ACEOF |
| 21011 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21012 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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 |
| 21027 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21028 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 21029 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21030 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21033 | |
| 21034 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21035 | #define signed |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21036 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21037 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 21038 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21039 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21040 | |
| 21041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21042 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 21043 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21044 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21045 | have_prototypes=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21046 | { echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 21047 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21048 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21049 | /* confdefs.h. */ |
| 21050 | _ACEOF |
| 21051 | cat confdefs.h >>conftest.$ac_ext |
| 21052 | cat >>conftest.$ac_ext <<_ACEOF |
| 21053 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21054 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21055 | int |
| 21056 | main () |
| 21057 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21058 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21059 | ; |
| 21060 | return 0; |
| 21061 | } |
| 21062 | _ACEOF |
| 21063 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21064 | if { (ac_try="$ac_compile" |
| 21065 | case "(($ac_try" in |
| 21066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21067 | *) ac_try_echo=$ac_try;; |
| 21068 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21070 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21071 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21073 | rm -f conftest.er1 |
| 21074 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21076 | (exit $ac_status); } && { |
| 21077 | test -z "$ac_c_werror_flag" || |
| 21078 | test ! -s conftest.err |
| 21079 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21080 | |
| 21081 | |
| 21082 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21083 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21084 | _ACEOF |
| 21085 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 21086 | have_prototypes=yes |
| 21087 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 21088 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21089 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21091 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21092 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21093 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21094 | |
| 21095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21096 | { echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 21097 | echo "${ECHO_T}$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21098 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21099 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21100 | { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 21101 | 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] | 21102 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21103 | /* confdefs.h. */ |
| 21104 | _ACEOF |
| 21105 | cat confdefs.h >>conftest.$ac_ext |
| 21106 | cat >>conftest.$ac_ext <<_ACEOF |
| 21107 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21108 | |
| 21109 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 21110 | int foo(int x, ...) { |
| 21111 | va_list va; |
| 21112 | va_start(va, x); |
| 21113 | va_arg(va, int); |
| 21114 | va_arg(va, char *); |
| 21115 | va_arg(va, double); |
| 21116 | return 0; |
| 21117 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21118 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21119 | int |
| 21120 | main () |
| 21121 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 21122 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21123 | ; |
| 21124 | return 0; |
| 21125 | } |
| 21126 | _ACEOF |
| 21127 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21128 | if { (ac_try="$ac_compile" |
| 21129 | case "(($ac_try" in |
| 21130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21131 | *) ac_try_echo=$ac_try;; |
| 21132 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21134 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21135 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21137 | rm -f conftest.er1 |
| 21138 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21140 | (exit $ac_status); } && { |
| 21141 | test -z "$ac_c_werror_flag" || |
| 21142 | test ! -s conftest.err |
| 21143 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21144 | |
| 21145 | |
| 21146 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21147 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21148 | _ACEOF |
| 21149 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 21150 | works=yes |
| 21151 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 21152 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21153 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21155 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21156 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21157 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21158 | |
| 21159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21160 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 21161 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21162 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21163 | # check for socketpair |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21164 | { echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 21165 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21166 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21167 | /* confdefs.h. */ |
| 21168 | _ACEOF |
| 21169 | cat confdefs.h >>conftest.$ac_ext |
| 21170 | cat >>conftest.$ac_ext <<_ACEOF |
| 21171 | /* end confdefs.h. */ |
| 21172 | |
| 21173 | #include <sys/types.h> |
| 21174 | #include <sys/socket.h> |
| 21175 | |
| 21176 | int |
| 21177 | main () |
| 21178 | { |
| 21179 | void *x=socketpair |
| 21180 | ; |
| 21181 | return 0; |
| 21182 | } |
| 21183 | _ACEOF |
| 21184 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21185 | if { (ac_try="$ac_compile" |
| 21186 | case "(($ac_try" in |
| 21187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21188 | *) ac_try_echo=$ac_try;; |
| 21189 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21191 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21192 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21194 | rm -f conftest.er1 |
| 21195 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21197 | (exit $ac_status); } && { |
| 21198 | test -z "$ac_c_werror_flag" || |
| 21199 | test ! -s conftest.err |
| 21200 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21201 | |
| 21202 | cat >>confdefs.h <<\_ACEOF |
| 21203 | #define HAVE_SOCKETPAIR 1 |
| 21204 | _ACEOF |
| 21205 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21206 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21207 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21208 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21209 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21211 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21212 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21213 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21214 | |
| 21215 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21216 | |
| 21217 | 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] | 21218 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21219 | # check if sockaddr has sa_len member |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21220 | { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 21221 | 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] | 21222 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21223 | /* confdefs.h. */ |
| 21224 | _ACEOF |
| 21225 | cat confdefs.h >>conftest.$ac_ext |
| 21226 | cat >>conftest.$ac_ext <<_ACEOF |
| 21227 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21228 | #include <sys/types.h> |
| 21229 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21230 | int |
| 21231 | main () |
| 21232 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21233 | struct sockaddr x; |
| 21234 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21235 | ; |
| 21236 | return 0; |
| 21237 | } |
| 21238 | _ACEOF |
| 21239 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21240 | if { (ac_try="$ac_compile" |
| 21241 | case "(($ac_try" in |
| 21242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21243 | *) ac_try_echo=$ac_try;; |
| 21244 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21246 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21247 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21248 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21249 | rm -f conftest.er1 |
| 21250 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21252 | (exit $ac_status); } && { |
| 21253 | test -z "$ac_c_werror_flag" || |
| 21254 | test ! -s conftest.err |
| 21255 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21256 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21257 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21258 | |
| 21259 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21260 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21261 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21262 | |
| 21263 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21264 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21266 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21267 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21268 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21269 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21270 | |
| 21271 | 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] | 21272 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21273 | va_list_is_array=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21274 | { echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 21275 | 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] | 21276 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21277 | /* confdefs.h. */ |
| 21278 | _ACEOF |
| 21279 | cat confdefs.h >>conftest.$ac_ext |
| 21280 | cat >>conftest.$ac_ext <<_ACEOF |
| 21281 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21282 | |
| 21283 | #ifdef HAVE_STDARG_PROTOTYPES |
| 21284 | #include <stdarg.h> |
| 21285 | #else |
| 21286 | #include <varargs.h> |
| 21287 | #endif |
| 21288 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21289 | int |
| 21290 | main () |
| 21291 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21292 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21293 | ; |
| 21294 | return 0; |
| 21295 | } |
| 21296 | _ACEOF |
| 21297 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21298 | if { (ac_try="$ac_compile" |
| 21299 | case "(($ac_try" in |
| 21300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21301 | *) ac_try_echo=$ac_try;; |
| 21302 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21304 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21305 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21306 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21307 | rm -f conftest.er1 |
| 21308 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21310 | (exit $ac_status); } && { |
| 21311 | test -z "$ac_c_werror_flag" || |
| 21312 | test ! -s conftest.err |
| 21313 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21314 | : |
| 21315 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21316 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21317 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21318 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21319 | |
| 21320 | |
| 21321 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21322 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21323 | _ACEOF |
| 21324 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21325 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 21326 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21327 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21328 | |
| 21329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21330 | { echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 21331 | echo "${ECHO_T}$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21332 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21333 | # 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] | 21334 | |
| 21335 | |
| 21336 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21337 | { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 21338 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21339 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21341 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21342 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21343 | /* confdefs.h. */ |
| 21344 | _ACEOF |
| 21345 | cat confdefs.h >>conftest.$ac_ext |
| 21346 | cat >>conftest.$ac_ext <<_ACEOF |
| 21347 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21348 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 21349 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21350 | #define gethostbyname_r innocuous_gethostbyname_r |
| 21351 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21352 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21353 | which can conflict with char gethostbyname_r (); below. |
| 21354 | 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] | 21355 | <limits.h> exists even on freestanding compilers. */ |
| 21356 | |
| 21357 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21358 | # include <limits.h> |
| 21359 | #else |
| 21360 | # include <assert.h> |
| 21361 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21362 | |
| 21363 | #undef gethostbyname_r |
| 21364 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21365 | /* Override any GCC internal prototype to avoid an error. |
| 21366 | Use char because int might match the return type of a GCC |
| 21367 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21368 | #ifdef __cplusplus |
| 21369 | extern "C" |
| 21370 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21371 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21372 | /* The GNU C library defines this for functions which it implements |
| 21373 | to always fail with ENOSYS. Some functions are actually named |
| 21374 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21375 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21376 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21377 | #endif |
| 21378 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21379 | int |
| 21380 | main () |
| 21381 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21382 | return gethostbyname_r (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21383 | ; |
| 21384 | return 0; |
| 21385 | } |
| 21386 | _ACEOF |
| 21387 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21388 | if { (ac_try="$ac_link" |
| 21389 | case "(($ac_try" in |
| 21390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21391 | *) ac_try_echo=$ac_try;; |
| 21392 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21394 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21395 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21397 | rm -f conftest.er1 |
| 21398 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21400 | (exit $ac_status); } && { |
| 21401 | test -z "$ac_c_werror_flag" || |
| 21402 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21403 | } && test -s conftest$ac_exeext && |
| 21404 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21405 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21406 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21407 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21408 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21409 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21410 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21411 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21412 | |
| 21413 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21414 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21415 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21416 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 21417 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; } |
| 21418 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21419 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21420 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21421 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21422 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21423 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21424 | { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 21425 | 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] | 21426 | OLD_CFLAGS=$CFLAGS |
| 21427 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21428 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21429 | /* confdefs.h. */ |
| 21430 | _ACEOF |
| 21431 | cat confdefs.h >>conftest.$ac_ext |
| 21432 | cat >>conftest.$ac_ext <<_ACEOF |
| 21433 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21434 | |
| 21435 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21436 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21437 | int |
| 21438 | main () |
| 21439 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21440 | |
| 21441 | char *name; |
| 21442 | struct hostent *he, *res; |
| 21443 | char buffer[2048]; |
| 21444 | int buflen = 2048; |
| 21445 | int h_errnop; |
| 21446 | |
| 21447 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21448 | |
| 21449 | ; |
| 21450 | return 0; |
| 21451 | } |
| 21452 | _ACEOF |
| 21453 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21454 | if { (ac_try="$ac_compile" |
| 21455 | case "(($ac_try" in |
| 21456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21457 | *) ac_try_echo=$ac_try;; |
| 21458 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21460 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21461 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21463 | rm -f conftest.er1 |
| 21464 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21466 | (exit $ac_status); } && { |
| 21467 | test -z "$ac_c_werror_flag" || |
| 21468 | test ! -s conftest.err |
| 21469 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21470 | |
| 21471 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21472 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21473 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21474 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21475 | |
| 21476 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21477 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21478 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21479 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21480 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21481 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21482 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21483 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21484 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21486 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21487 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21488 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21489 | echo "${ECHO_T}no" >&6; } |
| 21490 | { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 21491 | 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] | 21492 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21493 | /* confdefs.h. */ |
| 21494 | _ACEOF |
| 21495 | cat confdefs.h >>conftest.$ac_ext |
| 21496 | cat >>conftest.$ac_ext <<_ACEOF |
| 21497 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21498 | |
| 21499 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21500 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21501 | int |
| 21502 | main () |
| 21503 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21504 | |
| 21505 | char *name; |
| 21506 | struct hostent *he; |
| 21507 | char buffer[2048]; |
| 21508 | int buflen = 2048; |
| 21509 | int h_errnop; |
| 21510 | |
| 21511 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21512 | |
| 21513 | ; |
| 21514 | return 0; |
| 21515 | } |
| 21516 | _ACEOF |
| 21517 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21518 | if { (ac_try="$ac_compile" |
| 21519 | case "(($ac_try" in |
| 21520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21521 | *) ac_try_echo=$ac_try;; |
| 21522 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21524 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21525 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21527 | rm -f conftest.er1 |
| 21528 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21530 | (exit $ac_status); } && { |
| 21531 | test -z "$ac_c_werror_flag" || |
| 21532 | test ! -s conftest.err |
| 21533 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21534 | |
| 21535 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21536 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21537 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21538 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21539 | |
| 21540 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21541 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21542 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21543 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21544 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21545 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21546 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21547 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21548 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21550 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21551 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21552 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21553 | echo "${ECHO_T}no" >&6; } |
| 21554 | { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 21555 | 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] | 21556 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21557 | /* confdefs.h. */ |
| 21558 | _ACEOF |
| 21559 | cat confdefs.h >>conftest.$ac_ext |
| 21560 | cat >>conftest.$ac_ext <<_ACEOF |
| 21561 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21562 | |
| 21563 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21564 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21565 | int |
| 21566 | main () |
| 21567 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21568 | |
| 21569 | char *name; |
| 21570 | struct hostent *he; |
| 21571 | struct hostent_data data; |
| 21572 | |
| 21573 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21574 | |
| 21575 | ; |
| 21576 | return 0; |
| 21577 | } |
| 21578 | _ACEOF |
| 21579 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21580 | if { (ac_try="$ac_compile" |
| 21581 | case "(($ac_try" in |
| 21582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21583 | *) ac_try_echo=$ac_try;; |
| 21584 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21586 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21587 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21588 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21589 | rm -f conftest.er1 |
| 21590 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21592 | (exit $ac_status); } && { |
| 21593 | test -z "$ac_c_werror_flag" || |
| 21594 | test ! -s conftest.err |
| 21595 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21596 | |
| 21597 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21598 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21599 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21600 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21601 | |
| 21602 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21603 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21604 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21605 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21606 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21607 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21608 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21609 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21610 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21612 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21613 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21614 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21615 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21616 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21617 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21618 | |
| 21619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21620 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21621 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21622 | |
| 21623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21624 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21625 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21626 | |
| 21627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21628 | CFLAGS=$OLD_CFLAGS |
| 21629 | |
| 21630 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21631 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21632 | |
| 21633 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 21634 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21635 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21636 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21637 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21638 | 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^] | 21639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21640 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21641 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21642 | /* confdefs.h. */ |
| 21643 | _ACEOF |
| 21644 | cat confdefs.h >>conftest.$ac_ext |
| 21645 | cat >>conftest.$ac_ext <<_ACEOF |
| 21646 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21647 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21648 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21649 | #define $ac_func innocuous_$ac_func |
| 21650 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21651 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21652 | which can conflict with char $ac_func (); below. |
| 21653 | 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] | 21654 | <limits.h> exists even on freestanding compilers. */ |
| 21655 | |
| 21656 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21657 | # include <limits.h> |
| 21658 | #else |
| 21659 | # include <assert.h> |
| 21660 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21661 | |
| 21662 | #undef $ac_func |
| 21663 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21664 | /* Override any GCC internal prototype to avoid an error. |
| 21665 | Use char because int might match the return type of a GCC |
| 21666 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21667 | #ifdef __cplusplus |
| 21668 | extern "C" |
| 21669 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21670 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21671 | /* The GNU C library defines this for functions which it implements |
| 21672 | to always fail with ENOSYS. Some functions are actually named |
| 21673 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21674 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21675 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21676 | #endif |
| 21677 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21678 | int |
| 21679 | main () |
| 21680 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21681 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21682 | ; |
| 21683 | return 0; |
| 21684 | } |
| 21685 | _ACEOF |
| 21686 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21687 | if { (ac_try="$ac_link" |
| 21688 | case "(($ac_try" in |
| 21689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21690 | *) ac_try_echo=$ac_try;; |
| 21691 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21693 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21694 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21695 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21696 | rm -f conftest.er1 |
| 21697 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21699 | (exit $ac_status); } && { |
| 21700 | test -z "$ac_c_werror_flag" || |
| 21701 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21702 | } && test -s conftest$ac_exeext && |
| 21703 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21704 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21705 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21706 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21708 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21709 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21710 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21711 | |
| 21712 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21713 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21714 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21715 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 21716 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21717 | echo "${ECHO_T}$ac_res" >&6; } |
| 21718 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21719 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21720 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21721 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21722 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21723 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 21724 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21725 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21726 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21727 | fi |
| 21728 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21729 | |
| 21730 | |
| 21731 | |
| 21732 | |
| 21733 | |
| 21734 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21735 | # checks for system services |
| 21736 | # (none yet) |
| 21737 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21738 | # Linux requires this for correct f.p. operations |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21739 | { echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 21740 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21741 | if test "${ac_cv_func___fpu_control+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21743 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21744 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21745 | /* confdefs.h. */ |
| 21746 | _ACEOF |
| 21747 | cat confdefs.h >>conftest.$ac_ext |
| 21748 | cat >>conftest.$ac_ext <<_ACEOF |
| 21749 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21750 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 21751 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21752 | #define __fpu_control innocuous___fpu_control |
| 21753 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21754 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21755 | which can conflict with char __fpu_control (); below. |
| 21756 | 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] | 21757 | <limits.h> exists even on freestanding compilers. */ |
| 21758 | |
| 21759 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21760 | # include <limits.h> |
| 21761 | #else |
| 21762 | # include <assert.h> |
| 21763 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21764 | |
| 21765 | #undef __fpu_control |
| 21766 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21767 | /* Override any GCC internal prototype to avoid an error. |
| 21768 | Use char because int might match the return type of a GCC |
| 21769 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21770 | #ifdef __cplusplus |
| 21771 | extern "C" |
| 21772 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21773 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21774 | /* The GNU C library defines this for functions which it implements |
| 21775 | to always fail with ENOSYS. Some functions are actually named |
| 21776 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21777 | #if defined __stub___fpu_control || defined __stub_____fpu_control |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21778 | choke me |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21779 | #endif |
| 21780 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21781 | int |
| 21782 | main () |
| 21783 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21784 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21785 | ; |
| 21786 | return 0; |
| 21787 | } |
| 21788 | _ACEOF |
| 21789 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21790 | if { (ac_try="$ac_link" |
| 21791 | case "(($ac_try" in |
| 21792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21793 | *) ac_try_echo=$ac_try;; |
| 21794 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21796 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21797 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21798 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21799 | rm -f conftest.er1 |
| 21800 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21802 | (exit $ac_status); } && { |
| 21803 | test -z "$ac_c_werror_flag" || |
| 21804 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21805 | } && test -s conftest$ac_exeext && |
| 21806 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21807 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21808 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21809 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21811 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21812 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21813 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21814 | |
| 21815 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21816 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03: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_func___fpu_control" >&5 |
| 21819 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; } |
| 21820 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21821 | : |
| 21822 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21823 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21824 | { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 21825 | 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] | 21826 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21828 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21829 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 21830 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21831 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21832 | /* confdefs.h. */ |
| 21833 | _ACEOF |
| 21834 | cat confdefs.h >>conftest.$ac_ext |
| 21835 | cat >>conftest.$ac_ext <<_ACEOF |
| 21836 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21837 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21838 | /* Override any GCC internal prototype to avoid an error. |
| 21839 | Use char because int might match the return type of a GCC |
| 21840 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21841 | #ifdef __cplusplus |
| 21842 | extern "C" |
| 21843 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21844 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21845 | int |
| 21846 | main () |
| 21847 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21848 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21849 | ; |
| 21850 | return 0; |
| 21851 | } |
| 21852 | _ACEOF |
| 21853 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21854 | if { (ac_try="$ac_link" |
| 21855 | case "(($ac_try" in |
| 21856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21857 | *) ac_try_echo=$ac_try;; |
| 21858 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21860 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21861 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21863 | rm -f conftest.er1 |
| 21864 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21866 | (exit $ac_status); } && { |
| 21867 | test -z "$ac_c_werror_flag" || |
| 21868 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21869 | } && test -s conftest$ac_exeext && |
| 21870 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21871 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21872 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21873 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21874 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21875 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21876 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21877 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21878 | |
| 21879 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21880 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21881 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21882 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21883 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 21884 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; } |
| 21885 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21886 | cat >>confdefs.h <<_ACEOF |
| 21887 | #define HAVE_LIBIEEE 1 |
| 21888 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21889 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 21890 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21891 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21892 | fi |
| 21893 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21894 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21895 | fi |
| 21896 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21897 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21898 | # Check for --with-fpectl |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21899 | { echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 21900 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21901 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21902 | # Check whether --with-fpectl was given. |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21903 | if test "${with_fpectl+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21904 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21905 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21906 | then |
| 21907 | |
| 21908 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21909 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21910 | _ACEOF |
| 21911 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21912 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21913 | echo "${ECHO_T}yes" >&6; } |
| 21914 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 21915 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21916 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21917 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21918 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21919 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21920 | fi |
| 21921 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21922 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21923 | # check for --with-libm=... |
| 21924 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 21925 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 21926 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 21927 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 21928 | *) LIBM=-lm |
| 21929 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21930 | { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 21931 | 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] | 21932 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21933 | # Check whether --with-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 21934 | if test "${with_libm+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21935 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21936 | if test "$withval" = no |
| 21937 | then LIBM= |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21938 | { echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 21939 | echo "${ECHO_T}force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21940 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21941 | then LIBM=$withval |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21942 | { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 21943 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6; } |
| 21944 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 21945 | 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] | 21946 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21947 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21948 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21949 | { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 21950 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21951 | fi |
| 21952 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21953 | |
| 21954 | # check for --with-libc=... |
| 21955 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21956 | { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 21957 | 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] | 21958 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21959 | # Check whether --with-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 21960 | if test "${with_libc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21961 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21962 | if test "$withval" = no |
| 21963 | then LIBC= |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21964 | { echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 21965 | echo "${ECHO_T}force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21966 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21967 | then LIBC=$withval |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21968 | { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 21969 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6; } |
| 21970 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 21971 | 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] | 21972 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21973 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21974 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21975 | { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 21976 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21977 | fi |
| 21978 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21979 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 21980 | # ************************************ |
| 21981 | # * Check for mathematical functions * |
| 21982 | # ************************************ |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 21983 | |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 21984 | LIBS_SAVE=$LIBS |
| 21985 | LIBS="$LIBS $LIBM" |
| 21986 | |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 21987 | # Detect whether system arithmetic is subject to x87-style double |
| 21988 | # rounding issues. The result of this test has little meaning on non |
| 21989 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 21990 | # mode is round-to-nearest and double rounding issues are present, and |
| 21991 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21992 | { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5 |
| 21993 | echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; } |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 21994 | if test "${ac_cv_x87_double_rounding+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 21995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 21996 | else |
| 21997 | |
| 21998 | if test "$cross_compiling" = yes; then |
| 21999 | ac_cv_x87_double_rounding=no |
| 22000 | else |
| 22001 | cat >conftest.$ac_ext <<_ACEOF |
| 22002 | /* confdefs.h. */ |
| 22003 | _ACEOF |
| 22004 | cat confdefs.h >>conftest.$ac_ext |
| 22005 | cat >>conftest.$ac_ext <<_ACEOF |
| 22006 | /* end confdefs.h. */ |
| 22007 | |
| 22008 | #include <stdlib.h> |
| 22009 | #include <math.h> |
| 22010 | int main() { |
| 22011 | volatile double x, y, z; |
| 22012 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 22013 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 22014 | y = 1./x; |
| 22015 | if (y != 1.) |
| 22016 | exit(0); |
| 22017 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 22018 | x = 1e16; |
| 22019 | y = 2.99999; |
| 22020 | z = x + y; |
| 22021 | if (z != 1e16+4.) |
| 22022 | exit(0); |
| 22023 | /* both tests show evidence of double rounding */ |
| 22024 | exit(1); |
| 22025 | } |
| 22026 | |
| 22027 | _ACEOF |
| 22028 | rm -f conftest$ac_exeext |
| 22029 | if { (ac_try="$ac_link" |
| 22030 | case "(($ac_try" in |
| 22031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22032 | *) ac_try_echo=$ac_try;; |
| 22033 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 22035 | (eval "$ac_link") 2>&5 |
| 22036 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 22038 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22039 | { (case "(($ac_try" in |
| 22040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22041 | *) ac_try_echo=$ac_try;; |
| 22042 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 22044 | (eval "$ac_try") 2>&5 |
| 22045 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 22047 | (exit $ac_status); }; }; then |
| 22048 | ac_cv_x87_double_rounding=no |
| 22049 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22050 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22051 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 22052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22053 | |
| 22054 | ( exit $ac_status ) |
| 22055 | ac_cv_x87_double_rounding=yes |
| 22056 | fi |
| 22057 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 22058 | fi |
| 22059 | |
| 22060 | |
| 22061 | fi |
| 22062 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22063 | { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5 |
| 22064 | echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 22065 | if test "$ac_cv_x87_double_rounding" = yes |
| 22066 | then |
| 22067 | |
| 22068 | cat >>confdefs.h <<\_ACEOF |
| 22069 | #define X87_DOUBLE_ROUNDING 1 |
| 22070 | _ACEOF |
| 22071 | |
| 22072 | fi |
| 22073 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 22074 | # Multiprocessing check for broken sem_getvalue |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22075 | { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5 |
| 22076 | echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; } |
| 22077 | if test "$cross_compiling" = yes; then |
| 22078 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 22079 | See \`config.log' for more details." >&5 |
| 22080 | echo "$as_me: error: cannot run test program while cross compiling |
| 22081 | See \`config.log' for more details." >&2;} |
| 22082 | { (exit 1); exit 1; }; } |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 22083 | else |
| 22084 | cat >conftest.$ac_ext <<_ACEOF |
| 22085 | /* confdefs.h. */ |
| 22086 | _ACEOF |
| 22087 | cat confdefs.h >>conftest.$ac_ext |
| 22088 | cat >>conftest.$ac_ext <<_ACEOF |
| 22089 | /* end confdefs.h. */ |
| 22090 | |
| 22091 | #include <unistd.h> |
| 22092 | #include <fcntl.h> |
| 22093 | #include <stdio.h> |
| 22094 | #include <semaphore.h> |
| 22095 | #include <sys/stat.h> |
| 22096 | |
| 22097 | int main(void){ |
| 22098 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 22099 | int count; |
| 22100 | int res; |
| 22101 | if(a==SEM_FAILED){ |
| 22102 | perror("sem_open"); |
| 22103 | return 1; |
| 22104 | |
| 22105 | } |
| 22106 | res = sem_getvalue(a, &count); |
| 22107 | sem_close(a); |
| 22108 | return res==-1 ? 1 : 0; |
| 22109 | } |
| 22110 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22111 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 22112 | _ACEOF |
| 22113 | rm -f conftest$ac_exeext |
| 22114 | if { (ac_try="$ac_link" |
| 22115 | case "(($ac_try" in |
| 22116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22117 | *) ac_try_echo=$ac_try;; |
| 22118 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 22120 | (eval "$ac_link") 2>&5 |
| 22121 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 22123 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22124 | { (case "(($ac_try" in |
| 22125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22126 | *) ac_try_echo=$ac_try;; |
| 22127 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 22129 | (eval "$ac_try") 2>&5 |
| 22130 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 22132 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22133 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22134 | echo "${ECHO_T}no" >&6; } |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 22135 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22136 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22137 | echo "$as_me: failed program was:" >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 22138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22139 | |
| 22140 | ( exit $ac_status ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22141 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22142 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 22143 | |
| 22144 | cat >>confdefs.h <<\_ACEOF |
| 22145 | #define HAVE_BROKEN_SEM_GETVALUE 1 |
| 22146 | _ACEOF |
| 22147 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22148 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 22149 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22150 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 22151 | fi |
| 22152 | |
| 22153 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 22154 | |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 22155 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 22156 | # -0. on some architectures. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22157 | { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5 |
| 22158 | 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] | 22159 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 22161 | else |
| 22162 | |
| 22163 | if test "$cross_compiling" = yes; then |
| 22164 | ac_cv_tanh_preserves_zero_sign=no |
| 22165 | else |
| 22166 | cat >conftest.$ac_ext <<_ACEOF |
| 22167 | /* confdefs.h. */ |
| 22168 | _ACEOF |
| 22169 | cat confdefs.h >>conftest.$ac_ext |
| 22170 | cat >>conftest.$ac_ext <<_ACEOF |
| 22171 | /* end confdefs.h. */ |
| 22172 | |
| 22173 | #include <math.h> |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 22174 | #include <stdlib.h> |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 22175 | int main() { |
| 22176 | /* return 0 if either negative zeros don't exist |
| 22177 | on this platform or if negative zeros exist |
| 22178 | and tanh(-0.) == -0. */ |
| 22179 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 22180 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 22181 | else exit(1); |
| 22182 | } |
| 22183 | |
| 22184 | _ACEOF |
| 22185 | rm -f conftest$ac_exeext |
| 22186 | if { (ac_try="$ac_link" |
| 22187 | case "(($ac_try" in |
| 22188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22189 | *) ac_try_echo=$ac_try;; |
| 22190 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 22192 | (eval "$ac_link") 2>&5 |
| 22193 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 22195 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22196 | { (case "(($ac_try" in |
| 22197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22198 | *) ac_try_echo=$ac_try;; |
| 22199 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 22201 | (eval "$ac_try") 2>&5 |
| 22202 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 22204 | (exit $ac_status); }; }; then |
| 22205 | ac_cv_tanh_preserves_zero_sign=yes |
| 22206 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22207 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22208 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 22209 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22210 | |
| 22211 | ( exit $ac_status ) |
| 22212 | ac_cv_tanh_preserves_zero_sign=no |
| 22213 | fi |
| 22214 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 22215 | fi |
| 22216 | |
| 22217 | |
| 22218 | fi |
| 22219 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22220 | { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 22221 | echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; } |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 22222 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 22223 | then |
| 22224 | |
| 22225 | cat >>confdefs.h <<\_ACEOF |
| 22226 | #define TANH_PRESERVES_ZERO_SIGN 1 |
| 22227 | _ACEOF |
| 22228 | |
| 22229 | fi |
| 22230 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22231 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 22232 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22233 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 22234 | |
| 22235 | |
| 22236 | |
| 22237 | |
| 22238 | |
Mark Dickinson | 8e5446f | 2009-04-18 14:41:37 +0000 | [diff] [blame] | 22239 | |
| 22240 | for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 22241 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22242 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22243 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22244 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 22245 | 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^] | 22246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 22247 | else |
| 22248 | cat >conftest.$ac_ext <<_ACEOF |
| 22249 | /* confdefs.h. */ |
| 22250 | _ACEOF |
| 22251 | cat confdefs.h >>conftest.$ac_ext |
| 22252 | cat >>conftest.$ac_ext <<_ACEOF |
| 22253 | /* end confdefs.h. */ |
| 22254 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22255 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22256 | #define $ac_func innocuous_$ac_func |
| 22257 | |
| 22258 | /* System header to define __stub macros and hopefully few prototypes, |
| 22259 | which can conflict with char $ac_func (); below. |
| 22260 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22261 | <limits.h> exists even on freestanding compilers. */ |
| 22262 | |
| 22263 | #ifdef __STDC__ |
| 22264 | # include <limits.h> |
| 22265 | #else |
| 22266 | # include <assert.h> |
| 22267 | #endif |
| 22268 | |
| 22269 | #undef $ac_func |
| 22270 | |
| 22271 | /* Override any GCC internal prototype to avoid an error. |
| 22272 | Use char because int might match the return type of a GCC |
| 22273 | builtin and then its argument prototype would still apply. */ |
| 22274 | #ifdef __cplusplus |
| 22275 | extern "C" |
| 22276 | #endif |
| 22277 | char $ac_func (); |
| 22278 | /* The GNU C library defines this for functions which it implements |
| 22279 | to always fail with ENOSYS. Some functions are actually named |
| 22280 | something starting with __ and the normal name is an alias. */ |
| 22281 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 22282 | choke me |
| 22283 | #endif |
| 22284 | |
| 22285 | int |
| 22286 | main () |
| 22287 | { |
| 22288 | return $ac_func (); |
| 22289 | ; |
| 22290 | return 0; |
| 22291 | } |
| 22292 | _ACEOF |
| 22293 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22294 | if { (ac_try="$ac_link" |
| 22295 | case "(($ac_try" in |
| 22296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22297 | *) ac_try_echo=$ac_try;; |
| 22298 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 22300 | (eval "$ac_link") 2>conftest.er1 |
| 22301 | ac_status=$? |
| 22302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22303 | rm -f conftest.er1 |
| 22304 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 22306 | (exit $ac_status); } && { |
| 22307 | test -z "$ac_c_werror_flag" || |
| 22308 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22309 | } && test -s conftest$ac_exeext && |
| 22310 | $as_test_x conftest$ac_exeext; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 22311 | eval "$as_ac_var=yes" |
| 22312 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22313 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 22314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22315 | |
| 22316 | eval "$as_ac_var=no" |
| 22317 | fi |
| 22318 | |
| 22319 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 22320 | conftest$ac_exeext conftest.$ac_ext |
| 22321 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22322 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 22323 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 22324 | echo "${ECHO_T}$ac_res" >&6; } |
| 22325 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 22326 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22327 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 22328 | _ACEOF |
| 22329 | |
| 22330 | fi |
| 22331 | done |
| 22332 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22333 | { echo "$as_me:$LINENO: checking whether isinf is declared" >&5 |
| 22334 | echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 22335 | if test "${ac_cv_have_decl_isinf+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 22337 | else |
| 22338 | cat >conftest.$ac_ext <<_ACEOF |
| 22339 | /* confdefs.h. */ |
| 22340 | _ACEOF |
| 22341 | cat confdefs.h >>conftest.$ac_ext |
| 22342 | cat >>conftest.$ac_ext <<_ACEOF |
| 22343 | /* end confdefs.h. */ |
| 22344 | #include <math.h> |
| 22345 | |
| 22346 | int |
| 22347 | main () |
| 22348 | { |
| 22349 | #ifndef isinf |
| 22350 | (void) isinf; |
| 22351 | #endif |
| 22352 | |
| 22353 | ; |
| 22354 | return 0; |
| 22355 | } |
| 22356 | _ACEOF |
| 22357 | rm -f conftest.$ac_objext |
| 22358 | if { (ac_try="$ac_compile" |
| 22359 | case "(($ac_try" in |
| 22360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22361 | *) ac_try_echo=$ac_try;; |
| 22362 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 22364 | (eval "$ac_compile") 2>conftest.er1 |
| 22365 | ac_status=$? |
| 22366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22367 | rm -f conftest.er1 |
| 22368 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 22370 | (exit $ac_status); } && { |
| 22371 | test -z "$ac_c_werror_flag" || |
| 22372 | test ! -s conftest.err |
| 22373 | } && test -s conftest.$ac_objext; then |
| 22374 | ac_cv_have_decl_isinf=yes |
| 22375 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22376 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 22377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22378 | |
| 22379 | ac_cv_have_decl_isinf=no |
| 22380 | fi |
| 22381 | |
| 22382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22383 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22384 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5 |
| 22385 | echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; } |
| 22386 | if test $ac_cv_have_decl_isinf = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 22387 | |
| 22388 | cat >>confdefs.h <<_ACEOF |
| 22389 | #define HAVE_DECL_ISINF 1 |
| 22390 | _ACEOF |
| 22391 | |
| 22392 | |
| 22393 | else |
| 22394 | cat >>confdefs.h <<_ACEOF |
| 22395 | #define HAVE_DECL_ISINF 0 |
| 22396 | _ACEOF |
| 22397 | |
| 22398 | |
| 22399 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22400 | { echo "$as_me:$LINENO: checking whether isnan is declared" >&5 |
| 22401 | echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 22402 | if test "${ac_cv_have_decl_isnan+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 22404 | else |
| 22405 | cat >conftest.$ac_ext <<_ACEOF |
| 22406 | /* confdefs.h. */ |
| 22407 | _ACEOF |
| 22408 | cat confdefs.h >>conftest.$ac_ext |
| 22409 | cat >>conftest.$ac_ext <<_ACEOF |
| 22410 | /* end confdefs.h. */ |
| 22411 | #include <math.h> |
| 22412 | |
| 22413 | int |
| 22414 | main () |
| 22415 | { |
| 22416 | #ifndef isnan |
| 22417 | (void) isnan; |
| 22418 | #endif |
| 22419 | |
| 22420 | ; |
| 22421 | return 0; |
| 22422 | } |
| 22423 | _ACEOF |
| 22424 | rm -f conftest.$ac_objext |
| 22425 | if { (ac_try="$ac_compile" |
| 22426 | case "(($ac_try" in |
| 22427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22428 | *) ac_try_echo=$ac_try;; |
| 22429 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 22431 | (eval "$ac_compile") 2>conftest.er1 |
| 22432 | ac_status=$? |
| 22433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22434 | rm -f conftest.er1 |
| 22435 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 22437 | (exit $ac_status); } && { |
| 22438 | test -z "$ac_c_werror_flag" || |
| 22439 | test ! -s conftest.err |
| 22440 | } && test -s conftest.$ac_objext; then |
| 22441 | ac_cv_have_decl_isnan=yes |
| 22442 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22443 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 22444 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22445 | |
| 22446 | ac_cv_have_decl_isnan=no |
| 22447 | fi |
| 22448 | |
| 22449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22450 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22451 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5 |
| 22452 | echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; } |
| 22453 | if test $ac_cv_have_decl_isnan = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 22454 | |
| 22455 | cat >>confdefs.h <<_ACEOF |
| 22456 | #define HAVE_DECL_ISNAN 1 |
| 22457 | _ACEOF |
| 22458 | |
| 22459 | |
| 22460 | else |
| 22461 | cat >>confdefs.h <<_ACEOF |
| 22462 | #define HAVE_DECL_ISNAN 0 |
| 22463 | _ACEOF |
| 22464 | |
| 22465 | |
| 22466 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22467 | { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5 |
| 22468 | echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 22469 | if test "${ac_cv_have_decl_isfinite+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 22471 | else |
| 22472 | cat >conftest.$ac_ext <<_ACEOF |
| 22473 | /* confdefs.h. */ |
| 22474 | _ACEOF |
| 22475 | cat confdefs.h >>conftest.$ac_ext |
| 22476 | cat >>conftest.$ac_ext <<_ACEOF |
| 22477 | /* end confdefs.h. */ |
| 22478 | #include <math.h> |
| 22479 | |
| 22480 | int |
| 22481 | main () |
| 22482 | { |
| 22483 | #ifndef isfinite |
| 22484 | (void) isfinite; |
| 22485 | #endif |
| 22486 | |
| 22487 | ; |
| 22488 | return 0; |
| 22489 | } |
| 22490 | _ACEOF |
| 22491 | rm -f conftest.$ac_objext |
| 22492 | if { (ac_try="$ac_compile" |
| 22493 | case "(($ac_try" in |
| 22494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22495 | *) ac_try_echo=$ac_try;; |
| 22496 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 22498 | (eval "$ac_compile") 2>conftest.er1 |
| 22499 | ac_status=$? |
| 22500 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22501 | rm -f conftest.er1 |
| 22502 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 22504 | (exit $ac_status); } && { |
| 22505 | test -z "$ac_c_werror_flag" || |
| 22506 | test ! -s conftest.err |
| 22507 | } && test -s conftest.$ac_objext; then |
| 22508 | ac_cv_have_decl_isfinite=yes |
| 22509 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22510 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 22511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22512 | |
| 22513 | ac_cv_have_decl_isfinite=no |
| 22514 | fi |
| 22515 | |
| 22516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22517 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22518 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5 |
| 22519 | echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; } |
| 22520 | if test $ac_cv_have_decl_isfinite = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 22521 | |
| 22522 | cat >>confdefs.h <<_ACEOF |
| 22523 | #define HAVE_DECL_ISFINITE 1 |
| 22524 | _ACEOF |
| 22525 | |
| 22526 | |
| 22527 | else |
| 22528 | cat >>confdefs.h <<_ACEOF |
| 22529 | #define HAVE_DECL_ISFINITE 0 |
| 22530 | _ACEOF |
| 22531 | |
| 22532 | |
| 22533 | fi |
| 22534 | |
| 22535 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 22536 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 22537 | LIBS=$LIBS_SAVE |
| 22538 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 22539 | # determine what size digit to use for Python's longs |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22540 | { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5 |
| 22541 | 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] | 22542 | # Check whether --enable-big-digits was given. |
| 22543 | if test "${enable_big_digits+set}" = set; then |
| 22544 | enableval=$enable_big_digits; case $enable_big_digits in |
| 22545 | yes) |
| 22546 | enable_big_digits=30 ;; |
| 22547 | no) |
| 22548 | enable_big_digits=15 ;; |
| 22549 | 15|30) |
| 22550 | ;; |
| 22551 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22552 | { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5 |
| 22553 | 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] | 22554 | { (exit 1); exit 1; }; } ;; |
| 22555 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22556 | { echo "$as_me:$LINENO: result: $enable_big_digits" >&5 |
| 22557 | echo "${ECHO_T}$enable_big_digits" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 22558 | |
| 22559 | cat >>confdefs.h <<_ACEOF |
| 22560 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 22561 | _ACEOF |
| 22562 | |
| 22563 | |
| 22564 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22565 | { echo "$as_me:$LINENO: result: no value specified" >&5 |
| 22566 | echo "${ECHO_T}no value specified" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 22567 | fi |
| 22568 | |
| 22569 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22570 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22571 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22572 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 22573 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22574 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22576 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22577 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 22578 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22579 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22580 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22581 | { echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 22582 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22583 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22584 | /* confdefs.h. */ |
| 22585 | _ACEOF |
| 22586 | cat confdefs.h >>conftest.$ac_ext |
| 22587 | cat >>conftest.$ac_ext <<_ACEOF |
| 22588 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22589 | $ac_includes_default |
| 22590 | #include <wchar.h> |
| 22591 | _ACEOF |
| 22592 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22593 | if { (ac_try="$ac_compile" |
| 22594 | case "(($ac_try" in |
| 22595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22596 | *) ac_try_echo=$ac_try;; |
| 22597 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22599 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22600 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22602 | rm -f conftest.er1 |
| 22603 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22605 | (exit $ac_status); } && { |
| 22606 | test -z "$ac_c_werror_flag" || |
| 22607 | test ! -s conftest.err |
| 22608 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22609 | ac_header_compiler=yes |
| 22610 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22611 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22612 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22613 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22614 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22615 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22616 | |
| 22617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22618 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 22619 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22620 | |
| 22621 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22622 | { echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 22623 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22624 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22625 | /* confdefs.h. */ |
| 22626 | _ACEOF |
| 22627 | cat confdefs.h >>conftest.$ac_ext |
| 22628 | cat >>conftest.$ac_ext <<_ACEOF |
| 22629 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22630 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22631 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22632 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 22633 | case "(($ac_try" in |
| 22634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22635 | *) ac_try_echo=$ac_try;; |
| 22636 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22638 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22639 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22640 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22641 | rm -f conftest.er1 |
| 22642 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22644 | (exit $ac_status); } >/dev/null && { |
| 22645 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 22646 | test ! -s conftest.err |
| 22647 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22648 | ac_header_preproc=yes |
| 22649 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22650 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22652 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22653 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22654 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22655 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22656 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22657 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 22658 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22659 | |
| 22660 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22661 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 22662 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22663 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 22664 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 22665 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 22666 | 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] | 22667 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22668 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22669 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22670 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 22671 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 22672 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 22673 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 22674 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 22675 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 22676 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 22677 | echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 22678 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 22679 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 22680 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 22681 | 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] | 22682 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 22683 | ## -------------------------------------- ## |
| 22684 | ## Report this to http://bugs.python.org/ ## |
| 22685 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22686 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22687 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22688 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22689 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22690 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 22691 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22692 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22694 | else |
| 22695 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22696 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22697 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 22698 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22699 | |
| 22700 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22701 | if test $ac_cv_header_wchar_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22702 | |
| 22703 | |
| 22704 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22705 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22706 | _ACEOF |
| 22707 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22708 | wchar_h="yes" |
| 22709 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22710 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22711 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22712 | |
| 22713 | fi |
| 22714 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22715 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22716 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22717 | # determine wchar_t size |
| 22718 | if test "$wchar_h" = yes |
| 22719 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22720 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 22721 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
| 22722 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 22723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22724 | else |
| 22725 | cat >conftest.$ac_ext <<_ACEOF |
| 22726 | /* confdefs.h. */ |
| 22727 | _ACEOF |
| 22728 | cat confdefs.h >>conftest.$ac_ext |
| 22729 | cat >>conftest.$ac_ext <<_ACEOF |
| 22730 | /* end confdefs.h. */ |
| 22731 | #include <wchar.h> |
| 22732 | |
| 22733 | typedef wchar_t ac__type_new_; |
| 22734 | int |
| 22735 | main () |
| 22736 | { |
| 22737 | if ((ac__type_new_ *) 0) |
| 22738 | return 0; |
| 22739 | if (sizeof (ac__type_new_)) |
| 22740 | return 0; |
| 22741 | ; |
| 22742 | return 0; |
| 22743 | } |
| 22744 | _ACEOF |
| 22745 | rm -f conftest.$ac_objext |
| 22746 | if { (ac_try="$ac_compile" |
| 22747 | case "(($ac_try" in |
| 22748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22749 | *) ac_try_echo=$ac_try;; |
| 22750 | esac |
| 22751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22752 | (eval "$ac_compile") 2>conftest.er1 |
| 22753 | ac_status=$? |
| 22754 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22755 | rm -f conftest.er1 |
| 22756 | cat conftest.err >&5 |
| 22757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22758 | (exit $ac_status); } && { |
| 22759 | test -z "$ac_c_werror_flag" || |
| 22760 | test ! -s conftest.err |
| 22761 | } && test -s conftest.$ac_objext; then |
| 22762 | ac_cv_type_wchar_t=yes |
| 22763 | else |
| 22764 | echo "$as_me: failed program was:" >&5 |
| 22765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22766 | |
| 22767 | ac_cv_type_wchar_t=no |
| 22768 | fi |
| 22769 | |
| 22770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22771 | fi |
| 22772 | { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 22773 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; } |
| 22774 | |
| 22775 | # 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] | 22776 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 22777 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 22778 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22779 | { echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 22780 | 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] | 22781 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22783 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22784 | if test "$cross_compiling" = yes; then |
| 22785 | # Depending upon the size, compute the lo and hi bounds. |
| 22786 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22787 | /* confdefs.h. */ |
| 22788 | _ACEOF |
| 22789 | cat confdefs.h >>conftest.$ac_ext |
| 22790 | cat >>conftest.$ac_ext <<_ACEOF |
| 22791 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22792 | #include <wchar.h> |
| 22793 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22794 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22795 | int |
| 22796 | main () |
| 22797 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22798 | 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] | 22799 | test_array [0] = 0 |
| 22800 | |
| 22801 | ; |
| 22802 | return 0; |
| 22803 | } |
| 22804 | _ACEOF |
| 22805 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22806 | if { (ac_try="$ac_compile" |
| 22807 | case "(($ac_try" in |
| 22808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22809 | *) ac_try_echo=$ac_try;; |
| 22810 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22812 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22813 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22814 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22815 | rm -f conftest.er1 |
| 22816 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22818 | (exit $ac_status); } && { |
| 22819 | test -z "$ac_c_werror_flag" || |
| 22820 | test ! -s conftest.err |
| 22821 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22822 | ac_lo=0 ac_mid=0 |
| 22823 | while :; do |
| 22824 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22825 | /* confdefs.h. */ |
| 22826 | _ACEOF |
| 22827 | cat confdefs.h >>conftest.$ac_ext |
| 22828 | cat >>conftest.$ac_ext <<_ACEOF |
| 22829 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22830 | #include <wchar.h> |
| 22831 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22832 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22833 | int |
| 22834 | main () |
| 22835 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22836 | 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] | 22837 | test_array [0] = 0 |
| 22838 | |
| 22839 | ; |
| 22840 | return 0; |
| 22841 | } |
| 22842 | _ACEOF |
| 22843 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22844 | if { (ac_try="$ac_compile" |
| 22845 | case "(($ac_try" in |
| 22846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22847 | *) ac_try_echo=$ac_try;; |
| 22848 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22850 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22851 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22852 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22853 | rm -f conftest.er1 |
| 22854 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22856 | (exit $ac_status); } && { |
| 22857 | test -z "$ac_c_werror_flag" || |
| 22858 | test ! -s conftest.err |
| 22859 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22860 | ac_hi=$ac_mid; break |
| 22861 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22862 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22864 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22865 | ac_lo=`expr $ac_mid + 1` |
| 22866 | if test $ac_lo -le $ac_mid; then |
| 22867 | ac_lo= ac_hi= |
| 22868 | break |
| 22869 | fi |
| 22870 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22871 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22872 | |
| 22873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22874 | done |
| 22875 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22876 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22878 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22879 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22880 | /* confdefs.h. */ |
| 22881 | _ACEOF |
| 22882 | cat confdefs.h >>conftest.$ac_ext |
| 22883 | cat >>conftest.$ac_ext <<_ACEOF |
| 22884 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22885 | #include <wchar.h> |
| 22886 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22887 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22888 | int |
| 22889 | main () |
| 22890 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22891 | 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] | 22892 | test_array [0] = 0 |
| 22893 | |
| 22894 | ; |
| 22895 | return 0; |
| 22896 | } |
| 22897 | _ACEOF |
| 22898 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22899 | if { (ac_try="$ac_compile" |
| 22900 | case "(($ac_try" in |
| 22901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22902 | *) ac_try_echo=$ac_try;; |
| 22903 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22905 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22906 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22908 | rm -f conftest.er1 |
| 22909 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22911 | (exit $ac_status); } && { |
| 22912 | test -z "$ac_c_werror_flag" || |
| 22913 | test ! -s conftest.err |
| 22914 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22915 | ac_hi=-1 ac_mid=-1 |
| 22916 | while :; do |
| 22917 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22918 | /* confdefs.h. */ |
| 22919 | _ACEOF |
| 22920 | cat confdefs.h >>conftest.$ac_ext |
| 22921 | cat >>conftest.$ac_ext <<_ACEOF |
| 22922 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22923 | #include <wchar.h> |
| 22924 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22925 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22926 | int |
| 22927 | main () |
| 22928 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22929 | 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] | 22930 | test_array [0] = 0 |
| 22931 | |
| 22932 | ; |
| 22933 | return 0; |
| 22934 | } |
| 22935 | _ACEOF |
| 22936 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22937 | if { (ac_try="$ac_compile" |
| 22938 | case "(($ac_try" in |
| 22939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22940 | *) ac_try_echo=$ac_try;; |
| 22941 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22943 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22944 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22946 | rm -f conftest.er1 |
| 22947 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22949 | (exit $ac_status); } && { |
| 22950 | test -z "$ac_c_werror_flag" || |
| 22951 | test ! -s conftest.err |
| 22952 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22953 | ac_lo=$ac_mid; break |
| 22954 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22955 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22957 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22958 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 22959 | if test $ac_mid -le $ac_hi; then |
| 22960 | ac_lo= ac_hi= |
| 22961 | break |
| 22962 | fi |
| 22963 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22964 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22965 | |
| 22966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22967 | done |
| 22968 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22969 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22971 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22972 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22973 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22974 | |
| 22975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22976 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22977 | |
| 22978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22979 | # Binary search between lo and hi bounds. |
| 22980 | while test "x$ac_lo" != "x$ac_hi"; do |
| 22981 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 22982 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22983 | /* confdefs.h. */ |
| 22984 | _ACEOF |
| 22985 | cat confdefs.h >>conftest.$ac_ext |
| 22986 | cat >>conftest.$ac_ext <<_ACEOF |
| 22987 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22988 | #include <wchar.h> |
| 22989 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22990 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22991 | int |
| 22992 | main () |
| 22993 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 22994 | 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] | 22995 | test_array [0] = 0 |
| 22996 | |
| 22997 | ; |
| 22998 | return 0; |
| 22999 | } |
| 23000 | _ACEOF |
| 23001 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23002 | if { (ac_try="$ac_compile" |
| 23003 | case "(($ac_try" in |
| 23004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23005 | *) ac_try_echo=$ac_try;; |
| 23006 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23008 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23009 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23010 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23011 | rm -f conftest.er1 |
| 23012 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23014 | (exit $ac_status); } && { |
| 23015 | test -z "$ac_c_werror_flag" || |
| 23016 | test ! -s conftest.err |
| 23017 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23018 | ac_hi=$ac_mid |
| 23019 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23020 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23021 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23022 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23023 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23024 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23025 | |
| 23026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23027 | done |
| 23028 | case $ac_lo in |
| 23029 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23030 | '') if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23031 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23032 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23033 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23034 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23035 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23036 | else |
| 23037 | ac_cv_sizeof_wchar_t=0 |
| 23038 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23039 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23040 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23041 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23042 | /* confdefs.h. */ |
| 23043 | _ACEOF |
| 23044 | cat confdefs.h >>conftest.$ac_ext |
| 23045 | cat >>conftest.$ac_ext <<_ACEOF |
| 23046 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23047 | #include <wchar.h> |
| 23048 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23049 | typedef wchar_t ac__type_sizeof_; |
| 23050 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 23051 | 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] | 23052 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23053 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23054 | int |
| 23055 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23056 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23057 | |
| 23058 | FILE *f = fopen ("conftest.val", "w"); |
| 23059 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23060 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23061 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23062 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23063 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23064 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23065 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23066 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23067 | } |
| 23068 | else |
| 23069 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23070 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23071 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23072 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23073 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23074 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23075 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23076 | |
| 23077 | ; |
| 23078 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23079 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23080 | _ACEOF |
| 23081 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23082 | if { (ac_try="$ac_link" |
| 23083 | case "(($ac_try" in |
| 23084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23085 | *) ac_try_echo=$ac_try;; |
| 23086 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23088 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23089 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23091 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23092 | { (case "(($ac_try" in |
| 23093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23094 | *) ac_try_echo=$ac_try;; |
| 23095 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23097 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23098 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23100 | (exit $ac_status); }; }; then |
| 23101 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23102 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23103 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23104 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23105 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23106 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23107 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23108 | if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23109 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23110 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23111 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23112 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23113 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23114 | else |
| 23115 | ac_cv_sizeof_wchar_t=0 |
| 23116 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23117 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23118 | 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] | 23119 | fi |
| 23120 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23121 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23122 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 23123 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23124 | |
| 23125 | |
| 23126 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23127 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23128 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23129 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23130 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23131 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23132 | fi |
| 23133 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23134 | { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 23135 | 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] | 23136 | have_ucs4_tcl=no |
| 23137 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23138 | /* confdefs.h. */ |
| 23139 | _ACEOF |
| 23140 | cat confdefs.h >>conftest.$ac_ext |
| 23141 | cat >>conftest.$ac_ext <<_ACEOF |
| 23142 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 23143 | |
| 23144 | #include <tcl.h> |
| 23145 | #if TCL_UTF_MAX != 6 |
| 23146 | # error "NOT UCS4_TCL" |
| 23147 | #endif |
| 23148 | int |
| 23149 | main () |
| 23150 | { |
| 23151 | |
| 23152 | ; |
| 23153 | return 0; |
| 23154 | } |
| 23155 | _ACEOF |
| 23156 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23157 | if { (ac_try="$ac_compile" |
| 23158 | case "(($ac_try" in |
| 23159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23160 | *) ac_try_echo=$ac_try;; |
| 23161 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23163 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 23164 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23165 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23166 | rm -f conftest.er1 |
| 23167 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23169 | (exit $ac_status); } && { |
| 23170 | test -z "$ac_c_werror_flag" || |
| 23171 | test ! -s conftest.err |
| 23172 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 23173 | |
| 23174 | |
| 23175 | cat >>confdefs.h <<\_ACEOF |
| 23176 | #define HAVE_UCS4_TCL 1 |
| 23177 | _ACEOF |
| 23178 | |
| 23179 | have_ucs4_tcl=yes |
| 23180 | |
| 23181 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23182 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23184 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23185 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 23186 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23187 | |
| 23188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23189 | { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 23190 | echo "${ECHO_T}$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 23191 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23192 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23193 | if test "$wchar_h" = yes |
| 23194 | then |
| 23195 | # check whether wchar_t is signed or not |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23196 | { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 23197 | 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] | 23198 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23200 | else |
| 23201 | |
| 23202 | if test "$cross_compiling" = yes; then |
| 23203 | ac_cv_wchar_t_signed=yes |
| 23204 | else |
| 23205 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23206 | /* confdefs.h. */ |
| 23207 | _ACEOF |
| 23208 | cat confdefs.h >>conftest.$ac_ext |
| 23209 | cat >>conftest.$ac_ext <<_ACEOF |
| 23210 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23211 | |
| 23212 | #include <wchar.h> |
| 23213 | int main() |
| 23214 | { |
Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 23215 | /* Success: exit code 0 */ |
| 23216 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23217 | } |
| 23218 | |
| 23219 | _ACEOF |
| 23220 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23221 | if { (ac_try="$ac_link" |
| 23222 | case "(($ac_try" in |
| 23223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23224 | *) ac_try_echo=$ac_try;; |
| 23225 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23227 | (eval "$ac_link") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23228 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23230 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23231 | { (case "(($ac_try" in |
| 23232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23233 | *) ac_try_echo=$ac_try;; |
| 23234 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23236 | (eval "$ac_try") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23237 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23239 | (exit $ac_status); }; }; then |
| 23240 | ac_cv_wchar_t_signed=yes |
| 23241 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23242 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23243 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23245 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23246 | ( exit $ac_status ) |
| 23247 | ac_cv_wchar_t_signed=no |
| 23248 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23249 | 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] | 23250 | fi |
| 23251 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23252 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23253 | fi |
| 23254 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23255 | { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 23256 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23257 | fi |
| 23258 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23259 | { echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 23260 | 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] | 23261 | # Check whether --enable-unicode was given. |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23262 | if test "${enable_unicode+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23263 | enableval=$enable_unicode; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23264 | else |
| 23265 | enable_unicode=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23266 | fi |
| 23267 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23268 | |
| 23269 | if test $enable_unicode = yes |
| 23270 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 23271 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 23272 | case "$have_ucs4_tcl" in |
| 23273 | yes) enable_unicode="ucs4" |
| 23274 | ;; |
| 23275 | *) enable_unicode="ucs2" |
| 23276 | ;; |
| 23277 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23278 | fi |
| 23279 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 23280 | |
| 23281 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23282 | case "$enable_unicode" in |
| 23283 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23284 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23285 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23286 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23287 | |
| 23288 | ;; |
| 23289 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23290 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23291 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23292 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23293 | |
| 23294 | ;; |
| 23295 | esac |
| 23296 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23297 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23298 | |
| 23299 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 23300 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23301 | if test "$enable_unicode" = "no" |
| 23302 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 23303 | UNICODE_OBJS="" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23304 | { echo "$as_me:$LINENO: result: not used" >&5 |
| 23305 | echo "${ECHO_T}not used" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23306 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 23307 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23308 | |
| 23309 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23310 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23311 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23312 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23313 | |
| 23314 | # wchar_t is only usable if it maps to an unsigned type |
| 23315 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 23316 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23317 | then |
| 23318 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23319 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23320 | cat >>confdefs.h <<\_ACEOF |
| 23321 | #define HAVE_USABLE_WCHAR_T 1 |
| 23322 | _ACEOF |
| 23323 | |
| 23324 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23325 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23326 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23327 | |
| 23328 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 23329 | then |
| 23330 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23331 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23332 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23333 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23334 | |
| 23335 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 23336 | then |
| 23337 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23338 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23339 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23340 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23341 | |
| 23342 | else |
| 23343 | PY_UNICODE_TYPE="no type found" |
| 23344 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23345 | { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 23346 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23347 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23348 | |
| 23349 | # check for endianness |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23350 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 23351 | 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] | 23352 | if test "${ac_cv_c_bigendian+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23354 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23355 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 23356 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23357 | /* confdefs.h. */ |
| 23358 | _ACEOF |
| 23359 | cat confdefs.h >>conftest.$ac_ext |
| 23360 | cat >>conftest.$ac_ext <<_ACEOF |
| 23361 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23362 | #include <sys/types.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23363 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23364 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23365 | int |
| 23366 | main () |
| 23367 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23368 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 23369 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
| 23370 | bogus endian macros |
| 23371 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23372 | |
| 23373 | ; |
| 23374 | return 0; |
| 23375 | } |
| 23376 | _ACEOF |
| 23377 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23378 | if { (ac_try="$ac_compile" |
| 23379 | case "(($ac_try" in |
| 23380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23381 | *) ac_try_echo=$ac_try;; |
| 23382 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23384 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23385 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23386 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23387 | rm -f conftest.er1 |
| 23388 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23390 | (exit $ac_status); } && { |
| 23391 | test -z "$ac_c_werror_flag" || |
| 23392 | test ! -s conftest.err |
| 23393 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23394 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23395 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23396 | /* confdefs.h. */ |
| 23397 | _ACEOF |
| 23398 | cat confdefs.h >>conftest.$ac_ext |
| 23399 | cat >>conftest.$ac_ext <<_ACEOF |
| 23400 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23401 | #include <sys/types.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23402 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23403 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23404 | int |
| 23405 | main () |
| 23406 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23407 | #if BYTE_ORDER != BIG_ENDIAN |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23408 | not big endian |
| 23409 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23410 | |
| 23411 | ; |
| 23412 | return 0; |
| 23413 | } |
| 23414 | _ACEOF |
| 23415 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23416 | if { (ac_try="$ac_compile" |
| 23417 | case "(($ac_try" in |
| 23418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23419 | *) ac_try_echo=$ac_try;; |
| 23420 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23422 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23423 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23424 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23425 | rm -f conftest.er1 |
| 23426 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23428 | (exit $ac_status); } && { |
| 23429 | test -z "$ac_c_werror_flag" || |
| 23430 | test ! -s conftest.err |
| 23431 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23432 | ac_cv_c_bigendian=yes |
| 23433 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23434 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23436 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23437 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23438 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23439 | |
| 23440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23441 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23442 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23444 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23445 | # It does not; compile a test program. |
| 23446 | if test "$cross_compiling" = yes; then |
| 23447 | # try to guess the endianness by grepping values into an object file |
| 23448 | ac_cv_c_bigendian=unknown |
| 23449 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23450 | /* confdefs.h. */ |
| 23451 | _ACEOF |
| 23452 | cat confdefs.h >>conftest.$ac_ext |
| 23453 | cat >>conftest.$ac_ext <<_ACEOF |
| 23454 | /* end confdefs.h. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23455 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 23456 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 23457 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 23458 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 23459 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 23460 | 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] | 23461 | int |
| 23462 | main () |
| 23463 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23464 | _ascii (); _ebcdic (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23465 | ; |
| 23466 | return 0; |
| 23467 | } |
| 23468 | _ACEOF |
| 23469 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23470 | if { (ac_try="$ac_compile" |
| 23471 | case "(($ac_try" in |
| 23472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23473 | *) ac_try_echo=$ac_try;; |
| 23474 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23476 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23477 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23479 | rm -f conftest.er1 |
| 23480 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23482 | (exit $ac_status); } && { |
| 23483 | test -z "$ac_c_werror_flag" || |
| 23484 | test ! -s conftest.err |
| 23485 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23486 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23487 | ac_cv_c_bigendian=yes |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 23488 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23489 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 23490 | if test "$ac_cv_c_bigendian" = unknown; then |
| 23491 | ac_cv_c_bigendian=no |
| 23492 | else |
| 23493 | # finding both strings is unlikely to happen, but who knows? |
| 23494 | ac_cv_c_bigendian=unknown |
| 23495 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 23496 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 23497 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23498 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23500 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23501 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23502 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23503 | |
| 23504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23505 | else |
| 23506 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23507 | /* confdefs.h. */ |
| 23508 | _ACEOF |
| 23509 | cat confdefs.h >>conftest.$ac_ext |
| 23510 | cat >>conftest.$ac_ext <<_ACEOF |
| 23511 | /* end confdefs.h. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23512 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23513 | int |
| 23514 | main () |
| 23515 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23516 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23517 | /* Are we little or big endian? From Harbison&Steele. */ |
| 23518 | union |
| 23519 | { |
| 23520 | long int l; |
| 23521 | char c[sizeof (long int)]; |
| 23522 | } u; |
| 23523 | u.l = 1; |
| 23524 | return u.c[sizeof (long int) - 1] == 1; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23525 | |
| 23526 | ; |
| 23527 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23528 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23529 | _ACEOF |
| 23530 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23531 | if { (ac_try="$ac_link" |
| 23532 | case "(($ac_try" in |
| 23533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23534 | *) ac_try_echo=$ac_try;; |
| 23535 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23537 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23538 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23540 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23541 | { (case "(($ac_try" in |
| 23542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23543 | *) ac_try_echo=$ac_try;; |
| 23544 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23546 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23547 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23549 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23550 | ac_cv_c_bigendian=no |
| 23551 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23552 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23553 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23555 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23556 | ( exit $ac_status ) |
| 23557 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23558 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23559 | 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] | 23560 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23561 | |
| 23562 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23563 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23564 | |
| 23565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23566 | fi |
| 23567 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 23568 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 23569 | case $ac_cv_c_bigendian in |
| 23570 | yes) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 23571 | |
| 23572 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23573 | #define WORDS_BIGENDIAN 1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 23574 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23575 | ;; |
| 23576 | no) |
| 23577 | ;; |
| 23578 | *) |
| 23579 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 23580 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 23581 | echo "$as_me: error: unknown endianness |
| 23582 | 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] | 23583 | { (exit 1); exit 1; }; } ;; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23584 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23585 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23586 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23587 | # Check whether right shifting a negative integer extends the sign bit |
| 23588 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23589 | { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 23590 | 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] | 23591 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 23593 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23594 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23595 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 23596 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23597 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23598 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23599 | /* confdefs.h. */ |
| 23600 | _ACEOF |
| 23601 | cat confdefs.h >>conftest.$ac_ext |
| 23602 | cat >>conftest.$ac_ext <<_ACEOF |
| 23603 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23604 | |
| 23605 | int main() |
| 23606 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 23607 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23608 | } |
| 23609 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23610 | _ACEOF |
| 23611 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23612 | if { (ac_try="$ac_link" |
| 23613 | case "(($ac_try" in |
| 23614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23615 | *) ac_try_echo=$ac_try;; |
| 23616 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23618 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23619 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23621 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23622 | { (case "(($ac_try" in |
| 23623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23624 | *) ac_try_echo=$ac_try;; |
| 23625 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23627 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23628 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23630 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 23631 | ac_cv_rshift_extends_sign=yes |
| 23632 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23633 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23634 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23636 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23637 | ( exit $ac_status ) |
| 23638 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 23639 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23640 | 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] | 23641 | fi |
| 23642 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23643 | |
| 23644 | fi |
| 23645 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23646 | { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 23647 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 23648 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23649 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23650 | |
| 23651 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23652 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23653 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23654 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23655 | fi |
| 23656 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23657 | # check for getc_unlocked and related locking functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23658 | { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 23659 | 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] | 23660 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23662 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23663 | |
| 23664 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23665 | /* confdefs.h. */ |
| 23666 | _ACEOF |
| 23667 | cat confdefs.h >>conftest.$ac_ext |
| 23668 | cat >>conftest.$ac_ext <<_ACEOF |
| 23669 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23670 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23671 | int |
| 23672 | main () |
| 23673 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23674 | |
| 23675 | FILE *f = fopen("/dev/null", "r"); |
| 23676 | flockfile(f); |
| 23677 | getc_unlocked(f); |
| 23678 | funlockfile(f); |
| 23679 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23680 | ; |
| 23681 | return 0; |
| 23682 | } |
| 23683 | _ACEOF |
| 23684 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23685 | if { (ac_try="$ac_link" |
| 23686 | case "(($ac_try" in |
| 23687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23688 | *) ac_try_echo=$ac_try;; |
| 23689 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23691 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23692 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23693 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23694 | rm -f conftest.er1 |
| 23695 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23697 | (exit $ac_status); } && { |
| 23698 | test -z "$ac_c_werror_flag" || |
| 23699 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23700 | } && test -s conftest$ac_exeext && |
| 23701 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23702 | ac_cv_have_getc_unlocked=yes |
| 23703 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23704 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23706 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23707 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23708 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23709 | |
| 23710 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23711 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23712 | fi |
| 23713 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23714 | { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 23715 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23716 | if test "$ac_cv_have_getc_unlocked" = yes |
| 23717 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23718 | |
| 23719 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23720 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23721 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23722 | |
| 23723 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23724 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23725 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 23726 | # save the value of LIBS so we don't actually link Python with readline |
| 23727 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23728 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 23729 | # On some systems we need to link readline to a termcap compatible |
| 23730 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 23731 | # with setup.py. |
| 23732 | py_cv_lib_readline=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23733 | { echo "$as_me:$LINENO: checking how to link readline libs" >&5 |
| 23734 | 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] | 23735 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 23736 | if test -z "$py_libtermcap"; then |
| 23737 | READLINE_LIBS="-lreadline" |
| 23738 | else |
| 23739 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 23740 | fi |
| 23741 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
| 23742 | cat >conftest.$ac_ext <<_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23743 | /* confdefs.h. */ |
| 23744 | _ACEOF |
| 23745 | cat confdefs.h >>conftest.$ac_ext |
| 23746 | cat >>conftest.$ac_ext <<_ACEOF |
| 23747 | /* end confdefs.h. */ |
| 23748 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23749 | /* Override any GCC internal prototype to avoid an error. |
| 23750 | Use char because int might match the return type of a GCC |
| 23751 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23752 | #ifdef __cplusplus |
| 23753 | extern "C" |
| 23754 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23755 | char readline (); |
| 23756 | int |
| 23757 | main () |
| 23758 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23759 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23760 | ; |
| 23761 | return 0; |
| 23762 | } |
| 23763 | _ACEOF |
| 23764 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23765 | if { (ac_try="$ac_link" |
| 23766 | case "(($ac_try" in |
| 23767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23768 | *) ac_try_echo=$ac_try;; |
| 23769 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23771 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23772 | ac_status=$? |
| 23773 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23774 | rm -f conftest.er1 |
| 23775 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23777 | (exit $ac_status); } && { |
| 23778 | test -z "$ac_c_werror_flag" || |
| 23779 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23780 | } && test -s conftest$ac_exeext && |
| 23781 | $as_test_x conftest$ac_exeext; then |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 23782 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23783 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23784 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23786 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 23787 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23788 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23789 | |
| 23790 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23791 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 23792 | if test $py_cv_lib_readline = yes; then |
| 23793 | break |
| 23794 | fi |
| 23795 | done |
| 23796 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 23797 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | e080cdf | 2008-09-07 19:19:04 +0000 | [diff] [blame] | 23798 | if test $py_cv_lib_readline = no; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23799 | { echo "$as_me:$LINENO: result: none" >&5 |
| 23800 | echo "${ECHO_T}none" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 23801 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23802 | { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5 |
| 23803 | echo "${ECHO_T}$READLINE_LIBS" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 23804 | |
| 23805 | cat >>confdefs.h <<\_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23806 | #define HAVE_LIBREADLINE 1 |
| 23807 | _ACEOF |
| 23808 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23809 | fi |
| 23810 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23811 | # check for readline 2.1 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23812 | { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 23813 | 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] | 23814 | 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^] | 23815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23816 | else |
| 23817 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 23818 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23819 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23820 | /* confdefs.h. */ |
| 23821 | _ACEOF |
| 23822 | cat confdefs.h >>conftest.$ac_ext |
| 23823 | cat >>conftest.$ac_ext <<_ACEOF |
| 23824 | /* end confdefs.h. */ |
| 23825 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23826 | /* Override any GCC internal prototype to avoid an error. |
| 23827 | Use char because int might match the return type of a GCC |
| 23828 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23829 | #ifdef __cplusplus |
| 23830 | extern "C" |
| 23831 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23832 | char rl_callback_handler_install (); |
| 23833 | int |
| 23834 | main () |
| 23835 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23836 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23837 | ; |
| 23838 | return 0; |
| 23839 | } |
| 23840 | _ACEOF |
| 23841 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23842 | if { (ac_try="$ac_link" |
| 23843 | case "(($ac_try" in |
| 23844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23845 | *) ac_try_echo=$ac_try;; |
| 23846 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23848 | (eval "$ac_link") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23849 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23850 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23851 | rm -f conftest.er1 |
| 23852 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23854 | (exit $ac_status); } && { |
| 23855 | test -z "$ac_c_werror_flag" || |
| 23856 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23857 | } && test -s conftest$ac_exeext && |
| 23858 | $as_test_x conftest$ac_exeext; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23859 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 23860 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23861 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23863 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23864 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23865 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23866 | |
| 23867 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23868 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23869 | LIBS=$ac_check_lib_save_LIBS |
| 23870 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23871 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 23872 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
| 23873 | 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] | 23874 | |
| 23875 | cat >>confdefs.h <<\_ACEOF |
| 23876 | #define HAVE_RL_CALLBACK 1 |
| 23877 | _ACEOF |
| 23878 | |
| 23879 | fi |
| 23880 | |
| 23881 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23882 | # check for readline 2.2 |
| 23883 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23884 | /* confdefs.h. */ |
| 23885 | _ACEOF |
| 23886 | cat confdefs.h >>conftest.$ac_ext |
| 23887 | cat >>conftest.$ac_ext <<_ACEOF |
| 23888 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23889 | #include <readline/readline.h> |
| 23890 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23891 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 23892 | case "(($ac_try" in |
| 23893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23894 | *) ac_try_echo=$ac_try;; |
| 23895 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23897 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23898 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23899 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23900 | rm -f conftest.er1 |
| 23901 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23903 | (exit $ac_status); } >/dev/null && { |
| 23904 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 23905 | test ! -s conftest.err |
| 23906 | }; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23907 | have_readline=yes |
| 23908 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23909 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23911 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23912 | have_readline=no |
| 23913 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23914 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23915 | rm -f conftest.err conftest.$ac_ext |
| 23916 | if test $have_readline = yes |
| 23917 | then |
| 23918 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23919 | /* confdefs.h. */ |
| 23920 | _ACEOF |
| 23921 | cat confdefs.h >>conftest.$ac_ext |
| 23922 | cat >>conftest.$ac_ext <<_ACEOF |
| 23923 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23924 | #include <readline/readline.h> |
| 23925 | |
| 23926 | _ACEOF |
| 23927 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23928 | $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] | 23929 | |
| 23930 | cat >>confdefs.h <<\_ACEOF |
| 23931 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 23932 | _ACEOF |
| 23933 | |
| 23934 | fi |
| 23935 | rm -f conftest* |
| 23936 | |
| 23937 | fi |
| 23938 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23939 | # check for readline 4.0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23940 | { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 23941 | 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] | 23942 | 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^] | 23943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 23944 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23945 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 23946 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23947 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23948 | /* confdefs.h. */ |
| 23949 | _ACEOF |
| 23950 | cat confdefs.h >>conftest.$ac_ext |
| 23951 | cat >>conftest.$ac_ext <<_ACEOF |
| 23952 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23953 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23954 | /* Override any GCC internal prototype to avoid an error. |
| 23955 | Use char because int might match the return type of a GCC |
| 23956 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23957 | #ifdef __cplusplus |
| 23958 | extern "C" |
| 23959 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23960 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23961 | int |
| 23962 | main () |
| 23963 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23964 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23965 | ; |
| 23966 | return 0; |
| 23967 | } |
| 23968 | _ACEOF |
| 23969 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23970 | if { (ac_try="$ac_link" |
| 23971 | case "(($ac_try" in |
| 23972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23973 | *) ac_try_echo=$ac_try;; |
| 23974 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23976 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23977 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23978 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23979 | rm -f conftest.er1 |
| 23980 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23982 | (exit $ac_status); } && { |
| 23983 | test -z "$ac_c_werror_flag" || |
| 23984 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23985 | } && test -s conftest$ac_exeext && |
| 23986 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23987 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23988 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23989 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23991 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23992 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23993 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23994 | |
| 23995 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23996 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23997 | LIBS=$ac_check_lib_save_LIBS |
| 23998 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 23999 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 24000 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
| 24001 | 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] | 24002 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24003 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 24004 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24005 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 24006 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 24007 | fi |
| 24008 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24009 | |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 24010 | # also in 4.0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24011 | { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 24012 | 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] | 24013 | 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^] | 24014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 24015 | else |
| 24016 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 24017 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 24018 | cat >conftest.$ac_ext <<_ACEOF |
| 24019 | /* confdefs.h. */ |
| 24020 | _ACEOF |
| 24021 | cat confdefs.h >>conftest.$ac_ext |
| 24022 | cat >>conftest.$ac_ext <<_ACEOF |
| 24023 | /* end confdefs.h. */ |
| 24024 | |
| 24025 | /* Override any GCC internal prototype to avoid an error. |
| 24026 | Use char because int might match the return type of a GCC |
| 24027 | builtin and then its argument prototype would still apply. */ |
| 24028 | #ifdef __cplusplus |
| 24029 | extern "C" |
| 24030 | #endif |
| 24031 | char rl_completion_display_matches_hook (); |
| 24032 | int |
| 24033 | main () |
| 24034 | { |
| 24035 | return rl_completion_display_matches_hook (); |
| 24036 | ; |
| 24037 | return 0; |
| 24038 | } |
| 24039 | _ACEOF |
| 24040 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24041 | if { (ac_try="$ac_link" |
| 24042 | case "(($ac_try" in |
| 24043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24044 | *) ac_try_echo=$ac_try;; |
| 24045 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 24047 | (eval "$ac_link") 2>conftest.er1 |
| 24048 | ac_status=$? |
| 24049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24050 | rm -f conftest.er1 |
| 24051 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 24053 | (exit $ac_status); } && { |
| 24054 | test -z "$ac_c_werror_flag" || |
| 24055 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24056 | } && test -s conftest$ac_exeext && |
| 24057 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 24058 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 24059 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24060 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 24061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24062 | |
| 24063 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
| 24064 | fi |
| 24065 | |
| 24066 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24067 | conftest$ac_exeext conftest.$ac_ext |
| 24068 | LIBS=$ac_check_lib_save_LIBS |
| 24069 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24070 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 24071 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
| 24072 | 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] | 24073 | |
| 24074 | cat >>confdefs.h <<\_ACEOF |
| 24075 | #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1 |
| 24076 | _ACEOF |
| 24077 | |
| 24078 | fi |
| 24079 | |
| 24080 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 24081 | # check for readline 4.2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24082 | { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 24083 | 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] | 24084 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 24086 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24087 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 24088 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24089 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24090 | /* confdefs.h. */ |
| 24091 | _ACEOF |
| 24092 | cat confdefs.h >>conftest.$ac_ext |
| 24093 | cat >>conftest.$ac_ext <<_ACEOF |
| 24094 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24095 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24096 | /* Override any GCC internal prototype to avoid an error. |
| 24097 | Use char because int might match the return type of a GCC |
| 24098 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24099 | #ifdef __cplusplus |
| 24100 | extern "C" |
| 24101 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24102 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24103 | int |
| 24104 | main () |
| 24105 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24106 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24107 | ; |
| 24108 | return 0; |
| 24109 | } |
| 24110 | _ACEOF |
| 24111 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24112 | if { (ac_try="$ac_link" |
| 24113 | case "(($ac_try" in |
| 24114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24115 | *) ac_try_echo=$ac_try;; |
| 24116 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24118 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24119 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24121 | rm -f conftest.er1 |
| 24122 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24124 | (exit $ac_status); } && { |
| 24125 | test -z "$ac_c_werror_flag" || |
| 24126 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24127 | } && test -s conftest$ac_exeext && |
| 24128 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24129 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 24130 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24131 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24133 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24134 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 24135 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24136 | |
| 24137 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24138 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24139 | LIBS=$ac_check_lib_save_LIBS |
| 24140 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24141 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 24142 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; } |
| 24143 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24144 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24145 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 24146 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24147 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 24148 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 24149 | fi |
| 24150 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 24151 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24152 | # also in readline 4.2 |
| 24153 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24154 | /* confdefs.h. */ |
| 24155 | _ACEOF |
| 24156 | cat confdefs.h >>conftest.$ac_ext |
| 24157 | cat >>conftest.$ac_ext <<_ACEOF |
| 24158 | /* end confdefs.h. */ |
| 24159 | #include <readline/readline.h> |
| 24160 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24161 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 24162 | case "(($ac_try" in |
| 24163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24164 | *) ac_try_echo=$ac_try;; |
| 24165 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24167 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24168 | ac_status=$? |
| 24169 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24170 | rm -f conftest.er1 |
| 24171 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24173 | (exit $ac_status); } >/dev/null && { |
| 24174 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 24175 | test ! -s conftest.err |
| 24176 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24177 | have_readline=yes |
| 24178 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24179 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24181 | |
| 24182 | have_readline=no |
| 24183 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24184 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24185 | rm -f conftest.err conftest.$ac_ext |
| 24186 | if test $have_readline = yes |
| 24187 | then |
| 24188 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24189 | /* confdefs.h. */ |
| 24190 | _ACEOF |
| 24191 | cat confdefs.h >>conftest.$ac_ext |
| 24192 | cat >>conftest.$ac_ext <<_ACEOF |
| 24193 | /* end confdefs.h. */ |
| 24194 | #include <readline/readline.h> |
| 24195 | |
| 24196 | _ACEOF |
| 24197 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 24198 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 24199 | |
| 24200 | cat >>confdefs.h <<\_ACEOF |
| 24201 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 24202 | _ACEOF |
| 24203 | |
| 24204 | fi |
| 24205 | rm -f conftest* |
| 24206 | |
| 24207 | fi |
| 24208 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 24209 | # End of readline checks: restore LIBS |
| 24210 | LIBS=$LIBS_no_readline |
| 24211 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24212 | { echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 24213 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24214 | if test "${ac_cv_broken_nice+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24216 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24217 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24218 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 24219 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24220 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24221 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24222 | /* confdefs.h. */ |
| 24223 | _ACEOF |
| 24224 | cat confdefs.h >>conftest.$ac_ext |
| 24225 | cat >>conftest.$ac_ext <<_ACEOF |
| 24226 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24227 | |
| 24228 | int main() |
| 24229 | { |
| 24230 | int val1 = nice(1); |
| 24231 | if (val1 != -1 && val1 == nice(2)) |
| 24232 | exit(0); |
| 24233 | exit(1); |
| 24234 | } |
| 24235 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24236 | _ACEOF |
| 24237 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24238 | if { (ac_try="$ac_link" |
| 24239 | case "(($ac_try" in |
| 24240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24241 | *) ac_try_echo=$ac_try;; |
| 24242 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24244 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24245 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24247 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24248 | { (case "(($ac_try" in |
| 24249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24250 | *) ac_try_echo=$ac_try;; |
| 24251 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24253 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24254 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24256 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24257 | ac_cv_broken_nice=yes |
| 24258 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24259 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24260 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24262 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24263 | ( exit $ac_status ) |
| 24264 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24265 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24266 | 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] | 24267 | fi |
| 24268 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24269 | |
| 24270 | fi |
| 24271 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24272 | { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 24273 | echo "${ECHO_T}$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24274 | if test "$ac_cv_broken_nice" = yes |
| 24275 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24276 | |
| 24277 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24278 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24279 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24280 | |
| 24281 | fi |
| 24282 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24283 | { echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 24284 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; } |
| 24285 | if test "$cross_compiling" = yes; then |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24286 | ac_cv_broken_poll=no |
| 24287 | else |
| 24288 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24289 | /* confdefs.h. */ |
| 24290 | _ACEOF |
| 24291 | cat confdefs.h >>conftest.$ac_ext |
| 24292 | cat >>conftest.$ac_ext <<_ACEOF |
| 24293 | /* end confdefs.h. */ |
| 24294 | |
| 24295 | #include <poll.h> |
| 24296 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24297 | int main (void) |
| 24298 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24299 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| 24300 | |
| 24301 | close (42); |
| 24302 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24303 | int poll_test = poll (&poll_struct, 1, 0); |
| 24304 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24305 | if (poll_test < 0) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24306 | { |
| 24307 | exit(0); |
| 24308 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24309 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24310 | { |
| 24311 | exit(0); |
| 24312 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24313 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24314 | { |
| 24315 | exit(1); |
| 24316 | } |
| 24317 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24318 | |
| 24319 | _ACEOF |
| 24320 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24321 | if { (ac_try="$ac_link" |
| 24322 | case "(($ac_try" in |
| 24323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24324 | *) ac_try_echo=$ac_try;; |
| 24325 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24327 | (eval "$ac_link") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24328 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24330 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24331 | { (case "(($ac_try" in |
| 24332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24333 | *) ac_try_echo=$ac_try;; |
| 24334 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24336 | (eval "$ac_try") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24337 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24339 | (exit $ac_status); }; }; then |
| 24340 | ac_cv_broken_poll=yes |
| 24341 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24342 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24343 | echo "$as_me: failed program was:" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24345 | |
| 24346 | ( exit $ac_status ) |
| 24347 | ac_cv_broken_poll=no |
| 24348 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24349 | 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] | 24350 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24351 | |
| 24352 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24353 | { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 24354 | echo "${ECHO_T}$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24355 | if test "$ac_cv_broken_poll" = yes |
| 24356 | then |
| 24357 | |
| 24358 | cat >>confdefs.h <<\_ACEOF |
| 24359 | #define HAVE_BROKEN_POLL 1 |
| 24360 | _ACEOF |
| 24361 | |
| 24362 | fi |
| 24363 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24364 | # 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] | 24365 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 24366 | # tzname[] |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24367 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 24368 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24369 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24371 | else |
| 24372 | cat >conftest.$ac_ext <<_ACEOF |
| 24373 | /* confdefs.h. */ |
| 24374 | _ACEOF |
| 24375 | cat confdefs.h >>conftest.$ac_ext |
| 24376 | cat >>conftest.$ac_ext <<_ACEOF |
| 24377 | /* end confdefs.h. */ |
| 24378 | #include <sys/types.h> |
| 24379 | #include <$ac_cv_struct_tm> |
| 24380 | |
| 24381 | |
| 24382 | int |
| 24383 | main () |
| 24384 | { |
| 24385 | static struct tm ac_aggr; |
| 24386 | if (ac_aggr.tm_zone) |
| 24387 | return 0; |
| 24388 | ; |
| 24389 | return 0; |
| 24390 | } |
| 24391 | _ACEOF |
| 24392 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24393 | if { (ac_try="$ac_compile" |
| 24394 | case "(($ac_try" in |
| 24395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24396 | *) ac_try_echo=$ac_try;; |
| 24397 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24399 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24400 | ac_status=$? |
| 24401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24402 | rm -f conftest.er1 |
| 24403 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24405 | (exit $ac_status); } && { |
| 24406 | test -z "$ac_c_werror_flag" || |
| 24407 | test ! -s conftest.err |
| 24408 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24409 | ac_cv_member_struct_tm_tm_zone=yes |
| 24410 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24411 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24413 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24414 | cat >conftest.$ac_ext <<_ACEOF |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24415 | /* confdefs.h. */ |
| 24416 | _ACEOF |
| 24417 | cat confdefs.h >>conftest.$ac_ext |
| 24418 | cat >>conftest.$ac_ext <<_ACEOF |
| 24419 | /* end confdefs.h. */ |
| 24420 | #include <sys/types.h> |
| 24421 | #include <$ac_cv_struct_tm> |
| 24422 | |
| 24423 | |
| 24424 | int |
| 24425 | main () |
| 24426 | { |
| 24427 | static struct tm ac_aggr; |
| 24428 | if (sizeof ac_aggr.tm_zone) |
| 24429 | return 0; |
| 24430 | ; |
| 24431 | return 0; |
| 24432 | } |
| 24433 | _ACEOF |
| 24434 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24435 | if { (ac_try="$ac_compile" |
| 24436 | case "(($ac_try" in |
| 24437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24438 | *) ac_try_echo=$ac_try;; |
| 24439 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24441 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24442 | ac_status=$? |
| 24443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24444 | rm -f conftest.er1 |
| 24445 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24447 | (exit $ac_status); } && { |
| 24448 | test -z "$ac_c_werror_flag" || |
| 24449 | test ! -s conftest.err |
| 24450 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24451 | ac_cv_member_struct_tm_tm_zone=yes |
| 24452 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24453 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24455 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24456 | ac_cv_member_struct_tm_tm_zone=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24457 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24458 | |
| 24459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24460 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24461 | |
| 24462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24463 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24464 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 24465 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 24466 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24467 | |
| 24468 | cat >>confdefs.h <<_ACEOF |
| 24469 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 24470 | _ACEOF |
| 24471 | |
| 24472 | |
| 24473 | fi |
| 24474 | |
| 24475 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 24476 | |
| 24477 | cat >>confdefs.h <<\_ACEOF |
| 24478 | #define HAVE_TM_ZONE 1 |
| 24479 | _ACEOF |
| 24480 | |
| 24481 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24482 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 24483 | 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] | 24484 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24486 | else |
| 24487 | cat >conftest.$ac_ext <<_ACEOF |
| 24488 | /* confdefs.h. */ |
| 24489 | _ACEOF |
| 24490 | cat confdefs.h >>conftest.$ac_ext |
| 24491 | cat >>conftest.$ac_ext <<_ACEOF |
| 24492 | /* end confdefs.h. */ |
| 24493 | #include <time.h> |
| 24494 | |
| 24495 | int |
| 24496 | main () |
| 24497 | { |
| 24498 | #ifndef tzname |
| 24499 | (void) tzname; |
| 24500 | #endif |
| 24501 | |
| 24502 | ; |
| 24503 | return 0; |
| 24504 | } |
| 24505 | _ACEOF |
| 24506 | rm -f conftest.$ac_objext |
| 24507 | if { (ac_try="$ac_compile" |
| 24508 | case "(($ac_try" in |
| 24509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24510 | *) ac_try_echo=$ac_try;; |
| 24511 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24513 | (eval "$ac_compile") 2>conftest.er1 |
| 24514 | ac_status=$? |
| 24515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24516 | rm -f conftest.er1 |
| 24517 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24519 | (exit $ac_status); } && { |
| 24520 | test -z "$ac_c_werror_flag" || |
| 24521 | test ! -s conftest.err |
| 24522 | } && test -s conftest.$ac_objext; then |
| 24523 | ac_cv_have_decl_tzname=yes |
| 24524 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24525 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24527 | |
| 24528 | ac_cv_have_decl_tzname=no |
| 24529 | fi |
| 24530 | |
| 24531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24532 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24533 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 24534 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 24535 | if test $ac_cv_have_decl_tzname = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24536 | |
| 24537 | cat >>confdefs.h <<_ACEOF |
| 24538 | #define HAVE_DECL_TZNAME 1 |
| 24539 | _ACEOF |
| 24540 | |
| 24541 | |
| 24542 | else |
| 24543 | cat >>confdefs.h <<_ACEOF |
| 24544 | #define HAVE_DECL_TZNAME 0 |
| 24545 | _ACEOF |
| 24546 | |
| 24547 | |
| 24548 | fi |
| 24549 | |
| 24550 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24551 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 24552 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24553 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24555 | else |
| 24556 | cat >conftest.$ac_ext <<_ACEOF |
| 24557 | /* confdefs.h. */ |
| 24558 | _ACEOF |
| 24559 | cat confdefs.h >>conftest.$ac_ext |
| 24560 | cat >>conftest.$ac_ext <<_ACEOF |
| 24561 | /* end confdefs.h. */ |
| 24562 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24563 | #if !HAVE_DECL_TZNAME |
| 24564 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24565 | #endif |
| 24566 | |
| 24567 | int |
| 24568 | main () |
| 24569 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24570 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24571 | ; |
| 24572 | return 0; |
| 24573 | } |
| 24574 | _ACEOF |
| 24575 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24576 | if { (ac_try="$ac_link" |
| 24577 | case "(($ac_try" in |
| 24578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24579 | *) ac_try_echo=$ac_try;; |
| 24580 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24582 | (eval "$ac_link") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24583 | ac_status=$? |
| 24584 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24585 | rm -f conftest.er1 |
| 24586 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24588 | (exit $ac_status); } && { |
| 24589 | test -z "$ac_c_werror_flag" || |
| 24590 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24591 | } && test -s conftest$ac_exeext && |
| 24592 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24593 | ac_cv_var_tzname=yes |
| 24594 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24595 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24597 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24598 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24599 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24600 | |
| 24601 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24602 | conftest$ac_exeext conftest.$ac_ext |
| 24603 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24604 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 24605 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24606 | if test $ac_cv_var_tzname = yes; then |
| 24607 | |
| 24608 | cat >>confdefs.h <<\_ACEOF |
| 24609 | #define HAVE_TZNAME 1 |
| 24610 | _ACEOF |
| 24611 | |
| 24612 | fi |
| 24613 | fi |
| 24614 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24615 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 24616 | # check tzset(3) exists and works like we expect it to |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24617 | { echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 24618 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24619 | if test "${ac_cv_working_tzset+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24621 | else |
| 24622 | |
| 24623 | if test "$cross_compiling" = yes; then |
| 24624 | ac_cv_working_tzset=no |
| 24625 | else |
| 24626 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24627 | /* confdefs.h. */ |
| 24628 | _ACEOF |
| 24629 | cat confdefs.h >>conftest.$ac_ext |
| 24630 | cat >>conftest.$ac_ext <<_ACEOF |
| 24631 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24632 | |
| 24633 | #include <stdlib.h> |
| 24634 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24635 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24636 | |
| 24637 | #if HAVE_TZNAME |
| 24638 | extern char *tzname[]; |
| 24639 | #endif |
| 24640 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24641 | int main() |
| 24642 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24643 | /* Note that we need to ensure that not only does tzset(3) |
| 24644 | do 'something' with localtime, but it works as documented |
| 24645 | 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] | 24646 | This includes making sure that tzname is set properly if |
| 24647 | tm->tm_zone does not exist since it is the alternative way |
| 24648 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24649 | |
| 24650 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 24651 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24652 | */ |
| 24653 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 24654 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24655 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 24656 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 24657 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24658 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24659 | if (localtime(&groundhogday)->tm_hour != 0) |
| 24660 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24661 | #if HAVE_TZNAME |
| 24662 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 24663 | if (strcmp(tzname[0], "UTC") || |
| 24664 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 24665 | exit(1); |
| 24666 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24667 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 24668 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24669 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24670 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24671 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24672 | #if HAVE_TZNAME |
| 24673 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 24674 | exit(1); |
| 24675 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24676 | |
| 24677 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 24678 | tzset(); |
| 24679 | if (localtime(&groundhogday)->tm_hour != 11) |
| 24680 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24681 | #if HAVE_TZNAME |
| 24682 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 24683 | exit(1); |
| 24684 | #endif |
| 24685 | |
| 24686 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24687 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 24688 | exit(1); |
| 24689 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 24690 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24691 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24692 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24693 | exit(0); |
| 24694 | } |
| 24695 | |
| 24696 | _ACEOF |
| 24697 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24698 | if { (ac_try="$ac_link" |
| 24699 | case "(($ac_try" in |
| 24700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24701 | *) ac_try_echo=$ac_try;; |
| 24702 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24704 | (eval "$ac_link") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24705 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24707 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24708 | { (case "(($ac_try" in |
| 24709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24710 | *) ac_try_echo=$ac_try;; |
| 24711 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24713 | (eval "$ac_try") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24714 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24716 | (exit $ac_status); }; }; then |
| 24717 | ac_cv_working_tzset=yes |
| 24718 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24719 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24720 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24722 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24723 | ( exit $ac_status ) |
| 24724 | ac_cv_working_tzset=no |
| 24725 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24726 | 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] | 24727 | fi |
| 24728 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24729 | |
| 24730 | fi |
| 24731 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24732 | { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 24733 | echo "${ECHO_T}$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24734 | if test "$ac_cv_working_tzset" = yes |
| 24735 | then |
| 24736 | |
| 24737 | cat >>confdefs.h <<\_ACEOF |
| 24738 | #define HAVE_WORKING_TZSET 1 |
| 24739 | _ACEOF |
| 24740 | |
| 24741 | fi |
| 24742 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24743 | # Look for subsecond timestamps in struct stat |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24744 | { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 24745 | 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] | 24746 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24748 | else |
| 24749 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24750 | /* confdefs.h. */ |
| 24751 | _ACEOF |
| 24752 | cat confdefs.h >>conftest.$ac_ext |
| 24753 | cat >>conftest.$ac_ext <<_ACEOF |
| 24754 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24755 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24756 | int |
| 24757 | main () |
| 24758 | { |
| 24759 | |
| 24760 | struct stat st; |
| 24761 | st.st_mtim.tv_nsec = 1; |
| 24762 | |
| 24763 | ; |
| 24764 | return 0; |
| 24765 | } |
| 24766 | _ACEOF |
| 24767 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24768 | if { (ac_try="$ac_compile" |
| 24769 | case "(($ac_try" in |
| 24770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24771 | *) ac_try_echo=$ac_try;; |
| 24772 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24774 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24775 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24777 | rm -f conftest.er1 |
| 24778 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24780 | (exit $ac_status); } && { |
| 24781 | test -z "$ac_c_werror_flag" || |
| 24782 | test ! -s conftest.err |
| 24783 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 24784 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24785 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24786 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24788 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24789 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24790 | fi |
| 24791 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24793 | fi |
| 24794 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24795 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 24796 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24797 | if test "$ac_cv_stat_tv_nsec" = yes |
| 24798 | then |
| 24799 | |
| 24800 | cat >>confdefs.h <<\_ACEOF |
| 24801 | #define HAVE_STAT_TV_NSEC 1 |
| 24802 | _ACEOF |
| 24803 | |
| 24804 | fi |
| 24805 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24806 | # Look for BSD style subsecond timestamps in struct stat |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24807 | { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 24808 | 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] | 24809 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24811 | else |
| 24812 | cat >conftest.$ac_ext <<_ACEOF |
| 24813 | /* confdefs.h. */ |
| 24814 | _ACEOF |
| 24815 | cat confdefs.h >>conftest.$ac_ext |
| 24816 | cat >>conftest.$ac_ext <<_ACEOF |
| 24817 | /* end confdefs.h. */ |
| 24818 | #include <sys/stat.h> |
| 24819 | int |
| 24820 | main () |
| 24821 | { |
| 24822 | |
| 24823 | struct stat st; |
| 24824 | st.st_mtimespec.tv_nsec = 1; |
| 24825 | |
| 24826 | ; |
| 24827 | return 0; |
| 24828 | } |
| 24829 | _ACEOF |
| 24830 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24831 | if { (ac_try="$ac_compile" |
| 24832 | case "(($ac_try" in |
| 24833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24834 | *) ac_try_echo=$ac_try;; |
| 24835 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24837 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24838 | ac_status=$? |
| 24839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24840 | rm -f conftest.er1 |
| 24841 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24843 | (exit $ac_status); } && { |
| 24844 | test -z "$ac_c_werror_flag" || |
| 24845 | test ! -s conftest.err |
| 24846 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24847 | ac_cv_stat_tv_nsec2=yes |
| 24848 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24849 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24850 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24851 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24852 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24853 | fi |
| 24854 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24856 | fi |
| 24857 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24858 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 24859 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24860 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 24861 | then |
| 24862 | |
| 24863 | cat >>confdefs.h <<\_ACEOF |
| 24864 | #define HAVE_STAT_TV_NSEC2 1 |
| 24865 | _ACEOF |
| 24866 | |
| 24867 | fi |
| 24868 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24869 | # 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^] | 24870 | { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 24871 | 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] | 24872 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24874 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24875 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24876 | /* confdefs.h. */ |
| 24877 | _ACEOF |
| 24878 | cat confdefs.h >>conftest.$ac_ext |
| 24879 | cat >>conftest.$ac_ext <<_ACEOF |
| 24880 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24881 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24882 | int |
| 24883 | main () |
| 24884 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24885 | |
| 24886 | int rtn; |
| 24887 | rtn = mvwdelch(0,0,0); |
| 24888 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24889 | ; |
| 24890 | return 0; |
| 24891 | } |
| 24892 | _ACEOF |
| 24893 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24894 | if { (ac_try="$ac_compile" |
| 24895 | case "(($ac_try" in |
| 24896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24897 | *) ac_try_echo=$ac_try;; |
| 24898 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24900 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24901 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24903 | rm -f conftest.er1 |
| 24904 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24906 | (exit $ac_status); } && { |
| 24907 | test -z "$ac_c_werror_flag" || |
| 24908 | test ! -s conftest.err |
| 24909 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24910 | ac_cv_mvwdelch_is_expression=yes |
| 24911 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24912 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24914 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24915 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24916 | fi |
| 24917 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24919 | fi |
| 24920 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24921 | { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 24922 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24923 | |
| 24924 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 24925 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24926 | |
| 24927 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24928 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24929 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24930 | |
| 24931 | fi |
| 24932 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24933 | { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 24934 | 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] | 24935 | if test "${ac_cv_window_has_flags+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24937 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24938 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24939 | /* confdefs.h. */ |
| 24940 | _ACEOF |
| 24941 | cat confdefs.h >>conftest.$ac_ext |
| 24942 | cat >>conftest.$ac_ext <<_ACEOF |
| 24943 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24944 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24945 | int |
| 24946 | main () |
| 24947 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24948 | |
| 24949 | WINDOW *w; |
| 24950 | w->_flags = 0; |
| 24951 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24952 | ; |
| 24953 | return 0; |
| 24954 | } |
| 24955 | _ACEOF |
| 24956 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24957 | if { (ac_try="$ac_compile" |
| 24958 | case "(($ac_try" in |
| 24959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24960 | *) ac_try_echo=$ac_try;; |
| 24961 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24963 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24964 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24965 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24966 | rm -f conftest.er1 |
| 24967 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24969 | (exit $ac_status); } && { |
| 24970 | test -z "$ac_c_werror_flag" || |
| 24971 | test ! -s conftest.err |
| 24972 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24973 | ac_cv_window_has_flags=yes |
| 24974 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24975 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24977 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24978 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24979 | fi |
| 24980 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24982 | fi |
| 24983 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24984 | { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 24985 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24986 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24987 | |
| 24988 | if test "$ac_cv_window_has_flags" = yes |
| 24989 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24990 | |
| 24991 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24992 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24993 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24994 | |
| 24995 | fi |
| 24996 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 24997 | { echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 24998 | echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 24999 | cat >conftest.$ac_ext <<_ACEOF |
| 25000 | /* confdefs.h. */ |
| 25001 | _ACEOF |
| 25002 | cat confdefs.h >>conftest.$ac_ext |
| 25003 | cat >>conftest.$ac_ext <<_ACEOF |
| 25004 | /* end confdefs.h. */ |
| 25005 | #include <curses.h> |
| 25006 | int |
| 25007 | main () |
| 25008 | { |
| 25009 | void *x=is_term_resized |
| 25010 | ; |
| 25011 | return 0; |
| 25012 | } |
| 25013 | _ACEOF |
| 25014 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25015 | if { (ac_try="$ac_compile" |
| 25016 | case "(($ac_try" in |
| 25017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25018 | *) ac_try_echo=$ac_try;; |
| 25019 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25021 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25022 | ac_status=$? |
| 25023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25024 | rm -f conftest.er1 |
| 25025 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25027 | (exit $ac_status); } && { |
| 25028 | test -z "$ac_c_werror_flag" || |
| 25029 | test ! -s conftest.err |
| 25030 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25031 | |
| 25032 | cat >>confdefs.h <<\_ACEOF |
| 25033 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 25034 | _ACEOF |
| 25035 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25036 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 25037 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25038 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25039 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25041 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25042 | { echo "$as_me:$LINENO: result: no" >&5 |
| 25043 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25044 | |
| 25045 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25046 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25048 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25049 | { echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 25050 | echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25051 | cat >conftest.$ac_ext <<_ACEOF |
| 25052 | /* confdefs.h. */ |
| 25053 | _ACEOF |
| 25054 | cat confdefs.h >>conftest.$ac_ext |
| 25055 | cat >>conftest.$ac_ext <<_ACEOF |
| 25056 | /* end confdefs.h. */ |
| 25057 | #include <curses.h> |
| 25058 | int |
| 25059 | main () |
| 25060 | { |
| 25061 | void *x=resize_term |
| 25062 | ; |
| 25063 | return 0; |
| 25064 | } |
| 25065 | _ACEOF |
| 25066 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25067 | if { (ac_try="$ac_compile" |
| 25068 | case "(($ac_try" in |
| 25069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25070 | *) ac_try_echo=$ac_try;; |
| 25071 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25073 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25074 | ac_status=$? |
| 25075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25076 | rm -f conftest.er1 |
| 25077 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25079 | (exit $ac_status); } && { |
| 25080 | test -z "$ac_c_werror_flag" || |
| 25081 | test ! -s conftest.err |
| 25082 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25083 | |
| 25084 | cat >>confdefs.h <<\_ACEOF |
| 25085 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 25086 | _ACEOF |
| 25087 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25088 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 25089 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25090 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25091 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25093 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25094 | { echo "$as_me:$LINENO: result: no" >&5 |
| 25095 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25096 | |
| 25097 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25098 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25100 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25101 | { echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 25102 | echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25103 | cat >conftest.$ac_ext <<_ACEOF |
| 25104 | /* confdefs.h. */ |
| 25105 | _ACEOF |
| 25106 | cat confdefs.h >>conftest.$ac_ext |
| 25107 | cat >>conftest.$ac_ext <<_ACEOF |
| 25108 | /* end confdefs.h. */ |
| 25109 | #include <curses.h> |
| 25110 | int |
| 25111 | main () |
| 25112 | { |
| 25113 | void *x=resizeterm |
| 25114 | ; |
| 25115 | return 0; |
| 25116 | } |
| 25117 | _ACEOF |
| 25118 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25119 | if { (ac_try="$ac_compile" |
| 25120 | case "(($ac_try" in |
| 25121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25122 | *) ac_try_echo=$ac_try;; |
| 25123 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25125 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25126 | ac_status=$? |
| 25127 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25128 | rm -f conftest.er1 |
| 25129 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25131 | (exit $ac_status); } && { |
| 25132 | test -z "$ac_c_werror_flag" || |
| 25133 | test ! -s conftest.err |
| 25134 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25135 | |
| 25136 | cat >>confdefs.h <<\_ACEOF |
| 25137 | #define HAVE_CURSES_RESIZETERM 1 |
| 25138 | _ACEOF |
| 25139 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25140 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 25141 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25142 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25143 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25145 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25146 | { echo "$as_me:$LINENO: result: no" >&5 |
| 25147 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25148 | |
| 25149 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25150 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25152 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25153 | { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 25154 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 25155 | |
| 25156 | if test -r /dev/ptmx |
| 25157 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25158 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 25159 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 25160 | |
| 25161 | cat >>confdefs.h <<\_ACEOF |
| 25162 | #define HAVE_DEV_PTMX 1 |
| 25163 | _ACEOF |
| 25164 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 25165 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25166 | { echo "$as_me:$LINENO: result: no" >&5 |
| 25167 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 25168 | fi |
| 25169 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25170 | { echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 25171 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 25172 | |
| 25173 | if test -r /dev/ptc |
| 25174 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25175 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 25176 | echo "${ECHO_T}yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 25177 | |
| 25178 | cat >>confdefs.h <<\_ACEOF |
| 25179 | #define HAVE_DEV_PTC 1 |
| 25180 | _ACEOF |
| 25181 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 25182 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25183 | { echo "$as_me:$LINENO: result: no" >&5 |
| 25184 | echo "${ECHO_T}no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 25185 | fi |
| 25186 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25187 | { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 25188 | echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; } |
| 25189 | if test "$cross_compiling" = yes; then |
| 25190 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 25191 | See \`config.log' for more details." >&5 |
| 25192 | echo "$as_me: error: cannot run test program while cross compiling |
| 25193 | See \`config.log' for more details." >&2;} |
| 25194 | { (exit 1); exit 1; }; } |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 25195 | else |
| 25196 | cat >conftest.$ac_ext <<_ACEOF |
| 25197 | /* confdefs.h. */ |
| 25198 | _ACEOF |
| 25199 | cat confdefs.h >>conftest.$ac_ext |
| 25200 | cat >>conftest.$ac_ext <<_ACEOF |
| 25201 | /* end confdefs.h. */ |
| 25202 | #include <stdio.h> |
| 25203 | #include <stddef.h> |
| 25204 | #include <string.h> |
| 25205 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 25206 | #ifdef HAVE_SYS_TYPES_H |
| 25207 | #include <sys/types.h> |
| 25208 | #endif |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 25209 | |
| 25210 | #ifdef HAVE_SSIZE_T |
| 25211 | typedef ssize_t Py_ssize_t; |
| 25212 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 25213 | typedef long Py_ssize_t; |
| 25214 | #else |
| 25215 | typedef int Py_ssize_t; |
| 25216 | #endif |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 25217 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 25218 | int main() |
| 25219 | { |
| 25220 | char buffer[256]; |
| 25221 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 25222 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 25223 | return 1; |
| 25224 | |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 25225 | if (strcmp(buffer, "123")) |
| 25226 | return 1; |
| 25227 | |
| 25228 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 25229 | return 1; |
| 25230 | |
| 25231 | if (strcmp(buffer, "-123")) |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 25232 | return 1; |
| 25233 | |
| 25234 | return 0; |
| 25235 | } |
| 25236 | _ACEOF |
| 25237 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25238 | if { (ac_try="$ac_link" |
| 25239 | case "(($ac_try" in |
| 25240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25241 | *) ac_try_echo=$ac_try;; |
| 25242 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25244 | (eval "$ac_link") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 25245 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 25247 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25248 | { (case "(($ac_try" in |
| 25249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25250 | *) ac_try_echo=$ac_try;; |
| 25251 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25253 | (eval "$ac_try") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 25254 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 25256 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25257 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 25258 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25259 | |
| 25260 | cat >>confdefs.h <<\_ACEOF |
| 25261 | #define PY_FORMAT_SIZE_T "z" |
| 25262 | _ACEOF |
| 25263 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25264 | else |
| 25265 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25266 | echo "$as_me: failed program was:" >&5 |
| 25267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25268 | |
| 25269 | ( exit $ac_status ) |
| 25270 | { echo "$as_me:$LINENO: result: no" >&5 |
| 25271 | echo "${ECHO_T}no" >&6; } |
| 25272 | fi |
| 25273 | 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] | 25274 | fi |
| 25275 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25276 | |
| 25277 | |
| 25278 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 25279 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25280 | if test "${ac_cv_type_socklen_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 25282 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25283 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25284 | /* confdefs.h. */ |
| 25285 | _ACEOF |
| 25286 | cat confdefs.h >>conftest.$ac_ext |
| 25287 | cat >>conftest.$ac_ext <<_ACEOF |
| 25288 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 25289 | |
| 25290 | #ifdef HAVE_SYS_TYPES_H |
| 25291 | #include <sys/types.h> |
| 25292 | #endif |
| 25293 | #ifdef HAVE_SYS_SOCKET_H |
| 25294 | #include <sys/socket.h> |
| 25295 | #endif |
| 25296 | |
| 25297 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25298 | typedef socklen_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25299 | int |
| 25300 | main () |
| 25301 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25302 | if ((ac__type_new_ *) 0) |
| 25303 | return 0; |
| 25304 | if (sizeof (ac__type_new_)) |
| 25305 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25306 | ; |
| 25307 | return 0; |
| 25308 | } |
| 25309 | _ACEOF |
| 25310 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25311 | if { (ac_try="$ac_compile" |
| 25312 | case "(($ac_try" in |
| 25313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25314 | *) ac_try_echo=$ac_try;; |
| 25315 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25317 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25318 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25319 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25320 | rm -f conftest.er1 |
| 25321 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25323 | (exit $ac_status); } && { |
| 25324 | test -z "$ac_c_werror_flag" || |
| 25325 | test ! -s conftest.err |
| 25326 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25327 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 25328 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25329 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25331 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25332 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 25333 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25334 | |
| 25335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25336 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25337 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 25338 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } |
| 25339 | if test $ac_cv_type_socklen_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25340 | : |
| 25341 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 25342 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 25343 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 25344 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25345 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 25346 | |
| 25347 | fi |
| 25348 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25349 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25350 | |
| 25351 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 25352 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 25353 | do |
| 25354 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 25355 | done |
| 25356 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25357 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 25358 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25359 | { echo "$as_me:$LINENO: checking for build directories" >&5 |
| 25360 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 25361 | for dir in $SRCDIRS; do |
| 25362 | if test ! -d $dir; then |
| 25363 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 25364 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 25365 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25366 | { echo "$as_me:$LINENO: result: done" >&5 |
| 25367 | echo "${ECHO_T}done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 25368 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 25369 | # generate output files |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 25370 | 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] | 25371 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25372 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25373 | # This file is a shell script that caches the results of configure |
| 25374 | # 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] | 25375 | # scripts and configure runs, see configure's option --config-cache. |
| 25376 | # It is not useful on other systems. If it contains results you don't |
| 25377 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25378 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25379 | # config.status only pays attention to the cache file if you give it |
| 25380 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25381 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25382 | # `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] | 25383 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 25384 | # following values. |
| 25385 | |
| 25386 | _ACEOF |
| 25387 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 25388 | # The following way of writing the cache mishandles newlines in values, |
| 25389 | # 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] | 25390 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 25391 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 25392 | # 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] | 25393 | ( |
| 25394 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 25395 | eval ac_val=\$$ac_var |
| 25396 | case $ac_val in #( |
| 25397 | *${as_nl}*) |
| 25398 | case $ac_var in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25399 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 25400 | 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] | 25401 | esac |
| 25402 | case $ac_var in #( |
| 25403 | _ | IFS | as_nl) ;; #( |
| 25404 | *) $as_unset $ac_var ;; |
| 25405 | esac ;; |
| 25406 | esac |
| 25407 | done |
| 25408 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25409 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25410 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 25411 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25412 | # `set' does not quote correctly, so add quotes (double-quote |
| 25413 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 25414 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25415 | "s/'/'\\\\''/g; |
| 25416 | 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] | 25417 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25418 | *) |
| 25419 | # `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] | 25420 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25421 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25422 | esac | |
| 25423 | sort |
| 25424 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25425 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25426 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25427 | t clear |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25428 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25429 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 25430 | t end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25431 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 25432 | :end' >>confcache |
| 25433 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 25434 | if test -w "$cache_file"; then |
| 25435 | test "x$cache_file" != "x/dev/null" && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25436 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 25437 | echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25438 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 25439 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25440 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 25441 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 25442 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25443 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 25444 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 25445 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25446 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 25447 | # Let make expand exec_prefix. |
| 25448 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 25449 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25450 | DEFS=-DHAVE_CONFIG_H |
| 25451 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25452 | ac_libobjs= |
| 25453 | ac_ltlibobjs= |
| 25454 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 25455 | # 1. Remove the extension, and $U if already installed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25456 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25457 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25458 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 25459 | # will be set to the directory where LIBOBJS objects are built. |
| 25460 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 25461 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25462 | done |
| 25463 | LIBOBJS=$ac_libobjs |
| 25464 | |
| 25465 | LTLIBOBJS=$ac_ltlibobjs |
| 25466 | |
| 25467 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25468 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25469 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25470 | ac_clean_files_save=$ac_clean_files |
| 25471 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25472 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 25473 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 25474 | cat >$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25475 | #! $SHELL |
| 25476 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 25477 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25478 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25479 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 25480 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25481 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25482 | ac_cs_recheck=false |
| 25483 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25484 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 25485 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 25486 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25487 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25488 | ## --------------------- ## |
| 25489 | ## M4sh Initialization. ## |
| 25490 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 25491 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25492 | # Be more Bourne compatible |
| 25493 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25494 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 25495 | emulate sh |
| 25496 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25497 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25498 | # is contrary to our usage. Disable this feature. |
| 25499 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25500 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 25501 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25502 | case `(set -o) 2>/dev/null` in |
| 25503 | *posix*) set -o posix ;; |
| 25504 | esac |
| 25505 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25506 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25507 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25508 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25509 | |
| 25510 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25511 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25512 | # Avoid depending upon Character Ranges. |
| 25513 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 25514 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 25515 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 25516 | as_cr_digits='0123456789' |
| 25517 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 25518 | |
| 25519 | # The user is always right. |
| 25520 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25521 | echo "#! /bin/sh" >conf$$.sh |
| 25522 | echo "exit 0" >>conf$$.sh |
| 25523 | chmod +x conf$$.sh |
| 25524 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 25525 | PATH_SEPARATOR=';' |
| 25526 | else |
| 25527 | PATH_SEPARATOR=: |
| 25528 | fi |
| 25529 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25530 | fi |
| 25531 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25532 | # Support unset when possible. |
| 25533 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 25534 | as_unset=unset |
| 25535 | else |
| 25536 | as_unset=false |
| 25537 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25538 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25539 | |
| 25540 | # IFS |
| 25541 | # We need space, tab and new line, in precisely that order. Quoting is |
| 25542 | # there to prevent editors from complaining about space-tab. |
| 25543 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 25544 | # splitting by setting IFS to empty value.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25545 | as_nl=' |
| 25546 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25547 | IFS=" "" $as_nl" |
| 25548 | |
| 25549 | # Find who we are. Look in the path if we contain no directory separator. |
| 25550 | case $0 in |
| 25551 | *[\\/]* ) as_myself=$0 ;; |
| 25552 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25553 | for as_dir in $PATH |
| 25554 | do |
| 25555 | IFS=$as_save_IFS |
| 25556 | test -z "$as_dir" && as_dir=. |
| 25557 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 25558 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25559 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25560 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25561 | ;; |
| 25562 | esac |
| 25563 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 25564 | # in which case we are not to be found in the path. |
| 25565 | if test "x$as_myself" = x; then |
| 25566 | as_myself=$0 |
| 25567 | fi |
| 25568 | if test ! -f "$as_myself"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25569 | 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] | 25570 | { (exit 1); exit 1; } |
| 25571 | fi |
| 25572 | |
| 25573 | # Work around bugs in pre-3.0 UWIN ksh. |
| 25574 | for as_var in ENV MAIL MAILPATH |
| 25575 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 25576 | done |
| 25577 | PS1='$ ' |
| 25578 | PS2='> ' |
| 25579 | PS4='+ ' |
| 25580 | |
| 25581 | # NLS nuisances. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25582 | for as_var in \ |
| 25583 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 25584 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 25585 | LC_TELEPHONE LC_TIME |
| 25586 | do |
| 25587 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 25588 | eval $as_var=C; export $as_var |
| 25589 | else |
| 25590 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 25591 | fi |
| 25592 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25593 | |
| 25594 | # Required to use basename. |
| 25595 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 25596 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 25597 | as_expr=expr |
| 25598 | else |
| 25599 | as_expr=false |
| 25600 | fi |
| 25601 | |
| 25602 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 25603 | as_basename=basename |
| 25604 | else |
| 25605 | as_basename=false |
| 25606 | fi |
| 25607 | |
| 25608 | |
| 25609 | # Name of the executable. |
| 25610 | as_me=`$as_basename -- "$0" || |
| 25611 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 25612 | X"$0" : 'X\(//\)$' \| \ |
| 25613 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25614 | echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25615 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 25616 | s//\1/ |
| 25617 | q |
| 25618 | } |
| 25619 | /^X\/\(\/\/\)$/{ |
| 25620 | s//\1/ |
| 25621 | q |
| 25622 | } |
| 25623 | /^X\/\(\/\).*/{ |
| 25624 | s//\1/ |
| 25625 | q |
| 25626 | } |
| 25627 | s/.*/./; q'` |
| 25628 | |
| 25629 | # CDPATH. |
| 25630 | $as_unset CDPATH |
| 25631 | |
| 25632 | |
| 25633 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25634 | as_lineno_1=$LINENO |
| 25635 | as_lineno_2=$LINENO |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25636 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25637 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 25638 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25639 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 25640 | # 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] | 25641 | # line-number line after each line using $LINENO; the second 'sed' |
| 25642 | # does the real work. The second script uses 'N' to pair each |
| 25643 | # line-number line with the line containing $LINENO, and appends |
| 25644 | # trailing '-' during substitution so that $LINENO is not a special |
| 25645 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25646 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25647 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 25648 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 25649 | sed -n ' |
| 25650 | p |
| 25651 | /[$]LINENO/= |
| 25652 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25653 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25654 | s/[$]LINENO.*/&-/ |
| 25655 | t lineno |
| 25656 | b |
| 25657 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25658 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25659 | :loop |
| 25660 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25661 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25662 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25663 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25664 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25665 | { 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] | 25666 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25667 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25668 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 25669 | # (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] | 25670 | # original and so on. Autoconf is especially sensitive to this). |
| 25671 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25672 | # Exit status is that of the last command. |
| 25673 | exit |
| 25674 | } |
| 25675 | |
| 25676 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25677 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 25678 | as_dirname=dirname |
| 25679 | else |
| 25680 | as_dirname=false |
| 25681 | fi |
| 25682 | |
| 25683 | ECHO_C= ECHO_N= ECHO_T= |
| 25684 | case `echo -n x` in |
| 25685 | -n*) |
| 25686 | case `echo 'x\c'` in |
| 25687 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 25688 | *) ECHO_C='\c';; |
| 25689 | esac;; |
| 25690 | *) |
| 25691 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25692 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25693 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25694 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 25695 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25696 | as_expr=expr |
| 25697 | else |
| 25698 | as_expr=false |
| 25699 | fi |
| 25700 | |
| 25701 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25702 | if test -d conf$$.dir; then |
| 25703 | rm -f conf$$.dir/conf$$.file |
| 25704 | else |
| 25705 | rm -f conf$$.dir |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25706 | mkdir conf$$.dir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25707 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25708 | echo >conf$$.file |
| 25709 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 25710 | as_ln_s='ln -s' |
| 25711 | # ... but there are two gotchas: |
| 25712 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 25713 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 25714 | # In both cases, we have to default to `cp -p'. |
| 25715 | 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] | 25716 | as_ln_s='cp -p' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25717 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 25718 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25719 | else |
| 25720 | as_ln_s='cp -p' |
| 25721 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25722 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 25723 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25724 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25725 | if mkdir -p . 2>/dev/null; then |
| 25726 | as_mkdir_p=: |
| 25727 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25728 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25729 | as_mkdir_p=false |
| 25730 | fi |
| 25731 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25732 | if test -x / >/dev/null 2>&1; then |
| 25733 | as_test_x='test -x' |
| 25734 | else |
| 25735 | if ls -dL / >/dev/null 2>&1; then |
| 25736 | as_ls_L_option=L |
| 25737 | else |
| 25738 | as_ls_L_option= |
| 25739 | fi |
| 25740 | as_test_x=' |
| 25741 | eval sh -c '\'' |
| 25742 | if test -d "$1"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25743 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25744 | else |
| 25745 | case $1 in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25746 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25747 | esac; |
| 25748 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 25749 | ???[sx]*):;;*)false;;esac;fi |
| 25750 | '\'' sh |
| 25751 | ' |
| 25752 | fi |
| 25753 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25754 | |
| 25755 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25756 | 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] | 25757 | |
| 25758 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25759 | 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] | 25760 | |
| 25761 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25762 | exec 6>&1 |
| 25763 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25764 | # 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] | 25765 | # 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] | 25766 | # values after options handling. |
| 25767 | ac_log=" |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 25768 | This file was extended by python $as_me 2.7, which was |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25769 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25770 | |
| 25771 | CONFIG_FILES = $CONFIG_FILES |
| 25772 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 25773 | CONFIG_LINKS = $CONFIG_LINKS |
| 25774 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 25775 | $ $0 $@ |
| 25776 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25777 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 25778 | " |
| 25779 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25780 | _ACEOF |
| 25781 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25782 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25783 | # Files that config.status was made for. |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 25784 | config_files="$ac_config_files" |
| 25785 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25786 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25787 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25788 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25789 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25790 | ac_cs_usage="\ |
| 25791 | \`$as_me' instantiates files from templates according to the |
| 25792 | current configuration. |
| 25793 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25794 | Usage: $0 [OPTIONS] [FILE]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25795 | |
| 25796 | -h, --help print this help, then exit |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25797 | -V, --version print version number and configuration settings, then exit |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25798 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25799 | -d, --debug don't remove temporary files |
| 25800 | --recheck update $as_me by reconfiguring in the same conditions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25801 | --file=FILE[:TEMPLATE] |
| 25802 | instantiate the configuration file FILE |
| 25803 | --header=FILE[:TEMPLATE] |
| 25804 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25805 | |
| 25806 | Configuration files: |
| 25807 | $config_files |
| 25808 | |
| 25809 | Configuration headers: |
| 25810 | $config_headers |
| 25811 | |
| 25812 | Report bugs to <bug-autoconf@gnu.org>." |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 25813 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25814 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25815 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25816 | ac_cs_version="\\ |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 25817 | python config.status 2.7 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25818 | configured by $0, generated by GNU Autoconf 2.61, |
| 25819 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25820 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25821 | Copyright (C) 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25822 | This config.status script is free software; the Free Software Foundation |
| 25823 | gives unlimited permission to copy, distribute and modify it." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25824 | |
| 25825 | ac_pwd='$ac_pwd' |
| 25826 | srcdir='$srcdir' |
| 25827 | INSTALL='$INSTALL' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25828 | _ACEOF |
| 25829 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25830 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25831 | # If no file are specified by the user, then we need to provide default |
| 25832 | # 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] | 25833 | ac_need_defaults=: |
| 25834 | while test $# != 0 |
| 25835 | do |
| 25836 | case $1 in |
| 25837 | --*=*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25838 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 25839 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25840 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25841 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25842 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25843 | ac_option=$1 |
| 25844 | ac_optarg=$2 |
| 25845 | ac_shift=shift |
| 25846 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25847 | esac |
| 25848 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25849 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25850 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25851 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 25852 | ac_cs_recheck=: ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25853 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25854 | echo "$ac_cs_version"; exit ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25855 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25856 | debug=: ;; |
| 25857 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25858 | $ac_shift |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25859 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25860 | ac_need_defaults=false;; |
| 25861 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25862 | $ac_shift |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25863 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25864 | ac_need_defaults=false;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25865 | --he | --h) |
| 25866 | # Conflict between --help and --header |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25867 | { echo "$as_me: error: ambiguous option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25868 | Try \`$0 --help' for more information." >&2 |
| 25869 | { (exit 1); exit 1; }; };; |
| 25870 | --help | --hel | -h ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25871 | echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25872 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 25873 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 25874 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25875 | |
| 25876 | # This is an error. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25877 | -*) { echo "$as_me: error: unrecognized option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25878 | Try \`$0 --help' for more information." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25879 | { (exit 1); exit 1; }; } ;; |
| 25880 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25881 | *) ac_config_targets="$ac_config_targets $1" |
| 25882 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25883 | |
| 25884 | esac |
| 25885 | shift |
| 25886 | done |
| 25887 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25888 | ac_configure_extra_args= |
| 25889 | |
| 25890 | if $ac_cs_silent; then |
| 25891 | exec 6>/dev/null |
| 25892 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 25893 | fi |
| 25894 | |
| 25895 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25896 | cat >>$CONFIG_STATUS <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25897 | if \$ac_cs_recheck; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25898 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 25899 | CONFIG_SHELL=$SHELL |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25900 | export CONFIG_SHELL |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25901 | 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] | 25902 | fi |
| 25903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25904 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25905 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25906 | exec 5>>config.log |
| 25907 | { |
| 25908 | echo |
| 25909 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 25910 | ## Running $as_me. ## |
| 25911 | _ASBOX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25912 | echo "$ac_log" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25913 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25914 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25915 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25916 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25917 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25918 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25919 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25920 | |
| 25921 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25922 | for ac_config_target in $ac_config_targets |
| 25923 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25924 | case $ac_config_target in |
| 25925 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 25926 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 25927 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| 25928 | "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 25929 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 25930 | "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] | 25931 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 25932 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 25933 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25934 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25935 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 25936 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25937 | { (exit 1); exit 1; }; };; |
| 25938 | esac |
| 25939 | done |
| 25940 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25942 | # If the user did not use the arguments to specify the items to instantiate, |
| 25943 | # then the envvar interface is used. Set only those that are not. |
| 25944 | # We use the long form for the default assignment because of an extremely |
| 25945 | # bizarre bug on SunOS 4.1.3. |
| 25946 | if $ac_need_defaults; then |
| 25947 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 25948 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 25949 | fi |
| 25950 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25951 | # 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] | 25952 | # 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] | 25953 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25954 | # Hook for its removal unless debugging. |
| 25955 | # Note that there is a small window in which the directory will not be cleaned: |
| 25956 | # 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] | 25957 | $debug || |
| 25958 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25959 | tmp= |
| 25960 | trap 'exit_status=$? |
| 25961 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 25962 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25963 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 25964 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25965 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25967 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25968 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25969 | test -n "$tmp" && test -d "$tmp" |
| 25970 | } || |
| 25971 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25972 | tmp=./conf$$-$RANDOM |
| 25973 | (umask 077 && mkdir "$tmp") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25974 | } || |
| 25975 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25976 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25977 | { (exit 1); exit 1; } |
| 25978 | } |
| 25979 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25980 | # |
| 25981 | # Set up the sed scripts for CONFIG_FILES section. |
| 25982 | # |
| 25983 | |
| 25984 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 25985 | # This happens for instance when ./config.status config.h |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25986 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25987 | |
| 25988 | _ACEOF |
| 25989 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25990 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25991 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25992 | ac_delim='%!_!# ' |
| 25993 | for ac_last_try in false false false false false :; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 25994 | cat >conf$$subs.sed <<_ACEOF |
| 25995 | SHELL!$SHELL$ac_delim |
| 25996 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 25997 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 25998 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 25999 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 26000 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 26001 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 26002 | exec_prefix!$exec_prefix$ac_delim |
| 26003 | prefix!$prefix$ac_delim |
| 26004 | program_transform_name!$program_transform_name$ac_delim |
| 26005 | bindir!$bindir$ac_delim |
| 26006 | sbindir!$sbindir$ac_delim |
| 26007 | libexecdir!$libexecdir$ac_delim |
| 26008 | datarootdir!$datarootdir$ac_delim |
| 26009 | datadir!$datadir$ac_delim |
| 26010 | sysconfdir!$sysconfdir$ac_delim |
| 26011 | sharedstatedir!$sharedstatedir$ac_delim |
| 26012 | localstatedir!$localstatedir$ac_delim |
| 26013 | includedir!$includedir$ac_delim |
| 26014 | oldincludedir!$oldincludedir$ac_delim |
| 26015 | docdir!$docdir$ac_delim |
| 26016 | infodir!$infodir$ac_delim |
| 26017 | htmldir!$htmldir$ac_delim |
| 26018 | dvidir!$dvidir$ac_delim |
| 26019 | pdfdir!$pdfdir$ac_delim |
| 26020 | psdir!$psdir$ac_delim |
| 26021 | libdir!$libdir$ac_delim |
| 26022 | localedir!$localedir$ac_delim |
| 26023 | mandir!$mandir$ac_delim |
| 26024 | DEFS!$DEFS$ac_delim |
| 26025 | ECHO_C!$ECHO_C$ac_delim |
| 26026 | ECHO_N!$ECHO_N$ac_delim |
| 26027 | ECHO_T!$ECHO_T$ac_delim |
| 26028 | LIBS!$LIBS$ac_delim |
| 26029 | build_alias!$build_alias$ac_delim |
| 26030 | host_alias!$host_alias$ac_delim |
| 26031 | target_alias!$target_alias$ac_delim |
| 26032 | VERSION!$VERSION$ac_delim |
| 26033 | SOVERSION!$SOVERSION$ac_delim |
| 26034 | CONFIG_ARGS!$CONFIG_ARGS$ac_delim |
| 26035 | UNIVERSALSDK!$UNIVERSALSDK$ac_delim |
| 26036 | ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim |
| 26037 | PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim |
| 26038 | PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim |
| 26039 | PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim |
| 26040 | PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim |
| 26041 | PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim |
| 26042 | FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim |
| 26043 | FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim |
| 26044 | FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim |
| 26045 | FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim |
| 26046 | FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim |
| 26047 | MACHDEP!$MACHDEP$ac_delim |
| 26048 | SGI_ABI!$SGI_ABI$ac_delim |
| 26049 | EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim |
| 26050 | EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim |
| 26051 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 26052 | EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 26053 | CC!$CC$ac_delim |
| 26054 | CFLAGS!$CFLAGS$ac_delim |
| 26055 | LDFLAGS!$LDFLAGS$ac_delim |
| 26056 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 26057 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 26058 | EXEEXT!$EXEEXT$ac_delim |
| 26059 | OBJEXT!$OBJEXT$ac_delim |
| 26060 | CXX!$CXX$ac_delim |
| 26061 | MAINCC!$MAINCC$ac_delim |
| 26062 | CPP!$CPP$ac_delim |
| 26063 | GREP!$GREP$ac_delim |
| 26064 | EGREP!$EGREP$ac_delim |
| 26065 | BUILDEXEEXT!$BUILDEXEEXT$ac_delim |
| 26066 | LIBRARY!$LIBRARY$ac_delim |
| 26067 | LDLIBRARY!$LDLIBRARY$ac_delim |
| 26068 | DLLLIBRARY!$DLLLIBRARY$ac_delim |
| 26069 | BLDLIBRARY!$BLDLIBRARY$ac_delim |
| 26070 | LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim |
| 26071 | INSTSONAME!$INSTSONAME$ac_delim |
| 26072 | RUNSHARED!$RUNSHARED$ac_delim |
| 26073 | LINKCC!$LINKCC$ac_delim |
| 26074 | GNULD!$GNULD$ac_delim |
| 26075 | RANLIB!$RANLIB$ac_delim |
| 26076 | AR!$AR$ac_delim |
| 26077 | ARFLAGS!$ARFLAGS$ac_delim |
| 26078 | SVNVERSION!$SVNVERSION$ac_delim |
| 26079 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 26080 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 26081 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 26082 | LN!$LN$ac_delim |
| 26083 | OPT!$OPT$ac_delim |
| 26084 | BASECFLAGS!$BASECFLAGS$ac_delim |
| 26085 | UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim |
| 26086 | OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim |
| 26087 | LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim |
| 26088 | SO!$SO$ac_delim |
| 26089 | LDSHARED!$LDSHARED$ac_delim |
| 26090 | BLDSHARED!$BLDSHARED$ac_delim |
| 26091 | CCSHARED!$CCSHARED$ac_delim |
| 26092 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26093 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26094 | 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] | 26095 | break |
| 26096 | elif $ac_last_try; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26097 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 26098 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26099 | { (exit 1); exit 1; }; } |
| 26100 | else |
| 26101 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26102 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26103 | done |
| 26104 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26105 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 26106 | if test -n "$ac_eof"; then |
| 26107 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 26108 | ac_eof=`expr $ac_eof + 1` |
| 26109 | fi |
| 26110 | |
| 26111 | cat >>$CONFIG_STATUS <<_ACEOF |
| 26112 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 26113 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26114 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26115 | sed ' |
| 26116 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 26117 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 26118 | :n |
| 26119 | t n |
| 26120 | s/'"$ac_delim"'$/,g/; t |
| 26121 | s/$/\\/; p |
| 26122 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 26123 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 26124 | rm -f conf$$subs.sed |
| 26125 | cat >>$CONFIG_STATUS <<_ACEOF |
| 26126 | CEOF$ac_eof |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26127 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26128 | |
| 26129 | |
| 26130 | ac_delim='%!_!# ' |
| 26131 | for ac_last_try in false false false false false :; do |
| 26132 | cat >conf$$subs.sed <<_ACEOF |
| 26133 | LINKFORSHARED!$LINKFORSHARED$ac_delim |
| 26134 | CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim |
| 26135 | SHLIBS!$SHLIBS$ac_delim |
| 26136 | USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim |
| 26137 | SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim |
| 26138 | USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim |
| 26139 | LDLAST!$LDLAST$ac_delim |
| 26140 | THREADOBJ!$THREADOBJ$ac_delim |
| 26141 | DLINCLDIR!$DLINCLDIR$ac_delim |
| 26142 | DYNLOADFILE!$DYNLOADFILE$ac_delim |
| 26143 | MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim |
| 26144 | TRUE!$TRUE$ac_delim |
| 26145 | LIBOBJS!$LIBOBJS$ac_delim |
| 26146 | HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim |
| 26147 | HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim |
| 26148 | HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim |
| 26149 | HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim |
| 26150 | HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim |
| 26151 | LIBM!$LIBM$ac_delim |
| 26152 | LIBC!$LIBC$ac_delim |
| 26153 | UNICODE_OBJS!$UNICODE_OBJS$ac_delim |
| 26154 | THREADHEADERS!$THREADHEADERS$ac_delim |
| 26155 | SRCDIRS!$SRCDIRS$ac_delim |
| 26156 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 26157 | _ACEOF |
| 26158 | |
| 26159 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then |
| 26160 | break |
| 26161 | elif $ac_last_try; then |
| 26162 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 26163 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26164 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26165 | else |
| 26166 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 26167 | fi |
| 26168 | done |
| 26169 | |
| 26170 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 26171 | if test -n "$ac_eof"; then |
| 26172 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 26173 | ac_eof=`expr $ac_eof + 1` |
| 26174 | fi |
| 26175 | |
| 26176 | cat >>$CONFIG_STATUS <<_ACEOF |
| 26177 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 26178 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26179 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26180 | sed ' |
| 26181 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 26182 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 26183 | :n |
| 26184 | t n |
| 26185 | s/'"$ac_delim"'$/,g/; t |
| 26186 | s/$/\\/; p |
| 26187 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 26188 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 26189 | rm -f conf$$subs.sed |
| 26190 | cat >>$CONFIG_STATUS <<_ACEOF |
| 26191 | :end |
| 26192 | s/|#_!!_#|//g |
| 26193 | CEOF$ac_eof |
| 26194 | _ACEOF |
| 26195 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26196 | |
| 26197 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 26198 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 26199 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 26200 | # (actually we leave an empty line to preserve line numbers). |
| 26201 | if test "x$srcdir" = x.; then |
| 26202 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 26203 | s/:*\$(srcdir):*/:/ |
| 26204 | s/:*\${srcdir}:*/:/ |
| 26205 | s/:*@srcdir@:*/:/ |
| 26206 | s/^\([^=]*=[ ]*\):*/\1/ |
| 26207 | s/:*$// |
| 26208 | s/^[^=]*=[ ]*$// |
| 26209 | }' |
| 26210 | fi |
| 26211 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26212 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26213 | fi # test -n "$CONFIG_FILES" |
| 26214 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26215 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26216 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26217 | do |
| 26218 | case $ac_tag in |
| 26219 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 26220 | esac |
| 26221 | case $ac_mode$ac_tag in |
| 26222 | :[FHL]*:*);; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26223 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 26224 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26225 | { (exit 1); exit 1; }; };; |
| 26226 | :[FH]-) ac_tag=-:-;; |
| 26227 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 26228 | esac |
| 26229 | ac_save_IFS=$IFS |
| 26230 | IFS=: |
| 26231 | set x $ac_tag |
| 26232 | IFS=$ac_save_IFS |
| 26233 | shift |
| 26234 | ac_file=$1 |
| 26235 | shift |
| 26236 | |
| 26237 | case $ac_mode in |
| 26238 | :L) ac_source=$1;; |
| 26239 | :[FH]) |
| 26240 | ac_file_inputs= |
| 26241 | for ac_f |
| 26242 | do |
| 26243 | case $ac_f in |
| 26244 | -) ac_f="$tmp/stdin";; |
| 26245 | *) # Look for the file first in the build tree, then in the source tree |
| 26246 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 26247 | # because $ac_f cannot contain `:'. |
| 26248 | test -f "$ac_f" || |
| 26249 | case $ac_f in |
| 26250 | [\\/$]*) false;; |
| 26251 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 26252 | esac || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26253 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 26254 | 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] | 26255 | { (exit 1); exit 1; }; };; |
| 26256 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26257 | ac_file_inputs="$ac_file_inputs $ac_f" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26258 | done |
| 26259 | |
| 26260 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 26261 | # use $as_me), people would be surprised to read: |
| 26262 | # /* config.h. Generated by config.status. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26263 | configure_input="Generated from "`IFS=: |
| 26264 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26265 | if test x"$ac_file" != x-; then |
| 26266 | configure_input="$ac_file. $configure_input" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26267 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 26268 | echo "$as_me: creating $ac_file" >&6;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26269 | fi |
| 26270 | |
| 26271 | case $ac_tag in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26272 | *:-:* | *:-) cat >"$tmp/stdin";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26273 | esac |
| 26274 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26275 | esac |
| 26276 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26277 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26278 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26279 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 26280 | X"$ac_file" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26281 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26282 | echo X"$ac_file" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26283 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 26284 | s//\1/ |
| 26285 | q |
| 26286 | } |
| 26287 | /^X\(\/\/\)[^/].*/{ |
| 26288 | s//\1/ |
| 26289 | q |
| 26290 | } |
| 26291 | /^X\(\/\/\)$/{ |
| 26292 | s//\1/ |
| 26293 | q |
| 26294 | } |
| 26295 | /^X\(\/\).*/{ |
| 26296 | s//\1/ |
| 26297 | q |
| 26298 | } |
| 26299 | s/.*/./; q'` |
| 26300 | { as_dir="$ac_dir" |
| 26301 | case $as_dir in #( |
| 26302 | -*) as_dir=./$as_dir;; |
| 26303 | esac |
| 26304 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26305 | as_dirs= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26306 | while :; do |
| 26307 | case $as_dir in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26308 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26309 | *) as_qdir=$as_dir;; |
| 26310 | esac |
| 26311 | as_dirs="'$as_qdir' $as_dirs" |
| 26312 | as_dir=`$as_dirname -- "$as_dir" || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26313 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26314 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 26315 | X"$as_dir" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26316 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26317 | echo X"$as_dir" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26318 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 26319 | s//\1/ |
| 26320 | q |
| 26321 | } |
| 26322 | /^X\(\/\/\)[^/].*/{ |
| 26323 | s//\1/ |
| 26324 | q |
| 26325 | } |
| 26326 | /^X\(\/\/\)$/{ |
| 26327 | s//\1/ |
| 26328 | q |
| 26329 | } |
| 26330 | /^X\(\/\).*/{ |
| 26331 | s//\1/ |
| 26332 | q |
| 26333 | } |
| 26334 | s/.*/./; q'` |
| 26335 | test -d "$as_dir" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26336 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26337 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26338 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 26339 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26340 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26341 | ac_builddir=. |
| 26342 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26343 | case "$ac_dir" in |
| 26344 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 26345 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26346 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26347 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26348 | 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] | 26349 | case $ac_top_builddir_sub in |
| 26350 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 26351 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 26352 | esac ;; |
| 26353 | esac |
| 26354 | ac_abs_top_builddir=$ac_pwd |
| 26355 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 26356 | # for backward compatibility: |
| 26357 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26358 | |
| 26359 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26360 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26361 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26362 | ac_top_srcdir=$ac_top_builddir_sub |
| 26363 | ac_abs_top_srcdir=$ac_pwd ;; |
| 26364 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26365 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26366 | ac_top_srcdir=$srcdir |
| 26367 | ac_abs_top_srcdir=$srcdir ;; |
| 26368 | *) # Relative name. |
| 26369 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 26370 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 26371 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26372 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26373 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26374 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26375 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26376 | case $ac_mode in |
| 26377 | :F) |
| 26378 | # |
| 26379 | # CONFIG_FILE |
| 26380 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26381 | |
| 26382 | case $INSTALL in |
| 26383 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26384 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26385 | esac |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 26386 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26387 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26388 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26389 | # If the template does not know about datarootdir, expand it. |
| 26390 | # FIXME: This hack should be removed a few years after 2.60. |
| 26391 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 26392 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26393 | case `sed -n '/datarootdir/ { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26394 | p |
| 26395 | q |
| 26396 | } |
| 26397 | /@datadir@/p |
| 26398 | /@docdir@/p |
| 26399 | /@infodir@/p |
| 26400 | /@localedir@/p |
| 26401 | /@mandir@/p |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26402 | ' $ac_file_inputs` in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26403 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 26404 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26405 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 26406 | 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] | 26407 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26408 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26409 | ac_datarootdir_hack=' |
| 26410 | s&@datadir@&$datadir&g |
| 26411 | s&@docdir@&$docdir&g |
| 26412 | s&@infodir@&$infodir&g |
| 26413 | s&@localedir@&$localedir&g |
| 26414 | s&@mandir@&$mandir&g |
| 26415 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 26416 | esac |
| 26417 | _ACEOF |
| 26418 | |
| 26419 | # Neutralize VPATH when `$srcdir' = `.'. |
| 26420 | # Shell code in configure.ac might set extrasub. |
| 26421 | # FIXME: do we really want to maintain this feature? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26422 | cat >>$CONFIG_STATUS <<_ACEOF |
| 26423 | sed "$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26424 | $extrasub |
| 26425 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26426 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26427 | :t |
| 26428 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26429 | s&@configure_input@&$configure_input&;t t |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26430 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 26431 | s&@srcdir@&$ac_srcdir&;t t |
| 26432 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 26433 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 26434 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 26435 | s&@builddir@&$ac_builddir&;t t |
| 26436 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 26437 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 26438 | s&@INSTALL@&$ac_INSTALL&;t t |
| 26439 | $ac_datarootdir_hack |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26440 | " $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] | 26441 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26442 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 26443 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 26444 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26445 | { 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] | 26446 | which seems to be undefined. Please make sure it is defined." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26447 | 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] | 26448 | 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] | 26449 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26450 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26451 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26452 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 26453 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 26454 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26455 | ;; |
| 26456 | :H) |
| 26457 | # |
| 26458 | # CONFIG_HEADER |
| 26459 | # |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26460 | _ACEOF |
| 26461 | |
| 26462 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 26463 | # substitutes the proper values into config.h.in to produce config.h. |
| 26464 | rm -f conftest.defines conftest.tail |
| 26465 | # First, append a space to every undef/define line, to ease matching. |
| 26466 | echo 's/$/ /' >conftest.defines |
| 26467 | # Then, protect against being on the right side of a sed subst, or in |
| 26468 | # an unquoted here document, in config.status. If some macros were |
| 26469 | # called several times there might be several #defines for the same |
| 26470 | # symbol, which is useless. But do not sort them, since the last |
| 26471 | # AC_DEFINE must be honored. |
| 26472 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 26473 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 26474 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 26475 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 26476 | # just an empty string. |
| 26477 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 26478 | ac_dB='\\)[ (].*,\\1define\\2' |
| 26479 | ac_dC=' ' |
| 26480 | ac_dD=' ,' |
| 26481 | |
| 26482 | uniq confdefs.h | |
| 26483 | sed -n ' |
| 26484 | t rset |
| 26485 | :rset |
| 26486 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 26487 | t ok |
| 26488 | d |
| 26489 | :ok |
| 26490 | s/[\\&,]/\\&/g |
| 26491 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 26492 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 26493 | ' >>conftest.defines |
| 26494 | |
| 26495 | # Remove the space that was appended to ease matching. |
| 26496 | # Then replace #undef with comments. This is necessary, for |
| 26497 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 26498 | # on some systems where configure will not decide to define it. |
| 26499 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 26500 | echo 's/ $// |
| 26501 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 26502 | |
| 26503 | # Break up conftest.defines: |
| 26504 | ac_max_sed_lines=50 |
| 26505 | |
| 26506 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 26507 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 26508 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 26509 | # et cetera. |
| 26510 | ac_in='$ac_file_inputs' |
| 26511 | ac_out='"$tmp/out1"' |
| 26512 | ac_nxt='"$tmp/out2"' |
| 26513 | |
| 26514 | while : |
| 26515 | do |
| 26516 | # Write a here document: |
| 26517 | cat >>$CONFIG_STATUS <<_ACEOF |
| 26518 | # First, check the format of the line: |
| 26519 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 26520 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 26521 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 26522 | b |
| 26523 | :def |
| 26524 | _ACEOF |
| 26525 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 26526 | echo 'CEOF |
| 26527 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 26528 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 26529 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 26530 | grep . conftest.tail >/dev/null || break |
| 26531 | rm -f conftest.defines |
| 26532 | mv conftest.tail conftest.defines |
| 26533 | done |
| 26534 | rm -f conftest.defines conftest.tail |
| 26535 | |
| 26536 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 26537 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26538 | if test x"$ac_file" != x-; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26539 | echo "/* $configure_input */" >"$tmp/config.h" |
| 26540 | cat "$ac_result" >>"$tmp/config.h" |
| 26541 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 26542 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 26543 | echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26544 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26545 | rm -f $ac_file |
| 26546 | mv "$tmp/config.h" $ac_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26547 | fi |
| 26548 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26549 | echo "/* $configure_input */" |
| 26550 | cat "$ac_result" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26551 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26552 | rm -f "$tmp/out12" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26553 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 26554 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26555 | |
| 26556 | esac |
| 26557 | |
| 26558 | done # for ac_tag |
| 26559 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 26560 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26561 | { (exit 0); exit 0; } |
| 26562 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26563 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26564 | ac_clean_files=$ac_clean_files_save |
| 26565 | |
| 26566 | |
| 26567 | # configure is writing to config.log, and then calls config.status. |
| 26568 | # config.status does its own redirection, appending to config.log. |
| 26569 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 26570 | # by configure, so config.status won't be able to write to it; its |
| 26571 | # output is simply discarded. So we exec the FD to /dev/null, |
| 26572 | # effectively closing config.log, so it can be properly (re)opened and |
| 26573 | # appended to by config.status. When coming back to configure, we |
| 26574 | # need to make the FD available again. |
| 26575 | if test "$no_create" != yes; then |
| 26576 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26577 | ac_config_status_args= |
| 26578 | test "$silent" = yes && |
| 26579 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26580 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26581 | $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] | 26582 | exec 5>>config.log |
| 26583 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 26584 | # would make configure fail if this is the last instruction. |
| 26585 | $ac_cs_success || { (exit 1); exit 1; } |
| 26586 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 26587 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 26588 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 26589 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 26590 | if test ! -f Modules/Setup |
| 26591 | then |
| 26592 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 26593 | fi |
| 26594 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 26595 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 26596 | if test ! -f Modules/Setup.local |
| 26597 | then |
| 26598 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 26599 | fi |
| 26600 | |
| 26601 | echo "creating Makefile" |
| 26602 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 26603 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 26604 | Modules/Setup.local Modules/Setup |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 26605 | |
| 26606 | case $ac_sys_system in |
| 26607 | BeOS) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26608 | { echo "$as_me:$LINENO: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 26609 | |
| 26610 | Support for BeOS is deprecated as of Python 2.6. |
| 26611 | See PEP 11 for the gory details. |
| 26612 | " >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame^] | 26613 | echo "$as_me: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 26614 | |
| 26615 | Support for BeOS is deprecated as of Python 2.6. |
| 26616 | See PEP 11 for the gory details. |
| 26617 | " >&2;} |
| 26618 | ;; |
| 26619 | *) ;; |
| 26620 | esac |
| 26621 | |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 26622 | mv config.c Modules |