Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Mark Dickinson | 9c11336 | 2009-09-05 10:36:23 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 74073 . |
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 | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.61 for python 3.2. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +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 | # |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10 | # This configure script is free software; the Free Software Foundation |
| 11 | # gives unlimited permission to copy, distribute and modify it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12 | ## --------------------- ## |
| 13 | ## M4sh Initialization. ## |
| 14 | ## --------------------- ## |
| 15 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16 | # Be more Bourne compatible |
| 17 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 19 | emulate sh |
| 20 | NULLCMD=: |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22 | # is contrary to our usage. Disable this feature. |
| 23 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 25 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26 | case `(set -o) 2>/dev/null` in |
| 27 | *posix*) set -o posix ;; |
| 28 | esac |
| 29 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 30 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 31 | |
| 32 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 33 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 34 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 35 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 36 | # Avoid depending upon Character Ranges. |
| 37 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 38 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 39 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 40 | as_cr_digits='0123456789' |
| 41 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 42 | |
| 43 | # The user is always right. |
| 44 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 45 | echo "#! /bin/sh" >conf$$.sh |
| 46 | echo "exit 0" >>conf$$.sh |
| 47 | chmod +x conf$$.sh |
| 48 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 49 | PATH_SEPARATOR=';' |
| 50 | else |
| 51 | PATH_SEPARATOR=: |
| 52 | fi |
| 53 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 54 | fi |
| 55 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 56 | # Support unset when possible. |
| 57 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 58 | as_unset=unset |
| 59 | else |
| 60 | as_unset=false |
| 61 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 62 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 63 | |
| 64 | # IFS |
| 65 | # We need space, tab and new line, in precisely that order. Quoting is |
| 66 | # there to prevent editors from complaining about space-tab. |
| 67 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 68 | # splitting by setting IFS to empty value.) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 69 | as_nl=' |
| 70 | ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 71 | IFS=" "" $as_nl" |
| 72 | |
| 73 | # Find who we are. Look in the path if we contain no directory separator. |
| 74 | case $0 in |
| 75 | *[\\/]* ) as_myself=$0 ;; |
| 76 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 77 | for as_dir in $PATH |
| 78 | do |
| 79 | IFS=$as_save_IFS |
| 80 | test -z "$as_dir" && as_dir=. |
| 81 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 82 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 83 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 84 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 85 | ;; |
| 86 | esac |
| 87 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 88 | # in which case we are not to be found in the path. |
| 89 | if test "x$as_myself" = x; then |
| 90 | as_myself=$0 |
| 91 | fi |
| 92 | if test ! -f "$as_myself"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 93 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 94 | { (exit 1); exit 1; } |
| 95 | fi |
| 96 | |
| 97 | # Work around bugs in pre-3.0 UWIN ksh. |
| 98 | for as_var in ENV MAIL MAILPATH |
| 99 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 100 | done |
| 101 | PS1='$ ' |
| 102 | PS2='> ' |
| 103 | PS4='+ ' |
| 104 | |
| 105 | # NLS nuisances. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 106 | for as_var in \ |
| 107 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 108 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 109 | LC_TELEPHONE LC_TIME |
| 110 | do |
| 111 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 112 | eval $as_var=C; export $as_var |
| 113 | else |
| 114 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 115 | fi |
| 116 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 117 | |
| 118 | # Required to use basename. |
| 119 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 120 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 121 | as_expr=expr |
| 122 | else |
| 123 | as_expr=false |
| 124 | fi |
| 125 | |
| 126 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 127 | as_basename=basename |
| 128 | else |
| 129 | as_basename=false |
| 130 | fi |
| 131 | |
| 132 | |
| 133 | # Name of the executable. |
| 134 | as_me=`$as_basename -- "$0" || |
| 135 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 136 | X"$0" : 'X\(//\)$' \| \ |
| 137 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 138 | echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 139 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 140 | s//\1/ |
| 141 | q |
| 142 | } |
| 143 | /^X\/\(\/\/\)$/{ |
| 144 | s//\1/ |
| 145 | q |
| 146 | } |
| 147 | /^X\/\(\/\).*/{ |
| 148 | s//\1/ |
| 149 | q |
| 150 | } |
| 151 | s/.*/./; q'` |
| 152 | |
| 153 | # CDPATH. |
| 154 | $as_unset CDPATH |
| 155 | |
| 156 | |
| 157 | if test "x$CONFIG_SHELL" = x; then |
| 158 | if (eval ":") 2>/dev/null; then |
| 159 | as_have_required=yes |
| 160 | else |
| 161 | as_have_required=no |
| 162 | fi |
| 163 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 164 | if test $as_have_required = yes && (eval ": |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 165 | (as_func_return () { |
| 166 | (exit \$1) |
| 167 | } |
| 168 | as_func_success () { |
| 169 | as_func_return 0 |
| 170 | } |
| 171 | as_func_failure () { |
| 172 | as_func_return 1 |
| 173 | } |
| 174 | as_func_ret_success () { |
| 175 | return 0 |
| 176 | } |
| 177 | as_func_ret_failure () { |
| 178 | return 1 |
| 179 | } |
| 180 | |
| 181 | exitcode=0 |
| 182 | if as_func_success; then |
| 183 | : |
| 184 | else |
| 185 | exitcode=1 |
| 186 | echo as_func_success failed. |
| 187 | fi |
| 188 | |
| 189 | if as_func_failure; then |
| 190 | exitcode=1 |
| 191 | echo as_func_failure succeeded. |
| 192 | fi |
| 193 | |
| 194 | if as_func_ret_success; then |
| 195 | : |
| 196 | else |
| 197 | exitcode=1 |
| 198 | echo as_func_ret_success failed. |
| 199 | fi |
| 200 | |
| 201 | if as_func_ret_failure; then |
| 202 | exitcode=1 |
| 203 | echo as_func_ret_failure succeeded. |
| 204 | fi |
| 205 | |
| 206 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 207 | : |
| 208 | else |
| 209 | exitcode=1 |
| 210 | echo positional parameters were not saved. |
| 211 | fi |
| 212 | |
| 213 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 214 | |
| 215 | ( |
| 216 | as_lineno_1=\$LINENO |
| 217 | as_lineno_2=\$LINENO |
| 218 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 219 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 220 | ") 2> /dev/null; then |
| 221 | : |
| 222 | else |
| 223 | as_candidate_shells= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 225 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 226 | do |
| 227 | IFS=$as_save_IFS |
| 228 | test -z "$as_dir" && as_dir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 229 | case $as_dir in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 230 | /*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 231 | for as_base in sh bash ksh sh5; do |
| 232 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 233 | done;; |
| 234 | esac |
| 235 | done |
| 236 | IFS=$as_save_IFS |
| 237 | |
| 238 | |
| 239 | for as_shell in $as_candidate_shells $SHELL; do |
| 240 | # Try only shells that exist, to save several forks. |
| 241 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 242 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 243 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 244 | emulate sh |
| 245 | NULLCMD=: |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 246 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 247 | # is contrary to our usage. Disable this feature. |
| 248 | alias -g '${1+"$@"}'='"$@"' |
| 249 | setopt NO_GLOB_SUBST |
| 250 | else |
| 251 | case `(set -o) 2>/dev/null` in |
| 252 | *posix*) set -o posix ;; |
| 253 | esac |
| 254 | |
| 255 | fi |
| 256 | |
| 257 | |
| 258 | : |
| 259 | _ASEOF |
| 260 | }; then |
| 261 | CONFIG_SHELL=$as_shell |
| 262 | as_have_required=yes |
| 263 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 264 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 265 | emulate sh |
| 266 | NULLCMD=: |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 267 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 268 | # is contrary to our usage. Disable this feature. |
| 269 | alias -g '${1+"$@"}'='"$@"' |
| 270 | setopt NO_GLOB_SUBST |
| 271 | else |
| 272 | case `(set -o) 2>/dev/null` in |
| 273 | *posix*) set -o posix ;; |
| 274 | esac |
| 275 | |
| 276 | fi |
| 277 | |
| 278 | |
| 279 | : |
| 280 | (as_func_return () { |
| 281 | (exit $1) |
| 282 | } |
| 283 | as_func_success () { |
| 284 | as_func_return 0 |
| 285 | } |
| 286 | as_func_failure () { |
| 287 | as_func_return 1 |
| 288 | } |
| 289 | as_func_ret_success () { |
| 290 | return 0 |
| 291 | } |
| 292 | as_func_ret_failure () { |
| 293 | return 1 |
| 294 | } |
| 295 | |
| 296 | exitcode=0 |
| 297 | if as_func_success; then |
| 298 | : |
| 299 | else |
| 300 | exitcode=1 |
| 301 | echo as_func_success failed. |
| 302 | fi |
| 303 | |
| 304 | if as_func_failure; then |
| 305 | exitcode=1 |
| 306 | echo as_func_failure succeeded. |
| 307 | fi |
| 308 | |
| 309 | if as_func_ret_success; then |
| 310 | : |
| 311 | else |
| 312 | exitcode=1 |
| 313 | echo as_func_ret_success failed. |
| 314 | fi |
| 315 | |
| 316 | if as_func_ret_failure; then |
| 317 | exitcode=1 |
| 318 | echo as_func_ret_failure succeeded. |
| 319 | fi |
| 320 | |
| 321 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 322 | : |
| 323 | else |
| 324 | exitcode=1 |
| 325 | echo positional parameters were not saved. |
| 326 | fi |
| 327 | |
| 328 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 329 | |
| 330 | ( |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 331 | as_lineno_1=$LINENO |
| 332 | as_lineno_2=$LINENO |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 333 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 334 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 335 | |
| 336 | _ASEOF |
| 337 | }; then |
| 338 | break |
| 339 | fi |
| 340 | |
| 341 | fi |
| 342 | |
| 343 | done |
| 344 | |
| 345 | if test "x$CONFIG_SHELL" != x; then |
| 346 | for as_var in BASH_ENV ENV |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 347 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 348 | done |
| 349 | export CONFIG_SHELL |
| 350 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 351 | fi |
| 352 | |
| 353 | |
| 354 | if test $as_have_required = no; then |
| 355 | echo This script requires a shell more modern than all the |
| 356 | echo shells that I found on your system. Please install a |
| 357 | echo modern shell, or manually run the script under such a |
| 358 | echo shell if you do have one. |
| 359 | { (exit 1); exit 1; } |
| 360 | fi |
| 361 | |
| 362 | |
| 363 | fi |
| 364 | |
| 365 | fi |
| 366 | |
| 367 | |
| 368 | |
| 369 | (eval "as_func_return () { |
| 370 | (exit \$1) |
| 371 | } |
| 372 | as_func_success () { |
| 373 | as_func_return 0 |
| 374 | } |
| 375 | as_func_failure () { |
| 376 | as_func_return 1 |
| 377 | } |
| 378 | as_func_ret_success () { |
| 379 | return 0 |
| 380 | } |
| 381 | as_func_ret_failure () { |
| 382 | return 1 |
| 383 | } |
| 384 | |
| 385 | exitcode=0 |
| 386 | if as_func_success; then |
| 387 | : |
| 388 | else |
| 389 | exitcode=1 |
| 390 | echo as_func_success failed. |
| 391 | fi |
| 392 | |
| 393 | if as_func_failure; then |
| 394 | exitcode=1 |
| 395 | echo as_func_failure succeeded. |
| 396 | fi |
| 397 | |
| 398 | if as_func_ret_success; then |
| 399 | : |
| 400 | else |
| 401 | exitcode=1 |
| 402 | echo as_func_ret_success failed. |
| 403 | fi |
| 404 | |
| 405 | if as_func_ret_failure; then |
| 406 | exitcode=1 |
| 407 | echo as_func_ret_failure succeeded. |
| 408 | fi |
| 409 | |
| 410 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 411 | : |
| 412 | else |
| 413 | exitcode=1 |
| 414 | echo positional parameters were not saved. |
| 415 | fi |
| 416 | |
| 417 | test \$exitcode = 0") || { |
| 418 | echo No shell found that supports shell functions. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 419 | echo Please tell autoconf@gnu.org about your system, |
| 420 | echo including any error possibly output before this |
| 421 | echo message |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 422 | } |
| 423 | |
| 424 | |
| 425 | |
| 426 | as_lineno_1=$LINENO |
| 427 | as_lineno_2=$LINENO |
| 428 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 429 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 430 | |
| 431 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 432 | # uniformly replaced by the line number. The first 'sed' inserts a |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 433 | # line-number line after each line using $LINENO; the second 'sed' |
| 434 | # does the real work. The second script uses 'N' to pair each |
| 435 | # line-number line with the line containing $LINENO, and appends |
| 436 | # trailing '-' during substitution so that $LINENO is not a special |
| 437 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 438 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 439 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 440 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 441 | sed -n ' |
| 442 | p |
| 443 | /[$]LINENO/= |
| 444 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 445 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 446 | s/[$]LINENO.*/&-/ |
| 447 | t lineno |
| 448 | b |
| 449 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 450 | N |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 451 | :loop |
| 452 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 453 | t loop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 454 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 455 | ' >$as_me.lineno && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 456 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 457 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 458 | { (exit 1); exit 1; }; } |
| 459 | |
| 460 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 461 | # (the dirname of $[0] is not the place where we might find the |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 462 | # original and so on. Autoconf is especially sensitive to this). |
| 463 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 464 | # Exit status is that of the last command. |
| 465 | exit |
| 466 | } |
| 467 | |
| 468 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 469 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 470 | as_dirname=dirname |
| 471 | else |
| 472 | as_dirname=false |
| 473 | fi |
| 474 | |
| 475 | ECHO_C= ECHO_N= ECHO_T= |
| 476 | case `echo -n x` in |
| 477 | -n*) |
| 478 | case `echo 'x\c'` in |
| 479 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 480 | *) ECHO_C='\c';; |
| 481 | esac;; |
| 482 | *) |
| 483 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 484 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 485 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 486 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 487 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 | as_expr=expr |
| 489 | else |
| 490 | as_expr=false |
| 491 | fi |
| 492 | |
| 493 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 494 | if test -d conf$$.dir; then |
| 495 | rm -f conf$$.dir/conf$$.file |
| 496 | else |
| 497 | rm -f conf$$.dir |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 498 | mkdir conf$$.dir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 499 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 500 | echo >conf$$.file |
| 501 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 502 | as_ln_s='ln -s' |
| 503 | # ... but there are two gotchas: |
| 504 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 505 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 506 | # In both cases, we have to default to `cp -p'. |
| 507 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 508 | as_ln_s='cp -p' |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 509 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 510 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 511 | else |
| 512 | as_ln_s='cp -p' |
| 513 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 514 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 515 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 516 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 517 | if mkdir -p . 2>/dev/null; then |
| 518 | as_mkdir_p=: |
| 519 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 520 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 521 | as_mkdir_p=false |
| 522 | fi |
| 523 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 524 | if test -x / >/dev/null 2>&1; then |
| 525 | as_test_x='test -x' |
| 526 | else |
| 527 | if ls -dL / >/dev/null 2>&1; then |
| 528 | as_ls_L_option=L |
| 529 | else |
| 530 | as_ls_L_option= |
| 531 | fi |
| 532 | as_test_x=' |
| 533 | eval sh -c '\'' |
| 534 | if test -d "$1"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 535 | test -d "$1/."; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 536 | else |
| 537 | case $1 in |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 538 | -*)set "./$1";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 539 | esac; |
| 540 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 541 | ???[sx]*):;;*)false;;esac;fi |
| 542 | '\'' sh |
| 543 | ' |
| 544 | fi |
| 545 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 546 | |
| 547 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 548 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 549 | |
| 550 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 551 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 552 | |
| 553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 554 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 555 | exec 7<&0 </dev/null 6>&1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 556 | |
| 557 | # Name of the host. |
| 558 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 559 | # so uname gets run too. |
| 560 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 562 | # |
| 563 | # Initializations. |
| 564 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 565 | ac_default_prefix=/usr/local |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 566 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 567 | ac_config_libobj_dir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 568 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | cross_compiling=no |
| 570 | subdirs= |
| 571 | MFLAGS= |
| 572 | MAKEFLAGS= |
| 573 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 575 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 576 | PACKAGE_NAME='python' |
| 577 | PACKAGE_TARNAME='python' |
Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 578 | PACKAGE_VERSION='3.2' |
| 579 | PACKAGE_STRING='python 3.2' |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +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> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 586 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 | # include <sys/types.h> |
| 588 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 589 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 590 | # include <sys/stat.h> |
| 591 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 592 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | # include <stdlib.h> |
| 594 | # include <stddef.h> |
| 595 | #else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 596 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | # include <stdlib.h> |
| 598 | # endif |
| 599 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 600 | #ifdef HAVE_STRING_H |
| 601 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 602 | # include <memory.h> |
| 603 | # endif |
| 604 | # include <string.h> |
| 605 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 606 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 607 | # include <strings.h> |
| 608 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 609 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 610 | # include <inttypes.h> |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 611 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 612 | #ifdef HAVE_STDINT_H |
| 613 | # include <stdint.h> |
| 614 | #endif |
| 615 | #ifdef HAVE_UNISTD_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 616 | # include <unistd.h> |
| 617 | #endif" |
| 618 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 619 | ac_subst_vars='SHELL |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 620 | PATH_SEPARATOR |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 621 | PACKAGE_NAME |
| 622 | PACKAGE_TARNAME |
| 623 | PACKAGE_VERSION |
| 624 | PACKAGE_STRING |
| 625 | PACKAGE_BUGREPORT |
| 626 | exec_prefix |
| 627 | prefix |
| 628 | program_transform_name |
| 629 | bindir |
| 630 | sbindir |
| 631 | libexecdir |
| 632 | datarootdir |
| 633 | datadir |
| 634 | sysconfdir |
| 635 | sharedstatedir |
| 636 | localstatedir |
| 637 | includedir |
| 638 | oldincludedir |
| 639 | docdir |
| 640 | infodir |
| 641 | htmldir |
| 642 | dvidir |
| 643 | pdfdir |
| 644 | psdir |
| 645 | libdir |
| 646 | localedir |
| 647 | mandir |
| 648 | DEFS |
| 649 | ECHO_C |
| 650 | ECHO_N |
| 651 | ECHO_T |
| 652 | LIBS |
| 653 | build_alias |
| 654 | host_alias |
| 655 | target_alias |
| 656 | VERSION |
| 657 | SOVERSION |
| 658 | CONFIG_ARGS |
| 659 | UNIVERSALSDK |
| 660 | ARCH_RUN_32BIT |
| 661 | PYTHONFRAMEWORK |
| 662 | PYTHONFRAMEWORKIDENTIFIER |
| 663 | PYTHONFRAMEWORKDIR |
| 664 | PYTHONFRAMEWORKPREFIX |
| 665 | PYTHONFRAMEWORKINSTALLDIR |
| 666 | FRAMEWORKINSTALLFIRST |
| 667 | FRAMEWORKINSTALLLAST |
| 668 | FRAMEWORKALTINSTALLFIRST |
| 669 | FRAMEWORKALTINSTALLLAST |
| 670 | FRAMEWORKUNIXTOOLSPREFIX |
| 671 | MACHDEP |
| 672 | SGI_ABI |
| 673 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 674 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 675 | CC |
| 676 | CFLAGS |
| 677 | LDFLAGS |
| 678 | CPPFLAGS |
| 679 | ac_ct_CC |
| 680 | EXEEXT |
| 681 | OBJEXT |
| 682 | CXX |
| 683 | MAINCC |
| 684 | CPP |
| 685 | GREP |
| 686 | EGREP |
| 687 | BUILDEXEEXT |
| 688 | LIBRARY |
| 689 | LDLIBRARY |
| 690 | DLLLIBRARY |
| 691 | BLDLIBRARY |
| 692 | LDLIBRARYDIR |
| 693 | INSTSONAME |
| 694 | RUNSHARED |
| 695 | LINKCC |
| 696 | GNULD |
| 697 | RANLIB |
| 698 | AR |
| 699 | ARFLAGS |
| 700 | SVNVERSION |
| 701 | INSTALL_PROGRAM |
| 702 | INSTALL_SCRIPT |
| 703 | INSTALL_DATA |
| 704 | LN |
| 705 | OPT |
| 706 | BASECFLAGS |
| 707 | UNIVERSAL_ARCH_FLAGS |
| 708 | OTHER_LIBTOOL_OPT |
| 709 | LIBTOOL_CRUFT |
| 710 | SO |
| 711 | LDSHARED |
| 712 | BLDSHARED |
| 713 | CCSHARED |
| 714 | LINKFORSHARED |
| 715 | CFLAGSFORSHARED |
| 716 | SHLIBS |
| 717 | USE_SIGNAL_MODULE |
| 718 | SIGNAL_OBJS |
| 719 | USE_THREAD_MODULE |
| 720 | LDLAST |
| 721 | THREADOBJ |
| 722 | DLINCLDIR |
| 723 | DYNLOADFILE |
| 724 | MACHDEP_OBJS |
| 725 | TRUE |
| 726 | LIBOBJS |
| 727 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 728 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 729 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 730 | HAVE_GETHOSTBYNAME_R |
| 731 | HAVE_GETHOSTBYNAME |
| 732 | LIBM |
| 733 | LIBC |
| 734 | THREADHEADERS |
| 735 | SRCDIRS |
| 736 | LTLIBOBJS' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 737 | ac_subst_files='' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 738 | ac_precious_vars='build_alias |
| 739 | host_alias |
| 740 | target_alias |
| 741 | CC |
| 742 | CFLAGS |
| 743 | LDFLAGS |
| 744 | LIBS |
| 745 | CPPFLAGS |
| 746 | CPP' |
| 747 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 748 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 749 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 750 | ac_init_help= |
| 751 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 752 | # The variables have the same names as the options, with |
| 753 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 754 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 755 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 756 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 757 | no_recursion= |
| 758 | prefix=NONE |
| 759 | program_prefix=NONE |
| 760 | program_suffix=NONE |
| 761 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 762 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 763 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 764 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 765 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 766 | x_includes=NONE |
| 767 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 768 | |
| 769 | # Installation directory options. |
| 770 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 771 | # and all the variables that are supposed to be based on exec_prefix |
| 772 | # by default will actually change. |
| 773 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 774 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 775 | bindir='${exec_prefix}/bin' |
| 776 | sbindir='${exec_prefix}/sbin' |
| 777 | libexecdir='${exec_prefix}/libexec' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 778 | datarootdir='${prefix}/share' |
| 779 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 780 | sysconfdir='${prefix}/etc' |
| 781 | sharedstatedir='${prefix}/com' |
| 782 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 783 | includedir='${prefix}/include' |
| 784 | oldincludedir='/usr/include' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 785 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 786 | infodir='${datarootdir}/info' |
| 787 | htmldir='${docdir}' |
| 788 | dvidir='${docdir}' |
| 789 | pdfdir='${docdir}' |
| 790 | psdir='${docdir}' |
| 791 | libdir='${exec_prefix}/lib' |
| 792 | localedir='${datarootdir}/locale' |
| 793 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 794 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 795 | ac_prev= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 796 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 797 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 798 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 799 | # If the previous option needs an argument, assign it. |
| 800 | if test -n "$ac_prev"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 801 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 802 | ac_prev= |
| 803 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 804 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 805 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 806 | case $ac_option in |
| 807 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 808 | *) ac_optarg=yes ;; |
| 809 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 810 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 811 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 812 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 813 | case $ac_dashdash$ac_option in |
| 814 | --) |
| 815 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 816 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 817 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 818 | ac_prev=bindir ;; |
| 819 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 820 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 821 | |
| 822 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 823 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 824 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 825 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 826 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 827 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 828 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 829 | ac_prev=cache_file ;; |
| 830 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 831 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 832 | cache_file=$ac_optarg ;; |
| 833 | |
| 834 | --config-cache | -C) |
| 835 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 836 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 837 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 838 | ac_prev=datadir ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 839 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 840 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 841 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 842 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 843 | | --dataroo | --dataro | --datar) |
| 844 | ac_prev=datarootdir ;; |
| 845 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 846 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 847 | datarootdir=$ac_optarg ;; |
| 848 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 849 | -disable-* | --disable-*) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 850 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 851 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 852 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 853 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 854 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 855 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 856 | eval enable_$ac_feature=no ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 857 | |
| 858 | -docdir | --docdir | --docdi | --doc | --do) |
| 859 | ac_prev=docdir ;; |
| 860 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 861 | docdir=$ac_optarg ;; |
| 862 | |
| 863 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 864 | ac_prev=dvidir ;; |
| 865 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 866 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 867 | |
| 868 | -enable-* | --enable-*) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 869 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 870 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 871 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 872 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 873 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 874 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 875 | eval enable_$ac_feature=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 876 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 877 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 878 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 879 | | --exec | --exe | --ex) |
| 880 | ac_prev=exec_prefix ;; |
| 881 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 882 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 883 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 884 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 885 | |
| 886 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 887 | # Obsolete; use --with-gas. |
| 888 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 889 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 890 | -help | --help | --hel | --he | -h) |
| 891 | ac_init_help=long ;; |
| 892 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 893 | ac_init_help=recursive ;; |
| 894 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 895 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 896 | |
| 897 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 898 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 899 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 900 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 901 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 902 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 903 | ac_prev=htmldir ;; |
| 904 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 905 | | --ht=*) |
| 906 | htmldir=$ac_optarg ;; |
| 907 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 908 | -includedir | --includedir | --includedi | --included | --include \ |
| 909 | | --includ | --inclu | --incl | --inc) |
| 910 | ac_prev=includedir ;; |
| 911 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 912 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 913 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 914 | |
| 915 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 916 | ac_prev=infodir ;; |
| 917 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 918 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 919 | |
| 920 | -libdir | --libdir | --libdi | --libd) |
| 921 | ac_prev=libdir ;; |
| 922 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 923 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 924 | |
| 925 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 926 | | --libexe | --libex | --libe) |
| 927 | ac_prev=libexecdir ;; |
| 928 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 929 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 930 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 931 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 932 | -localedir | --localedir | --localedi | --localed | --locale) |
| 933 | ac_prev=localedir ;; |
| 934 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 935 | localedir=$ac_optarg ;; |
| 936 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 937 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 938 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 939 | ac_prev=localstatedir ;; |
| 940 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 941 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 942 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 943 | |
| 944 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 945 | ac_prev=mandir ;; |
| 946 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 947 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 948 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 949 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 950 | # Obsolete; use --without-fp. |
| 951 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 952 | |
| 953 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 954 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 955 | no_create=yes ;; |
| 956 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 957 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 958 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 959 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 960 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 961 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 962 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 963 | | --oldin | --oldi | --old | --ol | --o) |
| 964 | ac_prev=oldincludedir ;; |
| 965 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 966 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 967 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 968 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 969 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 970 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 971 | ac_prev=prefix ;; |
| 972 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 973 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 974 | |
| 975 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 976 | | --program-pre | --program-pr | --program-p) |
| 977 | ac_prev=program_prefix ;; |
| 978 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 979 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 980 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 981 | |
| 982 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 983 | | --program-suf | --program-su | --program-s) |
| 984 | ac_prev=program_suffix ;; |
| 985 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 986 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 987 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 988 | |
| 989 | -program-transform-name | --program-transform-name \ |
| 990 | | --program-transform-nam | --program-transform-na \ |
| 991 | | --program-transform-n | --program-transform- \ |
| 992 | | --program-transform | --program-transfor \ |
| 993 | | --program-transfo | --program-transf \ |
| 994 | | --program-trans | --program-tran \ |
| 995 | | --progr-tra | --program-tr | --program-t) |
| 996 | ac_prev=program_transform_name ;; |
| 997 | -program-transform-name=* | --program-transform-name=* \ |
| 998 | | --program-transform-nam=* | --program-transform-na=* \ |
| 999 | | --program-transform-n=* | --program-transform-=* \ |
| 1000 | | --program-transform=* | --program-transfor=* \ |
| 1001 | | --program-transfo=* | --program-transf=* \ |
| 1002 | | --program-trans=* | --program-tran=* \ |
| 1003 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1004 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1005 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1006 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1007 | ac_prev=pdfdir ;; |
| 1008 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1009 | pdfdir=$ac_optarg ;; |
| 1010 | |
| 1011 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1012 | ac_prev=psdir ;; |
| 1013 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1014 | psdir=$ac_optarg ;; |
| 1015 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1016 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1017 | | -silent | --silent | --silen | --sile | --sil) |
| 1018 | silent=yes ;; |
| 1019 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1020 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1021 | ac_prev=sbindir ;; |
| 1022 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1023 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1024 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1025 | |
| 1026 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1027 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1028 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1029 | | --sha | --sh) |
| 1030 | ac_prev=sharedstatedir ;; |
| 1031 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1032 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1033 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1034 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1035 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1036 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1037 | -site | --site | --sit) |
| 1038 | ac_prev=site ;; |
| 1039 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1040 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1041 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1042 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1043 | ac_prev=srcdir ;; |
| 1044 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1045 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1046 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1047 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1048 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1049 | ac_prev=sysconfdir ;; |
| 1050 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1051 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1052 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1053 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1054 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1055 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1056 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1057 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1058 | |
| 1059 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1060 | verbose=yes ;; |
| 1061 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1062 | -version | --version | --versio | --versi | --vers | -V) |
| 1063 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1064 | |
| 1065 | -with-* | --with-*) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1066 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1067 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1068 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1069 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1070 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1071 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1072 | eval with_$ac_package=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1073 | |
| 1074 | -without-* | --without-*) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1075 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1076 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1077 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1078 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1079 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1080 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1081 | eval with_$ac_package=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1082 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1083 | --x) |
| 1084 | # Obsolete; use --with-x. |
| 1085 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1086 | |
| 1087 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1088 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1089 | ac_prev=x_includes ;; |
| 1090 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1091 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1092 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1093 | |
| 1094 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1095 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1096 | ac_prev=x_libraries ;; |
| 1097 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1098 | | --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] | 1099 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1100 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1101 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1102 | Try \`$0 --help' for more information." >&2 |
| 1103 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1104 | ;; |
| 1105 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1106 | *=*) |
| 1107 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1108 | # Reject names that are not valid shell variable names. |
| 1109 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1110 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1111 | { (exit 1); exit 1; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1112 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1113 | export $ac_envvar ;; |
| 1114 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1115 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1116 | # FIXME: should be removed in autoconf 3.0. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1117 | 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] | 1118 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1119 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1120 | : ${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] | 1121 | ;; |
| 1122 | |
| 1123 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1124 | done |
| 1125 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1126 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1127 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1128 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1129 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1130 | fi |
| 1131 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1132 | # Be sure to have absolute directory names. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1133 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1134 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1135 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1136 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1137 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1138 | eval ac_val=\$$ac_var |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1139 | case $ac_val in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1140 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1141 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1142 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1143 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1144 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1145 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1146 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1147 | # There might be people who depend on the old broken behavior: `$host' |
| 1148 | # used to hold the argument of --host etc. |
| 1149 | # FIXME: To remove some day. |
| 1150 | build=$build_alias |
| 1151 | host=$host_alias |
| 1152 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1153 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1154 | # FIXME: To remove some day. |
| 1155 | if test "x$host_alias" != x; then |
| 1156 | if test "x$build_alias" = x; then |
| 1157 | cross_compiling=maybe |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1158 | 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] | 1159 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1160 | elif test "x$build_alias" != "x$host_alias"; then |
| 1161 | cross_compiling=yes |
| 1162 | fi |
| 1163 | fi |
| 1164 | |
| 1165 | ac_tool_prefix= |
| 1166 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1167 | |
| 1168 | test "$silent" = yes && exec 6>/dev/null |
| 1169 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1170 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1171 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1172 | ac_ls_di=`ls -di .` && |
| 1173 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1174 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1175 | { (exit 1); exit 1; }; } |
| 1176 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1177 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1178 | { (exit 1); exit 1; }; } |
| 1179 | |
| 1180 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1181 | # Find the source files, if location was not specified. |
| 1182 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1183 | ac_srcdir_defaulted=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1184 | # Try the directory containing this script, then the parent directory. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1185 | ac_confdir=`$as_dirname -- "$0" || |
| 1186 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1187 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1188 | X"$0" : 'X\(//\)$' \| \ |
| 1189 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1190 | echo X"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1191 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1192 | s//\1/ |
| 1193 | q |
| 1194 | } |
| 1195 | /^X\(\/\/\)[^/].*/{ |
| 1196 | s//\1/ |
| 1197 | q |
| 1198 | } |
| 1199 | /^X\(\/\/\)$/{ |
| 1200 | s//\1/ |
| 1201 | q |
| 1202 | } |
| 1203 | /^X\(\/\).*/{ |
| 1204 | s//\1/ |
| 1205 | q |
| 1206 | } |
| 1207 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1208 | srcdir=$ac_confdir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1209 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1210 | srcdir=.. |
| 1211 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1212 | else |
| 1213 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1214 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1215 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1216 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1217 | { 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] | 1218 | { (exit 1); exit 1; }; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1219 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1220 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1221 | ac_abs_confdir=`( |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1222 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 1223 | { (exit 1); exit 1; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1224 | pwd)` |
| 1225 | # When building in place, set srcdir=. |
| 1226 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1227 | srcdir=. |
| 1228 | fi |
| 1229 | # Remove unnecessary trailing slashes from srcdir. |
| 1230 | # Double slashes in file names in object file debugging info |
| 1231 | # mess up M-x gdb in Emacs. |
| 1232 | case $srcdir in |
| 1233 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1234 | esac |
| 1235 | for ac_var in $ac_precious_vars; do |
| 1236 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1237 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1238 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1239 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1240 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1241 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1242 | # |
| 1243 | # Report the --help message. |
| 1244 | # |
| 1245 | if test "$ac_init_help" = "long"; then |
| 1246 | # Omit some internal or obsolete options to make the list less imposing. |
| 1247 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1248 | cat <<_ACEOF |
Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 1249 | \`configure' configures python 3.2 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1250 | |
| 1251 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1252 | |
| 1253 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1254 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1255 | |
| 1256 | Defaults for the options are specified in brackets. |
| 1257 | |
| 1258 | Configuration: |
| 1259 | -h, --help display this help and exit |
| 1260 | --help=short display options specific to this package |
| 1261 | --help=recursive display the short help of all the included packages |
| 1262 | -V, --version display version information and exit |
| 1263 | -q, --quiet, --silent do not print \`checking...' messages |
| 1264 | --cache-file=FILE cache test results in FILE [disabled] |
| 1265 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1266 | -n, --no-create do not create output files |
| 1267 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1268 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1269 | Installation directories: |
| 1270 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1271 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1272 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1273 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1274 | |
| 1275 | By default, \`make install' will install all the files in |
| 1276 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1277 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1278 | for instance \`--prefix=\$HOME'. |
| 1279 | |
| 1280 | For better control, use the options below. |
| 1281 | |
| 1282 | Fine tuning of the installation directories: |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1283 | --bindir=DIR user executables [EPREFIX/bin] |
| 1284 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1285 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1286 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1287 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1288 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1289 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1290 | --includedir=DIR C header files [PREFIX/include] |
| 1291 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1292 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1293 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1294 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1295 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1296 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1297 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1298 | --htmldir=DIR html documentation [DOCDIR] |
| 1299 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1300 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1301 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1302 | _ACEOF |
| 1303 | |
| 1304 | cat <<\_ACEOF |
| 1305 | _ACEOF |
| 1306 | fi |
| 1307 | |
| 1308 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1309 | case $ac_init_help in |
Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 1310 | short | recursive ) echo "Configuration of python 3.2:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1311 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1312 | cat <<\_ACEOF |
| 1313 | |
| 1314 | Optional Features: |
| 1315 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1316 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1317 | --enable-universalsdk[=SDKDIR] |
Christian Heimes | 292d351 | 2008-02-03 16:51:08 +0000 | [diff] [blame] | 1318 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1319 | --enable-framework[=INSTALLDIR] |
| 1320 | Build (MacOSX|Darwin) framework |
| 1321 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1322 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1323 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1324 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1325 | --enable-big-digits[=BITS] |
| 1326 | use big digits for Python longs [BITS=30] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1327 | |
| 1328 | Optional Packages: |
| 1329 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1330 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1331 | --with-universal-archs=ARCH |
| 1332 | select architectures for universal build ("32-bit", |
| 1333 | "64-bit" or "all") |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1334 | --with-framework-name=FRAMEWORK |
| 1335 | specify an alternate name of the framework built |
| 1336 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1337 | --without-gcc never use gcc |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1338 | --with-cxx-main=<compiler> |
| 1339 | compile main() and link python executable with C++ |
| 1340 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1341 | --with-suffix=.exe set executable suffix |
| 1342 | --with-pydebug build with Py_DEBUG defined |
| 1343 | --with-libs='lib1 ...' link against additional libs |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1344 | --with-system-ffi build _ctypes module using an installed ffi library |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1345 | --with-dbmliborder=db1:db2:... |
| 1346 | order to check db backends for dbm. Valid value is a |
| 1347 | colon separated string with the backend names |
| 1348 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1349 | --with-signal-module disable/enable signal module |
| 1350 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1351 | --with(out)-threads[=DIRECTORY] |
| 1352 | disable/enable thread support |
| 1353 | --with(out)-thread[=DIRECTORY] |
| 1354 | deprecated; use --with(out)-threads |
| 1355 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1356 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1357 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1358 | --with(out)-pymalloc disable/enable specialized mallocs |
| 1359 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1360 | --with-fpectl enable SIGFPE catching |
| 1361 | --with-libm=STRING math library |
| 1362 | --with-libc=STRING C library |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 1363 | --with-wide-unicode Use 4-byte Unicode characters (default is 2 bytes) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1364 | --with-computed-gotos Use computed gotos / threaded dispatch in evaluation |
| 1365 | loop (not available on all compilers) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1366 | |
| 1367 | Some influential environment variables: |
| 1368 | CC C compiler command |
| 1369 | CFLAGS C compiler flags |
| 1370 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1371 | nonstandard directory <lib dir> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1372 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1373 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1374 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1375 | CPP C preprocessor |
| 1376 | |
| 1377 | Use these variables to override the choices made by `configure' or to help |
| 1378 | it to find libraries and programs with nonstandard names/locations. |
| 1379 | |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 1380 | Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1381 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1382 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1383 | fi |
| 1384 | |
| 1385 | if test "$ac_init_help" = "recursive"; then |
| 1386 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1387 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1388 | test -d "$ac_dir" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1389 | ac_builddir=. |
| 1390 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1391 | case "$ac_dir" in |
| 1392 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1393 | *) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1394 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1395 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1396 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1397 | case $ac_top_builddir_sub in |
| 1398 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1399 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1400 | esac ;; |
| 1401 | esac |
| 1402 | ac_abs_top_builddir=$ac_pwd |
| 1403 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1404 | # for backward compatibility: |
| 1405 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1406 | |
| 1407 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1408 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1409 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1410 | ac_top_srcdir=$ac_top_builddir_sub |
| 1411 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1412 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1413 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1414 | ac_top_srcdir=$srcdir |
| 1415 | ac_abs_top_srcdir=$srcdir ;; |
| 1416 | *) # Relative name. |
| 1417 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1418 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1419 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1420 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1421 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1422 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1423 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1424 | # Check for guested configure. |
| 1425 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1426 | echo && |
| 1427 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1428 | elif test -f "$ac_srcdir/configure"; then |
| 1429 | echo && |
| 1430 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1431 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1432 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1433 | fi || ac_status=$? |
| 1434 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1435 | done |
| 1436 | fi |
| 1437 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1438 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1439 | if $ac_init_version; then |
| 1440 | cat <<\_ACEOF |
Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 1441 | python configure 3.2 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1442 | generated by GNU Autoconf 2.61 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1443 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1444 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1445 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1446 | This configure script is free software; the Free Software Foundation |
| 1447 | gives unlimited permission to copy, distribute and modify it. |
| 1448 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1449 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1450 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1451 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1452 | This file contains any messages produced by compilers while |
| 1453 | running configure, to aid debugging if configure makes a mistake. |
| 1454 | |
Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 1455 | It was created by python $as_me 3.2, which was |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1456 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1457 | |
| 1458 | $ $0 $@ |
| 1459 | |
| 1460 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1461 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1462 | { |
| 1463 | cat <<_ASUNAME |
| 1464 | ## --------- ## |
| 1465 | ## Platform. ## |
| 1466 | ## --------- ## |
| 1467 | |
| 1468 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1469 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1470 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1471 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1472 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1473 | |
| 1474 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1475 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1476 | |
| 1477 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1478 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1479 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1480 | /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] | 1481 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1482 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1483 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1484 | |
| 1485 | _ASUNAME |
| 1486 | |
| 1487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1488 | for as_dir in $PATH |
| 1489 | do |
| 1490 | IFS=$as_save_IFS |
| 1491 | test -z "$as_dir" && as_dir=. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1492 | echo "PATH: $as_dir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1493 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1494 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1495 | |
| 1496 | } >&5 |
| 1497 | |
| 1498 | cat >&5 <<_ACEOF |
| 1499 | |
| 1500 | |
| 1501 | ## ----------- ## |
| 1502 | ## Core tests. ## |
| 1503 | ## ----------- ## |
| 1504 | |
| 1505 | _ACEOF |
| 1506 | |
| 1507 | |
| 1508 | # Keep a trace of the command line. |
| 1509 | # 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] | 1510 | # 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] | 1511 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1512 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1513 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1514 | ac_configure_args0= |
| 1515 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1516 | ac_must_keep_next=false |
| 1517 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1518 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1519 | for ac_arg |
| 1520 | do |
| 1521 | case $ac_arg in |
| 1522 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1523 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1524 | | -silent | --silent | --silen | --sile | --sil) |
| 1525 | continue ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1526 | *\'*) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1527 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1528 | esac |
| 1529 | case $ac_pass in |
| 1530 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1531 | 2) |
| 1532 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1533 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1534 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1535 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1536 | case $ac_arg in |
| 1537 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1538 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1539 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1540 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1541 | case "$ac_configure_args0 " in |
| 1542 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1543 | esac |
| 1544 | ;; |
| 1545 | -* ) ac_must_keep_next=true ;; |
| 1546 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1547 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1548 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1549 | ;; |
| 1550 | esac |
| 1551 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1552 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1553 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1554 | $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] | 1555 | |
| 1556 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1557 | # config.log. We remove comments because anyway the quotes in there |
| 1558 | # would cause problems or look ugly. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1559 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1560 | # 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] | 1561 | trap 'exit_status=$? |
| 1562 | # Save into config.log some information that might help in debugging. |
| 1563 | { |
| 1564 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1565 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1566 | cat <<\_ASBOX |
| 1567 | ## ---------------- ## |
| 1568 | ## Cache variables. ## |
| 1569 | ## ---------------- ## |
| 1570 | _ASBOX |
| 1571 | echo |
| 1572 | # The following way of writing the cache mishandles newlines in values, |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1573 | ( |
| 1574 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1575 | eval ac_val=\$$ac_var |
| 1576 | case $ac_val in #( |
| 1577 | *${as_nl}*) |
| 1578 | case $ac_var in #( |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1579 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1580 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1581 | esac |
| 1582 | case $ac_var in #( |
| 1583 | _ | IFS | as_nl) ;; #( |
| 1584 | *) $as_unset $ac_var ;; |
| 1585 | esac ;; |
| 1586 | esac |
| 1587 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1588 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1589 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1590 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1591 | sed -n \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1592 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1593 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1594 | ;; #( |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 1595 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1596 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 1597 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1598 | esac | |
| 1599 | sort |
| 1600 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1601 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1602 | |
| 1603 | cat <<\_ASBOX |
| 1604 | ## ----------------- ## |
| 1605 | ## Output variables. ## |
| 1606 | ## ----------------- ## |
| 1607 | _ASBOX |
| 1608 | echo |
| 1609 | for ac_var in $ac_subst_vars |
| 1610 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1611 | eval ac_val=\$$ac_var |
| 1612 | case $ac_val in |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1613 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1614 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1615 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1616 | done | sort |
| 1617 | echo |
| 1618 | |
| 1619 | if test -n "$ac_subst_files"; then |
| 1620 | cat <<\_ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1621 | ## ------------------- ## |
| 1622 | ## File substitutions. ## |
| 1623 | ## ------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1624 | _ASBOX |
| 1625 | echo |
| 1626 | for ac_var in $ac_subst_files |
| 1627 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1628 | eval ac_val=\$$ac_var |
| 1629 | case $ac_val in |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1630 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1631 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1632 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1633 | done | sort |
| 1634 | echo |
| 1635 | fi |
| 1636 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1637 | if test -s confdefs.h; then |
| 1638 | cat <<\_ASBOX |
| 1639 | ## ----------- ## |
| 1640 | ## confdefs.h. ## |
| 1641 | ## ----------- ## |
| 1642 | _ASBOX |
| 1643 | echo |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1644 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1645 | echo |
| 1646 | fi |
| 1647 | test "$ac_signal" != 0 && |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1648 | echo "$as_me: caught signal $ac_signal" |
| 1649 | echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1650 | } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1651 | rm -f core *.core core.conftest.* && |
| 1652 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1653 | exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1654 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1655 | for ac_signal in 1 2 13 15; do |
| 1656 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1657 | done |
| 1658 | ac_signal=0 |
| 1659 | |
| 1660 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1661 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1662 | |
| 1663 | # Predefined preprocessor variables. |
| 1664 | |
| 1665 | cat >>confdefs.h <<_ACEOF |
| 1666 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1667 | _ACEOF |
| 1668 | |
| 1669 | |
| 1670 | cat >>confdefs.h <<_ACEOF |
| 1671 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1672 | _ACEOF |
| 1673 | |
| 1674 | |
| 1675 | cat >>confdefs.h <<_ACEOF |
| 1676 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1677 | _ACEOF |
| 1678 | |
| 1679 | |
| 1680 | cat >>confdefs.h <<_ACEOF |
| 1681 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1682 | _ACEOF |
| 1683 | |
| 1684 | |
| 1685 | cat >>confdefs.h <<_ACEOF |
| 1686 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1687 | _ACEOF |
| 1688 | |
| 1689 | |
| 1690 | # Let the site file select an alternate cache file if it wants to. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1691 | # Prefer explicitly selected file to automatically selected ones. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1692 | if test -n "$CONFIG_SITE"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1693 | set x "$CONFIG_SITE" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1694 | elif test "x$prefix" != xNONE; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1695 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1696 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1697 | set x "$ac_default_prefix/share/config.site" \ |
| 1698 | "$ac_default_prefix/etc/config.site" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1699 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1700 | shift |
| 1701 | for ac_site_file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1702 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1703 | if test -r "$ac_site_file"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1704 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1705 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1706 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1707 | . "$ac_site_file" |
| 1708 | fi |
| 1709 | done |
| 1710 | |
| 1711 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1712 | # Some versions of bash will fail to source /dev/null (special |
| 1713 | # files actually), so we avoid doing that. |
| 1714 | if test -f "$cache_file"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1715 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1716 | echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1717 | case $cache_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1718 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1719 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1720 | esac |
| 1721 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1722 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1723 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1724 | echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1725 | >$cache_file |
| 1726 | fi |
| 1727 | |
| 1728 | # Check that the precious variables saved in the cache have kept the same |
| 1729 | # value. |
| 1730 | ac_cache_corrupted=false |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1731 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1732 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1733 | eval ac_new_set=\$ac_env_${ac_var}_set |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1734 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1735 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1736 | case $ac_old_set,$ac_new_set in |
| 1737 | set,) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1738 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1739 | 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] | 1740 | ac_cache_corrupted=: ;; |
| 1741 | ,set) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1742 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1743 | 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] | 1744 | ac_cache_corrupted=: ;; |
| 1745 | ,);; |
| 1746 | *) |
| 1747 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1748 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1749 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1750 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1751 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1752 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1753 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1754 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1755 | fi;; |
| 1756 | esac |
| 1757 | # Pass precious variables to config.status. |
| 1758 | if test "$ac_new_set" = set; then |
| 1759 | case $ac_new_val in |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1760 | *\'*) 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] | 1761 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1762 | esac |
| 1763 | case " $ac_configure_args " in |
| 1764 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1765 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1766 | esac |
| 1767 | fi |
| 1768 | done |
| 1769 | if $ac_cache_corrupted; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1770 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1771 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1772 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1773 | 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] | 1774 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1775 | fi |
| 1776 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1777 | |
| 1778 | |
| 1779 | |
| 1780 | |
| 1781 | |
| 1782 | |
| 1783 | |
| 1784 | |
| 1785 | |
| 1786 | |
| 1787 | |
| 1788 | |
| 1789 | |
| 1790 | |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | |
| 1800 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1801 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1802 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1803 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1804 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1805 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1806 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1807 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1808 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1809 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1810 | |
| 1811 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1812 | |
Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 1813 | if test "$prefix" != "/"; then |
| 1814 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 1815 | fi |
| 1816 | |
| 1817 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1818 | |
| 1819 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1820 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1821 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1822 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1823 | # with other autoconf-based packages that include Python.h |
| 1824 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1825 | rm confdefs.h |
| 1826 | mv confdefs.h.new confdefs.h |
| 1827 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1828 | |
Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 1829 | VERSION=3.2 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1830 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1831 | |
| 1832 | SOVERSION=1.0 |
| 1833 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1834 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1835 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1836 | |
| 1837 | cat >>confdefs.h <<\_ACEOF |
| 1838 | #define _GNU_SOURCE 1 |
| 1839 | _ACEOF |
| 1840 | |
| 1841 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1842 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1843 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1844 | # them. |
| 1845 | |
| 1846 | cat >>confdefs.h <<\_ACEOF |
| 1847 | #define _NETBSD_SOURCE 1 |
| 1848 | _ACEOF |
| 1849 | |
| 1850 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1851 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1852 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1853 | # them. |
| 1854 | |
| 1855 | cat >>confdefs.h <<\_ACEOF |
| 1856 | #define __BSD_VISIBLE 1 |
| 1857 | _ACEOF |
| 1858 | |
| 1859 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1860 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1861 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1862 | |
| 1863 | cat >>confdefs.h <<\_ACEOF |
| 1864 | #define _BSD_TYPES 1 |
| 1865 | _ACEOF |
| 1866 | |
| 1867 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1868 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1869 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 1870 | # them. |
| 1871 | |
| 1872 | cat >>confdefs.h <<\_ACEOF |
| 1873 | #define _DARWIN_C_SOURCE 1 |
| 1874 | _ACEOF |
| 1875 | |
| 1876 | |
| 1877 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1878 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1879 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1880 | # Arguments passed to configure. |
| 1881 | |
| 1882 | CONFIG_ARGS="$ac_configure_args" |
| 1883 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1884 | # Check whether --enable-universalsdk was given. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1885 | if test "${enable_universalsdk+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1886 | enableval=$enable_universalsdk; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1887 | case $enableval in |
| 1888 | yes) |
| 1889 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 1890 | ;; |
| 1891 | esac |
| 1892 | case $enableval in |
| 1893 | no) |
| 1894 | UNIVERSALSDK= |
| 1895 | enable_universalsdk= |
| 1896 | ;; |
| 1897 | *) |
| 1898 | UNIVERSALSDK=$enableval |
| 1899 | ;; |
| 1900 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1901 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1902 | else |
| 1903 | |
| 1904 | UNIVERSALSDK= |
| 1905 | enable_universalsdk= |
| 1906 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1907 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1908 | |
| 1909 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1910 | |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 1911 | ARCH_RUN_32BIT= |
| 1912 | |
| 1913 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1914 | UNIVERSAL_ARCHS="32-bit" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1915 | { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5 |
| 1916 | echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1917 | |
| 1918 | # Check whether --with-universal-archs was given. |
| 1919 | if test "${with_universal_archs+set}" = set; then |
| 1920 | withval=$with_universal_archs; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1921 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 1922 | echo "${ECHO_T}$withval" >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1923 | UNIVERSAL_ARCHS="$withval" |
| 1924 | |
| 1925 | else |
| 1926 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 1927 | { echo "$as_me:$LINENO: result: 32-bit" >&5 |
| 1928 | echo "${ECHO_T}32-bit" >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1929 | |
| 1930 | fi |
| 1931 | |
| 1932 | |
| 1933 | |
| 1934 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1935 | |
| 1936 | # Check whether --with-framework-name was given. |
| 1937 | if test "${with_framework_name+set}" = set; then |
| 1938 | withval=$with_framework_name; |
| 1939 | PYTHONFRAMEWORK=${withval} |
| 1940 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 1941 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 1942 | |
| 1943 | else |
| 1944 | |
| 1945 | PYTHONFRAMEWORK=Python |
| 1946 | PYTHONFRAMEWORKDIR=Python.framework |
| 1947 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 1948 | |
| 1949 | fi |
| 1950 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1951 | # Check whether --enable-framework was given. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1952 | if test "${enable_framework+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1953 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1954 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1955 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1956 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1957 | esac |
| 1958 | case $enableval in |
| 1959 | no) |
| 1960 | PYTHONFRAMEWORK= |
| 1961 | PYTHONFRAMEWORKDIR=no-framework |
| 1962 | PYTHONFRAMEWORKPREFIX= |
| 1963 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1964 | FRAMEWORKINSTALLFIRST= |
| 1965 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 1966 | FRAMEWORKALTINSTALLFIRST= |
| 1967 | FRAMEWORKALTINSTALLLAST= |
| 1968 | if test "x${prefix}" = "xNONE"; then |
| 1969 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1970 | else |
| 1971 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1972 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1973 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1974 | ;; |
| 1975 | *) |
| 1976 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1977 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1978 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 1979 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1980 | if test "$UNIVERSAL_ARCHS" = "all" |
| 1981 | then |
| 1982 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way" |
Ronald Oussoren | e391835 | 2009-03-30 18:00:28 +0000 | [diff] [blame] | 1983 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way" |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1984 | else |
Ronald Oussoren | e391835 | 2009-03-30 18:00:28 +0000 | [diff] [blame] | 1985 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1986 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
| 1987 | fi |
| 1988 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 1989 | if test "x${prefix}" = "xNONE" ; then |
| 1990 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1991 | else |
| 1992 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1993 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1994 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1995 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1996 | # Add files for Mac specific code to the list of output |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1997 | # files: |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1998 | ac_config_files="$ac_config_files Mac/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1999 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2000 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2001 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2002 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 2003 | |
| 2004 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 2005 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2006 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2007 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2008 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2009 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2010 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2011 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2012 | PYTHONFRAMEWORKPREFIX= |
| 2013 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2014 | FRAMEWORKINSTALLFIRST= |
| 2015 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2016 | FRAMEWORKALTINSTALLFIRST= |
| 2017 | FRAMEWORKALTINSTALLLAST= |
| 2018 | if test "x${prefix}" = "xNONE" ; then |
| 2019 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2020 | else |
| 2021 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2022 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2023 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2024 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2025 | if test "$UNIVERSAL_ARCHS" = "all" |
| 2026 | then |
| 2027 | FRAMEWORKINSTALLLAST=update4wayuniversal |
| 2028 | FRAMEWORKALTINSTALLLAST=update4wayuniversal |
| 2029 | fi |
| 2030 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2031 | fi |
| 2032 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2033 | |
| 2034 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2035 | |
| 2036 | |
| 2037 | |
| 2038 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2039 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2040 | |
| 2041 | |
| 2042 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2043 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2044 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 2045 | ## AC_HELP_STRING(--with-dyld, |
| 2046 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2047 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2048 | # Set name for machine-dependent library files |
| 2049 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2050 | { echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 2051 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2052 | if test -z "$MACHDEP" |
| 2053 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2054 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2055 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 2056 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2057 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2058 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2059 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2060 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2061 | ac_md_system=`echo $ac_sys_system | |
| 2062 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 2063 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2064 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2065 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2066 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2067 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2068 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2069 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 2070 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2071 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2072 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2073 | esac |
| 2074 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2075 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2076 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 2077 | # disable features if it is defined, without any means to access these |
| 2078 | # features as extensions. For these systems, we skip the definition of |
| 2079 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 2080 | # some feature, make sure there is no alternative way to access this |
| 2081 | # feature. Also, when using wildcards, make sure you have verified the |
| 2082 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 2083 | # wildcard, and that the wildcard does not include future systems |
| 2084 | # (which may remove their limitations). |
| 2085 | case $ac_sys_system/$ac_sys_release in |
| 2086 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 2087 | # 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] | 2088 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 2089 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123]) |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 2090 | define_xopen_source=no |
| 2091 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2092 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2093 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2094 | |
| 2095 | cat >>confdefs.h <<\_ACEOF |
| 2096 | #define _BSD_SOURCE 1 |
| 2097 | _ACEOF |
| 2098 | |
| 2099 | ;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 2100 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 2101 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 2102 | # Marc Recht |
Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 2103 | NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2104 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 2105 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 2106 | # of union __?sigval. Reported by Stuart Bishop. |
| 2107 | SunOS/5.6) |
| 2108 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2109 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 2110 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2111 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 2112 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2113 | define_xopen_source=no;; |
| 2114 | # 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] | 2115 | # 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] | 2116 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2117 | define_xopen_source=no;; |
Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 2118 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 2119 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 2120 | FreeBSD/4.*) |
| 2121 | define_xopen_source=no;; |
| 2122 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 2123 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 2124 | # identifies itself as Darwin/7.* |
| 2125 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2126 | # disables platform specific features beyond repair. |
| 2127 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2128 | # has no effect, don't bother defining them |
| 2129 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 2130 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2131 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 2132 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 2133 | # 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] | 2134 | AIX/4) |
| 2135 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2136 | AIX/5) |
| 2137 | if test `uname -r` -eq 1; then |
| 2138 | define_xopen_source=no |
| 2139 | fi |
| 2140 | ;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 2141 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 2142 | # defining NI_NUMERICHOST. |
| 2143 | QNX/6.3.2) |
| 2144 | define_xopen_source=no |
| 2145 | ;; |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2146 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2147 | esac |
| 2148 | |
| 2149 | if test $define_xopen_source = yes |
| 2150 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2151 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 2152 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2153 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 2154 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2155 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2156 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2157 | |
| 2158 | cat >>confdefs.h <<\_ACEOF |
| 2159 | #define _XOPEN_SOURCE 500 |
| 2160 | _ACEOF |
| 2161 | |
| 2162 | ;; |
| 2163 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2164 | |
| 2165 | cat >>confdefs.h <<\_ACEOF |
| 2166 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2167 | _ACEOF |
| 2168 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2169 | ;; |
| 2170 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2171 | |
| 2172 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 2173 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 2174 | # several APIs are not declared. Since this is also needed in some |
| 2175 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2176 | # except for Solaris 10, where it must not be defined, |
| 2177 | # as it implies XPG4.2 |
| 2178 | case $ac_sys_system/$ac_sys_release in |
| 2179 | SunOS/5.10) |
| 2180 | ;; |
| 2181 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2182 | |
| 2183 | cat >>confdefs.h <<\_ACEOF |
| 2184 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 2185 | _ACEOF |
| 2186 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2187 | ;; |
| 2188 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2189 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2190 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2191 | cat >>confdefs.h <<\_ACEOF |
| 2192 | #define _POSIX_C_SOURCE 200112L |
| 2193 | _ACEOF |
| 2194 | |
| 2195 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2196 | fi |
| 2197 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2198 | # |
| 2199 | # SGI compilers allow the specification of the both the ABI and the |
| 2200 | # ISA on the command line. Depending on the values of these switches, |
| 2201 | # different and often incompatable code will be generated. |
| 2202 | # |
| 2203 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 2204 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 2205 | # variable is also adjusted. |
| 2206 | # |
| 2207 | |
| 2208 | if test ! -z "$SGI_ABI" |
| 2209 | then |
| 2210 | CC="cc $SGI_ABI" |
| 2211 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 2212 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 2213 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2214 | { echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 2215 | echo "${ECHO_T}$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2216 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2217 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 2218 | # it may influence the way we can build extensions, so distutils |
| 2219 | # needs to check it |
| 2220 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2221 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2222 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2223 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2224 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2225 | { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5 |
| 2226 | echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; } |
Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 2227 | ac_sys_machine=`uname -m` |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2228 | { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5 |
| 2229 | echo "${ECHO_T}$ac_sys_machine" >&6; } |
Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 2230 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2231 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2232 | |
| 2233 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 2234 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 2235 | # just to get things to compile and link. Users are free to override OPT |
| 2236 | # when running configure or make. The build should not break if they do. |
| 2237 | # BASECFLAGS should generally not be messed with, however. |
| 2238 | |
| 2239 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 2240 | # on that fiddles with OPT and BASECFLAGS? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2241 | { echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 2242 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2243 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2244 | # Check whether --with-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2245 | if test "${with_gcc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2246 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2247 | case $withval in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2248 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2249 | without_gcc=yes;; |
| 2250 | yes) CC=gcc |
| 2251 | without_gcc=no;; |
| 2252 | *) CC=$withval |
| 2253 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2254 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2255 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2256 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2257 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2258 | AIX*) CC=cc_r |
| 2259 | without_gcc=;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2260 | Monterey*) |
| 2261 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 2262 | without_gcc=;; |
| 2263 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 2264 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2265 | fi |
| 2266 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2267 | { echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 2268 | echo "${ECHO_T}$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2269 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2270 | # If the user switches compilers, we can't believe the cache |
| 2271 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 2272 | then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2273 | { { 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] | 2274 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2275 | 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] | 2276 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 2277 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2278 | fi |
| 2279 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2280 | ac_ext=c |
| 2281 | ac_cpp='$CPP $CPPFLAGS' |
| 2282 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2283 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2284 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2285 | if test -n "$ac_tool_prefix"; then |
| 2286 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2287 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2288 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2289 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2290 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2292 | else |
| 2293 | if test -n "$CC"; then |
| 2294 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2295 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2297 | for as_dir in $PATH |
| 2298 | do |
| 2299 | IFS=$as_save_IFS |
| 2300 | test -z "$as_dir" && as_dir=. |
| 2301 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2302 | 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] | 2303 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2304 | 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] | 2305 | break 2 |
| 2306 | fi |
| 2307 | done |
| 2308 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2309 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2310 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2311 | fi |
| 2312 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2313 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2314 | if test -n "$CC"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2315 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2316 | echo "${ECHO_T}$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2317 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2318 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2319 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2320 | fi |
| 2321 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2322 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2323 | fi |
| 2324 | if test -z "$ac_cv_prog_CC"; then |
| 2325 | ac_ct_CC=$CC |
| 2326 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2327 | set dummy gcc; ac_word=$2 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2328 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2329 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2330 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2332 | else |
| 2333 | if test -n "$ac_ct_CC"; then |
| 2334 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2335 | else |
| 2336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2337 | for as_dir in $PATH |
| 2338 | do |
| 2339 | IFS=$as_save_IFS |
| 2340 | test -z "$as_dir" && as_dir=. |
| 2341 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2342 | 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] | 2343 | ac_cv_prog_ac_ct_CC="gcc" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2344 | 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] | 2345 | break 2 |
| 2346 | fi |
| 2347 | done |
| 2348 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2349 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2350 | |
| 2351 | fi |
| 2352 | fi |
| 2353 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2354 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2355 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2356 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2357 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2358 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2359 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2360 | fi |
| 2361 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2362 | if test "x$ac_ct_CC" = x; then |
| 2363 | CC="" |
| 2364 | else |
| 2365 | case $cross_compiling:$ac_tool_warned in |
| 2366 | yes:) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2367 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2368 | whose name does not start with the host triplet. If you think this |
| 2369 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2370 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2371 | whose name does not start with the host triplet. If you think this |
| 2372 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2373 | ac_tool_warned=yes ;; |
| 2374 | esac |
| 2375 | CC=$ac_ct_CC |
| 2376 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2377 | else |
| 2378 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2379 | fi |
| 2380 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2381 | if test -z "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2382 | if test -n "$ac_tool_prefix"; then |
| 2383 | # 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] | 2384 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2385 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2386 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2387 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2389 | else |
| 2390 | if test -n "$CC"; then |
| 2391 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2392 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2394 | for as_dir in $PATH |
| 2395 | do |
| 2396 | IFS=$as_save_IFS |
| 2397 | test -z "$as_dir" && as_dir=. |
| 2398 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2399 | 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] | 2400 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2401 | 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] | 2402 | break 2 |
| 2403 | fi |
| 2404 | done |
| 2405 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2406 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2407 | |
| 2408 | fi |
| 2409 | fi |
| 2410 | CC=$ac_cv_prog_CC |
| 2411 | if test -n "$CC"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2412 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2413 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2414 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2415 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2416 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2417 | fi |
| 2418 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2419 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2420 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2421 | fi |
| 2422 | if test -z "$CC"; then |
| 2423 | # Extract the first word of "cc", so it can be a program name with args. |
| 2424 | set dummy cc; ac_word=$2 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2425 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2426 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2427 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2429 | else |
| 2430 | if test -n "$CC"; then |
| 2431 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2432 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2433 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2435 | for as_dir in $PATH |
| 2436 | do |
| 2437 | IFS=$as_save_IFS |
| 2438 | test -z "$as_dir" && as_dir=. |
| 2439 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2440 | 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] | 2441 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2442 | ac_prog_rejected=yes |
| 2443 | continue |
| 2444 | fi |
| 2445 | ac_cv_prog_CC="cc" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2446 | 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] | 2447 | break 2 |
| 2448 | fi |
| 2449 | done |
| 2450 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2451 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2452 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2453 | if test $ac_prog_rejected = yes; then |
| 2454 | # We found a bogon in the path, so make sure we never use it. |
| 2455 | set dummy $ac_cv_prog_CC |
| 2456 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2457 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2458 | # We chose a different compiler from the bogus one. |
| 2459 | # However, it has the same basename, so the bogon will be chosen |
| 2460 | # first if we set CC to just the basename; use the full file name. |
| 2461 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2462 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2463 | fi |
| 2464 | fi |
| 2465 | fi |
| 2466 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2467 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2468 | if test -n "$CC"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2469 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2470 | echo "${ECHO_T}$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2471 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2472 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2473 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2474 | fi |
| 2475 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2476 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2477 | fi |
| 2478 | if test -z "$CC"; then |
| 2479 | if test -n "$ac_tool_prefix"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2480 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2481 | do |
| 2482 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2483 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2484 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2485 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2486 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2488 | else |
| 2489 | if test -n "$CC"; then |
| 2490 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2491 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2493 | for as_dir in $PATH |
| 2494 | do |
| 2495 | IFS=$as_save_IFS |
| 2496 | test -z "$as_dir" && as_dir=. |
| 2497 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2498 | 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] | 2499 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2500 | 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] | 2501 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2502 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2503 | done |
| 2504 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2505 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2506 | |
| 2507 | fi |
| 2508 | fi |
| 2509 | CC=$ac_cv_prog_CC |
| 2510 | if test -n "$CC"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2511 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2512 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2513 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2514 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2515 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2516 | fi |
| 2517 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2518 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2519 | test -n "$CC" && break |
| 2520 | done |
| 2521 | fi |
| 2522 | if test -z "$CC"; then |
| 2523 | ac_ct_CC=$CC |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2524 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2525 | do |
| 2526 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2527 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2528 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2530 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2532 | else |
| 2533 | if test -n "$ac_ct_CC"; then |
| 2534 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2535 | else |
| 2536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2537 | for as_dir in $PATH |
| 2538 | do |
| 2539 | IFS=$as_save_IFS |
| 2540 | test -z "$as_dir" && as_dir=. |
| 2541 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2542 | 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] | 2543 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2544 | 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] | 2545 | break 2 |
| 2546 | fi |
| 2547 | done |
| 2548 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2549 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2550 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2551 | fi |
| 2552 | fi |
| 2553 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2554 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2555 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2556 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2557 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2558 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2559 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2560 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2561 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2562 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2563 | test -n "$ac_ct_CC" && break |
| 2564 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2565 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2566 | if test "x$ac_ct_CC" = x; then |
| 2567 | CC="" |
| 2568 | else |
| 2569 | case $cross_compiling:$ac_tool_warned in |
| 2570 | yes:) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2571 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2572 | whose name does not start with the host triplet. If you think this |
| 2573 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2574 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2575 | whose name does not start with the host triplet. If you think this |
| 2576 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2577 | ac_tool_warned=yes ;; |
| 2578 | esac |
| 2579 | CC=$ac_ct_CC |
| 2580 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2581 | fi |
| 2582 | |
| 2583 | fi |
| 2584 | |
| 2585 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2586 | 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] | 2587 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2588 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2589 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2590 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2591 | |
| 2592 | # Provide some information about the compiler. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2593 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2594 | ac_compiler=`set X $ac_compile; echo $2` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2595 | { (ac_try="$ac_compiler --version >&5" |
| 2596 | case "(($ac_try" in |
| 2597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2598 | *) ac_try_echo=$ac_try;; |
| 2599 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2601 | (eval "$ac_compiler --version >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2602 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2604 | (exit $ac_status); } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2605 | { (ac_try="$ac_compiler -v >&5" |
| 2606 | case "(($ac_try" in |
| 2607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2608 | *) ac_try_echo=$ac_try;; |
| 2609 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2611 | (eval "$ac_compiler -v >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2612 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2614 | (exit $ac_status); } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2615 | { (ac_try="$ac_compiler -V >&5" |
| 2616 | case "(($ac_try" in |
| 2617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2618 | *) ac_try_echo=$ac_try;; |
| 2619 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2621 | (eval "$ac_compiler -V >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2622 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2624 | (exit $ac_status); } |
| 2625 | |
| 2626 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2627 | /* confdefs.h. */ |
| 2628 | _ACEOF |
| 2629 | cat confdefs.h >>conftest.$ac_ext |
| 2630 | cat >>conftest.$ac_ext <<_ACEOF |
| 2631 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2632 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2633 | int |
| 2634 | main () |
| 2635 | { |
| 2636 | |
| 2637 | ; |
| 2638 | return 0; |
| 2639 | } |
| 2640 | _ACEOF |
| 2641 | ac_clean_files_save=$ac_clean_files |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2642 | 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] | 2643 | # Try to create an executable without -o first, disregard a.out. |
| 2644 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2645 | # of exeext. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2646 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2647 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2648 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2649 | # |
| 2650 | # List of possible output files, starting from the most likely. |
| 2651 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2652 | # only as a last resort. b.out is created by i960 compilers. |
| 2653 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2654 | # |
| 2655 | # The IRIX 6 linker writes into existing files which may not be |
| 2656 | # executable, retaining their permissions. Remove them first so a |
| 2657 | # subsequent execution test works. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2658 | ac_rmfiles= |
| 2659 | for ac_file in $ac_files |
| 2660 | do |
| 2661 | case $ac_file in |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2662 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2663 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2664 | esac |
| 2665 | done |
| 2666 | rm -f $ac_rmfiles |
| 2667 | |
| 2668 | if { (ac_try="$ac_link_default" |
| 2669 | case "(($ac_try" in |
| 2670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2671 | *) ac_try_echo=$ac_try;; |
| 2672 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2674 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2675 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2677 | (exit $ac_status); }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2678 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2679 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2680 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2681 | # so that the user can short-circuit this test for compilers unknown to |
| 2682 | # Autoconf. |
| 2683 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2684 | do |
| 2685 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2686 | case $ac_file in |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2687 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2688 | ;; |
| 2689 | [ab].out ) |
| 2690 | # We found the default executable, but exeext='' is most |
| 2691 | # certainly right. |
| 2692 | break;; |
| 2693 | *.* ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2694 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2695 | then :; else |
| 2696 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2697 | fi |
| 2698 | # We set ac_cv_exeext here because the later test for it is not |
| 2699 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2700 | # argument, so we may need to know it at that point already. |
| 2701 | # Even if this section looks crufty: it has the advantage of |
| 2702 | # actually working. |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2703 | break;; |
| 2704 | * ) |
| 2705 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2706 | esac |
| 2707 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2708 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2709 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2710 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2711 | ac_file='' |
| 2712 | fi |
| 2713 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2714 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2715 | echo "${ECHO_T}$ac_file" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2716 | if test -z "$ac_file"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2717 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2719 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2720 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2721 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2722 | echo "$as_me: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2723 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2724 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2725 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2726 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2727 | ac_exeext=$ac_cv_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2728 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2729 | # 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] | 2730 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2731 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2732 | 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] | 2733 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2734 | # If not cross compiling, check that we can run a simple program. |
| 2735 | if test "$cross_compiling" != yes; then |
| 2736 | if { ac_try='./$ac_file' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2737 | { (case "(($ac_try" in |
| 2738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2739 | *) ac_try_echo=$ac_try;; |
| 2740 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2742 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2743 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2745 | (exit $ac_status); }; }; then |
| 2746 | cross_compiling=no |
| 2747 | else |
| 2748 | if test "$cross_compiling" = maybe; then |
| 2749 | cross_compiling=yes |
| 2750 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2751 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2752 | If you meant to cross compile, use \`--host'. |
| 2753 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2754 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2755 | If you meant to cross compile, use \`--host'. |
| 2756 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2757 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2758 | fi |
| 2759 | fi |
| 2760 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2761 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2762 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2763 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2764 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2765 | ac_clean_files=$ac_clean_files_save |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2766 | # Check that the compiler produces executables we can run. If not, either |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2767 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2768 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2769 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2770 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2771 | echo "${ECHO_T}$cross_compiling" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2772 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2773 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2774 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2775 | if { (ac_try="$ac_link" |
| 2776 | case "(($ac_try" in |
| 2777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2778 | *) ac_try_echo=$ac_try;; |
| 2779 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2781 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2782 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2784 | (exit $ac_status); }; then |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2785 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2786 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2787 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2788 | # `rm'. |
| 2789 | for ac_file in conftest.exe conftest conftest.*; do |
| 2790 | test -f "$ac_file" || continue |
| 2791 | case $ac_file in |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2792 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2793 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2794 | break;; |
| 2795 | * ) break;; |
| 2796 | esac |
| 2797 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2798 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2799 | { { 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] | 2800 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2801 | 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] | 2802 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2803 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2804 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2805 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2806 | rm -f conftest$ac_cv_exeext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2807 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2808 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2809 | |
| 2810 | rm -f conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2811 | EXEEXT=$ac_cv_exeext |
| 2812 | ac_exeext=$EXEEXT |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2813 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2814 | 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] | 2815 | if test "${ac_cv_objext+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2817 | else |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2818 | cat >conftest.$ac_ext <<_ACEOF |
| 2819 | /* confdefs.h. */ |
| 2820 | _ACEOF |
| 2821 | cat confdefs.h >>conftest.$ac_ext |
| 2822 | cat >>conftest.$ac_ext <<_ACEOF |
| 2823 | /* end confdefs.h. */ |
| 2824 | |
| 2825 | int |
| 2826 | main () |
| 2827 | { |
| 2828 | |
| 2829 | ; |
| 2830 | return 0; |
| 2831 | } |
| 2832 | _ACEOF |
| 2833 | rm -f conftest.o conftest.obj |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2834 | if { (ac_try="$ac_compile" |
| 2835 | case "(($ac_try" in |
| 2836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2837 | *) ac_try_echo=$ac_try;; |
| 2838 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2840 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2841 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2843 | (exit $ac_status); }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2844 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2845 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2846 | case $ac_file in |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2847 | *.$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] | 2848 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2849 | break;; |
| 2850 | esac |
| 2851 | done |
| 2852 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2853 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2855 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2856 | { { 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] | 2857 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2858 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2859 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2860 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2861 | fi |
| 2862 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2863 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2864 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2865 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2866 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2867 | OBJEXT=$ac_cv_objext |
| 2868 | ac_objext=$OBJEXT |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2869 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2870 | 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] | 2871 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2873 | else |
| 2874 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2875 | /* confdefs.h. */ |
| 2876 | _ACEOF |
| 2877 | cat confdefs.h >>conftest.$ac_ext |
| 2878 | cat >>conftest.$ac_ext <<_ACEOF |
| 2879 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2880 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2881 | int |
| 2882 | main () |
| 2883 | { |
| 2884 | #ifndef __GNUC__ |
| 2885 | choke me |
| 2886 | #endif |
| 2887 | |
| 2888 | ; |
| 2889 | return 0; |
| 2890 | } |
| 2891 | _ACEOF |
| 2892 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2893 | if { (ac_try="$ac_compile" |
| 2894 | case "(($ac_try" in |
| 2895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2896 | *) ac_try_echo=$ac_try;; |
| 2897 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2899 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2900 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2902 | rm -f conftest.er1 |
| 2903 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2905 | (exit $ac_status); } && { |
| 2906 | test -z "$ac_c_werror_flag" || |
| 2907 | test ! -s conftest.err |
| 2908 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2909 | ac_compiler_gnu=yes |
| 2910 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2911 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2912 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2913 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2914 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2915 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2916 | |
| 2917 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2918 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2919 | |
| 2920 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2921 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2922 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 2923 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2924 | ac_test_CFLAGS=${CFLAGS+set} |
| 2925 | ac_save_CFLAGS=$CFLAGS |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2926 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2927 | 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] | 2928 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2930 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2931 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2932 | ac_c_werror_flag=yes |
| 2933 | ac_cv_prog_cc_g=no |
| 2934 | CFLAGS="-g" |
| 2935 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2936 | /* confdefs.h. */ |
| 2937 | _ACEOF |
| 2938 | cat confdefs.h >>conftest.$ac_ext |
| 2939 | cat >>conftest.$ac_ext <<_ACEOF |
| 2940 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2942 | int |
| 2943 | main () |
| 2944 | { |
| 2945 | |
| 2946 | ; |
| 2947 | return 0; |
| 2948 | } |
| 2949 | _ACEOF |
| 2950 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2951 | if { (ac_try="$ac_compile" |
| 2952 | case "(($ac_try" in |
| 2953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2954 | *) ac_try_echo=$ac_try;; |
| 2955 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2957 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2958 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2960 | rm -f conftest.er1 |
| 2961 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2963 | (exit $ac_status); } && { |
| 2964 | test -z "$ac_c_werror_flag" || |
| 2965 | test ! -s conftest.err |
| 2966 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2967 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2968 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2969 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2971 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2972 | CFLAGS="" |
| 2973 | cat >conftest.$ac_ext <<_ACEOF |
| 2974 | /* confdefs.h. */ |
| 2975 | _ACEOF |
| 2976 | cat confdefs.h >>conftest.$ac_ext |
| 2977 | cat >>conftest.$ac_ext <<_ACEOF |
| 2978 | /* end confdefs.h. */ |
| 2979 | |
| 2980 | int |
| 2981 | main () |
| 2982 | { |
| 2983 | |
| 2984 | ; |
| 2985 | return 0; |
| 2986 | } |
| 2987 | _ACEOF |
| 2988 | rm -f conftest.$ac_objext |
| 2989 | if { (ac_try="$ac_compile" |
| 2990 | case "(($ac_try" in |
| 2991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2992 | *) ac_try_echo=$ac_try;; |
| 2993 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 2994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2995 | (eval "$ac_compile") 2>conftest.er1 |
| 2996 | ac_status=$? |
| 2997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2998 | rm -f conftest.er1 |
| 2999 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3001 | (exit $ac_status); } && { |
| 3002 | test -z "$ac_c_werror_flag" || |
| 3003 | test ! -s conftest.err |
| 3004 | } && test -s conftest.$ac_objext; then |
| 3005 | : |
| 3006 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3007 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3009 | |
| 3010 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3011 | CFLAGS="-g" |
| 3012 | cat >conftest.$ac_ext <<_ACEOF |
| 3013 | /* confdefs.h. */ |
| 3014 | _ACEOF |
| 3015 | cat confdefs.h >>conftest.$ac_ext |
| 3016 | cat >>conftest.$ac_ext <<_ACEOF |
| 3017 | /* end confdefs.h. */ |
| 3018 | |
| 3019 | int |
| 3020 | main () |
| 3021 | { |
| 3022 | |
| 3023 | ; |
| 3024 | return 0; |
| 3025 | } |
| 3026 | _ACEOF |
| 3027 | rm -f conftest.$ac_objext |
| 3028 | if { (ac_try="$ac_compile" |
| 3029 | case "(($ac_try" in |
| 3030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3031 | *) ac_try_echo=$ac_try;; |
| 3032 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3034 | (eval "$ac_compile") 2>conftest.er1 |
| 3035 | ac_status=$? |
| 3036 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3037 | rm -f conftest.er1 |
| 3038 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3040 | (exit $ac_status); } && { |
| 3041 | test -z "$ac_c_werror_flag" || |
| 3042 | test ! -s conftest.err |
| 3043 | } && test -s conftest.$ac_objext; then |
| 3044 | ac_cv_prog_cc_g=yes |
| 3045 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3046 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3048 | |
| 3049 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3050 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3051 | |
| 3052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3053 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3054 | |
| 3055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3056 | fi |
| 3057 | |
| 3058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3059 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3060 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3061 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3062 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3063 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3064 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3065 | elif test $ac_cv_prog_cc_g = yes; then |
| 3066 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3067 | CFLAGS="-g -O2" |
| 3068 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3069 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3070 | fi |
| 3071 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3072 | if test "$GCC" = yes; then |
| 3073 | CFLAGS="-O2" |
| 3074 | else |
| 3075 | CFLAGS= |
| 3076 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3077 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3078 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3079 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3080 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3082 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3083 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3084 | ac_save_CC=$CC |
| 3085 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3086 | /* confdefs.h. */ |
| 3087 | _ACEOF |
| 3088 | cat confdefs.h >>conftest.$ac_ext |
| 3089 | cat >>conftest.$ac_ext <<_ACEOF |
| 3090 | /* end confdefs.h. */ |
| 3091 | #include <stdarg.h> |
| 3092 | #include <stdio.h> |
| 3093 | #include <sys/types.h> |
| 3094 | #include <sys/stat.h> |
| 3095 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3096 | struct buf { int x; }; |
| 3097 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3098 | static char *e (p, i) |
| 3099 | char **p; |
| 3100 | int i; |
| 3101 | { |
| 3102 | return p[i]; |
| 3103 | } |
| 3104 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3105 | { |
| 3106 | char *s; |
| 3107 | va_list v; |
| 3108 | va_start (v,p); |
| 3109 | s = g (p, va_arg (v,int)); |
| 3110 | va_end (v); |
| 3111 | return s; |
| 3112 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3113 | |
| 3114 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3115 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3116 | These don't provoke an error unfortunately, instead are silently treated |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3117 | 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] | 3118 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3119 | array size at least. It's necessary to write '\x00'==0 to get something |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3120 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3121 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3122 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3123 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3124 | inside strings and character constants. */ |
| 3125 | #define FOO(x) 'x' |
| 3126 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3127 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3128 | int test (int i, double x); |
| 3129 | struct s1 {int (*f) (int a);}; |
| 3130 | struct s2 {int (*f) (double a);}; |
| 3131 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3132 | int argc; |
| 3133 | char **argv; |
| 3134 | int |
| 3135 | main () |
| 3136 | { |
| 3137 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3138 | ; |
| 3139 | return 0; |
| 3140 | } |
| 3141 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3142 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3143 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3144 | do |
| 3145 | CC="$ac_save_CC $ac_arg" |
| 3146 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3147 | if { (ac_try="$ac_compile" |
| 3148 | case "(($ac_try" in |
| 3149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3150 | *) ac_try_echo=$ac_try;; |
| 3151 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3153 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3154 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3156 | rm -f conftest.er1 |
| 3157 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3159 | (exit $ac_status); } && { |
| 3160 | test -z "$ac_c_werror_flag" || |
| 3161 | test ! -s conftest.err |
| 3162 | } && test -s conftest.$ac_objext; then |
| 3163 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3164 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3165 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3167 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3168 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3169 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3170 | |
| 3171 | rm -f core conftest.err conftest.$ac_objext |
| 3172 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3173 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3174 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3175 | CC=$ac_save_CC |
| 3176 | |
| 3177 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3178 | # AC_CACHE_VAL |
| 3179 | case "x$ac_cv_prog_cc_c89" in |
| 3180 | x) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3181 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3182 | echo "${ECHO_T}none needed" >&6; } ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3183 | xno) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3184 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3185 | echo "${ECHO_T}unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3186 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3187 | CC="$CC $ac_cv_prog_cc_c89" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3188 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3189 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3190 | esac |
| 3191 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3192 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3193 | ac_ext=c |
| 3194 | ac_cpp='$CPP $CPPFLAGS' |
| 3195 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3196 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3197 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3198 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3199 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3200 | |
| 3201 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3202 | { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 3203 | echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3204 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3205 | # Check whether --with-cxx_main was given. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3206 | if test "${with_cxx_main+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3207 | withval=$with_cxx_main; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3208 | |
| 3209 | case $withval in |
| 3210 | no) with_cxx_main=no |
| 3211 | MAINCC='$(CC)';; |
| 3212 | yes) with_cxx_main=yes |
| 3213 | MAINCC='$(CXX)';; |
| 3214 | *) with_cxx_main=yes |
| 3215 | MAINCC=$withval |
| 3216 | if test -z "$CXX" |
| 3217 | then |
| 3218 | CXX=$withval |
| 3219 | fi;; |
| 3220 | esac |
| 3221 | else |
| 3222 | |
| 3223 | with_cxx_main=no |
| 3224 | MAINCC='$(CC)' |
| 3225 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3226 | fi |
| 3227 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3228 | { echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 3229 | echo "${ECHO_T}$with_cxx_main" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3230 | |
| 3231 | preset_cxx="$CXX" |
| 3232 | if test -z "$CXX" |
| 3233 | then |
| 3234 | case "$CC" in |
| 3235 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3236 | set dummy g++; ac_word=$2 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3237 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3238 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3239 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3241 | else |
| 3242 | case $CXX in |
| 3243 | [\\/]* | ?:[\\/]*) |
| 3244 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3245 | ;; |
| 3246 | *) |
| 3247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3248 | for as_dir in notfound |
| 3249 | do |
| 3250 | IFS=$as_save_IFS |
| 3251 | test -z "$as_dir" && as_dir=. |
| 3252 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3253 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3254 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3255 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3256 | break 2 |
| 3257 | fi |
| 3258 | done |
| 3259 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3260 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3261 | |
| 3262 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 3263 | ;; |
| 3264 | esac |
| 3265 | fi |
| 3266 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3267 | if test -n "$CXX"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3268 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3269 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3270 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3271 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3272 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3273 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3274 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3275 | ;; |
| 3276 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 3277 | set dummy c++; ac_word=$2 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3278 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3279 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3280 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3282 | else |
| 3283 | case $CXX in |
| 3284 | [\\/]* | ?:[\\/]*) |
| 3285 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3286 | ;; |
| 3287 | *) |
| 3288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3289 | for as_dir in notfound |
| 3290 | do |
| 3291 | IFS=$as_save_IFS |
| 3292 | test -z "$as_dir" && as_dir=. |
| 3293 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3294 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3295 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3296 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3297 | break 2 |
| 3298 | fi |
| 3299 | done |
| 3300 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3301 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3302 | |
| 3303 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 3304 | ;; |
| 3305 | esac |
| 3306 | fi |
| 3307 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3308 | if test -n "$CXX"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3309 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3310 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3311 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3312 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3313 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3314 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3315 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3316 | ;; |
| 3317 | esac |
| 3318 | if test "$CXX" = "notfound" |
| 3319 | then |
| 3320 | CXX="" |
| 3321 | fi |
| 3322 | fi |
| 3323 | if test -z "$CXX" |
| 3324 | then |
| 3325 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 3326 | do |
| 3327 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3328 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3329 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3330 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3331 | if test "${ac_cv_prog_CXX+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3333 | else |
| 3334 | if test -n "$CXX"; then |
| 3335 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3336 | else |
| 3337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3338 | for as_dir in $PATH |
| 3339 | do |
| 3340 | IFS=$as_save_IFS |
| 3341 | test -z "$as_dir" && as_dir=. |
| 3342 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3344 | ac_cv_prog_CXX="$ac_prog" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3345 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3346 | break 2 |
| 3347 | fi |
| 3348 | done |
| 3349 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3350 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3351 | |
| 3352 | fi |
| 3353 | fi |
| 3354 | CXX=$ac_cv_prog_CXX |
| 3355 | if test -n "$CXX"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3356 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3357 | echo "${ECHO_T}$CXX" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3358 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3359 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3360 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3361 | fi |
| 3362 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3363 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3364 | test -n "$CXX" && break |
| 3365 | done |
| 3366 | test -n "$CXX" || CXX="notfound" |
| 3367 | |
| 3368 | if test "$CXX" = "notfound" |
| 3369 | then |
| 3370 | CXX="" |
| 3371 | fi |
| 3372 | fi |
| 3373 | if test "$preset_cxx" != "$CXX" |
| 3374 | then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3375 | { echo "$as_me:$LINENO: WARNING: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3376 | |
| 3377 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3378 | If this is not intended, then set CXX on the configure command line. |
| 3379 | " >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3380 | echo "$as_me: WARNING: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3381 | |
| 3382 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3383 | If this is not intended, then set CXX on the configure command line. |
| 3384 | " >&2;} |
| 3385 | fi |
| 3386 | |
| 3387 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3388 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3389 | |
| 3390 | ac_ext=c |
| 3391 | ac_cpp='$CPP $CPPFLAGS' |
| 3392 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3393 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3394 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3395 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3396 | 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] | 3397 | # On Suns, sometimes $CPP names a directory. |
| 3398 | if test -n "$CPP" && test -d "$CPP"; then |
| 3399 | CPP= |
| 3400 | fi |
| 3401 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3402 | if test "${ac_cv_prog_CPP+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3404 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3405 | # Double quotes because CPP needs to be expanded |
| 3406 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3407 | do |
| 3408 | ac_preproc_ok=false |
| 3409 | for ac_c_preproc_warn_flag in '' yes |
| 3410 | do |
| 3411 | # Use a header file that comes with gcc, so configuring glibc |
| 3412 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3413 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3414 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3415 | # 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] | 3416 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3417 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3418 | /* confdefs.h. */ |
| 3419 | _ACEOF |
| 3420 | cat confdefs.h >>conftest.$ac_ext |
| 3421 | cat >>conftest.$ac_ext <<_ACEOF |
| 3422 | /* end confdefs.h. */ |
| 3423 | #ifdef __STDC__ |
| 3424 | # include <limits.h> |
| 3425 | #else |
| 3426 | # include <assert.h> |
| 3427 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3428 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3429 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3430 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3431 | case "(($ac_try" in |
| 3432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3433 | *) ac_try_echo=$ac_try;; |
| 3434 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3436 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3437 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3438 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3439 | rm -f conftest.er1 |
| 3440 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3442 | (exit $ac_status); } >/dev/null && { |
| 3443 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3444 | test ! -s conftest.err |
| 3445 | }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3446 | : |
| 3447 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3448 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3450 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3451 | # Broken: fails on valid input. |
| 3452 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3453 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3454 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3455 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3456 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3457 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3458 | # can be detected and how. |
| 3459 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3460 | /* confdefs.h. */ |
| 3461 | _ACEOF |
| 3462 | cat confdefs.h >>conftest.$ac_ext |
| 3463 | cat >>conftest.$ac_ext <<_ACEOF |
| 3464 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3465 | #include <ac_nonexistent.h> |
| 3466 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3467 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3468 | case "(($ac_try" in |
| 3469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3470 | *) ac_try_echo=$ac_try;; |
| 3471 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3473 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3474 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3475 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3476 | rm -f conftest.er1 |
| 3477 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3479 | (exit $ac_status); } >/dev/null && { |
| 3480 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3481 | test ! -s conftest.err |
| 3482 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3483 | # Broken: success on invalid input. |
| 3484 | continue |
| 3485 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3486 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3488 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3489 | # Passes both tests. |
| 3490 | ac_preproc_ok=: |
| 3491 | break |
| 3492 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3494 | rm -f conftest.err conftest.$ac_ext |
| 3495 | |
| 3496 | done |
| 3497 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3498 | rm -f conftest.err conftest.$ac_ext |
| 3499 | if $ac_preproc_ok; then |
| 3500 | break |
| 3501 | fi |
| 3502 | |
| 3503 | done |
| 3504 | ac_cv_prog_CPP=$CPP |
| 3505 | |
| 3506 | fi |
| 3507 | CPP=$ac_cv_prog_CPP |
| 3508 | else |
| 3509 | ac_cv_prog_CPP=$CPP |
| 3510 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3511 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3512 | echo "${ECHO_T}$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3513 | ac_preproc_ok=false |
| 3514 | for ac_c_preproc_warn_flag in '' yes |
| 3515 | do |
| 3516 | # Use a header file that comes with gcc, so configuring glibc |
| 3517 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3518 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3519 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3520 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3521 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3522 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3523 | /* confdefs.h. */ |
| 3524 | _ACEOF |
| 3525 | cat confdefs.h >>conftest.$ac_ext |
| 3526 | cat >>conftest.$ac_ext <<_ACEOF |
| 3527 | /* end confdefs.h. */ |
| 3528 | #ifdef __STDC__ |
| 3529 | # include <limits.h> |
| 3530 | #else |
| 3531 | # include <assert.h> |
| 3532 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3533 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3534 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3535 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3536 | case "(($ac_try" in |
| 3537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3538 | *) ac_try_echo=$ac_try;; |
| 3539 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3541 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3542 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3543 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3544 | rm -f conftest.er1 |
| 3545 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3547 | (exit $ac_status); } >/dev/null && { |
| 3548 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3549 | test ! -s conftest.err |
| 3550 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3551 | : |
| 3552 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3553 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3555 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3556 | # Broken: fails on valid input. |
| 3557 | continue |
| 3558 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3559 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3560 | rm -f conftest.err conftest.$ac_ext |
| 3561 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3562 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3563 | # can be detected and how. |
| 3564 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3565 | /* confdefs.h. */ |
| 3566 | _ACEOF |
| 3567 | cat confdefs.h >>conftest.$ac_ext |
| 3568 | cat >>conftest.$ac_ext <<_ACEOF |
| 3569 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3570 | #include <ac_nonexistent.h> |
| 3571 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3572 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3573 | case "(($ac_try" in |
| 3574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3575 | *) ac_try_echo=$ac_try;; |
| 3576 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3578 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3579 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3580 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3581 | rm -f conftest.er1 |
| 3582 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3584 | (exit $ac_status); } >/dev/null && { |
| 3585 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3586 | test ! -s conftest.err |
| 3587 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3588 | # Broken: success on invalid input. |
| 3589 | continue |
| 3590 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3591 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3592 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3593 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3594 | # Passes both tests. |
| 3595 | ac_preproc_ok=: |
| 3596 | break |
| 3597 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3598 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3599 | rm -f conftest.err conftest.$ac_ext |
| 3600 | |
| 3601 | done |
| 3602 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3603 | rm -f conftest.err conftest.$ac_ext |
| 3604 | if $ac_preproc_ok; then |
| 3605 | : |
| 3606 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3607 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3608 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3609 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3610 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3611 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3612 | fi |
| 3613 | |
| 3614 | ac_ext=c |
| 3615 | ac_cpp='$CPP $CPPFLAGS' |
| 3616 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3617 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3618 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3619 | |
| 3620 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3621 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3622 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3623 | if test "${ac_cv_path_GREP+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3625 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3626 | # Extract the first word of "grep ggrep" to use in msg output |
| 3627 | if test -z "$GREP"; then |
| 3628 | set dummy grep ggrep; ac_prog_name=$2 |
| 3629 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3631 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3632 | ac_path_GREP_found=false |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3633 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3635 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3636 | do |
| 3637 | IFS=$as_save_IFS |
| 3638 | test -z "$as_dir" && as_dir=. |
| 3639 | for ac_prog in grep ggrep; do |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3640 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3641 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3642 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3643 | # Check for GNU ac_path_GREP and select it if it is found. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3644 | # Check for GNU $ac_path_GREP |
| 3645 | case `"$ac_path_GREP" --version 2>&1` in |
| 3646 | *GNU*) |
| 3647 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3648 | *) |
| 3649 | ac_count=0 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3650 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3651 | while : |
| 3652 | do |
| 3653 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3654 | mv "conftest.tmp" "conftest.in" |
| 3655 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3656 | echo 'GREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3657 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3658 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3659 | ac_count=`expr $ac_count + 1` |
| 3660 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3661 | # Best one so far, save it but keep looking for a better one |
| 3662 | ac_cv_path_GREP="$ac_path_GREP" |
| 3663 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3664 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3665 | # 10*(2^10) chars as input seems more than enough |
| 3666 | test $ac_count -gt 10 && break |
| 3667 | done |
| 3668 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3669 | esac |
| 3670 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3671 | |
| 3672 | $ac_path_GREP_found && break 3 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3673 | done |
| 3674 | done |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3675 | |
| 3676 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3677 | IFS=$as_save_IFS |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3678 | |
| 3679 | |
| 3680 | fi |
| 3681 | |
| 3682 | GREP="$ac_cv_path_GREP" |
| 3683 | if test -z "$GREP"; then |
| 3684 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3685 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3686 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3687 | fi |
| 3688 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3689 | else |
| 3690 | ac_cv_path_GREP=$GREP |
| 3691 | fi |
| 3692 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3693 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3694 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3695 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3696 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3697 | GREP="$ac_cv_path_GREP" |
| 3698 | |
| 3699 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3700 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3701 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3702 | if test "${ac_cv_path_EGREP+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3704 | else |
| 3705 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3706 | then ac_cv_path_EGREP="$GREP -E" |
| 3707 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3708 | # Extract the first word of "egrep" to use in msg output |
| 3709 | if test -z "$EGREP"; then |
| 3710 | set dummy egrep; ac_prog_name=$2 |
| 3711 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3713 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3714 | ac_path_EGREP_found=false |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3715 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3717 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3718 | do |
| 3719 | IFS=$as_save_IFS |
| 3720 | test -z "$as_dir" && as_dir=. |
| 3721 | for ac_prog in egrep; do |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3722 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3723 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3724 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3725 | # Check for GNU ac_path_EGREP and select it if it is found. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3726 | # Check for GNU $ac_path_EGREP |
| 3727 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3728 | *GNU*) |
| 3729 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3730 | *) |
| 3731 | ac_count=0 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3732 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3733 | while : |
| 3734 | do |
| 3735 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3736 | mv "conftest.tmp" "conftest.in" |
| 3737 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3738 | echo 'EGREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3739 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3740 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3741 | ac_count=`expr $ac_count + 1` |
| 3742 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3743 | # Best one so far, save it but keep looking for a better one |
| 3744 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3745 | ac_path_EGREP_max=$ac_count |
| 3746 | fi |
| 3747 | # 10*(2^10) chars as input seems more than enough |
| 3748 | test $ac_count -gt 10 && break |
| 3749 | done |
| 3750 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3751 | esac |
| 3752 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3753 | |
| 3754 | $ac_path_EGREP_found && break 3 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3755 | done |
| 3756 | done |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3757 | |
| 3758 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3759 | IFS=$as_save_IFS |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3760 | |
| 3761 | |
| 3762 | fi |
| 3763 | |
| 3764 | EGREP="$ac_cv_path_EGREP" |
| 3765 | if test -z "$EGREP"; then |
| 3766 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3767 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3768 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3769 | fi |
| 3770 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3771 | else |
| 3772 | ac_cv_path_EGREP=$EGREP |
| 3773 | fi |
| 3774 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3775 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3776 | fi |
| 3777 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3778 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3779 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3780 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3781 | |
| 3782 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3783 | |
| 3784 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3785 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
| 3786 | cat >conftest.$ac_ext <<_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3787 | /* confdefs.h. */ |
| 3788 | _ACEOF |
| 3789 | cat confdefs.h >>conftest.$ac_ext |
| 3790 | cat >>conftest.$ac_ext <<_ACEOF |
| 3791 | /* end confdefs.h. */ |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3792 | #ifdef _AIX |
| 3793 | yes |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3794 | #endif |
| 3795 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3796 | _ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3797 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3798 | $EGREP "yes" >/dev/null 2>&1; then |
| 3799 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3800 | echo "${ECHO_T}yes" >&6; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3801 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 3802 | #define _ALL_SOURCE 1 |
| 3803 | _ACEOF |
| 3804 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3805 | else |
| 3806 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3807 | echo "${ECHO_T}no" >&6; } |
| 3808 | fi |
| 3809 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 3810 | |
| 3811 | |
| 3812 | |
| 3813 | # Check for unsupported systems |
| 3814 | case $ac_sys_system/$ac_sys_release in |
| 3815 | atheos*|Linux*/1*) |
| 3816 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3817 | echo See README for details. |
| 3818 | exit 1;; |
| 3819 | esac |
| 3820 | |
| 3821 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3822 | { echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3823 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 3824 | |
| 3825 | # Check whether --with-suffix was given. |
| 3826 | if test "${with_suffix+set}" = set; then |
| 3827 | withval=$with_suffix; |
| 3828 | case $withval in |
| 3829 | no) EXEEXT=;; |
| 3830 | yes) EXEEXT=.exe;; |
| 3831 | *) EXEEXT=$withval;; |
| 3832 | esac |
| 3833 | fi |
| 3834 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3835 | { echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3836 | echo "${ECHO_T}$EXEEXT" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 3837 | |
| 3838 | # Test whether we're running on a non-case-sensitive system, in which |
| 3839 | # case we give a warning if no ext is given |
| 3840 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3841 | { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3842 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 3843 | if test ! -d CaseSensitiveTestDir; then |
| 3844 | mkdir CaseSensitiveTestDir |
| 3845 | fi |
| 3846 | |
| 3847 | if test -d casesensitivetestdir |
| 3848 | then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3849 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3850 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 3851 | BUILDEXEEXT=.exe |
| 3852 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3853 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3854 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 3855 | BUILDEXEEXT=$EXEEXT |
| 3856 | fi |
| 3857 | rmdir CaseSensitiveTestDir |
| 3858 | |
| 3859 | case $MACHDEP in |
| 3860 | bsdos*) |
| 3861 | case $CC in |
| 3862 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3863 | esac;; |
| 3864 | esac |
| 3865 | |
| 3866 | case $ac_sys_system in |
| 3867 | hp*|HP*) |
| 3868 | case $CC in |
| 3869 | cc|*/cc) CC="$CC -Ae";; |
| 3870 | esac;; |
| 3871 | Monterey*) |
| 3872 | case $CC in |
| 3873 | cc) CC="$CC -Wl,-Bexport";; |
| 3874 | esac;; |
| 3875 | SunOS*) |
| 3876 | # Some functions have a prototype only with that define, e.g. confstr |
| 3877 | |
| 3878 | cat >>confdefs.h <<\_ACEOF |
| 3879 | #define __EXTENSIONS__ 1 |
| 3880 | _ACEOF |
| 3881 | |
| 3882 | ;; |
| 3883 | esac |
| 3884 | |
| 3885 | |
| 3886 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3887 | { echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3888 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 3889 | if test -z "$LIBRARY" |
| 3890 | then |
| 3891 | LIBRARY='libpython$(VERSION).a' |
| 3892 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3893 | { echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3894 | echo "${ECHO_T}$LIBRARY" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 3895 | |
| 3896 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 3897 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3898 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3899 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3900 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3901 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3902 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3903 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 3904 | # |
| 3905 | # RUNSHARED is used to run shared python without installed libraries |
| 3906 | # |
| 3907 | # INSTSONAME is the name of the shared library that will be use to install |
| 3908 | # on the system - some systems like version suffix, others don't |
| 3909 | |
| 3910 | |
| 3911 | |
| 3912 | |
| 3913 | |
| 3914 | |
| 3915 | LDLIBRARY="$LIBRARY" |
| 3916 | BLDLIBRARY='$(LDLIBRARY)' |
| 3917 | INSTSONAME='$(LDLIBRARY)' |
| 3918 | DLLLIBRARY='' |
| 3919 | LDLIBRARYDIR='' |
| 3920 | RUNSHARED='' |
| 3921 | |
| 3922 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 3923 | # If CXX is set, and if it is needed to link a main function that was |
| 3924 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3925 | # python might then depend on the C++ runtime |
| 3926 | # This is altered for AIX in order to build the export list before |
| 3927 | # linking. |
| 3928 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3929 | { echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3930 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 3931 | if test -z "$LINKCC" |
| 3932 | then |
| 3933 | LINKCC='$(PURIFY) $(MAINCC)' |
| 3934 | case $ac_sys_system in |
| 3935 | AIX*) |
| 3936 | exp_extra="\"\"" |
| 3937 | if test $ac_sys_release -ge 5 -o \ |
| 3938 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3939 | exp_extra="." |
| 3940 | fi |
| 3941 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
| 3942 | Monterey64*) |
| 3943 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
| 3944 | QNX*) |
| 3945 | # qcc must be used because the other compilers do not |
| 3946 | # support -N. |
| 3947 | LINKCC=qcc;; |
| 3948 | esac |
| 3949 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3950 | { echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3951 | echo "${ECHO_T}$LINKCC" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 3952 | |
| 3953 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 3954 | # make sure we default having it set to "no": this is used by |
| 3955 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 3956 | # to linker command lines, and failing to detect GNU ld simply results |
| 3957 | # in the same bahaviour as before. |
| 3958 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3959 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 3960 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 3961 | ac_prog=ld |
| 3962 | if test "$GCC" = yes; then |
| 3963 | ac_prog=`$CC -print-prog-name=ld` |
| 3964 | fi |
| 3965 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 3966 | *GNU*) |
| 3967 | GNULD=yes;; |
| 3968 | *) |
| 3969 | GNULD=no;; |
| 3970 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3971 | { echo "$as_me:$LINENO: result: $GNULD" >&5 |
| 3972 | echo "${ECHO_T}$GNULD" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 3973 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3974 | { echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3975 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 3976 | # Check whether --enable-shared was given. |
| 3977 | if test "${enable_shared+set}" = set; then |
| 3978 | enableval=$enable_shared; |
| 3979 | fi |
| 3980 | |
| 3981 | |
| 3982 | if test -z "$enable_shared" |
| 3983 | then |
| 3984 | case $ac_sys_system in |
| 3985 | CYGWIN* | atheos*) |
| 3986 | enable_shared="yes";; |
| 3987 | *) |
| 3988 | enable_shared="no";; |
| 3989 | esac |
| 3990 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3991 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3992 | echo "${ECHO_T}$enable_shared" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 3993 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 3994 | { echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 3995 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 3996 | # Check whether --enable-profiling was given. |
| 3997 | if test "${enable_profiling+set}" = set; then |
| 3998 | enableval=$enable_profiling; ac_save_cc="$CC" |
| 3999 | CC="$CC -pg" |
| 4000 | if test "$cross_compiling" = yes; then |
| 4001 | ac_enable_profiling="no" |
| 4002 | else |
| 4003 | cat >conftest.$ac_ext <<_ACEOF |
| 4004 | /* confdefs.h. */ |
| 4005 | _ACEOF |
| 4006 | cat confdefs.h >>conftest.$ac_ext |
| 4007 | cat >>conftest.$ac_ext <<_ACEOF |
| 4008 | /* end confdefs.h. */ |
| 4009 | int main() { return 0; } |
| 4010 | _ACEOF |
| 4011 | rm -f conftest$ac_exeext |
| 4012 | if { (ac_try="$ac_link" |
| 4013 | case "(($ac_try" in |
| 4014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4015 | *) ac_try_echo=$ac_try;; |
| 4016 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4018 | (eval "$ac_link") 2>&5 |
| 4019 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4021 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4022 | { (case "(($ac_try" in |
| 4023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4024 | *) ac_try_echo=$ac_try;; |
| 4025 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4027 | (eval "$ac_try") 2>&5 |
| 4028 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4030 | (exit $ac_status); }; }; then |
| 4031 | ac_enable_profiling="yes" |
| 4032 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4033 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4034 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4036 | |
| 4037 | ( exit $ac_status ) |
| 4038 | ac_enable_profiling="no" |
| 4039 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4040 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4041 | fi |
| 4042 | |
| 4043 | |
| 4044 | CC="$ac_save_cc" |
| 4045 | fi |
| 4046 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4047 | { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 4048 | echo "${ECHO_T}$ac_enable_profiling" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4049 | |
| 4050 | case "$ac_enable_profiling" in |
| 4051 | "yes") |
| 4052 | BASECFLAGS="-pg $BASECFLAGS" |
| 4053 | LDFLAGS="-pg $LDFLAGS" |
| 4054 | ;; |
| 4055 | esac |
| 4056 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4057 | { echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 4058 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4059 | |
| 4060 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4061 | # library that we build, but we do not want to link against it (we |
| 4062 | # will find it with a -framework option). For this reason there is an |
| 4063 | # extra variable BLDLIBRARY against which Python and the extension |
| 4064 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4065 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 4066 | if test "$enable_framework" |
| 4067 | then |
| 4068 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 4069 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 4070 | BLDLIBRARY='' |
| 4071 | else |
| 4072 | BLDLIBRARY='$(LDLIBRARY)' |
| 4073 | fi |
| 4074 | |
| 4075 | # Other platforms follow |
| 4076 | if test $enable_shared = "yes"; then |
| 4077 | |
| 4078 | cat >>confdefs.h <<\_ACEOF |
| 4079 | #define Py_ENABLE_SHARED 1 |
| 4080 | _ACEOF |
| 4081 | |
| 4082 | case $ac_sys_system in |
| 4083 | CYGWIN*) |
| 4084 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4085 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4086 | ;; |
| 4087 | SunOS*) |
| 4088 | LDLIBRARY='libpython$(VERSION).so' |
| 4089 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4090 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4091 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4092 | ;; |
| 4093 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
| 4094 | LDLIBRARY='libpython$(VERSION).so' |
| 4095 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4096 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4097 | case $ac_sys_system in |
| 4098 | FreeBSD*) |
| 4099 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4100 | ;; |
| 4101 | esac |
| 4102 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4103 | ;; |
| 4104 | hp*|HP*) |
| 4105 | case `uname -m` in |
| 4106 | ia64) |
| 4107 | LDLIBRARY='libpython$(VERSION).so' |
| 4108 | ;; |
| 4109 | *) |
| 4110 | LDLIBRARY='libpython$(VERSION).sl' |
| 4111 | ;; |
| 4112 | esac |
| 4113 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4114 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 4115 | ;; |
| 4116 | OSF*) |
| 4117 | LDLIBRARY='libpython$(VERSION).so' |
| 4118 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 4119 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4120 | ;; |
| 4121 | atheos*) |
| 4122 | LDLIBRARY='libpython$(VERSION).so' |
| 4123 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4124 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4125 | ;; |
| 4126 | Darwin*) |
| 4127 | LDLIBRARY='libpython$(VERSION).dylib' |
| 4128 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4129 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 4130 | ;; |
| 4131 | |
| 4132 | esac |
| 4133 | else # shared is disabled |
| 4134 | case $ac_sys_system in |
| 4135 | CYGWIN*) |
| 4136 | BLDLIBRARY='$(LIBRARY)' |
| 4137 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4138 | ;; |
| 4139 | esac |
| 4140 | fi |
| 4141 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4142 | { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 4143 | echo "${ECHO_T}$LDLIBRARY" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4144 | |
| 4145 | if test -n "$ac_tool_prefix"; then |
| 4146 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4147 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4148 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4149 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4150 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4152 | else |
| 4153 | if test -n "$RANLIB"; then |
| 4154 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4155 | else |
| 4156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4157 | for as_dir in $PATH |
| 4158 | do |
| 4159 | IFS=$as_save_IFS |
| 4160 | test -z "$as_dir" && as_dir=. |
| 4161 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4162 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4163 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4164 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4165 | break 2 |
| 4166 | fi |
| 4167 | done |
| 4168 | done |
| 4169 | IFS=$as_save_IFS |
| 4170 | |
| 4171 | fi |
| 4172 | fi |
| 4173 | RANLIB=$ac_cv_prog_RANLIB |
| 4174 | if test -n "$RANLIB"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4175 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4176 | echo "${ECHO_T}$RANLIB" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4177 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4178 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4179 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4180 | fi |
| 4181 | |
| 4182 | |
| 4183 | fi |
| 4184 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4185 | ac_ct_RANLIB=$RANLIB |
| 4186 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4187 | set dummy ranlib; ac_word=$2 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4188 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4189 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4190 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4192 | else |
| 4193 | if test -n "$ac_ct_RANLIB"; then |
| 4194 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4195 | else |
| 4196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4197 | for as_dir in $PATH |
| 4198 | do |
| 4199 | IFS=$as_save_IFS |
| 4200 | test -z "$as_dir" && as_dir=. |
| 4201 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4202 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4203 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4204 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4205 | break 2 |
| 4206 | fi |
| 4207 | done |
| 4208 | done |
| 4209 | IFS=$as_save_IFS |
| 4210 | |
| 4211 | fi |
| 4212 | fi |
| 4213 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4214 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4215 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4216 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4217 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4218 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4219 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4220 | fi |
| 4221 | |
| 4222 | if test "x$ac_ct_RANLIB" = x; then |
| 4223 | RANLIB=":" |
| 4224 | else |
| 4225 | case $cross_compiling:$ac_tool_warned in |
| 4226 | yes:) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4227 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4228 | whose name does not start with the host triplet. If you think this |
| 4229 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4230 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4231 | whose name does not start with the host triplet. If you think this |
| 4232 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4233 | ac_tool_warned=yes ;; |
| 4234 | esac |
| 4235 | RANLIB=$ac_ct_RANLIB |
| 4236 | fi |
| 4237 | else |
| 4238 | RANLIB="$ac_cv_prog_RANLIB" |
| 4239 | fi |
| 4240 | |
| 4241 | |
| 4242 | for ac_prog in ar aal |
| 4243 | do |
| 4244 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4245 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4246 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4247 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4248 | if test "${ac_cv_prog_AR+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4250 | else |
| 4251 | if test -n "$AR"; then |
| 4252 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4253 | else |
| 4254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4255 | for as_dir in $PATH |
| 4256 | do |
| 4257 | IFS=$as_save_IFS |
| 4258 | test -z "$as_dir" && as_dir=. |
| 4259 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4260 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4261 | ac_cv_prog_AR="$ac_prog" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4262 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4263 | break 2 |
| 4264 | fi |
| 4265 | done |
| 4266 | done |
| 4267 | IFS=$as_save_IFS |
| 4268 | |
| 4269 | fi |
| 4270 | fi |
| 4271 | AR=$ac_cv_prog_AR |
| 4272 | if test -n "$AR"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4273 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 4274 | echo "${ECHO_T}$AR" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4275 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4276 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4277 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4278 | fi |
| 4279 | |
| 4280 | |
| 4281 | test -n "$AR" && break |
| 4282 | done |
| 4283 | test -n "$AR" || AR="ar" |
| 4284 | |
| 4285 | |
| 4286 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 4287 | |
| 4288 | if test -z "$ARFLAGS" |
| 4289 | then |
| 4290 | ARFLAGS="rc" |
| 4291 | fi |
| 4292 | |
| 4293 | |
| 4294 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 4295 | set dummy svnversion; ac_word=$2 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4296 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4297 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4298 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4300 | else |
| 4301 | if test -n "$SVNVERSION"; then |
| 4302 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 4303 | else |
| 4304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4305 | for as_dir in $PATH |
| 4306 | do |
| 4307 | IFS=$as_save_IFS |
| 4308 | test -z "$as_dir" && as_dir=. |
| 4309 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4310 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4311 | ac_cv_prog_SVNVERSION="found" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4312 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4313 | break 2 |
| 4314 | fi |
| 4315 | done |
| 4316 | done |
| 4317 | IFS=$as_save_IFS |
| 4318 | |
| 4319 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| 4320 | fi |
| 4321 | fi |
| 4322 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 4323 | if test -n "$SVNVERSION"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4324 | { echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 4325 | echo "${ECHO_T}$SVNVERSION" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4326 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4327 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4328 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4329 | fi |
| 4330 | |
| 4331 | |
| 4332 | if test $SVNVERSION = found |
| 4333 | then |
| 4334 | SVNVERSION="svnversion \$(srcdir)" |
| 4335 | else |
| 4336 | SVNVERSION="echo Unversioned directory" |
| 4337 | fi |
| 4338 | |
| 4339 | case $MACHDEP in |
| 4340 | bsdos*|hp*|HP*) |
| 4341 | # install -d does not work on BSDI or HP-UX |
| 4342 | if test -z "$INSTALL" |
| 4343 | then |
| 4344 | INSTALL="${srcdir}/install-sh -c" |
| 4345 | fi |
| 4346 | esac |
| 4347 | ac_aux_dir= |
| 4348 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 4349 | if test -f "$ac_dir/install-sh"; then |
| 4350 | ac_aux_dir=$ac_dir |
| 4351 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4352 | break |
| 4353 | elif test -f "$ac_dir/install.sh"; then |
| 4354 | ac_aux_dir=$ac_dir |
| 4355 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4356 | break |
| 4357 | elif test -f "$ac_dir/shtool"; then |
| 4358 | ac_aux_dir=$ac_dir |
| 4359 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4360 | break |
| 4361 | fi |
| 4362 | done |
| 4363 | if test -z "$ac_aux_dir"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4364 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 4365 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4366 | { (exit 1); exit 1; }; } |
| 4367 | fi |
| 4368 | |
| 4369 | # These three variables are undocumented and unsupported, |
| 4370 | # and are intended to be withdrawn in a future Autoconf release. |
| 4371 | # They can cause serious problems if a builder's source tree is in a directory |
| 4372 | # whose full name contains unusual characters. |
| 4373 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 4374 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 4375 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 4376 | |
| 4377 | |
| 4378 | # Find a good install program. We prefer a C program (faster), |
| 4379 | # so one script is as good as another. But avoid the broken or |
| 4380 | # incompatible versions: |
| 4381 | # SysV /etc/install, /usr/sbin/install |
| 4382 | # SunOS /usr/etc/install |
| 4383 | # IRIX /sbin/install |
| 4384 | # AIX /bin/install |
| 4385 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4386 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4387 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4388 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4389 | # OS/2's system install, which has a completely different semantic |
| 4390 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4391 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4392 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4393 | if test -z "$INSTALL"; then |
| 4394 | if test "${ac_cv_path_install+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4396 | else |
| 4397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4398 | for as_dir in $PATH |
| 4399 | do |
| 4400 | IFS=$as_save_IFS |
| 4401 | test -z "$as_dir" && as_dir=. |
| 4402 | # Account for people who put trailing slashes in PATH elements. |
| 4403 | case $as_dir/ in |
| 4404 | ./ | .// | /cC/* | \ |
| 4405 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4406 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4407 | /usr/ucb/* ) ;; |
| 4408 | *) |
| 4409 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4410 | # Don't use installbsd from OSF since it installs stuff as root |
| 4411 | # by default. |
| 4412 | for ac_prog in ginstall scoinst install; do |
| 4413 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4414 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 4415 | if test $ac_prog = install && |
| 4416 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4417 | # AIX install. It has an incompatible calling convention. |
| 4418 | : |
| 4419 | elif test $ac_prog = install && |
| 4420 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4421 | # program-specific install script used by HP pwplus--don't use. |
| 4422 | : |
| 4423 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4424 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4425 | break 3 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4426 | fi |
| 4427 | fi |
| 4428 | done |
| 4429 | done |
| 4430 | ;; |
| 4431 | esac |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4432 | done |
| 4433 | IFS=$as_save_IFS |
| 4434 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4435 | |
| 4436 | fi |
| 4437 | if test "${ac_cv_path_install+set}" = set; then |
| 4438 | INSTALL=$ac_cv_path_install |
| 4439 | else |
| 4440 | # As a last resort, use the slow shell script. Don't cache a |
| 4441 | # value for INSTALL within a source directory, because that will |
| 4442 | # break other packages using the cache if that directory is |
| 4443 | # removed, or if the value is a relative name. |
| 4444 | INSTALL=$ac_install_sh |
| 4445 | fi |
| 4446 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4447 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4448 | echo "${ECHO_T}$INSTALL" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4449 | |
| 4450 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4451 | # It thinks the first close brace ends the variable substitution. |
| 4452 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4453 | |
| 4454 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4455 | |
| 4456 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4457 | |
| 4458 | |
| 4459 | # Not every filesystem supports hard links |
| 4460 | |
| 4461 | if test -z "$LN" ; then |
| 4462 | case $ac_sys_system in |
| 4463 | CYGWIN*) LN="ln -s";; |
| 4464 | atheos*) LN="ln -s";; |
| 4465 | *) LN=ln;; |
| 4466 | esac |
| 4467 | fi |
| 4468 | |
| 4469 | # Check for --with-pydebug |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4470 | { echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 4471 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4472 | |
| 4473 | # Check whether --with-pydebug was given. |
| 4474 | if test "${with_pydebug+set}" = set; then |
| 4475 | withval=$with_pydebug; |
| 4476 | if test "$withval" != no |
| 4477 | then |
| 4478 | |
| 4479 | cat >>confdefs.h <<\_ACEOF |
| 4480 | #define Py_DEBUG 1 |
| 4481 | _ACEOF |
| 4482 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4483 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4484 | echo "${ECHO_T}yes" >&6; }; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4485 | Py_DEBUG='true' |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4486 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 4487 | echo "${ECHO_T}no" >&6; }; Py_DEBUG='false' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4488 | fi |
| 4489 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4490 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4491 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4492 | fi |
| 4493 | |
| 4494 | |
| 4495 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 4496 | # merged with this chunk of code? |
| 4497 | |
| 4498 | # Optimizer/debugger flags |
| 4499 | # ------------------------ |
| 4500 | # (The following bit of code is complicated enough - please keep things |
| 4501 | # indented properly. Just pretend you're editing Python code. ;-) |
| 4502 | |
| 4503 | # There are two parallel sets of case statements below, one that checks to |
| 4504 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 4505 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 4506 | # user set OPT. |
| 4507 | |
| 4508 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 4509 | # it on the command line |
| 4510 | |
| 4511 | if test -z "$OPT" |
| 4512 | then |
| 4513 | case $GCC in |
| 4514 | yes) |
| 4515 | if test "$CC" != 'g++' ; then |
| 4516 | STRICT_PROTO="-Wstrict-prototypes" |
| 4517 | fi |
| 4518 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 4519 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 4520 | WRAP="-fwrapv" |
| 4521 | fi |
| 4522 | case $ac_cv_prog_cc_g in |
| 4523 | yes) |
| 4524 | if test "$Py_DEBUG" = 'true' ; then |
| 4525 | # Optimization messes up debuggers, so turn it off for |
| 4526 | # debug builds. |
| 4527 | OPT="-g -Wall $STRICT_PROTO" |
| 4528 | else |
| 4529 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 4530 | fi |
| 4531 | ;; |
| 4532 | *) |
| 4533 | OPT="-O3 -Wall $STRICT_PROTO" |
| 4534 | ;; |
| 4535 | esac |
| 4536 | case $ac_sys_system in |
| 4537 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 4538 | ;; |
| 4539 | esac |
| 4540 | ;; |
| 4541 | |
| 4542 | *) |
| 4543 | OPT="-O" |
| 4544 | ;; |
| 4545 | esac |
| 4546 | |
| 4547 | # The current (beta) Monterey compiler dies with optimizations |
| 4548 | # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this? |
| 4549 | case $ac_sys_system in |
| 4550 | Monterey*) |
| 4551 | OPT="" |
| 4552 | ;; |
| 4553 | esac |
| 4554 | |
| 4555 | fi |
| 4556 | |
| 4557 | |
| 4558 | |
| 4559 | # The -arch flags for universal builds on OSX |
| 4560 | UNIVERSAL_ARCH_FLAGS= |
| 4561 | |
| 4562 | |
| 4563 | # tweak BASECFLAGS based on compiler and platform |
| 4564 | case $GCC in |
| 4565 | yes) |
| 4566 | # Python violates C99 rules, by casting between incompatible |
| 4567 | # pointer types. GCC may generate bad code as a result of that, |
| 4568 | # so use -fno-strict-aliasing if supported. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4569 | { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 4570 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4571 | ac_save_cc="$CC" |
| 4572 | CC="$CC -fno-strict-aliasing" |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 4573 | if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then |
| 4574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4575 | else |
| 4576 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4577 | ac_cv_no_strict_aliasing_ok=no |
| 4578 | else |
| 4579 | cat >conftest.$ac_ext <<_ACEOF |
| 4580 | /* confdefs.h. */ |
| 4581 | _ACEOF |
| 4582 | cat confdefs.h >>conftest.$ac_ext |
| 4583 | cat >>conftest.$ac_ext <<_ACEOF |
| 4584 | /* end confdefs.h. */ |
| 4585 | int main() { return 0; } |
| 4586 | _ACEOF |
| 4587 | rm -f conftest$ac_exeext |
| 4588 | if { (ac_try="$ac_link" |
| 4589 | case "(($ac_try" in |
| 4590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4591 | *) ac_try_echo=$ac_try;; |
| 4592 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4594 | (eval "$ac_link") 2>&5 |
| 4595 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4597 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4598 | { (case "(($ac_try" in |
| 4599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4600 | *) ac_try_echo=$ac_try;; |
| 4601 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4603 | (eval "$ac_try") 2>&5 |
| 4604 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4606 | (exit $ac_status); }; }; then |
| 4607 | ac_cv_no_strict_aliasing_ok=yes |
| 4608 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4609 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4610 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4612 | |
| 4613 | ( exit $ac_status ) |
| 4614 | ac_cv_no_strict_aliasing_ok=no |
| 4615 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4616 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4617 | fi |
| 4618 | |
| 4619 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 4620 | fi |
| 4621 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4622 | CC="$ac_save_cc" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4623 | { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 4624 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4625 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 4626 | then |
| 4627 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 4628 | fi |
| 4629 | |
| 4630 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 4631 | # support. Without this, treatment of subnormals doesn't follow |
| 4632 | # the standard. |
| 4633 | case $ac_sys_machine in |
| 4634 | alpha*) |
| 4635 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4636 | ;; |
| 4637 | esac |
| 4638 | |
| 4639 | case $ac_sys_system in |
| 4640 | SCO_SV*) |
| 4641 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 4642 | ;; |
| 4643 | # is there any other compiler on Darwin besides gcc? |
| 4644 | Darwin*) |
| 4645 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 4646 | # used to be here, but non-Apple gcc doesn't accept them. |
| 4647 | |
| 4648 | |
| 4649 | if test "${enable_universalsdk}"; then |
| 4650 | UNIVERSAL_ARCH_FLAGS="" |
| 4651 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
| 4652 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 4653 | ARCH_RUN_32BIT="" |
| 4654 | |
| 4655 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
| 4656 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 4657 | |
| 4658 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
| 4659 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 4660 | ARCH_RUN_32BIT="arch -i386 -ppc" |
| 4661 | |
| 4662 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4663 | { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5 |
| 4664 | echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4665 | { (exit 1); exit 1; }; } |
| 4666 | |
| 4667 | fi |
| 4668 | |
| 4669 | |
| 4670 | BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" |
| 4671 | tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4672 | if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then |
| 4673 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 4674 | fi |
| 4675 | fi |
| 4676 | |
| 4677 | # Calculate the right deployment target for this build. |
| 4678 | # |
| 4679 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4680 | if test ${cur_target} '>' 10.2; then |
| 4681 | cur_target=10.3 |
| 4682 | fi |
| 4683 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 4684 | # Ensure that the default platform for a 4-way |
| 4685 | # universal build is OSX 10.5, that's the first |
| 4686 | # OS release where 4-way builds make sense. |
| 4687 | cur_target='10.5' |
| 4688 | fi |
| 4689 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 4690 | |
| 4691 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 4692 | # environment with a value that is the same as what we'll use |
| 4693 | # in the Makefile to ensure that we'll get the same compiler |
| 4694 | # environment during configure and build time. |
| 4695 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 4696 | export MACOSX_DEPLOYMENT_TARGET |
| 4697 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 4698 | |
| 4699 | ;; |
| 4700 | OSF*) |
| 4701 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4702 | ;; |
| 4703 | esac |
| 4704 | ;; |
| 4705 | |
| 4706 | *) |
| 4707 | case $ac_sys_system in |
| 4708 | OpenUNIX*|UnixWare*) |
| 4709 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 4710 | ;; |
| 4711 | OSF*) |
| 4712 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 4713 | ;; |
| 4714 | SCO_SV*) |
| 4715 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 4716 | ;; |
| 4717 | esac |
| 4718 | ;; |
| 4719 | esac |
| 4720 | |
| 4721 | if test "$Py_DEBUG" = 'true'; then |
| 4722 | : |
| 4723 | else |
| 4724 | OPT="-DNDEBUG $OPT" |
| 4725 | fi |
| 4726 | |
| 4727 | if test "$ac_arch_flags" |
| 4728 | then |
| 4729 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 4730 | fi |
| 4731 | |
| 4732 | # disable check for icc since it seems to pass, but generates a warning |
| 4733 | if test "$CC" = icc |
| 4734 | then |
| 4735 | ac_cv_opt_olimit_ok=no |
| 4736 | fi |
| 4737 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4738 | { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 4739 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4740 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4742 | else |
| 4743 | ac_save_cc="$CC" |
| 4744 | CC="$CC -OPT:Olimit=0" |
| 4745 | if test "$cross_compiling" = yes; then |
| 4746 | ac_cv_opt_olimit_ok=no |
| 4747 | else |
| 4748 | cat >conftest.$ac_ext <<_ACEOF |
| 4749 | /* confdefs.h. */ |
| 4750 | _ACEOF |
| 4751 | cat confdefs.h >>conftest.$ac_ext |
| 4752 | cat >>conftest.$ac_ext <<_ACEOF |
| 4753 | /* end confdefs.h. */ |
| 4754 | int main() { return 0; } |
| 4755 | _ACEOF |
| 4756 | rm -f conftest$ac_exeext |
| 4757 | if { (ac_try="$ac_link" |
| 4758 | case "(($ac_try" in |
| 4759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4760 | *) ac_try_echo=$ac_try;; |
| 4761 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4763 | (eval "$ac_link") 2>&5 |
| 4764 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4766 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4767 | { (case "(($ac_try" in |
| 4768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4769 | *) ac_try_echo=$ac_try;; |
| 4770 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4772 | (eval "$ac_try") 2>&5 |
| 4773 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4775 | (exit $ac_status); }; }; then |
| 4776 | ac_cv_opt_olimit_ok=yes |
| 4777 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4778 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4779 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4781 | |
| 4782 | ( exit $ac_status ) |
| 4783 | ac_cv_opt_olimit_ok=no |
| 4784 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4785 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4786 | fi |
| 4787 | |
| 4788 | |
| 4789 | CC="$ac_save_cc" |
| 4790 | fi |
| 4791 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4792 | { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 4793 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4794 | if test $ac_cv_opt_olimit_ok = yes; then |
| 4795 | case $ac_sys_system in |
| 4796 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 4797 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 4798 | # environment? |
| 4799 | Darwin*) |
| 4800 | ;; |
| 4801 | *) |
| 4802 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 4803 | ;; |
| 4804 | esac |
| 4805 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4806 | { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 4807 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4808 | if test "${ac_cv_olimit_ok+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4810 | else |
| 4811 | ac_save_cc="$CC" |
| 4812 | CC="$CC -Olimit 1500" |
| 4813 | if test "$cross_compiling" = yes; then |
| 4814 | ac_cv_olimit_ok=no |
| 4815 | else |
| 4816 | cat >conftest.$ac_ext <<_ACEOF |
| 4817 | /* confdefs.h. */ |
| 4818 | _ACEOF |
| 4819 | cat confdefs.h >>conftest.$ac_ext |
| 4820 | cat >>conftest.$ac_ext <<_ACEOF |
| 4821 | /* end confdefs.h. */ |
| 4822 | int main() { return 0; } |
| 4823 | _ACEOF |
| 4824 | rm -f conftest$ac_exeext |
| 4825 | if { (ac_try="$ac_link" |
| 4826 | case "(($ac_try" in |
| 4827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4828 | *) ac_try_echo=$ac_try;; |
| 4829 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4831 | (eval "$ac_link") 2>&5 |
| 4832 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4834 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4835 | { (case "(($ac_try" in |
| 4836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4837 | *) ac_try_echo=$ac_try;; |
| 4838 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4840 | (eval "$ac_try") 2>&5 |
| 4841 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4843 | (exit $ac_status); }; }; then |
| 4844 | ac_cv_olimit_ok=yes |
| 4845 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4846 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4847 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4848 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4849 | |
| 4850 | ( exit $ac_status ) |
| 4851 | ac_cv_olimit_ok=no |
| 4852 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4853 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4854 | fi |
| 4855 | |
| 4856 | |
| 4857 | CC="$ac_save_cc" |
| 4858 | fi |
| 4859 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4860 | { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4861 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4862 | if test $ac_cv_olimit_ok = yes; then |
| 4863 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
| 4864 | fi |
| 4865 | fi |
| 4866 | |
| 4867 | # Check whether GCC supports PyArg_ParseTuple format |
| 4868 | if test "$GCC" = "yes" |
| 4869 | then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4870 | { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 4871 | echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4872 | save_CFLAGS=$CFLAGS |
| 4873 | CFLAGS="$CFLAGS -Werror" |
| 4874 | cat >conftest.$ac_ext <<_ACEOF |
| 4875 | /* confdefs.h. */ |
| 4876 | _ACEOF |
| 4877 | cat confdefs.h >>conftest.$ac_ext |
| 4878 | cat >>conftest.$ac_ext <<_ACEOF |
| 4879 | /* end confdefs.h. */ |
| 4880 | |
| 4881 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 4882 | |
| 4883 | int |
| 4884 | main () |
| 4885 | { |
| 4886 | |
| 4887 | ; |
| 4888 | return 0; |
| 4889 | } |
| 4890 | _ACEOF |
| 4891 | rm -f conftest.$ac_objext |
| 4892 | if { (ac_try="$ac_compile" |
| 4893 | case "(($ac_try" in |
| 4894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4895 | *) ac_try_echo=$ac_try;; |
| 4896 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4898 | (eval "$ac_compile") 2>conftest.er1 |
| 4899 | ac_status=$? |
| 4900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4901 | rm -f conftest.er1 |
| 4902 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4904 | (exit $ac_status); } && { |
| 4905 | test -z "$ac_c_werror_flag" || |
| 4906 | test ! -s conftest.err |
| 4907 | } && test -s conftest.$ac_objext; then |
| 4908 | |
| 4909 | cat >>confdefs.h <<\_ACEOF |
| 4910 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 4911 | _ACEOF |
| 4912 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4913 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4914 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4915 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4916 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4918 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4919 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4920 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4921 | |
| 4922 | fi |
| 4923 | |
| 4924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4925 | CFLAGS=$save_CFLAGS |
| 4926 | fi |
| 4927 | |
| 4928 | # On some compilers, pthreads are available without further options |
| 4929 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 4930 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 4931 | # So we have to see first whether pthreads are available without |
| 4932 | # options before we can check whether -Kpthread improves anything. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4933 | { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 4934 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4935 | if test "${ac_cv_pthread_is_default+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4937 | else |
| 4938 | if test "$cross_compiling" = yes; then |
| 4939 | ac_cv_pthread_is_default=no |
| 4940 | else |
| 4941 | cat >conftest.$ac_ext <<_ACEOF |
| 4942 | /* confdefs.h. */ |
| 4943 | _ACEOF |
| 4944 | cat confdefs.h >>conftest.$ac_ext |
| 4945 | cat >>conftest.$ac_ext <<_ACEOF |
| 4946 | /* end confdefs.h. */ |
| 4947 | |
| 4948 | #include <pthread.h> |
| 4949 | |
| 4950 | void* routine(void* p){return NULL;} |
| 4951 | |
| 4952 | int main(){ |
| 4953 | pthread_t p; |
| 4954 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4955 | return 1; |
| 4956 | (void)pthread_detach(p); |
| 4957 | return 0; |
| 4958 | } |
| 4959 | |
| 4960 | _ACEOF |
| 4961 | rm -f conftest$ac_exeext |
| 4962 | if { (ac_try="$ac_link" |
| 4963 | case "(($ac_try" in |
| 4964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4965 | *) ac_try_echo=$ac_try;; |
| 4966 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4968 | (eval "$ac_link") 2>&5 |
| 4969 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4971 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4972 | { (case "(($ac_try" in |
| 4973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4974 | *) ac_try_echo=$ac_try;; |
| 4975 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4977 | (eval "$ac_try") 2>&5 |
| 4978 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4980 | (exit $ac_status); }; }; then |
| 4981 | |
| 4982 | ac_cv_pthread_is_default=yes |
| 4983 | ac_cv_kthread=no |
| 4984 | ac_cv_pthread=no |
| 4985 | |
| 4986 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 4987 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4988 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4990 | |
| 4991 | ( exit $ac_status ) |
| 4992 | ac_cv_pthread_is_default=no |
| 4993 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 4994 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4995 | fi |
| 4996 | |
| 4997 | |
| 4998 | |
| 4999 | fi |
| 5000 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5001 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 5002 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5003 | |
| 5004 | |
| 5005 | if test $ac_cv_pthread_is_default = yes |
| 5006 | then |
| 5007 | ac_cv_kpthread=no |
| 5008 | else |
| 5009 | # -Kpthread, if available, provides the right #defines |
| 5010 | # and linker options to make pthread_create available |
| 5011 | # Some compilers won't report that they do not support -Kpthread, |
| 5012 | # so we need to run a program to see whether it really made the |
| 5013 | # function available. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5014 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 5015 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5016 | if test "${ac_cv_kpthread+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5018 | else |
| 5019 | ac_save_cc="$CC" |
| 5020 | CC="$CC -Kpthread" |
| 5021 | if test "$cross_compiling" = yes; then |
| 5022 | ac_cv_kpthread=no |
| 5023 | else |
| 5024 | cat >conftest.$ac_ext <<_ACEOF |
| 5025 | /* confdefs.h. */ |
| 5026 | _ACEOF |
| 5027 | cat confdefs.h >>conftest.$ac_ext |
| 5028 | cat >>conftest.$ac_ext <<_ACEOF |
| 5029 | /* end confdefs.h. */ |
| 5030 | |
| 5031 | #include <pthread.h> |
| 5032 | |
| 5033 | void* routine(void* p){return NULL;} |
| 5034 | |
| 5035 | int main(){ |
| 5036 | pthread_t p; |
| 5037 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5038 | return 1; |
| 5039 | (void)pthread_detach(p); |
| 5040 | return 0; |
| 5041 | } |
| 5042 | |
| 5043 | _ACEOF |
| 5044 | rm -f conftest$ac_exeext |
| 5045 | if { (ac_try="$ac_link" |
| 5046 | case "(($ac_try" in |
| 5047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5048 | *) ac_try_echo=$ac_try;; |
| 5049 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5051 | (eval "$ac_link") 2>&5 |
| 5052 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5054 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5055 | { (case "(($ac_try" in |
| 5056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5057 | *) ac_try_echo=$ac_try;; |
| 5058 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5060 | (eval "$ac_try") 2>&5 |
| 5061 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5063 | (exit $ac_status); }; }; then |
| 5064 | ac_cv_kpthread=yes |
| 5065 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5066 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5067 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5068 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5069 | |
| 5070 | ( exit $ac_status ) |
| 5071 | ac_cv_kpthread=no |
| 5072 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5073 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5074 | fi |
| 5075 | |
| 5076 | |
| 5077 | CC="$ac_save_cc" |
| 5078 | fi |
| 5079 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5080 | { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 5081 | echo "${ECHO_T}$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5082 | fi |
| 5083 | |
| 5084 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 5085 | then |
| 5086 | # -Kthread, if available, provides the right #defines |
| 5087 | # and linker options to make pthread_create available |
| 5088 | # Some compilers won't report that they do not support -Kthread, |
| 5089 | # so we need to run a program to see whether it really made the |
| 5090 | # function available. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5091 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 5092 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5093 | if test "${ac_cv_kthread+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5095 | else |
| 5096 | ac_save_cc="$CC" |
| 5097 | CC="$CC -Kthread" |
| 5098 | if test "$cross_compiling" = yes; then |
| 5099 | ac_cv_kthread=no |
| 5100 | else |
| 5101 | cat >conftest.$ac_ext <<_ACEOF |
| 5102 | /* confdefs.h. */ |
| 5103 | _ACEOF |
| 5104 | cat confdefs.h >>conftest.$ac_ext |
| 5105 | cat >>conftest.$ac_ext <<_ACEOF |
| 5106 | /* end confdefs.h. */ |
| 5107 | |
| 5108 | #include <pthread.h> |
| 5109 | |
| 5110 | void* routine(void* p){return NULL;} |
| 5111 | |
| 5112 | int main(){ |
| 5113 | pthread_t p; |
| 5114 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5115 | return 1; |
| 5116 | (void)pthread_detach(p); |
| 5117 | return 0; |
| 5118 | } |
| 5119 | |
| 5120 | _ACEOF |
| 5121 | rm -f conftest$ac_exeext |
| 5122 | if { (ac_try="$ac_link" |
| 5123 | case "(($ac_try" in |
| 5124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5125 | *) ac_try_echo=$ac_try;; |
| 5126 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5128 | (eval "$ac_link") 2>&5 |
| 5129 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5131 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5132 | { (case "(($ac_try" in |
| 5133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5134 | *) ac_try_echo=$ac_try;; |
| 5135 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5137 | (eval "$ac_try") 2>&5 |
| 5138 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5140 | (exit $ac_status); }; }; then |
| 5141 | ac_cv_kthread=yes |
| 5142 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5143 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5144 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5146 | |
| 5147 | ( exit $ac_status ) |
| 5148 | ac_cv_kthread=no |
| 5149 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5150 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5151 | fi |
| 5152 | |
| 5153 | |
| 5154 | CC="$ac_save_cc" |
| 5155 | fi |
| 5156 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5157 | { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 5158 | echo "${ECHO_T}$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5159 | fi |
| 5160 | |
| 5161 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 5162 | then |
| 5163 | # -pthread, if available, provides the right #defines |
| 5164 | # and linker options to make pthread_create available |
| 5165 | # Some compilers won't report that they do not support -pthread, |
| 5166 | # so we need to run a program to see whether it really made the |
| 5167 | # function available. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5168 | { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 5169 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5170 | if test "${ac_cv_thread+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5172 | else |
| 5173 | ac_save_cc="$CC" |
| 5174 | CC="$CC -pthread" |
| 5175 | if test "$cross_compiling" = yes; then |
| 5176 | ac_cv_pthread=no |
| 5177 | else |
| 5178 | cat >conftest.$ac_ext <<_ACEOF |
| 5179 | /* confdefs.h. */ |
| 5180 | _ACEOF |
| 5181 | cat confdefs.h >>conftest.$ac_ext |
| 5182 | cat >>conftest.$ac_ext <<_ACEOF |
| 5183 | /* end confdefs.h. */ |
| 5184 | |
| 5185 | #include <pthread.h> |
| 5186 | |
| 5187 | void* routine(void* p){return NULL;} |
| 5188 | |
| 5189 | int main(){ |
| 5190 | pthread_t p; |
| 5191 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5192 | return 1; |
| 5193 | (void)pthread_detach(p); |
| 5194 | return 0; |
| 5195 | } |
| 5196 | |
| 5197 | _ACEOF |
| 5198 | rm -f conftest$ac_exeext |
| 5199 | if { (ac_try="$ac_link" |
| 5200 | case "(($ac_try" in |
| 5201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5202 | *) ac_try_echo=$ac_try;; |
| 5203 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5205 | (eval "$ac_link") 2>&5 |
| 5206 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5208 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5209 | { (case "(($ac_try" in |
| 5210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5211 | *) ac_try_echo=$ac_try;; |
| 5212 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5214 | (eval "$ac_try") 2>&5 |
| 5215 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5217 | (exit $ac_status); }; }; then |
| 5218 | ac_cv_pthread=yes |
| 5219 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5220 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5221 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5223 | |
| 5224 | ( exit $ac_status ) |
| 5225 | ac_cv_pthread=no |
| 5226 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5227 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5228 | fi |
| 5229 | |
| 5230 | |
| 5231 | CC="$ac_save_cc" |
| 5232 | fi |
| 5233 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5234 | { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 5235 | echo "${ECHO_T}$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5236 | fi |
| 5237 | |
| 5238 | # If we have set a CC compiler flag for thread support then |
| 5239 | # check if it works for CXX, too. |
| 5240 | ac_cv_cxx_thread=no |
| 5241 | if test ! -z "$CXX" |
| 5242 | then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5243 | { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 5244 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5245 | ac_save_cxx="$CXX" |
| 5246 | |
| 5247 | if test "$ac_cv_kpthread" = "yes" |
| 5248 | then |
| 5249 | CXX="$CXX -Kpthread" |
| 5250 | ac_cv_cxx_thread=yes |
| 5251 | elif test "$ac_cv_kthread" = "yes" |
| 5252 | then |
| 5253 | CXX="$CXX -Kthread" |
| 5254 | ac_cv_cxx_thread=yes |
| 5255 | elif test "$ac_cv_pthread" = "yes" |
| 5256 | then |
| 5257 | CXX="$CXX -pthread" |
| 5258 | ac_cv_cxx_thread=yes |
| 5259 | fi |
| 5260 | |
| 5261 | if test $ac_cv_cxx_thread = yes |
| 5262 | then |
| 5263 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5264 | $CXX -c conftest.$ac_ext 2>&5 |
| 5265 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5266 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5267 | then |
| 5268 | ac_cv_cxx_thread=yes |
| 5269 | else |
| 5270 | ac_cv_cxx_thread=no |
| 5271 | fi |
| 5272 | rm -fr conftest* |
| 5273 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5274 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 5275 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5276 | fi |
| 5277 | CXX="$ac_save_cxx" |
| 5278 | |
| 5279 | |
| 5280 | # checks for header files |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5281 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5282 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5283 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5285 | else |
| 5286 | cat >conftest.$ac_ext <<_ACEOF |
| 5287 | /* confdefs.h. */ |
| 5288 | _ACEOF |
| 5289 | cat confdefs.h >>conftest.$ac_ext |
| 5290 | cat >>conftest.$ac_ext <<_ACEOF |
| 5291 | /* end confdefs.h. */ |
| 5292 | #include <stdlib.h> |
| 5293 | #include <stdarg.h> |
| 5294 | #include <string.h> |
| 5295 | #include <float.h> |
| 5296 | |
| 5297 | int |
| 5298 | main () |
| 5299 | { |
| 5300 | |
| 5301 | ; |
| 5302 | return 0; |
| 5303 | } |
| 5304 | _ACEOF |
| 5305 | rm -f conftest.$ac_objext |
| 5306 | if { (ac_try="$ac_compile" |
| 5307 | case "(($ac_try" in |
| 5308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5309 | *) ac_try_echo=$ac_try;; |
| 5310 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5312 | (eval "$ac_compile") 2>conftest.er1 |
| 5313 | ac_status=$? |
| 5314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5315 | rm -f conftest.er1 |
| 5316 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5318 | (exit $ac_status); } && { |
| 5319 | test -z "$ac_c_werror_flag" || |
| 5320 | test ! -s conftest.err |
| 5321 | } && test -s conftest.$ac_objext; then |
| 5322 | ac_cv_header_stdc=yes |
| 5323 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5324 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5326 | |
| 5327 | ac_cv_header_stdc=no |
| 5328 | fi |
| 5329 | |
| 5330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5331 | |
| 5332 | if test $ac_cv_header_stdc = yes; then |
| 5333 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 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 <string.h> |
| 5341 | |
| 5342 | _ACEOF |
| 5343 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5344 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5345 | : |
| 5346 | else |
| 5347 | ac_cv_header_stdc=no |
| 5348 | fi |
| 5349 | rm -f conftest* |
| 5350 | |
| 5351 | fi |
| 5352 | |
| 5353 | if test $ac_cv_header_stdc = yes; then |
| 5354 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5355 | cat >conftest.$ac_ext <<_ACEOF |
| 5356 | /* confdefs.h. */ |
| 5357 | _ACEOF |
| 5358 | cat confdefs.h >>conftest.$ac_ext |
| 5359 | cat >>conftest.$ac_ext <<_ACEOF |
| 5360 | /* end confdefs.h. */ |
| 5361 | #include <stdlib.h> |
| 5362 | |
| 5363 | _ACEOF |
| 5364 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5365 | $EGREP "free" >/dev/null 2>&1; then |
| 5366 | : |
| 5367 | else |
| 5368 | ac_cv_header_stdc=no |
| 5369 | fi |
| 5370 | rm -f conftest* |
| 5371 | |
| 5372 | fi |
| 5373 | |
| 5374 | if test $ac_cv_header_stdc = yes; then |
| 5375 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5376 | if test "$cross_compiling" = yes; then |
| 5377 | : |
| 5378 | else |
| 5379 | cat >conftest.$ac_ext <<_ACEOF |
| 5380 | /* confdefs.h. */ |
| 5381 | _ACEOF |
| 5382 | cat confdefs.h >>conftest.$ac_ext |
| 5383 | cat >>conftest.$ac_ext <<_ACEOF |
| 5384 | /* end confdefs.h. */ |
| 5385 | #include <ctype.h> |
| 5386 | #include <stdlib.h> |
| 5387 | #if ((' ' & 0x0FF) == 0x020) |
| 5388 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5389 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5390 | #else |
| 5391 | # define ISLOWER(c) \ |
| 5392 | (('a' <= (c) && (c) <= 'i') \ |
| 5393 | || ('j' <= (c) && (c) <= 'r') \ |
| 5394 | || ('s' <= (c) && (c) <= 'z')) |
| 5395 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5396 | #endif |
| 5397 | |
| 5398 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5399 | int |
| 5400 | main () |
| 5401 | { |
| 5402 | int i; |
| 5403 | for (i = 0; i < 256; i++) |
| 5404 | if (XOR (islower (i), ISLOWER (i)) |
| 5405 | || toupper (i) != TOUPPER (i)) |
| 5406 | return 2; |
| 5407 | return 0; |
| 5408 | } |
| 5409 | _ACEOF |
| 5410 | rm -f conftest$ac_exeext |
| 5411 | if { (ac_try="$ac_link" |
| 5412 | case "(($ac_try" in |
| 5413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5414 | *) ac_try_echo=$ac_try;; |
| 5415 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5417 | (eval "$ac_link") 2>&5 |
| 5418 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5420 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5421 | { (case "(($ac_try" in |
| 5422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5423 | *) ac_try_echo=$ac_try;; |
| 5424 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5426 | (eval "$ac_try") 2>&5 |
| 5427 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5429 | (exit $ac_status); }; }; then |
| 5430 | : |
| 5431 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5432 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5433 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5434 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5435 | |
| 5436 | ( exit $ac_status ) |
| 5437 | ac_cv_header_stdc=no |
| 5438 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5439 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5440 | fi |
| 5441 | |
| 5442 | |
| 5443 | fi |
| 5444 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5445 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5446 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5447 | if test $ac_cv_header_stdc = yes; then |
| 5448 | |
| 5449 | cat >>confdefs.h <<\_ACEOF |
| 5450 | #define STDC_HEADERS 1 |
| 5451 | _ACEOF |
| 5452 | |
| 5453 | fi |
| 5454 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5455 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5456 | |
| 5457 | |
| 5458 | |
| 5459 | |
| 5460 | |
| 5461 | |
| 5462 | |
| 5463 | |
| 5464 | |
| 5465 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5466 | inttypes.h stdint.h unistd.h |
| 5467 | do |
| 5468 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5469 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5470 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5471 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5473 | else |
| 5474 | cat >conftest.$ac_ext <<_ACEOF |
| 5475 | /* confdefs.h. */ |
| 5476 | _ACEOF |
| 5477 | cat confdefs.h >>conftest.$ac_ext |
| 5478 | cat >>conftest.$ac_ext <<_ACEOF |
| 5479 | /* end confdefs.h. */ |
| 5480 | $ac_includes_default |
| 5481 | |
| 5482 | #include <$ac_header> |
| 5483 | _ACEOF |
| 5484 | rm -f conftest.$ac_objext |
| 5485 | if { (ac_try="$ac_compile" |
| 5486 | case "(($ac_try" in |
| 5487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5488 | *) ac_try_echo=$ac_try;; |
| 5489 | esac |
| 5490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5491 | (eval "$ac_compile") 2>conftest.er1 |
| 5492 | ac_status=$? |
| 5493 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5494 | rm -f conftest.er1 |
| 5495 | cat conftest.err >&5 |
| 5496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5497 | (exit $ac_status); } && { |
| 5498 | test -z "$ac_c_werror_flag" || |
| 5499 | test ! -s conftest.err |
| 5500 | } && test -s conftest.$ac_objext; then |
| 5501 | eval "$as_ac_Header=yes" |
| 5502 | else |
| 5503 | echo "$as_me: failed program was:" >&5 |
| 5504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5505 | |
| 5506 | eval "$as_ac_Header=no" |
| 5507 | fi |
| 5508 | |
| 5509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5510 | fi |
| 5511 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5512 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5513 | echo "${ECHO_T}$ac_res" >&6; } |
| 5514 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5515 | cat >>confdefs.h <<_ACEOF |
| 5516 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5517 | _ACEOF |
| 5518 | |
| 5519 | fi |
| 5520 | |
| 5521 | done |
| 5522 | |
| 5523 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5524 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5525 | |
| 5526 | |
| 5527 | |
| 5528 | |
| 5529 | |
| 5530 | |
| 5531 | |
| 5532 | |
| 5533 | |
| 5534 | |
| 5535 | |
| 5536 | |
| 5537 | |
| 5538 | |
| 5539 | |
| 5540 | |
| 5541 | |
| 5542 | |
| 5543 | |
| 5544 | |
| 5545 | |
| 5546 | |
| 5547 | |
| 5548 | |
| 5549 | |
| 5550 | |
| 5551 | |
| 5552 | |
| 5553 | |
| 5554 | |
| 5555 | |
| 5556 | |
| 5557 | |
| 5558 | |
| 5559 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 5560 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 5561 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 5562 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5563 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5564 | |
| 5565 | |
| 5566 | |
| 5567 | |
| 5568 | |
| 5569 | |
| 5570 | |
| 5571 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5572 | |
Christian Heimes | 043d6f6 | 2008-01-07 17:19:16 +0000 | [diff] [blame] | 5573 | |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 5574 | |
| 5575 | |
Christian Heimes | bbe741d | 2008-03-28 10:53:29 +0000 | [diff] [blame] | 5576 | |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 5577 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5578 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 5579 | fcntl.h grp.h \ |
Christian Heimes | bbe741d | 2008-03-28 10:53:29 +0000 | [diff] [blame] | 5580 | ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5581 | 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] | 5582 | unistd.h utime.h \ |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 5583 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 5584 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5585 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 5586 | sys/termio.h sys/time.h \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5587 | sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
Hye-Shik Chang | 8126860 | 2004-02-02 06:05:24 +0000 | [diff] [blame] | 5588 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Christian Heimes | 043d6f6 | 2008-01-07 17:19:16 +0000 | [diff] [blame] | 5589 | bluetooth/bluetooth.h linux/tipc.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5590 | do |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5591 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5592 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5593 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5594 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5595 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5597 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5598 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5599 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5600 | echo "${ECHO_T}$ac_res" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5601 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5602 | # Is the header compilable? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5603 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5604 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5605 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5606 | /* confdefs.h. */ |
| 5607 | _ACEOF |
| 5608 | cat confdefs.h >>conftest.$ac_ext |
| 5609 | cat >>conftest.$ac_ext <<_ACEOF |
| 5610 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5611 | $ac_includes_default |
| 5612 | #include <$ac_header> |
| 5613 | _ACEOF |
| 5614 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5615 | if { (ac_try="$ac_compile" |
| 5616 | case "(($ac_try" in |
| 5617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5618 | *) ac_try_echo=$ac_try;; |
| 5619 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5621 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5622 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5624 | rm -f conftest.er1 |
| 5625 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5627 | (exit $ac_status); } && { |
| 5628 | test -z "$ac_c_werror_flag" || |
| 5629 | test ! -s conftest.err |
| 5630 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5631 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5632 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5633 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5635 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5636 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5637 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5638 | |
| 5639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5640 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5641 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5642 | |
| 5643 | # Is the header present? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5644 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5645 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5646 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5647 | /* confdefs.h. */ |
| 5648 | _ACEOF |
| 5649 | cat confdefs.h >>conftest.$ac_ext |
| 5650 | cat >>conftest.$ac_ext <<_ACEOF |
| 5651 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5652 | #include <$ac_header> |
| 5653 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5654 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5655 | case "(($ac_try" in |
| 5656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5657 | *) ac_try_echo=$ac_try;; |
| 5658 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5660 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5661 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5662 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5663 | rm -f conftest.er1 |
| 5664 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5666 | (exit $ac_status); } >/dev/null && { |
| 5667 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5668 | test ! -s conftest.err |
| 5669 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5670 | ac_header_preproc=yes |
| 5671 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5672 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5674 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5675 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5676 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5677 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5678 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5679 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5680 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5681 | |
| 5682 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5683 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5684 | yes:no: ) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5685 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5686 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5687 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5688 | 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] | 5689 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5690 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5691 | no:yes:* ) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5692 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5693 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5694 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5695 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5696 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5697 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5698 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5699 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5700 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5701 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5702 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5703 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5704 | ( cat <<\_ASBOX |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 5705 | ## -------------------------------------- ## |
| 5706 | ## Report this to http://bugs.python.org/ ## |
| 5707 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5708 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5709 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5710 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5711 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5712 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5713 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5714 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5716 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5717 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5718 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5719 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5720 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5721 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5722 | |
| 5723 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5724 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5725 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5726 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5727 | _ACEOF |
| 5728 | |
| 5729 | fi |
| 5730 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5731 | done |
| 5732 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5733 | |
| 5734 | |
| 5735 | |
| 5736 | |
| 5737 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5738 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5739 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5740 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 5741 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 5742 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5743 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5745 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5746 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5747 | /* confdefs.h. */ |
| 5748 | _ACEOF |
| 5749 | cat confdefs.h >>conftest.$ac_ext |
| 5750 | cat >>conftest.$ac_ext <<_ACEOF |
| 5751 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5752 | #include <sys/types.h> |
| 5753 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5754 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5755 | int |
| 5756 | main () |
| 5757 | { |
| 5758 | if ((DIR *) 0) |
| 5759 | return 0; |
| 5760 | ; |
| 5761 | return 0; |
| 5762 | } |
| 5763 | _ACEOF |
| 5764 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5765 | if { (ac_try="$ac_compile" |
| 5766 | case "(($ac_try" in |
| 5767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5768 | *) ac_try_echo=$ac_try;; |
| 5769 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5771 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5772 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5773 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5774 | rm -f conftest.er1 |
| 5775 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5777 | (exit $ac_status); } && { |
| 5778 | test -z "$ac_c_werror_flag" || |
| 5779 | test ! -s conftest.err |
| 5780 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5781 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5782 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5783 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5785 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5786 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5787 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5788 | |
| 5789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5790 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5791 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5792 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5793 | echo "${ECHO_T}$ac_res" >&6; } |
| 5794 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5795 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5796 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5797 | _ACEOF |
| 5798 | |
| 5799 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5800 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5801 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5802 | done |
| 5803 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 5804 | if test $ac_header_dirent = dirent.h; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5805 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5806 | 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] | 5807 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5809 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5810 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5811 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5812 | /* confdefs.h. */ |
| 5813 | _ACEOF |
| 5814 | cat confdefs.h >>conftest.$ac_ext |
| 5815 | cat >>conftest.$ac_ext <<_ACEOF |
| 5816 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5817 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5818 | /* Override any GCC internal prototype to avoid an error. |
| 5819 | Use char because int might match the return type of a GCC |
| 5820 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5821 | #ifdef __cplusplus |
| 5822 | extern "C" |
| 5823 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5824 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5825 | int |
| 5826 | main () |
| 5827 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5828 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5829 | ; |
| 5830 | return 0; |
| 5831 | } |
| 5832 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5833 | for ac_lib in '' dir; do |
| 5834 | if test -z "$ac_lib"; then |
| 5835 | ac_res="none required" |
| 5836 | else |
| 5837 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5838 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5839 | fi |
| 5840 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5841 | if { (ac_try="$ac_link" |
| 5842 | case "(($ac_try" in |
| 5843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5844 | *) ac_try_echo=$ac_try;; |
| 5845 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5847 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5848 | ac_status=$? |
| 5849 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5850 | rm -f conftest.er1 |
| 5851 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5853 | (exit $ac_status); } && { |
| 5854 | test -z "$ac_c_werror_flag" || |
| 5855 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5856 | } && test -s conftest$ac_exeext && |
| 5857 | $as_test_x conftest$ac_exeext; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5858 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5859 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5860 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5862 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5863 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5864 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5865 | |
| 5866 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5867 | conftest$ac_exeext |
| 5868 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5869 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5870 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5871 | done |
| 5872 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5873 | : |
| 5874 | else |
| 5875 | ac_cv_search_opendir=no |
| 5876 | fi |
| 5877 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5878 | LIBS=$ac_func_search_save_LIBS |
| 5879 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5880 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5881 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5882 | ac_res=$ac_cv_search_opendir |
| 5883 | if test "$ac_res" != no; then |
| 5884 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5885 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5886 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5887 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5888 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5889 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5890 | 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] | 5891 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5893 | else |
| 5894 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5895 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5896 | /* confdefs.h. */ |
| 5897 | _ACEOF |
| 5898 | cat confdefs.h >>conftest.$ac_ext |
| 5899 | cat >>conftest.$ac_ext <<_ACEOF |
| 5900 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5901 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5902 | /* Override any GCC internal prototype to avoid an error. |
| 5903 | Use char because int might match the return type of a GCC |
| 5904 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5905 | #ifdef __cplusplus |
| 5906 | extern "C" |
| 5907 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5908 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5909 | int |
| 5910 | main () |
| 5911 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5912 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5913 | ; |
| 5914 | return 0; |
| 5915 | } |
| 5916 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5917 | for ac_lib in '' x; do |
| 5918 | if test -z "$ac_lib"; then |
| 5919 | ac_res="none required" |
| 5920 | else |
| 5921 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5922 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5923 | fi |
| 5924 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5925 | if { (ac_try="$ac_link" |
| 5926 | case "(($ac_try" in |
| 5927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5928 | *) ac_try_echo=$ac_try;; |
| 5929 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5931 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5932 | ac_status=$? |
| 5933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5934 | rm -f conftest.er1 |
| 5935 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5937 | (exit $ac_status); } && { |
| 5938 | test -z "$ac_c_werror_flag" || |
| 5939 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5940 | } && test -s conftest$ac_exeext && |
| 5941 | $as_test_x conftest$ac_exeext; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5942 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5943 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5944 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5946 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5947 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5948 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5949 | |
| 5950 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5951 | conftest$ac_exeext |
| 5952 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5953 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5954 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5955 | done |
| 5956 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5957 | : |
| 5958 | else |
| 5959 | ac_cv_search_opendir=no |
| 5960 | fi |
| 5961 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5962 | LIBS=$ac_func_search_save_LIBS |
| 5963 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5964 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5965 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5966 | ac_res=$ac_cv_search_opendir |
| 5967 | if test "$ac_res" != no; then |
| 5968 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5969 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5970 | fi |
| 5971 | |
| 5972 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5973 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5974 | { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 5975 | 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] | 5976 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 5977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5978 | else |
| 5979 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5980 | /* confdefs.h. */ |
| 5981 | _ACEOF |
| 5982 | cat confdefs.h >>conftest.$ac_ext |
| 5983 | cat >>conftest.$ac_ext <<_ACEOF |
| 5984 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5985 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5986 | int |
| 5987 | main () |
| 5988 | { |
| 5989 | return makedev(0, 0); |
| 5990 | ; |
| 5991 | return 0; |
| 5992 | } |
| 5993 | _ACEOF |
| 5994 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5995 | if { (ac_try="$ac_link" |
| 5996 | case "(($ac_try" in |
| 5997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5998 | *) ac_try_echo=$ac_try;; |
| 5999 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6001 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6002 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6004 | rm -f conftest.er1 |
| 6005 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6007 | (exit $ac_status); } && { |
| 6008 | test -z "$ac_c_werror_flag" || |
| 6009 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6010 | } && test -s conftest$ac_exeext && |
| 6011 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6012 | ac_cv_header_sys_types_h_makedev=yes |
| 6013 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6014 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6016 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6017 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6018 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6019 | |
| 6020 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6021 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6022 | |
| 6023 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6024 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 6025 | 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] | 6026 | |
| 6027 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 6028 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6029 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6030 | 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] | 6031 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6033 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6034 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6035 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6036 | else |
| 6037 | # Is the header compilable? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6038 | { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 6039 | 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] | 6040 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6041 | /* confdefs.h. */ |
| 6042 | _ACEOF |
| 6043 | cat confdefs.h >>conftest.$ac_ext |
| 6044 | cat >>conftest.$ac_ext <<_ACEOF |
| 6045 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6046 | $ac_includes_default |
| 6047 | #include <sys/mkdev.h> |
| 6048 | _ACEOF |
| 6049 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6050 | if { (ac_try="$ac_compile" |
| 6051 | case "(($ac_try" in |
| 6052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6053 | *) ac_try_echo=$ac_try;; |
| 6054 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6056 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6057 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6059 | rm -f conftest.er1 |
| 6060 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6062 | (exit $ac_status); } && { |
| 6063 | test -z "$ac_c_werror_flag" || |
| 6064 | test ! -s conftest.err |
| 6065 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6066 | ac_header_compiler=yes |
| 6067 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6068 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6070 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6071 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6072 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6073 | |
| 6074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6075 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6076 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6077 | |
| 6078 | # Is the header present? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6079 | { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 6080 | 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] | 6081 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6082 | /* confdefs.h. */ |
| 6083 | _ACEOF |
| 6084 | cat confdefs.h >>conftest.$ac_ext |
| 6085 | cat >>conftest.$ac_ext <<_ACEOF |
| 6086 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6087 | #include <sys/mkdev.h> |
| 6088 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6089 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6090 | case "(($ac_try" in |
| 6091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6092 | *) ac_try_echo=$ac_try;; |
| 6093 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6095 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6096 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6097 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6098 | rm -f conftest.er1 |
| 6099 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6101 | (exit $ac_status); } >/dev/null && { |
| 6102 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6103 | test ! -s conftest.err |
| 6104 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6105 | ac_header_preproc=yes |
| 6106 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6107 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6109 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6110 | ac_header_preproc=no |
| 6111 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6112 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6113 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6114 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6115 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6116 | |
| 6117 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6118 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6119 | yes:no: ) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6120 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6121 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6122 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 6123 | 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] | 6124 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6125 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6126 | no:yes:* ) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6127 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 6128 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 6129 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 6130 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 6131 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 6132 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 6133 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6134 | echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6135 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 6136 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 6137 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 6138 | echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6139 | ( cat <<\_ASBOX |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 6140 | ## -------------------------------------- ## |
| 6141 | ## Report this to http://bugs.python.org/ ## |
| 6142 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6143 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6144 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6145 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6146 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6147 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6148 | 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] | 6149 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6151 | else |
| 6152 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 6153 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6154 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6155 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6156 | |
| 6157 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6158 | if test $ac_cv_header_sys_mkdev_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6159 | |
| 6160 | cat >>confdefs.h <<\_ACEOF |
| 6161 | #define MAJOR_IN_MKDEV 1 |
| 6162 | _ACEOF |
| 6163 | |
| 6164 | fi |
| 6165 | |
| 6166 | |
| 6167 | |
| 6168 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 6169 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6170 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6171 | 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] | 6172 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6174 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6175 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6176 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6177 | else |
| 6178 | # Is the header compilable? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6179 | { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 6180 | 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] | 6181 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6182 | /* confdefs.h. */ |
| 6183 | _ACEOF |
| 6184 | cat confdefs.h >>conftest.$ac_ext |
| 6185 | cat >>conftest.$ac_ext <<_ACEOF |
| 6186 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6187 | $ac_includes_default |
| 6188 | #include <sys/sysmacros.h> |
| 6189 | _ACEOF |
| 6190 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6191 | if { (ac_try="$ac_compile" |
| 6192 | case "(($ac_try" in |
| 6193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6194 | *) ac_try_echo=$ac_try;; |
| 6195 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6197 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6198 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6199 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6200 | rm -f conftest.er1 |
| 6201 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6203 | (exit $ac_status); } && { |
| 6204 | test -z "$ac_c_werror_flag" || |
| 6205 | test ! -s conftest.err |
| 6206 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6207 | ac_header_compiler=yes |
| 6208 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6209 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6211 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6212 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6213 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6214 | |
| 6215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6216 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6217 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6218 | |
| 6219 | # Is the header present? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6220 | { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 6221 | 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] | 6222 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6223 | /* confdefs.h. */ |
| 6224 | _ACEOF |
| 6225 | cat confdefs.h >>conftest.$ac_ext |
| 6226 | cat >>conftest.$ac_ext <<_ACEOF |
| 6227 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6228 | #include <sys/sysmacros.h> |
| 6229 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6230 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6231 | case "(($ac_try" in |
| 6232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6233 | *) ac_try_echo=$ac_try;; |
| 6234 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6236 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6237 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6238 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6239 | rm -f conftest.er1 |
| 6240 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6242 | (exit $ac_status); } >/dev/null && { |
| 6243 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6244 | test ! -s conftest.err |
| 6245 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6246 | ac_header_preproc=yes |
| 6247 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6248 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6250 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6251 | ac_header_preproc=no |
| 6252 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6253 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6254 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6255 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6256 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6257 | |
| 6258 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6259 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6260 | yes:no: ) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6261 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6262 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6263 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 6264 | 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] | 6265 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6266 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6267 | no:yes:* ) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6268 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 6269 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 6270 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 6271 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 6272 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 6273 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 6274 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6275 | echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6276 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 6277 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 6278 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 6279 | echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6280 | ( cat <<\_ASBOX |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 6281 | ## -------------------------------------- ## |
| 6282 | ## Report this to http://bugs.python.org/ ## |
| 6283 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6284 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6285 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6286 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6287 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6288 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6289 | 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] | 6290 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6292 | else |
| 6293 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 6294 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6295 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6296 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6297 | |
| 6298 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6299 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6300 | |
| 6301 | cat >>confdefs.h <<\_ACEOF |
| 6302 | #define MAJOR_IN_SYSMACROS 1 |
| 6303 | _ACEOF |
| 6304 | |
| 6305 | fi |
| 6306 | |
| 6307 | |
| 6308 | fi |
| 6309 | fi |
| 6310 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6311 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6312 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6313 | |
| 6314 | for ac_header in term.h |
| 6315 | do |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6316 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6317 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6318 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6319 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6321 | else |
| 6322 | cat >conftest.$ac_ext <<_ACEOF |
| 6323 | /* confdefs.h. */ |
| 6324 | _ACEOF |
| 6325 | cat confdefs.h >>conftest.$ac_ext |
| 6326 | cat >>conftest.$ac_ext <<_ACEOF |
| 6327 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6328 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6329 | #ifdef HAVE_CURSES_H |
| 6330 | #include <curses.h> |
| 6331 | #endif |
| 6332 | |
| 6333 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6334 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6335 | _ACEOF |
| 6336 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6337 | if { (ac_try="$ac_compile" |
| 6338 | case "(($ac_try" in |
| 6339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6340 | *) ac_try_echo=$ac_try;; |
| 6341 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6343 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6344 | ac_status=$? |
| 6345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6346 | rm -f conftest.er1 |
| 6347 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6349 | (exit $ac_status); } && { |
| 6350 | test -z "$ac_c_werror_flag" || |
| 6351 | test ! -s conftest.err |
| 6352 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6353 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6354 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6355 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6357 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6358 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6359 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6360 | |
| 6361 | 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] | 6362 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6363 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6364 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6365 | echo "${ECHO_T}$ac_res" >&6; } |
| 6366 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6367 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6368 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6369 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6370 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6371 | fi |
| 6372 | |
| 6373 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6374 | |
| 6375 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6376 | # On Linux, netlink.h requires asm/types.h |
| 6377 | |
| 6378 | for ac_header in linux/netlink.h |
| 6379 | do |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6380 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6381 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6382 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6383 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6385 | else |
| 6386 | cat >conftest.$ac_ext <<_ACEOF |
| 6387 | /* confdefs.h. */ |
| 6388 | _ACEOF |
| 6389 | cat confdefs.h >>conftest.$ac_ext |
| 6390 | cat >>conftest.$ac_ext <<_ACEOF |
| 6391 | /* end confdefs.h. */ |
| 6392 | |
| 6393 | #ifdef HAVE_ASM_TYPES_H |
| 6394 | #include <asm/types.h> |
| 6395 | #endif |
| 6396 | #ifdef HAVE_SYS_SOCKET_H |
| 6397 | #include <sys/socket.h> |
| 6398 | #endif |
| 6399 | |
| 6400 | |
| 6401 | #include <$ac_header> |
| 6402 | _ACEOF |
| 6403 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6404 | if { (ac_try="$ac_compile" |
| 6405 | case "(($ac_try" in |
| 6406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6407 | *) ac_try_echo=$ac_try;; |
| 6408 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6410 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6411 | ac_status=$? |
| 6412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6413 | rm -f conftest.er1 |
| 6414 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6416 | (exit $ac_status); } && { |
| 6417 | test -z "$ac_c_werror_flag" || |
| 6418 | test ! -s conftest.err |
| 6419 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6420 | eval "$as_ac_Header=yes" |
| 6421 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6422 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6424 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6425 | eval "$as_ac_Header=no" |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6426 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6427 | |
| 6428 | 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] | 6429 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6430 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6431 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6432 | echo "${ECHO_T}$ac_res" >&6; } |
| 6433 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6434 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6435 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6436 | _ACEOF |
| 6437 | |
| 6438 | fi |
| 6439 | |
| 6440 | done |
| 6441 | |
| 6442 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6443 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6444 | was_it_defined=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6445 | { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 6446 | 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] | 6447 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6448 | /* confdefs.h. */ |
| 6449 | _ACEOF |
| 6450 | cat confdefs.h >>conftest.$ac_ext |
| 6451 | cat >>conftest.$ac_ext <<_ACEOF |
| 6452 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6453 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6454 | |
| 6455 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6456 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6457 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6458 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6459 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6460 | |
| 6461 | |
| 6462 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6463 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6464 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6465 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6466 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6467 | fi |
| 6468 | rm -f conftest* |
| 6469 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6470 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 6471 | echo "${ECHO_T}$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6472 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6473 | # Check whether using makedev requires defining _OSF_SOURCE |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6474 | { echo "$as_me:$LINENO: checking for makedev" >&5 |
| 6475 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6476 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6477 | /* confdefs.h. */ |
| 6478 | _ACEOF |
| 6479 | cat confdefs.h >>conftest.$ac_ext |
| 6480 | cat >>conftest.$ac_ext <<_ACEOF |
| 6481 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6482 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6483 | int |
| 6484 | main () |
| 6485 | { |
| 6486 | makedev(0, 0) |
| 6487 | ; |
| 6488 | return 0; |
| 6489 | } |
| 6490 | _ACEOF |
| 6491 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6492 | if { (ac_try="$ac_link" |
| 6493 | case "(($ac_try" in |
| 6494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6495 | *) ac_try_echo=$ac_try;; |
| 6496 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6498 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6499 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6500 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6501 | rm -f conftest.er1 |
| 6502 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6504 | (exit $ac_status); } && { |
| 6505 | test -z "$ac_c_werror_flag" || |
| 6506 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6507 | } && test -s conftest$ac_exeext && |
| 6508 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6509 | ac_cv_has_makedev=yes |
| 6510 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6511 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6513 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6514 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6515 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6516 | |
| 6517 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6518 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6519 | if test "$ac_cv_has_makedev" = "no"; then |
| 6520 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 6521 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6522 | /* confdefs.h. */ |
| 6523 | _ACEOF |
| 6524 | cat confdefs.h >>conftest.$ac_ext |
| 6525 | cat >>conftest.$ac_ext <<_ACEOF |
| 6526 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6527 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6528 | #define _OSF_SOURCE 1 |
| 6529 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6530 | |
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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6552 | (exit $ac_status); } && { |
| 6553 | test -z "$ac_c_werror_flag" || |
| 6554 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +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 | 1914228 | 2009-07-17 23:11:52 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6562 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6563 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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" = "yes"; then |
| 6568 | |
| 6569 | cat >>confdefs.h <<\_ACEOF |
| 6570 | #define _OSF_SOURCE 1 |
| 6571 | _ACEOF |
| 6572 | |
| 6573 | fi |
| 6574 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6575 | { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 6576 | echo "${ECHO_T}$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6577 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6578 | |
| 6579 | cat >>confdefs.h <<\_ACEOF |
| 6580 | #define HAVE_MAKEDEV 1 |
| 6581 | _ACEOF |
| 6582 | |
| 6583 | fi |
| 6584 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6585 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6586 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6587 | # defined, but the compiler does not support pragma redefine_extname, |
| 6588 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6589 | # structures (such as rlimit64) without declaring them. As a |
| 6590 | # work-around, disable LFS on such configurations |
| 6591 | |
| 6592 | use_lfs=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6593 | { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 6594 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6595 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6596 | /* confdefs.h. */ |
| 6597 | _ACEOF |
| 6598 | cat confdefs.h >>conftest.$ac_ext |
| 6599 | cat >>conftest.$ac_ext <<_ACEOF |
| 6600 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6601 | |
| 6602 | #define _LARGEFILE_SOURCE 1 |
| 6603 | #define _FILE_OFFSET_BITS 64 |
| 6604 | #include <sys/resource.h> |
| 6605 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6606 | int |
| 6607 | main () |
| 6608 | { |
| 6609 | struct rlimit foo; |
| 6610 | ; |
| 6611 | return 0; |
| 6612 | } |
| 6613 | _ACEOF |
| 6614 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6615 | if { (ac_try="$ac_compile" |
| 6616 | case "(($ac_try" in |
| 6617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6618 | *) ac_try_echo=$ac_try;; |
| 6619 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6621 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6622 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6624 | rm -f conftest.er1 |
| 6625 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6627 | (exit $ac_status); } && { |
| 6628 | test -z "$ac_c_werror_flag" || |
| 6629 | test ! -s conftest.err |
| 6630 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6631 | sol_lfs_bug=no |
| 6632 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6633 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6635 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6636 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6637 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6638 | |
| 6639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6640 | { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 6641 | echo "${ECHO_T}$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6642 | if test "$sol_lfs_bug" = "yes"; then |
| 6643 | use_lfs=no |
| 6644 | fi |
| 6645 | |
| 6646 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6647 | # Two defines needed to enable largefile support on various platforms |
| 6648 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6649 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6650 | cat >>confdefs.h <<\_ACEOF |
| 6651 | #define _LARGEFILE_SOURCE 1 |
| 6652 | _ACEOF |
| 6653 | |
| 6654 | |
| 6655 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6656 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6657 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6658 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6659 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6660 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6661 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6662 | cat >> confdefs.h <<\EOF |
| 6663 | #if defined(SCO_DS) |
| 6664 | #undef _OFF_T |
| 6665 | #endif |
| 6666 | EOF |
| 6667 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6668 | # Type availability checks |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6669 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 6670 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6671 | if test "${ac_cv_type_mode_t+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6673 | else |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6674 | cat >conftest.$ac_ext <<_ACEOF |
| 6675 | /* confdefs.h. */ |
| 6676 | _ACEOF |
| 6677 | cat confdefs.h >>conftest.$ac_ext |
| 6678 | cat >>conftest.$ac_ext <<_ACEOF |
| 6679 | /* end confdefs.h. */ |
| 6680 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6681 | typedef mode_t ac__type_new_; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6682 | int |
| 6683 | main () |
| 6684 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6685 | if ((ac__type_new_ *) 0) |
| 6686 | return 0; |
| 6687 | if (sizeof (ac__type_new_)) |
| 6688 | return 0; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6689 | ; |
| 6690 | return 0; |
| 6691 | } |
| 6692 | _ACEOF |
| 6693 | rm -f conftest.$ac_objext |
| 6694 | if { (ac_try="$ac_compile" |
| 6695 | case "(($ac_try" in |
| 6696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6697 | *) ac_try_echo=$ac_try;; |
| 6698 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6700 | (eval "$ac_compile") 2>conftest.er1 |
| 6701 | ac_status=$? |
| 6702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6703 | rm -f conftest.er1 |
| 6704 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6706 | (exit $ac_status); } && { |
| 6707 | test -z "$ac_c_werror_flag" || |
| 6708 | test ! -s conftest.err |
| 6709 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6710 | ac_cv_type_mode_t=yes |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6711 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6712 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6714 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6715 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6716 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6717 | |
| 6718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6719 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6720 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 6721 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
| 6722 | if test $ac_cv_type_mode_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6723 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6724 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6725 | |
| 6726 | cat >>confdefs.h <<_ACEOF |
| 6727 | #define mode_t int |
| 6728 | _ACEOF |
| 6729 | |
| 6730 | fi |
| 6731 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6732 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 6733 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6734 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6736 | else |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6737 | cat >conftest.$ac_ext <<_ACEOF |
| 6738 | /* confdefs.h. */ |
| 6739 | _ACEOF |
| 6740 | cat confdefs.h >>conftest.$ac_ext |
| 6741 | cat >>conftest.$ac_ext <<_ACEOF |
| 6742 | /* end confdefs.h. */ |
| 6743 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6744 | typedef off_t ac__type_new_; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6745 | int |
| 6746 | main () |
| 6747 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6748 | if ((ac__type_new_ *) 0) |
| 6749 | return 0; |
| 6750 | if (sizeof (ac__type_new_)) |
| 6751 | return 0; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6752 | ; |
| 6753 | return 0; |
| 6754 | } |
| 6755 | _ACEOF |
| 6756 | rm -f conftest.$ac_objext |
| 6757 | if { (ac_try="$ac_compile" |
| 6758 | case "(($ac_try" in |
| 6759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6760 | *) ac_try_echo=$ac_try;; |
| 6761 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6763 | (eval "$ac_compile") 2>conftest.er1 |
| 6764 | ac_status=$? |
| 6765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6766 | rm -f conftest.er1 |
| 6767 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6769 | (exit $ac_status); } && { |
| 6770 | test -z "$ac_c_werror_flag" || |
| 6771 | test ! -s conftest.err |
| 6772 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6773 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6774 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6775 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6776 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6777 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6778 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6779 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6780 | |
| 6781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6782 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6783 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 6784 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 6785 | if test $ac_cv_type_off_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6786 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6787 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6788 | |
| 6789 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6790 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6791 | _ACEOF |
| 6792 | |
| 6793 | fi |
| 6794 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6795 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 6796 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6797 | if test "${ac_cv_type_pid_t+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6799 | else |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6800 | cat >conftest.$ac_ext <<_ACEOF |
| 6801 | /* confdefs.h. */ |
| 6802 | _ACEOF |
| 6803 | cat confdefs.h >>conftest.$ac_ext |
| 6804 | cat >>conftest.$ac_ext <<_ACEOF |
| 6805 | /* end confdefs.h. */ |
| 6806 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6807 | typedef pid_t ac__type_new_; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6808 | int |
| 6809 | main () |
| 6810 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6811 | if ((ac__type_new_ *) 0) |
| 6812 | return 0; |
| 6813 | if (sizeof (ac__type_new_)) |
| 6814 | return 0; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6815 | ; |
| 6816 | return 0; |
| 6817 | } |
| 6818 | _ACEOF |
| 6819 | rm -f conftest.$ac_objext |
| 6820 | if { (ac_try="$ac_compile" |
| 6821 | case "(($ac_try" in |
| 6822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6823 | *) ac_try_echo=$ac_try;; |
| 6824 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6826 | (eval "$ac_compile") 2>conftest.er1 |
| 6827 | ac_status=$? |
| 6828 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6829 | rm -f conftest.er1 |
| 6830 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6832 | (exit $ac_status); } && { |
| 6833 | test -z "$ac_c_werror_flag" || |
| 6834 | test ! -s conftest.err |
| 6835 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6836 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6837 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6838 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6840 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6841 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6842 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6843 | |
| 6844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6845 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6846 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 6847 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 6848 | if test $ac_cv_type_pid_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6849 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6850 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6851 | |
| 6852 | cat >>confdefs.h <<_ACEOF |
| 6853 | #define pid_t int |
| 6854 | _ACEOF |
| 6855 | |
| 6856 | fi |
| 6857 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6858 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 6859 | 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] | 6860 | if test "${ac_cv_type_signal+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6862 | else |
| 6863 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6864 | /* confdefs.h. */ |
| 6865 | _ACEOF |
| 6866 | cat confdefs.h >>conftest.$ac_ext |
| 6867 | cat >>conftest.$ac_ext <<_ACEOF |
| 6868 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6869 | #include <sys/types.h> |
| 6870 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6871 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6872 | int |
| 6873 | main () |
| 6874 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6875 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6876 | ; |
| 6877 | return 0; |
| 6878 | } |
| 6879 | _ACEOF |
| 6880 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6881 | if { (ac_try="$ac_compile" |
| 6882 | case "(($ac_try" in |
| 6883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6884 | *) ac_try_echo=$ac_try;; |
| 6885 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6887 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6888 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6889 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6890 | rm -f conftest.er1 |
| 6891 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6893 | (exit $ac_status); } && { |
| 6894 | test -z "$ac_c_werror_flag" || |
| 6895 | test ! -s conftest.err |
| 6896 | } && test -s conftest.$ac_objext; then |
| 6897 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6898 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6899 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6901 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6902 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6903 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6904 | |
| 6905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6906 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6907 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 6908 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6909 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6910 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6911 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6912 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6913 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6914 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6915 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 6916 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6917 | if test "${ac_cv_type_size_t+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6919 | else |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6920 | cat >conftest.$ac_ext <<_ACEOF |
| 6921 | /* confdefs.h. */ |
| 6922 | _ACEOF |
| 6923 | cat confdefs.h >>conftest.$ac_ext |
| 6924 | cat >>conftest.$ac_ext <<_ACEOF |
| 6925 | /* end confdefs.h. */ |
| 6926 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6927 | typedef size_t ac__type_new_; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6928 | int |
| 6929 | main () |
| 6930 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6931 | if ((ac__type_new_ *) 0) |
| 6932 | return 0; |
| 6933 | if (sizeof (ac__type_new_)) |
| 6934 | return 0; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6935 | ; |
| 6936 | return 0; |
| 6937 | } |
| 6938 | _ACEOF |
| 6939 | rm -f conftest.$ac_objext |
| 6940 | if { (ac_try="$ac_compile" |
| 6941 | case "(($ac_try" in |
| 6942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6943 | *) ac_try_echo=$ac_try;; |
| 6944 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6946 | (eval "$ac_compile") 2>conftest.er1 |
| 6947 | ac_status=$? |
| 6948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6949 | rm -f conftest.er1 |
| 6950 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6952 | (exit $ac_status); } && { |
| 6953 | test -z "$ac_c_werror_flag" || |
| 6954 | test ! -s conftest.err |
| 6955 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6956 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6957 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6958 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6960 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6961 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6962 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6963 | |
| 6964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6965 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6966 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 6967 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 6968 | if test $ac_cv_type_size_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6969 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6970 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6971 | |
| 6972 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6973 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6974 | _ACEOF |
| 6975 | |
| 6976 | fi |
| 6977 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6978 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 6979 | 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] | 6980 | if test "${ac_cv_type_uid_t+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 6981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6982 | else |
| 6983 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6984 | /* confdefs.h. */ |
| 6985 | _ACEOF |
| 6986 | cat confdefs.h >>conftest.$ac_ext |
| 6987 | cat >>conftest.$ac_ext <<_ACEOF |
| 6988 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6989 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6990 | |
| 6991 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6992 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6993 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6994 | ac_cv_type_uid_t=yes |
| 6995 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6996 | ac_cv_type_uid_t=no |
| 6997 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6998 | rm -f conftest* |
| 6999 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7000 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7001 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 7002 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7003 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7004 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7005 | cat >>confdefs.h <<\_ACEOF |
| 7006 | #define uid_t int |
| 7007 | _ACEOF |
| 7008 | |
| 7009 | |
| 7010 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7011 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7012 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7013 | |
| 7014 | fi |
| 7015 | |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7016 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7017 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 7018 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7019 | if test "${ac_cv_c_uint32_t+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7021 | else |
| 7022 | ac_cv_c_uint32_t=no |
| 7023 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
| 7024 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7025 | cat >conftest.$ac_ext <<_ACEOF |
| 7026 | /* confdefs.h. */ |
| 7027 | _ACEOF |
| 7028 | cat confdefs.h >>conftest.$ac_ext |
| 7029 | cat >>conftest.$ac_ext <<_ACEOF |
| 7030 | /* end confdefs.h. */ |
| 7031 | $ac_includes_default |
| 7032 | int |
| 7033 | main () |
| 7034 | { |
| 7035 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
| 7036 | test_array [0] = 0 |
| 7037 | |
| 7038 | ; |
| 7039 | return 0; |
| 7040 | } |
| 7041 | _ACEOF |
| 7042 | rm -f conftest.$ac_objext |
| 7043 | if { (ac_try="$ac_compile" |
| 7044 | case "(($ac_try" in |
| 7045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7046 | *) ac_try_echo=$ac_try;; |
| 7047 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7049 | (eval "$ac_compile") 2>conftest.er1 |
| 7050 | ac_status=$? |
| 7051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7052 | rm -f conftest.er1 |
| 7053 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7055 | (exit $ac_status); } && { |
| 7056 | test -z "$ac_c_werror_flag" || |
| 7057 | test ! -s conftest.err |
| 7058 | } && test -s conftest.$ac_objext; then |
| 7059 | case $ac_type in |
| 7060 | uint32_t) ac_cv_c_uint32_t=yes ;; |
| 7061 | *) ac_cv_c_uint32_t=$ac_type ;; |
| 7062 | esac |
| 7063 | |
| 7064 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7065 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7067 | |
| 7068 | |
| 7069 | fi |
| 7070 | |
| 7071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7072 | test "$ac_cv_c_uint32_t" != no && break |
| 7073 | done |
| 7074 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7075 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
| 7076 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7077 | case $ac_cv_c_uint32_t in #( |
| 7078 | no|yes) ;; #( |
| 7079 | *) |
| 7080 | |
| 7081 | cat >>confdefs.h <<\_ACEOF |
| 7082 | #define _UINT32_T 1 |
| 7083 | _ACEOF |
| 7084 | |
| 7085 | |
| 7086 | cat >>confdefs.h <<_ACEOF |
| 7087 | #define uint32_t $ac_cv_c_uint32_t |
| 7088 | _ACEOF |
| 7089 | ;; |
| 7090 | esac |
| 7091 | |
| 7092 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7093 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 7094 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7095 | if test "${ac_cv_c_uint64_t+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7097 | else |
| 7098 | ac_cv_c_uint64_t=no |
| 7099 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ |
| 7100 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7101 | cat >conftest.$ac_ext <<_ACEOF |
| 7102 | /* confdefs.h. */ |
| 7103 | _ACEOF |
| 7104 | cat confdefs.h >>conftest.$ac_ext |
| 7105 | cat >>conftest.$ac_ext <<_ACEOF |
| 7106 | /* end confdefs.h. */ |
| 7107 | $ac_includes_default |
| 7108 | int |
| 7109 | main () |
| 7110 | { |
| 7111 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
| 7112 | test_array [0] = 0 |
| 7113 | |
| 7114 | ; |
| 7115 | return 0; |
| 7116 | } |
| 7117 | _ACEOF |
| 7118 | rm -f conftest.$ac_objext |
| 7119 | if { (ac_try="$ac_compile" |
| 7120 | case "(($ac_try" in |
| 7121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7122 | *) ac_try_echo=$ac_try;; |
| 7123 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7125 | (eval "$ac_compile") 2>conftest.er1 |
| 7126 | ac_status=$? |
| 7127 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7128 | rm -f conftest.er1 |
| 7129 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7131 | (exit $ac_status); } && { |
| 7132 | test -z "$ac_c_werror_flag" || |
| 7133 | test ! -s conftest.err |
| 7134 | } && test -s conftest.$ac_objext; then |
| 7135 | case $ac_type in |
| 7136 | uint64_t) ac_cv_c_uint64_t=yes ;; |
| 7137 | *) ac_cv_c_uint64_t=$ac_type ;; |
| 7138 | esac |
| 7139 | |
| 7140 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7141 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7143 | |
| 7144 | |
| 7145 | fi |
| 7146 | |
| 7147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7148 | test "$ac_cv_c_uint64_t" != no && break |
| 7149 | done |
| 7150 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7151 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
| 7152 | echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7153 | case $ac_cv_c_uint64_t in #( |
| 7154 | no|yes) ;; #( |
| 7155 | *) |
| 7156 | |
| 7157 | cat >>confdefs.h <<\_ACEOF |
| 7158 | #define _UINT64_T 1 |
| 7159 | _ACEOF |
| 7160 | |
| 7161 | |
| 7162 | cat >>confdefs.h <<_ACEOF |
| 7163 | #define uint64_t $ac_cv_c_uint64_t |
| 7164 | _ACEOF |
| 7165 | ;; |
| 7166 | esac |
| 7167 | |
| 7168 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7169 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
| 7170 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7171 | if test "${ac_cv_c_int32_t+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7173 | else |
| 7174 | ac_cv_c_int32_t=no |
| 7175 | for ac_type in 'int32_t' 'int' 'long int' \ |
| 7176 | 'long long int' 'short int' 'signed char'; do |
| 7177 | cat >conftest.$ac_ext <<_ACEOF |
| 7178 | /* confdefs.h. */ |
| 7179 | _ACEOF |
| 7180 | cat confdefs.h >>conftest.$ac_ext |
| 7181 | cat >>conftest.$ac_ext <<_ACEOF |
| 7182 | /* end confdefs.h. */ |
| 7183 | $ac_includes_default |
| 7184 | int |
| 7185 | main () |
| 7186 | { |
| 7187 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
| 7188 | test_array [0] = 0 |
| 7189 | |
| 7190 | ; |
| 7191 | return 0; |
| 7192 | } |
| 7193 | _ACEOF |
| 7194 | rm -f conftest.$ac_objext |
| 7195 | if { (ac_try="$ac_compile" |
| 7196 | case "(($ac_try" in |
| 7197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7198 | *) ac_try_echo=$ac_try;; |
| 7199 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7201 | (eval "$ac_compile") 2>conftest.er1 |
| 7202 | ac_status=$? |
| 7203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7204 | rm -f conftest.er1 |
| 7205 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7207 | (exit $ac_status); } && { |
| 7208 | test -z "$ac_c_werror_flag" || |
| 7209 | test ! -s conftest.err |
| 7210 | } && test -s conftest.$ac_objext; then |
| 7211 | cat >conftest.$ac_ext <<_ACEOF |
| 7212 | /* confdefs.h. */ |
| 7213 | _ACEOF |
| 7214 | cat confdefs.h >>conftest.$ac_ext |
| 7215 | cat >>conftest.$ac_ext <<_ACEOF |
| 7216 | /* end confdefs.h. */ |
| 7217 | $ac_includes_default |
| 7218 | int |
| 7219 | main () |
| 7220 | { |
| 7221 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7222 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7223 | test_array [0] = 0 |
| 7224 | |
| 7225 | ; |
| 7226 | return 0; |
| 7227 | } |
| 7228 | _ACEOF |
| 7229 | rm -f conftest.$ac_objext |
| 7230 | if { (ac_try="$ac_compile" |
| 7231 | case "(($ac_try" in |
| 7232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7233 | *) ac_try_echo=$ac_try;; |
| 7234 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7236 | (eval "$ac_compile") 2>conftest.er1 |
| 7237 | ac_status=$? |
| 7238 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7239 | rm -f conftest.er1 |
| 7240 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7242 | (exit $ac_status); } && { |
| 7243 | test -z "$ac_c_werror_flag" || |
| 7244 | test ! -s conftest.err |
| 7245 | } && test -s conftest.$ac_objext; then |
| 7246 | : |
| 7247 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7248 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7250 | |
| 7251 | case $ac_type in |
| 7252 | int32_t) ac_cv_c_int32_t=yes ;; |
| 7253 | *) ac_cv_c_int32_t=$ac_type ;; |
| 7254 | esac |
| 7255 | |
| 7256 | fi |
| 7257 | |
| 7258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7259 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7260 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7262 | |
| 7263 | |
| 7264 | fi |
| 7265 | |
| 7266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7267 | test "$ac_cv_c_int32_t" != no && break |
| 7268 | done |
| 7269 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7270 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
| 7271 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7272 | case $ac_cv_c_int32_t in #( |
| 7273 | no|yes) ;; #( |
| 7274 | *) |
| 7275 | |
| 7276 | cat >>confdefs.h <<_ACEOF |
| 7277 | #define int32_t $ac_cv_c_int32_t |
| 7278 | _ACEOF |
| 7279 | ;; |
| 7280 | esac |
| 7281 | |
| 7282 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7283 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 7284 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7285 | if test "${ac_cv_c_int64_t+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7287 | else |
| 7288 | ac_cv_c_int64_t=no |
| 7289 | for ac_type in 'int64_t' 'int' 'long int' \ |
| 7290 | 'long long int' 'short int' 'signed char'; do |
| 7291 | cat >conftest.$ac_ext <<_ACEOF |
| 7292 | /* confdefs.h. */ |
| 7293 | _ACEOF |
| 7294 | cat confdefs.h >>conftest.$ac_ext |
| 7295 | cat >>conftest.$ac_ext <<_ACEOF |
| 7296 | /* end confdefs.h. */ |
| 7297 | $ac_includes_default |
| 7298 | int |
| 7299 | main () |
| 7300 | { |
| 7301 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
| 7302 | test_array [0] = 0 |
| 7303 | |
| 7304 | ; |
| 7305 | return 0; |
| 7306 | } |
| 7307 | _ACEOF |
| 7308 | rm -f conftest.$ac_objext |
| 7309 | if { (ac_try="$ac_compile" |
| 7310 | case "(($ac_try" in |
| 7311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7312 | *) ac_try_echo=$ac_try;; |
| 7313 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7315 | (eval "$ac_compile") 2>conftest.er1 |
| 7316 | ac_status=$? |
| 7317 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7318 | rm -f conftest.er1 |
| 7319 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7321 | (exit $ac_status); } && { |
| 7322 | test -z "$ac_c_werror_flag" || |
| 7323 | test ! -s conftest.err |
| 7324 | } && test -s conftest.$ac_objext; then |
| 7325 | cat >conftest.$ac_ext <<_ACEOF |
| 7326 | /* confdefs.h. */ |
| 7327 | _ACEOF |
| 7328 | cat confdefs.h >>conftest.$ac_ext |
| 7329 | cat >>conftest.$ac_ext <<_ACEOF |
| 7330 | /* end confdefs.h. */ |
| 7331 | $ac_includes_default |
| 7332 | int |
| 7333 | main () |
| 7334 | { |
| 7335 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7336 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7337 | test_array [0] = 0 |
| 7338 | |
| 7339 | ; |
| 7340 | return 0; |
| 7341 | } |
| 7342 | _ACEOF |
| 7343 | rm -f conftest.$ac_objext |
| 7344 | if { (ac_try="$ac_compile" |
| 7345 | case "(($ac_try" in |
| 7346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7347 | *) ac_try_echo=$ac_try;; |
| 7348 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7350 | (eval "$ac_compile") 2>conftest.er1 |
| 7351 | ac_status=$? |
| 7352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7353 | rm -f conftest.er1 |
| 7354 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7356 | (exit $ac_status); } && { |
| 7357 | test -z "$ac_c_werror_flag" || |
| 7358 | test ! -s conftest.err |
| 7359 | } && test -s conftest.$ac_objext; then |
| 7360 | : |
| 7361 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7362 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7364 | |
| 7365 | case $ac_type in |
| 7366 | int64_t) ac_cv_c_int64_t=yes ;; |
| 7367 | *) ac_cv_c_int64_t=$ac_type ;; |
| 7368 | esac |
| 7369 | |
| 7370 | fi |
| 7371 | |
| 7372 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7373 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7374 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7376 | |
| 7377 | |
| 7378 | fi |
| 7379 | |
| 7380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7381 | test "$ac_cv_c_int64_t" != no && break |
| 7382 | done |
| 7383 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7384 | { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
| 7385 | echo "${ECHO_T}$ac_cv_c_int64_t" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7386 | case $ac_cv_c_int64_t in #( |
| 7387 | no|yes) ;; #( |
| 7388 | *) |
| 7389 | |
| 7390 | cat >>confdefs.h <<_ACEOF |
| 7391 | #define int64_t $ac_cv_c_int64_t |
| 7392 | _ACEOF |
| 7393 | ;; |
| 7394 | esac |
| 7395 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7396 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 7397 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7398 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7400 | else |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7401 | cat >conftest.$ac_ext <<_ACEOF |
| 7402 | /* confdefs.h. */ |
| 7403 | _ACEOF |
| 7404 | cat confdefs.h >>conftest.$ac_ext |
| 7405 | cat >>conftest.$ac_ext <<_ACEOF |
| 7406 | /* end confdefs.h. */ |
| 7407 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7408 | typedef ssize_t ac__type_new_; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7409 | int |
| 7410 | main () |
| 7411 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7412 | if ((ac__type_new_ *) 0) |
| 7413 | return 0; |
| 7414 | if (sizeof (ac__type_new_)) |
| 7415 | return 0; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7416 | ; |
| 7417 | return 0; |
| 7418 | } |
| 7419 | _ACEOF |
| 7420 | rm -f conftest.$ac_objext |
| 7421 | if { (ac_try="$ac_compile" |
| 7422 | case "(($ac_try" in |
| 7423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7424 | *) ac_try_echo=$ac_try;; |
| 7425 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7427 | (eval "$ac_compile") 2>conftest.er1 |
| 7428 | ac_status=$? |
| 7429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7430 | rm -f conftest.er1 |
| 7431 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7433 | (exit $ac_status); } && { |
| 7434 | test -z "$ac_c_werror_flag" || |
| 7435 | test ! -s conftest.err |
| 7436 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7437 | ac_cv_type_ssize_t=yes |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7438 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7439 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7441 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7442 | ac_cv_type_ssize_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7443 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7444 | |
| 7445 | 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] | 7446 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7447 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 7448 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
| 7449 | if test $ac_cv_type_ssize_t = yes; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7450 | |
| 7451 | cat >>confdefs.h <<\_ACEOF |
| 7452 | #define HAVE_SSIZE_T 1 |
| 7453 | _ACEOF |
| 7454 | |
| 7455 | fi |
| 7456 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7457 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7458 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 7459 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7460 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 7461 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
| 7462 | if test "${ac_cv_type_int+set}" = set; then |
| 7463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7464 | else |
| 7465 | cat >conftest.$ac_ext <<_ACEOF |
| 7466 | /* confdefs.h. */ |
| 7467 | _ACEOF |
| 7468 | cat confdefs.h >>conftest.$ac_ext |
| 7469 | cat >>conftest.$ac_ext <<_ACEOF |
| 7470 | /* end confdefs.h. */ |
| 7471 | $ac_includes_default |
| 7472 | typedef int ac__type_new_; |
| 7473 | int |
| 7474 | main () |
| 7475 | { |
| 7476 | if ((ac__type_new_ *) 0) |
| 7477 | return 0; |
| 7478 | if (sizeof (ac__type_new_)) |
| 7479 | return 0; |
| 7480 | ; |
| 7481 | return 0; |
| 7482 | } |
| 7483 | _ACEOF |
| 7484 | rm -f conftest.$ac_objext |
| 7485 | if { (ac_try="$ac_compile" |
| 7486 | case "(($ac_try" in |
| 7487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7488 | *) ac_try_echo=$ac_try;; |
| 7489 | esac |
| 7490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7491 | (eval "$ac_compile") 2>conftest.er1 |
| 7492 | ac_status=$? |
| 7493 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7494 | rm -f conftest.er1 |
| 7495 | cat conftest.err >&5 |
| 7496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7497 | (exit $ac_status); } && { |
| 7498 | test -z "$ac_c_werror_flag" || |
| 7499 | test ! -s conftest.err |
| 7500 | } && test -s conftest.$ac_objext; then |
| 7501 | ac_cv_type_int=yes |
| 7502 | else |
| 7503 | echo "$as_me: failed program was:" >&5 |
| 7504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7505 | |
| 7506 | ac_cv_type_int=no |
| 7507 | fi |
| 7508 | |
| 7509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7510 | fi |
| 7511 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 7512 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 7513 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7514 | # The cast to long int works around a bug in the HP C Compiler |
| 7515 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7516 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7517 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7518 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 7519 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7520 | if test "${ac_cv_sizeof_int+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7522 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7523 | if test "$cross_compiling" = yes; then |
| 7524 | # Depending upon the size, compute the lo and hi bounds. |
| 7525 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7526 | /* confdefs.h. */ |
| 7527 | _ACEOF |
| 7528 | cat confdefs.h >>conftest.$ac_ext |
| 7529 | cat >>conftest.$ac_ext <<_ACEOF |
| 7530 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7531 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7532 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7533 | int |
| 7534 | main () |
| 7535 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7536 | 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] | 7537 | test_array [0] = 0 |
| 7538 | |
| 7539 | ; |
| 7540 | return 0; |
| 7541 | } |
| 7542 | _ACEOF |
| 7543 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7544 | if { (ac_try="$ac_compile" |
| 7545 | case "(($ac_try" in |
| 7546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7547 | *) ac_try_echo=$ac_try;; |
| 7548 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7550 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7551 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7552 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7553 | rm -f conftest.er1 |
| 7554 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7556 | (exit $ac_status); } && { |
| 7557 | test -z "$ac_c_werror_flag" || |
| 7558 | test ! -s conftest.err |
| 7559 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7560 | ac_lo=0 ac_mid=0 |
| 7561 | while :; do |
| 7562 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7563 | /* confdefs.h. */ |
| 7564 | _ACEOF |
| 7565 | cat confdefs.h >>conftest.$ac_ext |
| 7566 | cat >>conftest.$ac_ext <<_ACEOF |
| 7567 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7568 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7569 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7570 | int |
| 7571 | main () |
| 7572 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7573 | 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] | 7574 | test_array [0] = 0 |
| 7575 | |
| 7576 | ; |
| 7577 | return 0; |
| 7578 | } |
| 7579 | _ACEOF |
| 7580 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7581 | if { (ac_try="$ac_compile" |
| 7582 | case "(($ac_try" in |
| 7583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7584 | *) ac_try_echo=$ac_try;; |
| 7585 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7587 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7588 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7589 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7590 | rm -f conftest.er1 |
| 7591 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7593 | (exit $ac_status); } && { |
| 7594 | test -z "$ac_c_werror_flag" || |
| 7595 | test ! -s conftest.err |
| 7596 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7597 | ac_hi=$ac_mid; break |
| 7598 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7599 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7601 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7602 | ac_lo=`expr $ac_mid + 1` |
| 7603 | if test $ac_lo -le $ac_mid; then |
| 7604 | ac_lo= ac_hi= |
| 7605 | break |
| 7606 | fi |
| 7607 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7608 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7609 | |
| 7610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7611 | done |
| 7612 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7613 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7615 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7616 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7617 | /* confdefs.h. */ |
| 7618 | _ACEOF |
| 7619 | cat confdefs.h >>conftest.$ac_ext |
| 7620 | cat >>conftest.$ac_ext <<_ACEOF |
| 7621 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7622 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7623 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7624 | int |
| 7625 | main () |
| 7626 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7627 | 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] | 7628 | test_array [0] = 0 |
| 7629 | |
| 7630 | ; |
| 7631 | return 0; |
| 7632 | } |
| 7633 | _ACEOF |
| 7634 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7635 | if { (ac_try="$ac_compile" |
| 7636 | case "(($ac_try" in |
| 7637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7638 | *) ac_try_echo=$ac_try;; |
| 7639 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7641 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7642 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7644 | rm -f conftest.er1 |
| 7645 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7647 | (exit $ac_status); } && { |
| 7648 | test -z "$ac_c_werror_flag" || |
| 7649 | test ! -s conftest.err |
| 7650 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7651 | ac_hi=-1 ac_mid=-1 |
| 7652 | while :; do |
| 7653 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7654 | /* confdefs.h. */ |
| 7655 | _ACEOF |
| 7656 | cat confdefs.h >>conftest.$ac_ext |
| 7657 | cat >>conftest.$ac_ext <<_ACEOF |
| 7658 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7659 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7660 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7661 | int |
| 7662 | main () |
| 7663 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7664 | 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] | 7665 | test_array [0] = 0 |
| 7666 | |
| 7667 | ; |
| 7668 | return 0; |
| 7669 | } |
| 7670 | _ACEOF |
| 7671 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7672 | if { (ac_try="$ac_compile" |
| 7673 | case "(($ac_try" in |
| 7674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7675 | *) ac_try_echo=$ac_try;; |
| 7676 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7678 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7679 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7681 | rm -f conftest.er1 |
| 7682 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7684 | (exit $ac_status); } && { |
| 7685 | test -z "$ac_c_werror_flag" || |
| 7686 | test ! -s conftest.err |
| 7687 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7688 | ac_lo=$ac_mid; break |
| 7689 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7690 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7692 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7693 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7694 | if test $ac_mid -le $ac_hi; then |
| 7695 | ac_lo= ac_hi= |
| 7696 | break |
| 7697 | fi |
| 7698 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7699 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7700 | |
| 7701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7702 | done |
| 7703 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7704 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7706 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7707 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7708 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7709 | |
| 7710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7711 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7712 | |
| 7713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7714 | # Binary search between lo and hi bounds. |
| 7715 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7716 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7717 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7718 | /* confdefs.h. */ |
| 7719 | _ACEOF |
| 7720 | cat confdefs.h >>conftest.$ac_ext |
| 7721 | cat >>conftest.$ac_ext <<_ACEOF |
| 7722 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7723 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7724 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7725 | int |
| 7726 | main () |
| 7727 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7728 | 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] | 7729 | test_array [0] = 0 |
| 7730 | |
| 7731 | ; |
| 7732 | return 0; |
| 7733 | } |
| 7734 | _ACEOF |
| 7735 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7736 | if { (ac_try="$ac_compile" |
| 7737 | case "(($ac_try" in |
| 7738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7739 | *) ac_try_echo=$ac_try;; |
| 7740 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7742 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7743 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7745 | rm -f conftest.er1 |
| 7746 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7748 | (exit $ac_status); } && { |
| 7749 | test -z "$ac_c_werror_flag" || |
| 7750 | test ! -s conftest.err |
| 7751 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7752 | ac_hi=$ac_mid |
| 7753 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7754 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7756 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7757 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7758 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7759 | |
| 7760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7761 | done |
| 7762 | case $ac_lo in |
| 7763 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7764 | '') if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7765 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7766 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7767 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7768 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7769 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7770 | else |
| 7771 | ac_cv_sizeof_int=0 |
| 7772 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7773 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7774 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7775 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7776 | /* confdefs.h. */ |
| 7777 | _ACEOF |
| 7778 | cat confdefs.h >>conftest.$ac_ext |
| 7779 | cat >>conftest.$ac_ext <<_ACEOF |
| 7780 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7781 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7782 | typedef int ac__type_sizeof_; |
| 7783 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 7784 | 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] | 7785 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7786 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7787 | int |
| 7788 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7789 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7790 | |
| 7791 | FILE *f = fopen ("conftest.val", "w"); |
| 7792 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7793 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7794 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7795 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7796 | long int i = longval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7797 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7798 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7799 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7800 | } |
| 7801 | else |
| 7802 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7803 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7804 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7805 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7806 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7807 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7808 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7809 | |
| 7810 | ; |
| 7811 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7812 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7813 | _ACEOF |
| 7814 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7815 | if { (ac_try="$ac_link" |
| 7816 | case "(($ac_try" in |
| 7817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7818 | *) ac_try_echo=$ac_try;; |
| 7819 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7821 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7822 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7824 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7825 | { (case "(($ac_try" in |
| 7826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7827 | *) ac_try_echo=$ac_try;; |
| 7828 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7830 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7831 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7833 | (exit $ac_status); }; }; then |
| 7834 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7835 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7836 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7837 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7838 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7839 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7840 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7841 | if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7842 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7843 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7844 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7845 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7846 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7847 | else |
| 7848 | ac_cv_sizeof_int=0 |
| 7849 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7850 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7851 | 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] | 7852 | fi |
| 7853 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7854 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7855 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 7856 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7857 | |
| 7858 | |
| 7859 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7860 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7861 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7862 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7863 | |
| 7864 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7865 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 7866 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
| 7867 | if test "${ac_cv_type_long+set}" = set; then |
| 7868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7869 | else |
| 7870 | cat >conftest.$ac_ext <<_ACEOF |
| 7871 | /* confdefs.h. */ |
| 7872 | _ACEOF |
| 7873 | cat confdefs.h >>conftest.$ac_ext |
| 7874 | cat >>conftest.$ac_ext <<_ACEOF |
| 7875 | /* end confdefs.h. */ |
| 7876 | $ac_includes_default |
| 7877 | typedef long ac__type_new_; |
| 7878 | int |
| 7879 | main () |
| 7880 | { |
| 7881 | if ((ac__type_new_ *) 0) |
| 7882 | return 0; |
| 7883 | if (sizeof (ac__type_new_)) |
| 7884 | return 0; |
| 7885 | ; |
| 7886 | return 0; |
| 7887 | } |
| 7888 | _ACEOF |
| 7889 | rm -f conftest.$ac_objext |
| 7890 | if { (ac_try="$ac_compile" |
| 7891 | case "(($ac_try" in |
| 7892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7893 | *) ac_try_echo=$ac_try;; |
| 7894 | esac |
| 7895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7896 | (eval "$ac_compile") 2>conftest.er1 |
| 7897 | ac_status=$? |
| 7898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7899 | rm -f conftest.er1 |
| 7900 | cat conftest.err >&5 |
| 7901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7902 | (exit $ac_status); } && { |
| 7903 | test -z "$ac_c_werror_flag" || |
| 7904 | test ! -s conftest.err |
| 7905 | } && test -s conftest.$ac_objext; then |
| 7906 | ac_cv_type_long=yes |
| 7907 | else |
| 7908 | echo "$as_me: failed program was:" >&5 |
| 7909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7910 | |
| 7911 | ac_cv_type_long=no |
| 7912 | fi |
| 7913 | |
| 7914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7915 | fi |
| 7916 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 7917 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 7918 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7919 | # The cast to long int works around a bug in the HP C Compiler |
| 7920 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7921 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7922 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7923 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 7924 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7925 | if test "${ac_cv_sizeof_long+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7927 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7928 | if test "$cross_compiling" = yes; then |
| 7929 | # Depending upon the size, compute the lo and hi bounds. |
| 7930 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7931 | /* confdefs.h. */ |
| 7932 | _ACEOF |
| 7933 | cat confdefs.h >>conftest.$ac_ext |
| 7934 | cat >>conftest.$ac_ext <<_ACEOF |
| 7935 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7936 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7937 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7938 | int |
| 7939 | main () |
| 7940 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7941 | 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] | 7942 | test_array [0] = 0 |
| 7943 | |
| 7944 | ; |
| 7945 | return 0; |
| 7946 | } |
| 7947 | _ACEOF |
| 7948 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7949 | if { (ac_try="$ac_compile" |
| 7950 | case "(($ac_try" in |
| 7951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7952 | *) ac_try_echo=$ac_try;; |
| 7953 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7955 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7956 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7958 | rm -f conftest.er1 |
| 7959 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7961 | (exit $ac_status); } && { |
| 7962 | test -z "$ac_c_werror_flag" || |
| 7963 | test ! -s conftest.err |
| 7964 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7965 | ac_lo=0 ac_mid=0 |
| 7966 | while :; do |
| 7967 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7968 | /* confdefs.h. */ |
| 7969 | _ACEOF |
| 7970 | cat confdefs.h >>conftest.$ac_ext |
| 7971 | cat >>conftest.$ac_ext <<_ACEOF |
| 7972 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7973 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7974 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7975 | int |
| 7976 | main () |
| 7977 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7978 | 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] | 7979 | test_array [0] = 0 |
| 7980 | |
| 7981 | ; |
| 7982 | return 0; |
| 7983 | } |
| 7984 | _ACEOF |
| 7985 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7986 | if { (ac_try="$ac_compile" |
| 7987 | case "(($ac_try" in |
| 7988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7989 | *) ac_try_echo=$ac_try;; |
| 7990 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7992 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7993 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7995 | rm -f conftest.er1 |
| 7996 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 7997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7998 | (exit $ac_status); } && { |
| 7999 | test -z "$ac_c_werror_flag" || |
| 8000 | test ! -s conftest.err |
| 8001 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8002 | ac_hi=$ac_mid; break |
| 8003 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8004 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8006 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8007 | ac_lo=`expr $ac_mid + 1` |
| 8008 | if test $ac_lo -le $ac_mid; then |
| 8009 | ac_lo= ac_hi= |
| 8010 | break |
| 8011 | fi |
| 8012 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8013 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8014 | |
| 8015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8016 | done |
| 8017 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8018 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8020 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8021 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8022 | /* confdefs.h. */ |
| 8023 | _ACEOF |
| 8024 | cat confdefs.h >>conftest.$ac_ext |
| 8025 | cat >>conftest.$ac_ext <<_ACEOF |
| 8026 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8027 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8028 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8029 | int |
| 8030 | main () |
| 8031 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8032 | 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] | 8033 | test_array [0] = 0 |
| 8034 | |
| 8035 | ; |
| 8036 | return 0; |
| 8037 | } |
| 8038 | _ACEOF |
| 8039 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8040 | if { (ac_try="$ac_compile" |
| 8041 | case "(($ac_try" in |
| 8042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8043 | *) ac_try_echo=$ac_try;; |
| 8044 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8046 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8047 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8049 | rm -f conftest.er1 |
| 8050 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8052 | (exit $ac_status); } && { |
| 8053 | test -z "$ac_c_werror_flag" || |
| 8054 | test ! -s conftest.err |
| 8055 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8056 | ac_hi=-1 ac_mid=-1 |
| 8057 | while :; do |
| 8058 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8059 | /* confdefs.h. */ |
| 8060 | _ACEOF |
| 8061 | cat confdefs.h >>conftest.$ac_ext |
| 8062 | cat >>conftest.$ac_ext <<_ACEOF |
| 8063 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8064 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8065 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8066 | int |
| 8067 | main () |
| 8068 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8069 | 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] | 8070 | test_array [0] = 0 |
| 8071 | |
| 8072 | ; |
| 8073 | return 0; |
| 8074 | } |
| 8075 | _ACEOF |
| 8076 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8077 | if { (ac_try="$ac_compile" |
| 8078 | case "(($ac_try" in |
| 8079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8080 | *) ac_try_echo=$ac_try;; |
| 8081 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8083 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8084 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8086 | rm -f conftest.er1 |
| 8087 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8089 | (exit $ac_status); } && { |
| 8090 | test -z "$ac_c_werror_flag" || |
| 8091 | test ! -s conftest.err |
| 8092 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8093 | ac_lo=$ac_mid; break |
| 8094 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8095 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8097 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8098 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8099 | if test $ac_mid -le $ac_hi; then |
| 8100 | ac_lo= ac_hi= |
| 8101 | break |
| 8102 | fi |
| 8103 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8104 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8105 | |
| 8106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8107 | done |
| 8108 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8109 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8111 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8112 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8113 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8114 | |
| 8115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8116 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8117 | |
| 8118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8119 | # Binary search between lo and hi bounds. |
| 8120 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8121 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8122 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8123 | /* confdefs.h. */ |
| 8124 | _ACEOF |
| 8125 | cat confdefs.h >>conftest.$ac_ext |
| 8126 | cat >>conftest.$ac_ext <<_ACEOF |
| 8127 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8128 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8129 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8130 | int |
| 8131 | main () |
| 8132 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8133 | 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] | 8134 | test_array [0] = 0 |
| 8135 | |
| 8136 | ; |
| 8137 | return 0; |
| 8138 | } |
| 8139 | _ACEOF |
| 8140 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8141 | if { (ac_try="$ac_compile" |
| 8142 | case "(($ac_try" in |
| 8143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8144 | *) ac_try_echo=$ac_try;; |
| 8145 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8147 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8148 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8150 | rm -f conftest.er1 |
| 8151 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8153 | (exit $ac_status); } && { |
| 8154 | test -z "$ac_c_werror_flag" || |
| 8155 | test ! -s conftest.err |
| 8156 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8157 | ac_hi=$ac_mid |
| 8158 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8159 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8160 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8161 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8162 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8163 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8164 | |
| 8165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8166 | done |
| 8167 | case $ac_lo in |
| 8168 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8169 | '') if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8170 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8171 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8172 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8173 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8174 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8175 | else |
| 8176 | ac_cv_sizeof_long=0 |
| 8177 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8178 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8179 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8180 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8181 | /* confdefs.h. */ |
| 8182 | _ACEOF |
| 8183 | cat confdefs.h >>conftest.$ac_ext |
| 8184 | cat >>conftest.$ac_ext <<_ACEOF |
| 8185 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8186 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8187 | typedef long ac__type_sizeof_; |
| 8188 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8189 | 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] | 8190 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8191 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8192 | int |
| 8193 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8194 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8195 | |
| 8196 | FILE *f = fopen ("conftest.val", "w"); |
| 8197 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8198 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8199 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8200 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8201 | long int i = longval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8202 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8203 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8204 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8205 | } |
| 8206 | else |
| 8207 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8208 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8209 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8210 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8211 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8212 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8213 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8214 | |
| 8215 | ; |
| 8216 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8217 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8218 | _ACEOF |
| 8219 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8220 | if { (ac_try="$ac_link" |
| 8221 | case "(($ac_try" in |
| 8222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8223 | *) ac_try_echo=$ac_try;; |
| 8224 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8226 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8227 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8229 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8230 | { (case "(($ac_try" in |
| 8231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8232 | *) ac_try_echo=$ac_try;; |
| 8233 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8235 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8236 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8238 | (exit $ac_status); }; }; then |
| 8239 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8240 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8241 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8242 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8244 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8245 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8246 | if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8247 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8248 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8249 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8250 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8251 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8252 | else |
| 8253 | ac_cv_sizeof_long=0 |
| 8254 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8255 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8256 | 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] | 8257 | fi |
| 8258 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8259 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8260 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 8261 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8262 | |
| 8263 | |
| 8264 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8265 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8266 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8267 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8268 | |
| 8269 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8270 | { echo "$as_me:$LINENO: checking for void *" >&5 |
| 8271 | echo $ECHO_N "checking for void *... $ECHO_C" >&6; } |
| 8272 | if test "${ac_cv_type_void_p+set}" = set; then |
| 8273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8274 | else |
| 8275 | cat >conftest.$ac_ext <<_ACEOF |
| 8276 | /* confdefs.h. */ |
| 8277 | _ACEOF |
| 8278 | cat confdefs.h >>conftest.$ac_ext |
| 8279 | cat >>conftest.$ac_ext <<_ACEOF |
| 8280 | /* end confdefs.h. */ |
| 8281 | $ac_includes_default |
| 8282 | typedef void * ac__type_new_; |
| 8283 | int |
| 8284 | main () |
| 8285 | { |
| 8286 | if ((ac__type_new_ *) 0) |
| 8287 | return 0; |
| 8288 | if (sizeof (ac__type_new_)) |
| 8289 | return 0; |
| 8290 | ; |
| 8291 | return 0; |
| 8292 | } |
| 8293 | _ACEOF |
| 8294 | rm -f conftest.$ac_objext |
| 8295 | if { (ac_try="$ac_compile" |
| 8296 | case "(($ac_try" in |
| 8297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8298 | *) ac_try_echo=$ac_try;; |
| 8299 | esac |
| 8300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8301 | (eval "$ac_compile") 2>conftest.er1 |
| 8302 | ac_status=$? |
| 8303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8304 | rm -f conftest.er1 |
| 8305 | cat conftest.err >&5 |
| 8306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8307 | (exit $ac_status); } && { |
| 8308 | test -z "$ac_c_werror_flag" || |
| 8309 | test ! -s conftest.err |
| 8310 | } && test -s conftest.$ac_objext; then |
| 8311 | ac_cv_type_void_p=yes |
| 8312 | else |
| 8313 | echo "$as_me: failed program was:" >&5 |
| 8314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8315 | |
| 8316 | ac_cv_type_void_p=no |
| 8317 | fi |
| 8318 | |
| 8319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8320 | fi |
| 8321 | { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 8322 | echo "${ECHO_T}$ac_cv_type_void_p" >&6; } |
| 8323 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8324 | # The cast to long int works around a bug in the HP C Compiler |
| 8325 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8326 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8327 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8328 | { echo "$as_me:$LINENO: checking size of void *" >&5 |
| 8329 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8330 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8332 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8333 | if test "$cross_compiling" = yes; then |
| 8334 | # Depending upon the size, compute the lo and hi bounds. |
| 8335 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8336 | /* confdefs.h. */ |
| 8337 | _ACEOF |
| 8338 | cat confdefs.h >>conftest.$ac_ext |
| 8339 | cat >>conftest.$ac_ext <<_ACEOF |
| 8340 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8341 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8342 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8343 | int |
| 8344 | main () |
| 8345 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8346 | 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] | 8347 | test_array [0] = 0 |
| 8348 | |
| 8349 | ; |
| 8350 | return 0; |
| 8351 | } |
| 8352 | _ACEOF |
| 8353 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8354 | if { (ac_try="$ac_compile" |
| 8355 | case "(($ac_try" in |
| 8356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8357 | *) ac_try_echo=$ac_try;; |
| 8358 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8360 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8361 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8363 | rm -f conftest.er1 |
| 8364 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8366 | (exit $ac_status); } && { |
| 8367 | test -z "$ac_c_werror_flag" || |
| 8368 | test ! -s conftest.err |
| 8369 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8370 | ac_lo=0 ac_mid=0 |
| 8371 | while :; do |
| 8372 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8373 | /* confdefs.h. */ |
| 8374 | _ACEOF |
| 8375 | cat confdefs.h >>conftest.$ac_ext |
| 8376 | cat >>conftest.$ac_ext <<_ACEOF |
| 8377 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8378 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8379 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8380 | int |
| 8381 | main () |
| 8382 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8383 | 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] | 8384 | test_array [0] = 0 |
| 8385 | |
| 8386 | ; |
| 8387 | return 0; |
| 8388 | } |
| 8389 | _ACEOF |
| 8390 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8391 | if { (ac_try="$ac_compile" |
| 8392 | case "(($ac_try" in |
| 8393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8394 | *) ac_try_echo=$ac_try;; |
| 8395 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8397 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8398 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8400 | rm -f conftest.er1 |
| 8401 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8403 | (exit $ac_status); } && { |
| 8404 | test -z "$ac_c_werror_flag" || |
| 8405 | test ! -s conftest.err |
| 8406 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8407 | ac_hi=$ac_mid; break |
| 8408 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8409 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8411 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8412 | ac_lo=`expr $ac_mid + 1` |
| 8413 | if test $ac_lo -le $ac_mid; then |
| 8414 | ac_lo= ac_hi= |
| 8415 | break |
| 8416 | fi |
| 8417 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8418 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8419 | |
| 8420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8421 | done |
| 8422 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8423 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8424 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8425 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8426 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8427 | /* confdefs.h. */ |
| 8428 | _ACEOF |
| 8429 | cat confdefs.h >>conftest.$ac_ext |
| 8430 | cat >>conftest.$ac_ext <<_ACEOF |
| 8431 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8432 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8433 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8434 | int |
| 8435 | main () |
| 8436 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8437 | 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] | 8438 | test_array [0] = 0 |
| 8439 | |
| 8440 | ; |
| 8441 | return 0; |
| 8442 | } |
| 8443 | _ACEOF |
| 8444 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8445 | if { (ac_try="$ac_compile" |
| 8446 | case "(($ac_try" in |
| 8447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8448 | *) ac_try_echo=$ac_try;; |
| 8449 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8451 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8452 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8453 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8454 | rm -f conftest.er1 |
| 8455 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8457 | (exit $ac_status); } && { |
| 8458 | test -z "$ac_c_werror_flag" || |
| 8459 | test ! -s conftest.err |
| 8460 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8461 | ac_hi=-1 ac_mid=-1 |
| 8462 | while :; do |
| 8463 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8464 | /* confdefs.h. */ |
| 8465 | _ACEOF |
| 8466 | cat confdefs.h >>conftest.$ac_ext |
| 8467 | cat >>conftest.$ac_ext <<_ACEOF |
| 8468 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8469 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8470 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8471 | int |
| 8472 | main () |
| 8473 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8474 | 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] | 8475 | test_array [0] = 0 |
| 8476 | |
| 8477 | ; |
| 8478 | return 0; |
| 8479 | } |
| 8480 | _ACEOF |
| 8481 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8482 | if { (ac_try="$ac_compile" |
| 8483 | case "(($ac_try" in |
| 8484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8485 | *) ac_try_echo=$ac_try;; |
| 8486 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8488 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8489 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8491 | rm -f conftest.er1 |
| 8492 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8494 | (exit $ac_status); } && { |
| 8495 | test -z "$ac_c_werror_flag" || |
| 8496 | test ! -s conftest.err |
| 8497 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8498 | ac_lo=$ac_mid; break |
| 8499 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8500 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8502 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8503 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8504 | if test $ac_mid -le $ac_hi; then |
| 8505 | ac_lo= ac_hi= |
| 8506 | break |
| 8507 | fi |
| 8508 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8509 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8510 | |
| 8511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8512 | done |
| 8513 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8514 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8516 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8517 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8518 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8519 | |
| 8520 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8521 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8522 | |
| 8523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8524 | # Binary search between lo and hi bounds. |
| 8525 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8526 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8527 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8528 | /* confdefs.h. */ |
| 8529 | _ACEOF |
| 8530 | cat confdefs.h >>conftest.$ac_ext |
| 8531 | cat >>conftest.$ac_ext <<_ACEOF |
| 8532 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8533 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8534 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8535 | int |
| 8536 | main () |
| 8537 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8538 | 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] | 8539 | test_array [0] = 0 |
| 8540 | |
| 8541 | ; |
| 8542 | return 0; |
| 8543 | } |
| 8544 | _ACEOF |
| 8545 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8546 | if { (ac_try="$ac_compile" |
| 8547 | case "(($ac_try" in |
| 8548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8549 | *) ac_try_echo=$ac_try;; |
| 8550 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8552 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8553 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8554 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8555 | rm -f conftest.er1 |
| 8556 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8558 | (exit $ac_status); } && { |
| 8559 | test -z "$ac_c_werror_flag" || |
| 8560 | test ! -s conftest.err |
| 8561 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8562 | ac_hi=$ac_mid |
| 8563 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8564 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8566 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8567 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8568 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8569 | |
| 8570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8571 | done |
| 8572 | case $ac_lo in |
| 8573 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8574 | '') if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8575 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8576 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8577 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8578 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8579 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8580 | else |
| 8581 | ac_cv_sizeof_void_p=0 |
| 8582 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8583 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8584 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8585 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8586 | /* confdefs.h. */ |
| 8587 | _ACEOF |
| 8588 | cat confdefs.h >>conftest.$ac_ext |
| 8589 | cat >>conftest.$ac_ext <<_ACEOF |
| 8590 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8591 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8592 | typedef void * ac__type_sizeof_; |
| 8593 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8594 | 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] | 8595 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8596 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8597 | int |
| 8598 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8599 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8600 | |
| 8601 | FILE *f = fopen ("conftest.val", "w"); |
| 8602 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8603 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8604 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8605 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8606 | long int i = longval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8607 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8608 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8609 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8610 | } |
| 8611 | else |
| 8612 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8613 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8614 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8615 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8616 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8617 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8618 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8619 | |
| 8620 | ; |
| 8621 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8622 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8623 | _ACEOF |
| 8624 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8625 | if { (ac_try="$ac_link" |
| 8626 | case "(($ac_try" in |
| 8627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8628 | *) ac_try_echo=$ac_try;; |
| 8629 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8631 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8632 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8634 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8635 | { (case "(($ac_try" in |
| 8636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8637 | *) ac_try_echo=$ac_try;; |
| 8638 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8640 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8641 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8643 | (exit $ac_status); }; }; then |
| 8644 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8645 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8646 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8647 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8649 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8650 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8651 | if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8652 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8653 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8654 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8655 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8656 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8657 | else |
| 8658 | ac_cv_sizeof_void_p=0 |
| 8659 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8660 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8661 | 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] | 8662 | fi |
| 8663 | rm -f conftest.val |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8664 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8665 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 8666 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8667 | |
| 8668 | |
| 8669 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8670 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8671 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8672 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8673 | |
| 8674 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8675 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 8676 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
| 8677 | if test "${ac_cv_type_short+set}" = set; then |
| 8678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8679 | else |
| 8680 | cat >conftest.$ac_ext <<_ACEOF |
| 8681 | /* confdefs.h. */ |
| 8682 | _ACEOF |
| 8683 | cat confdefs.h >>conftest.$ac_ext |
| 8684 | cat >>conftest.$ac_ext <<_ACEOF |
| 8685 | /* end confdefs.h. */ |
| 8686 | $ac_includes_default |
| 8687 | typedef short ac__type_new_; |
| 8688 | int |
| 8689 | main () |
| 8690 | { |
| 8691 | if ((ac__type_new_ *) 0) |
| 8692 | return 0; |
| 8693 | if (sizeof (ac__type_new_)) |
| 8694 | return 0; |
| 8695 | ; |
| 8696 | return 0; |
| 8697 | } |
| 8698 | _ACEOF |
| 8699 | rm -f conftest.$ac_objext |
| 8700 | if { (ac_try="$ac_compile" |
| 8701 | case "(($ac_try" in |
| 8702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8703 | *) ac_try_echo=$ac_try;; |
| 8704 | esac |
| 8705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8706 | (eval "$ac_compile") 2>conftest.er1 |
| 8707 | ac_status=$? |
| 8708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8709 | rm -f conftest.er1 |
| 8710 | cat conftest.err >&5 |
| 8711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8712 | (exit $ac_status); } && { |
| 8713 | test -z "$ac_c_werror_flag" || |
| 8714 | test ! -s conftest.err |
| 8715 | } && test -s conftest.$ac_objext; then |
| 8716 | ac_cv_type_short=yes |
| 8717 | else |
| 8718 | echo "$as_me: failed program was:" >&5 |
| 8719 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8720 | |
| 8721 | ac_cv_type_short=no |
| 8722 | fi |
| 8723 | |
| 8724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8725 | fi |
| 8726 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 8727 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 8728 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8729 | # The cast to long int works around a bug in the HP C Compiler |
| 8730 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8731 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8732 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8733 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 8734 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8735 | if test "${ac_cv_sizeof_short+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8737 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8738 | if test "$cross_compiling" = yes; then |
| 8739 | # Depending upon the size, compute the lo and hi bounds. |
| 8740 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8741 | /* confdefs.h. */ |
| 8742 | _ACEOF |
| 8743 | cat confdefs.h >>conftest.$ac_ext |
| 8744 | cat >>conftest.$ac_ext <<_ACEOF |
| 8745 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8746 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8747 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8748 | int |
| 8749 | main () |
| 8750 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8751 | 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] | 8752 | test_array [0] = 0 |
| 8753 | |
| 8754 | ; |
| 8755 | return 0; |
| 8756 | } |
| 8757 | _ACEOF |
| 8758 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8759 | if { (ac_try="$ac_compile" |
| 8760 | case "(($ac_try" in |
| 8761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8762 | *) ac_try_echo=$ac_try;; |
| 8763 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8765 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8766 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8767 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8768 | rm -f conftest.er1 |
| 8769 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8771 | (exit $ac_status); } && { |
| 8772 | test -z "$ac_c_werror_flag" || |
| 8773 | test ! -s conftest.err |
| 8774 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8775 | ac_lo=0 ac_mid=0 |
| 8776 | while :; do |
| 8777 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8778 | /* confdefs.h. */ |
| 8779 | _ACEOF |
| 8780 | cat confdefs.h >>conftest.$ac_ext |
| 8781 | cat >>conftest.$ac_ext <<_ACEOF |
| 8782 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8783 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8784 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8785 | int |
| 8786 | main () |
| 8787 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8788 | 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] | 8789 | test_array [0] = 0 |
| 8790 | |
| 8791 | ; |
| 8792 | return 0; |
| 8793 | } |
| 8794 | _ACEOF |
| 8795 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8796 | if { (ac_try="$ac_compile" |
| 8797 | case "(($ac_try" in |
| 8798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8799 | *) ac_try_echo=$ac_try;; |
| 8800 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8802 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8803 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8804 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8805 | rm -f conftest.er1 |
| 8806 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8808 | (exit $ac_status); } && { |
| 8809 | test -z "$ac_c_werror_flag" || |
| 8810 | test ! -s conftest.err |
| 8811 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8812 | ac_hi=$ac_mid; break |
| 8813 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8814 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8816 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8817 | ac_lo=`expr $ac_mid + 1` |
| 8818 | if test $ac_lo -le $ac_mid; then |
| 8819 | ac_lo= ac_hi= |
| 8820 | break |
| 8821 | fi |
| 8822 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8823 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8824 | |
| 8825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8826 | done |
| 8827 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8828 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8830 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8831 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8832 | /* confdefs.h. */ |
| 8833 | _ACEOF |
| 8834 | cat confdefs.h >>conftest.$ac_ext |
| 8835 | cat >>conftest.$ac_ext <<_ACEOF |
| 8836 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8837 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8838 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8839 | int |
| 8840 | main () |
| 8841 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8842 | 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] | 8843 | test_array [0] = 0 |
| 8844 | |
| 8845 | ; |
| 8846 | return 0; |
| 8847 | } |
| 8848 | _ACEOF |
| 8849 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8850 | if { (ac_try="$ac_compile" |
| 8851 | case "(($ac_try" in |
| 8852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8853 | *) ac_try_echo=$ac_try;; |
| 8854 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8856 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8857 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8859 | rm -f conftest.er1 |
| 8860 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8862 | (exit $ac_status); } && { |
| 8863 | test -z "$ac_c_werror_flag" || |
| 8864 | test ! -s conftest.err |
| 8865 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8866 | ac_hi=-1 ac_mid=-1 |
| 8867 | while :; do |
| 8868 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8869 | /* confdefs.h. */ |
| 8870 | _ACEOF |
| 8871 | cat confdefs.h >>conftest.$ac_ext |
| 8872 | cat >>conftest.$ac_ext <<_ACEOF |
| 8873 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8874 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8875 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8876 | int |
| 8877 | main () |
| 8878 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8879 | 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] | 8880 | test_array [0] = 0 |
| 8881 | |
| 8882 | ; |
| 8883 | return 0; |
| 8884 | } |
| 8885 | _ACEOF |
| 8886 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8887 | if { (ac_try="$ac_compile" |
| 8888 | case "(($ac_try" in |
| 8889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8890 | *) ac_try_echo=$ac_try;; |
| 8891 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8893 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8894 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8896 | rm -f conftest.er1 |
| 8897 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8899 | (exit $ac_status); } && { |
| 8900 | test -z "$ac_c_werror_flag" || |
| 8901 | test ! -s conftest.err |
| 8902 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8903 | ac_lo=$ac_mid; break |
| 8904 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8905 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8907 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8908 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8909 | if test $ac_mid -le $ac_hi; then |
| 8910 | ac_lo= ac_hi= |
| 8911 | break |
| 8912 | fi |
| 8913 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8914 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8915 | |
| 8916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8917 | done |
| 8918 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8919 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8921 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8922 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8923 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8924 | |
| 8925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8926 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8927 | |
| 8928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8929 | # Binary search between lo and hi bounds. |
| 8930 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8931 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8932 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8933 | /* confdefs.h. */ |
| 8934 | _ACEOF |
| 8935 | cat confdefs.h >>conftest.$ac_ext |
| 8936 | cat >>conftest.$ac_ext <<_ACEOF |
| 8937 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8938 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8939 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8940 | int |
| 8941 | main () |
| 8942 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8943 | 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] | 8944 | test_array [0] = 0 |
| 8945 | |
| 8946 | ; |
| 8947 | return 0; |
| 8948 | } |
| 8949 | _ACEOF |
| 8950 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8951 | if { (ac_try="$ac_compile" |
| 8952 | case "(($ac_try" in |
| 8953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8954 | *) ac_try_echo=$ac_try;; |
| 8955 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8957 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8958 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8960 | rm -f conftest.er1 |
| 8961 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8963 | (exit $ac_status); } && { |
| 8964 | test -z "$ac_c_werror_flag" || |
| 8965 | test ! -s conftest.err |
| 8966 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8967 | ac_hi=$ac_mid |
| 8968 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8969 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8971 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8972 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8973 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8974 | |
| 8975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8976 | done |
| 8977 | case $ac_lo in |
| 8978 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8979 | '') if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8980 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8981 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8982 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8983 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8984 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8985 | else |
| 8986 | ac_cv_sizeof_short=0 |
| 8987 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8988 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8989 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8990 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8991 | /* confdefs.h. */ |
| 8992 | _ACEOF |
| 8993 | cat confdefs.h >>conftest.$ac_ext |
| 8994 | cat >>conftest.$ac_ext <<_ACEOF |
| 8995 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8996 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 8997 | typedef short ac__type_sizeof_; |
| 8998 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8999 | 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] | 9000 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9001 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9002 | int |
| 9003 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9004 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9005 | |
| 9006 | FILE *f = fopen ("conftest.val", "w"); |
| 9007 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9008 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9009 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9010 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9011 | long int i = longval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9012 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9013 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9014 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9015 | } |
| 9016 | else |
| 9017 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9018 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9019 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9020 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9021 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9022 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9023 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9024 | |
| 9025 | ; |
| 9026 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9027 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9028 | _ACEOF |
| 9029 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9030 | if { (ac_try="$ac_link" |
| 9031 | case "(($ac_try" in |
| 9032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9033 | *) ac_try_echo=$ac_try;; |
| 9034 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9036 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9037 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9039 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9040 | { (case "(($ac_try" in |
| 9041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9042 | *) ac_try_echo=$ac_try;; |
| 9043 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9045 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9046 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9048 | (exit $ac_status); }; }; then |
| 9049 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9050 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9051 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9052 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9053 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9054 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9055 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9056 | if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9057 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9058 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9059 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9060 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9061 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9062 | else |
| 9063 | ac_cv_sizeof_short=0 |
| 9064 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9065 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9066 | 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] | 9067 | fi |
| 9068 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9069 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9070 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 9071 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9072 | |
| 9073 | |
| 9074 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9075 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9076 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9077 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9078 | |
| 9079 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9080 | { echo "$as_me:$LINENO: checking for float" >&5 |
| 9081 | echo $ECHO_N "checking for float... $ECHO_C" >&6; } |
| 9082 | if test "${ac_cv_type_float+set}" = set; then |
| 9083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9084 | else |
| 9085 | cat >conftest.$ac_ext <<_ACEOF |
| 9086 | /* confdefs.h. */ |
| 9087 | _ACEOF |
| 9088 | cat confdefs.h >>conftest.$ac_ext |
| 9089 | cat >>conftest.$ac_ext <<_ACEOF |
| 9090 | /* end confdefs.h. */ |
| 9091 | $ac_includes_default |
| 9092 | typedef float ac__type_new_; |
| 9093 | int |
| 9094 | main () |
| 9095 | { |
| 9096 | if ((ac__type_new_ *) 0) |
| 9097 | return 0; |
| 9098 | if (sizeof (ac__type_new_)) |
| 9099 | return 0; |
| 9100 | ; |
| 9101 | return 0; |
| 9102 | } |
| 9103 | _ACEOF |
| 9104 | rm -f conftest.$ac_objext |
| 9105 | if { (ac_try="$ac_compile" |
| 9106 | case "(($ac_try" in |
| 9107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9108 | *) ac_try_echo=$ac_try;; |
| 9109 | esac |
| 9110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9111 | (eval "$ac_compile") 2>conftest.er1 |
| 9112 | ac_status=$? |
| 9113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9114 | rm -f conftest.er1 |
| 9115 | cat conftest.err >&5 |
| 9116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9117 | (exit $ac_status); } && { |
| 9118 | test -z "$ac_c_werror_flag" || |
| 9119 | test ! -s conftest.err |
| 9120 | } && test -s conftest.$ac_objext; then |
| 9121 | ac_cv_type_float=yes |
| 9122 | else |
| 9123 | echo "$as_me: failed program was:" >&5 |
| 9124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9125 | |
| 9126 | ac_cv_type_float=no |
| 9127 | fi |
| 9128 | |
| 9129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9130 | fi |
| 9131 | { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 9132 | echo "${ECHO_T}$ac_cv_type_float" >&6; } |
| 9133 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9134 | # The cast to long int works around a bug in the HP C Compiler |
| 9135 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9136 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9137 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9138 | { echo "$as_me:$LINENO: checking size of float" >&5 |
| 9139 | echo $ECHO_N "checking size of float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9140 | if test "${ac_cv_sizeof_float+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9142 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9143 | if test "$cross_compiling" = yes; then |
| 9144 | # Depending upon the size, compute the lo and hi bounds. |
| 9145 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9146 | /* confdefs.h. */ |
| 9147 | _ACEOF |
| 9148 | cat confdefs.h >>conftest.$ac_ext |
| 9149 | cat >>conftest.$ac_ext <<_ACEOF |
| 9150 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9151 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9152 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9153 | int |
| 9154 | main () |
| 9155 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9156 | 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] | 9157 | test_array [0] = 0 |
| 9158 | |
| 9159 | ; |
| 9160 | return 0; |
| 9161 | } |
| 9162 | _ACEOF |
| 9163 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9164 | if { (ac_try="$ac_compile" |
| 9165 | case "(($ac_try" in |
| 9166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9167 | *) ac_try_echo=$ac_try;; |
| 9168 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9170 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9171 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9173 | rm -f conftest.er1 |
| 9174 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9176 | (exit $ac_status); } && { |
| 9177 | test -z "$ac_c_werror_flag" || |
| 9178 | test ! -s conftest.err |
| 9179 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9180 | ac_lo=0 ac_mid=0 |
| 9181 | while :; do |
| 9182 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9183 | /* confdefs.h. */ |
| 9184 | _ACEOF |
| 9185 | cat confdefs.h >>conftest.$ac_ext |
| 9186 | cat >>conftest.$ac_ext <<_ACEOF |
| 9187 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9188 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9189 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9190 | int |
| 9191 | main () |
| 9192 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9193 | 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] | 9194 | test_array [0] = 0 |
| 9195 | |
| 9196 | ; |
| 9197 | return 0; |
| 9198 | } |
| 9199 | _ACEOF |
| 9200 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9201 | if { (ac_try="$ac_compile" |
| 9202 | case "(($ac_try" in |
| 9203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9204 | *) ac_try_echo=$ac_try;; |
| 9205 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9207 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9208 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9210 | rm -f conftest.er1 |
| 9211 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9213 | (exit $ac_status); } && { |
| 9214 | test -z "$ac_c_werror_flag" || |
| 9215 | test ! -s conftest.err |
| 9216 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9217 | ac_hi=$ac_mid; break |
| 9218 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9219 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9221 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9222 | ac_lo=`expr $ac_mid + 1` |
| 9223 | if test $ac_lo -le $ac_mid; then |
| 9224 | ac_lo= ac_hi= |
| 9225 | break |
| 9226 | fi |
| 9227 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9228 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9229 | |
| 9230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9231 | done |
| 9232 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9233 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9235 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9236 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9237 | /* confdefs.h. */ |
| 9238 | _ACEOF |
| 9239 | cat confdefs.h >>conftest.$ac_ext |
| 9240 | cat >>conftest.$ac_ext <<_ACEOF |
| 9241 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9242 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9243 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9244 | int |
| 9245 | main () |
| 9246 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9247 | 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] | 9248 | test_array [0] = 0 |
| 9249 | |
| 9250 | ; |
| 9251 | return 0; |
| 9252 | } |
| 9253 | _ACEOF |
| 9254 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9255 | if { (ac_try="$ac_compile" |
| 9256 | case "(($ac_try" in |
| 9257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9258 | *) ac_try_echo=$ac_try;; |
| 9259 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9261 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9262 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9264 | rm -f conftest.er1 |
| 9265 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9267 | (exit $ac_status); } && { |
| 9268 | test -z "$ac_c_werror_flag" || |
| 9269 | test ! -s conftest.err |
| 9270 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9271 | ac_hi=-1 ac_mid=-1 |
| 9272 | while :; do |
| 9273 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9274 | /* confdefs.h. */ |
| 9275 | _ACEOF |
| 9276 | cat confdefs.h >>conftest.$ac_ext |
| 9277 | cat >>conftest.$ac_ext <<_ACEOF |
| 9278 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9279 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9280 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9281 | int |
| 9282 | main () |
| 9283 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9284 | 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] | 9285 | test_array [0] = 0 |
| 9286 | |
| 9287 | ; |
| 9288 | return 0; |
| 9289 | } |
| 9290 | _ACEOF |
| 9291 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9292 | if { (ac_try="$ac_compile" |
| 9293 | case "(($ac_try" in |
| 9294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9295 | *) ac_try_echo=$ac_try;; |
| 9296 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9298 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9299 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9300 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9301 | rm -f conftest.er1 |
| 9302 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9304 | (exit $ac_status); } && { |
| 9305 | test -z "$ac_c_werror_flag" || |
| 9306 | test ! -s conftest.err |
| 9307 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9308 | ac_lo=$ac_mid; break |
| 9309 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9310 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9311 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9312 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9313 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9314 | if test $ac_mid -le $ac_hi; then |
| 9315 | ac_lo= ac_hi= |
| 9316 | break |
| 9317 | fi |
| 9318 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9319 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9320 | |
| 9321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9322 | done |
| 9323 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9324 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9326 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9327 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9328 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9329 | |
| 9330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9331 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9332 | |
| 9333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9334 | # Binary search between lo and hi bounds. |
| 9335 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9336 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9337 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9338 | /* confdefs.h. */ |
| 9339 | _ACEOF |
| 9340 | cat confdefs.h >>conftest.$ac_ext |
| 9341 | cat >>conftest.$ac_ext <<_ACEOF |
| 9342 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9343 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9344 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9345 | int |
| 9346 | main () |
| 9347 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9348 | 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] | 9349 | test_array [0] = 0 |
| 9350 | |
| 9351 | ; |
| 9352 | return 0; |
| 9353 | } |
| 9354 | _ACEOF |
| 9355 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9356 | if { (ac_try="$ac_compile" |
| 9357 | case "(($ac_try" in |
| 9358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9359 | *) ac_try_echo=$ac_try;; |
| 9360 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9362 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9363 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9364 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9365 | rm -f conftest.er1 |
| 9366 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9368 | (exit $ac_status); } && { |
| 9369 | test -z "$ac_c_werror_flag" || |
| 9370 | test ! -s conftest.err |
| 9371 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9372 | ac_hi=$ac_mid |
| 9373 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9374 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9376 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9377 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9378 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9379 | |
| 9380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9381 | done |
| 9382 | case $ac_lo in |
| 9383 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9384 | '') if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9385 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9386 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9387 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9388 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9389 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9390 | else |
| 9391 | ac_cv_sizeof_float=0 |
| 9392 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9393 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9394 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9395 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9396 | /* confdefs.h. */ |
| 9397 | _ACEOF |
| 9398 | cat confdefs.h >>conftest.$ac_ext |
| 9399 | cat >>conftest.$ac_ext <<_ACEOF |
| 9400 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9401 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9402 | typedef float ac__type_sizeof_; |
| 9403 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9404 | 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] | 9405 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9406 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9407 | int |
| 9408 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9409 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9410 | |
| 9411 | FILE *f = fopen ("conftest.val", "w"); |
| 9412 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9413 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9414 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9415 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9416 | long int i = longval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9417 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9418 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9419 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9420 | } |
| 9421 | else |
| 9422 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9423 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9424 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9425 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9426 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9427 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9428 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9429 | |
| 9430 | ; |
| 9431 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9432 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9433 | _ACEOF |
| 9434 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9435 | if { (ac_try="$ac_link" |
| 9436 | case "(($ac_try" in |
| 9437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9438 | *) ac_try_echo=$ac_try;; |
| 9439 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9441 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9442 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9444 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9445 | { (case "(($ac_try" in |
| 9446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9447 | *) ac_try_echo=$ac_try;; |
| 9448 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9450 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9451 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9453 | (exit $ac_status); }; }; then |
| 9454 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9455 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9456 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9457 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9459 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9460 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9461 | if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9462 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9463 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9464 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9465 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9466 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9467 | else |
| 9468 | ac_cv_sizeof_float=0 |
| 9469 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9470 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9471 | 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] | 9472 | fi |
| 9473 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9474 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9475 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 9476 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9477 | |
| 9478 | |
| 9479 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9480 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9481 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9482 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9483 | |
| 9484 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9485 | { echo "$as_me:$LINENO: checking for double" >&5 |
| 9486 | echo $ECHO_N "checking for double... $ECHO_C" >&6; } |
| 9487 | if test "${ac_cv_type_double+set}" = set; then |
| 9488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9489 | else |
| 9490 | cat >conftest.$ac_ext <<_ACEOF |
| 9491 | /* confdefs.h. */ |
| 9492 | _ACEOF |
| 9493 | cat confdefs.h >>conftest.$ac_ext |
| 9494 | cat >>conftest.$ac_ext <<_ACEOF |
| 9495 | /* end confdefs.h. */ |
| 9496 | $ac_includes_default |
| 9497 | typedef double ac__type_new_; |
| 9498 | int |
| 9499 | main () |
| 9500 | { |
| 9501 | if ((ac__type_new_ *) 0) |
| 9502 | return 0; |
| 9503 | if (sizeof (ac__type_new_)) |
| 9504 | return 0; |
| 9505 | ; |
| 9506 | return 0; |
| 9507 | } |
| 9508 | _ACEOF |
| 9509 | rm -f conftest.$ac_objext |
| 9510 | if { (ac_try="$ac_compile" |
| 9511 | case "(($ac_try" in |
| 9512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9513 | *) ac_try_echo=$ac_try;; |
| 9514 | esac |
| 9515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9516 | (eval "$ac_compile") 2>conftest.er1 |
| 9517 | ac_status=$? |
| 9518 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9519 | rm -f conftest.er1 |
| 9520 | cat conftest.err >&5 |
| 9521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9522 | (exit $ac_status); } && { |
| 9523 | test -z "$ac_c_werror_flag" || |
| 9524 | test ! -s conftest.err |
| 9525 | } && test -s conftest.$ac_objext; then |
| 9526 | ac_cv_type_double=yes |
| 9527 | else |
| 9528 | echo "$as_me: failed program was:" >&5 |
| 9529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9530 | |
| 9531 | ac_cv_type_double=no |
| 9532 | fi |
| 9533 | |
| 9534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9535 | fi |
| 9536 | { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 9537 | echo "${ECHO_T}$ac_cv_type_double" >&6; } |
| 9538 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9539 | # The cast to long int works around a bug in the HP C Compiler |
| 9540 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9541 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9542 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9543 | { echo "$as_me:$LINENO: checking size of double" >&5 |
| 9544 | echo $ECHO_N "checking size of double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9545 | if test "${ac_cv_sizeof_double+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9547 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9548 | if test "$cross_compiling" = yes; then |
| 9549 | # Depending upon the size, compute the lo and hi bounds. |
| 9550 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9551 | /* confdefs.h. */ |
| 9552 | _ACEOF |
| 9553 | cat confdefs.h >>conftest.$ac_ext |
| 9554 | cat >>conftest.$ac_ext <<_ACEOF |
| 9555 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9556 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9557 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9558 | int |
| 9559 | main () |
| 9560 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9561 | 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] | 9562 | test_array [0] = 0 |
| 9563 | |
| 9564 | ; |
| 9565 | return 0; |
| 9566 | } |
| 9567 | _ACEOF |
| 9568 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9569 | if { (ac_try="$ac_compile" |
| 9570 | case "(($ac_try" in |
| 9571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9572 | *) ac_try_echo=$ac_try;; |
| 9573 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9575 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9576 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9578 | rm -f conftest.er1 |
| 9579 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9581 | (exit $ac_status); } && { |
| 9582 | test -z "$ac_c_werror_flag" || |
| 9583 | test ! -s conftest.err |
| 9584 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9585 | ac_lo=0 ac_mid=0 |
| 9586 | while :; do |
| 9587 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9588 | /* confdefs.h. */ |
| 9589 | _ACEOF |
| 9590 | cat confdefs.h >>conftest.$ac_ext |
| 9591 | cat >>conftest.$ac_ext <<_ACEOF |
| 9592 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9593 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9594 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9595 | int |
| 9596 | main () |
| 9597 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9598 | 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] | 9599 | test_array [0] = 0 |
| 9600 | |
| 9601 | ; |
| 9602 | return 0; |
| 9603 | } |
| 9604 | _ACEOF |
| 9605 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9606 | if { (ac_try="$ac_compile" |
| 9607 | case "(($ac_try" in |
| 9608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9609 | *) ac_try_echo=$ac_try;; |
| 9610 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9612 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9613 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9614 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9615 | rm -f conftest.er1 |
| 9616 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9618 | (exit $ac_status); } && { |
| 9619 | test -z "$ac_c_werror_flag" || |
| 9620 | test ! -s conftest.err |
| 9621 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9622 | ac_hi=$ac_mid; break |
| 9623 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9624 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9626 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9627 | ac_lo=`expr $ac_mid + 1` |
| 9628 | if test $ac_lo -le $ac_mid; then |
| 9629 | ac_lo= ac_hi= |
| 9630 | break |
| 9631 | fi |
| 9632 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9633 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9634 | |
| 9635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9636 | done |
| 9637 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9638 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9639 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9640 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9641 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9642 | /* confdefs.h. */ |
| 9643 | _ACEOF |
| 9644 | cat confdefs.h >>conftest.$ac_ext |
| 9645 | cat >>conftest.$ac_ext <<_ACEOF |
| 9646 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9647 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9648 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9649 | int |
| 9650 | main () |
| 9651 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9652 | 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] | 9653 | test_array [0] = 0 |
| 9654 | |
| 9655 | ; |
| 9656 | return 0; |
| 9657 | } |
| 9658 | _ACEOF |
| 9659 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9660 | if { (ac_try="$ac_compile" |
| 9661 | case "(($ac_try" in |
| 9662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9663 | *) ac_try_echo=$ac_try;; |
| 9664 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9666 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9667 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9668 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9669 | rm -f conftest.er1 |
| 9670 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9672 | (exit $ac_status); } && { |
| 9673 | test -z "$ac_c_werror_flag" || |
| 9674 | test ! -s conftest.err |
| 9675 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9676 | ac_hi=-1 ac_mid=-1 |
| 9677 | while :; do |
| 9678 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9679 | /* confdefs.h. */ |
| 9680 | _ACEOF |
| 9681 | cat confdefs.h >>conftest.$ac_ext |
| 9682 | cat >>conftest.$ac_ext <<_ACEOF |
| 9683 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9684 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9685 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9686 | int |
| 9687 | main () |
| 9688 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9689 | 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] | 9690 | test_array [0] = 0 |
| 9691 | |
| 9692 | ; |
| 9693 | return 0; |
| 9694 | } |
| 9695 | _ACEOF |
| 9696 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9697 | if { (ac_try="$ac_compile" |
| 9698 | case "(($ac_try" in |
| 9699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9700 | *) ac_try_echo=$ac_try;; |
| 9701 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9703 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9704 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9706 | rm -f conftest.er1 |
| 9707 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9709 | (exit $ac_status); } && { |
| 9710 | test -z "$ac_c_werror_flag" || |
| 9711 | test ! -s conftest.err |
| 9712 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9713 | ac_lo=$ac_mid; break |
| 9714 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9715 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9716 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9717 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9718 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9719 | if test $ac_mid -le $ac_hi; then |
| 9720 | ac_lo= ac_hi= |
| 9721 | break |
| 9722 | fi |
| 9723 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9724 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9725 | |
| 9726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9727 | done |
| 9728 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9729 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9731 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9732 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9733 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9734 | |
| 9735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9736 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9737 | |
| 9738 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9739 | # Binary search between lo and hi bounds. |
| 9740 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9741 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9742 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9743 | /* confdefs.h. */ |
| 9744 | _ACEOF |
| 9745 | cat confdefs.h >>conftest.$ac_ext |
| 9746 | cat >>conftest.$ac_ext <<_ACEOF |
| 9747 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9748 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9749 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9750 | int |
| 9751 | main () |
| 9752 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9753 | 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] | 9754 | test_array [0] = 0 |
| 9755 | |
| 9756 | ; |
| 9757 | return 0; |
| 9758 | } |
| 9759 | _ACEOF |
| 9760 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9761 | if { (ac_try="$ac_compile" |
| 9762 | case "(($ac_try" in |
| 9763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9764 | *) ac_try_echo=$ac_try;; |
| 9765 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9767 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9768 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9769 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9770 | rm -f conftest.er1 |
| 9771 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9773 | (exit $ac_status); } && { |
| 9774 | test -z "$ac_c_werror_flag" || |
| 9775 | test ! -s conftest.err |
| 9776 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9777 | ac_hi=$ac_mid |
| 9778 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9779 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9781 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9782 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9783 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9784 | |
| 9785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9786 | done |
| 9787 | case $ac_lo in |
| 9788 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9789 | '') if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9790 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9791 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9792 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9793 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9794 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9795 | else |
| 9796 | ac_cv_sizeof_double=0 |
| 9797 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9798 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9799 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9800 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9801 | /* confdefs.h. */ |
| 9802 | _ACEOF |
| 9803 | cat confdefs.h >>conftest.$ac_ext |
| 9804 | cat >>conftest.$ac_ext <<_ACEOF |
| 9805 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9806 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9807 | typedef double ac__type_sizeof_; |
| 9808 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9809 | 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] | 9810 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9811 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9812 | int |
| 9813 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9814 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9815 | |
| 9816 | FILE *f = fopen ("conftest.val", "w"); |
| 9817 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9818 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9819 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9820 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9821 | long int i = longval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9822 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9823 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9824 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9825 | } |
| 9826 | else |
| 9827 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9828 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9829 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9830 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9831 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9832 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9833 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9834 | |
| 9835 | ; |
| 9836 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9837 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9838 | _ACEOF |
| 9839 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9840 | if { (ac_try="$ac_link" |
| 9841 | case "(($ac_try" in |
| 9842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9843 | *) ac_try_echo=$ac_try;; |
| 9844 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9846 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9847 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9849 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9850 | { (case "(($ac_try" in |
| 9851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9852 | *) ac_try_echo=$ac_try;; |
| 9853 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9855 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9856 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9858 | (exit $ac_status); }; }; then |
| 9859 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9860 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9861 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9862 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9864 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9865 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9866 | if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9867 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9868 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9869 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9870 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9871 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9872 | else |
| 9873 | ac_cv_sizeof_double=0 |
| 9874 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9875 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9876 | 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] | 9877 | fi |
| 9878 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9879 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9880 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 9881 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9882 | |
| 9883 | |
| 9884 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9885 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9886 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9887 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9888 | |
| 9889 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9890 | { echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 9891 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; } |
| 9892 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 9893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9894 | else |
| 9895 | cat >conftest.$ac_ext <<_ACEOF |
| 9896 | /* confdefs.h. */ |
| 9897 | _ACEOF |
| 9898 | cat confdefs.h >>conftest.$ac_ext |
| 9899 | cat >>conftest.$ac_ext <<_ACEOF |
| 9900 | /* end confdefs.h. */ |
| 9901 | $ac_includes_default |
| 9902 | typedef fpos_t ac__type_new_; |
| 9903 | int |
| 9904 | main () |
| 9905 | { |
| 9906 | if ((ac__type_new_ *) 0) |
| 9907 | return 0; |
| 9908 | if (sizeof (ac__type_new_)) |
| 9909 | return 0; |
| 9910 | ; |
| 9911 | return 0; |
| 9912 | } |
| 9913 | _ACEOF |
| 9914 | rm -f conftest.$ac_objext |
| 9915 | if { (ac_try="$ac_compile" |
| 9916 | case "(($ac_try" in |
| 9917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9918 | *) ac_try_echo=$ac_try;; |
| 9919 | esac |
| 9920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9921 | (eval "$ac_compile") 2>conftest.er1 |
| 9922 | ac_status=$? |
| 9923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9924 | rm -f conftest.er1 |
| 9925 | cat conftest.err >&5 |
| 9926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9927 | (exit $ac_status); } && { |
| 9928 | test -z "$ac_c_werror_flag" || |
| 9929 | test ! -s conftest.err |
| 9930 | } && test -s conftest.$ac_objext; then |
| 9931 | ac_cv_type_fpos_t=yes |
| 9932 | else |
| 9933 | echo "$as_me: failed program was:" >&5 |
| 9934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9935 | |
| 9936 | ac_cv_type_fpos_t=no |
| 9937 | fi |
| 9938 | |
| 9939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9940 | fi |
| 9941 | { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 9942 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; } |
| 9943 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9944 | # The cast to long int works around a bug in the HP C Compiler |
| 9945 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9946 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9947 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9948 | { echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 9949 | 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] | 9950 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9952 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9953 | if test "$cross_compiling" = yes; then |
| 9954 | # Depending upon the size, compute the lo and hi bounds. |
| 9955 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9956 | /* confdefs.h. */ |
| 9957 | _ACEOF |
| 9958 | cat confdefs.h >>conftest.$ac_ext |
| 9959 | cat >>conftest.$ac_ext <<_ACEOF |
| 9960 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9961 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9962 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9963 | int |
| 9964 | main () |
| 9965 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9966 | 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] | 9967 | test_array [0] = 0 |
| 9968 | |
| 9969 | ; |
| 9970 | return 0; |
| 9971 | } |
| 9972 | _ACEOF |
| 9973 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9974 | if { (ac_try="$ac_compile" |
| 9975 | case "(($ac_try" in |
| 9976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9977 | *) ac_try_echo=$ac_try;; |
| 9978 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9980 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9981 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9983 | rm -f conftest.er1 |
| 9984 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9986 | (exit $ac_status); } && { |
| 9987 | test -z "$ac_c_werror_flag" || |
| 9988 | test ! -s conftest.err |
| 9989 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9990 | ac_lo=0 ac_mid=0 |
| 9991 | while :; do |
| 9992 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9993 | /* confdefs.h. */ |
| 9994 | _ACEOF |
| 9995 | cat confdefs.h >>conftest.$ac_ext |
| 9996 | cat >>conftest.$ac_ext <<_ACEOF |
| 9997 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9998 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 9999 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10000 | int |
| 10001 | main () |
| 10002 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10003 | 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] | 10004 | test_array [0] = 0 |
| 10005 | |
| 10006 | ; |
| 10007 | return 0; |
| 10008 | } |
| 10009 | _ACEOF |
| 10010 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10011 | if { (ac_try="$ac_compile" |
| 10012 | case "(($ac_try" in |
| 10013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10014 | *) ac_try_echo=$ac_try;; |
| 10015 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10017 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10018 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10019 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10020 | rm -f conftest.er1 |
| 10021 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10023 | (exit $ac_status); } && { |
| 10024 | test -z "$ac_c_werror_flag" || |
| 10025 | test ! -s conftest.err |
| 10026 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10027 | ac_hi=$ac_mid; break |
| 10028 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10029 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10031 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10032 | ac_lo=`expr $ac_mid + 1` |
| 10033 | if test $ac_lo -le $ac_mid; then |
| 10034 | ac_lo= ac_hi= |
| 10035 | break |
| 10036 | fi |
| 10037 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10038 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10039 | |
| 10040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10041 | done |
| 10042 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10043 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10045 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10046 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10047 | /* confdefs.h. */ |
| 10048 | _ACEOF |
| 10049 | cat confdefs.h >>conftest.$ac_ext |
| 10050 | cat >>conftest.$ac_ext <<_ACEOF |
| 10051 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10052 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10053 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10054 | int |
| 10055 | main () |
| 10056 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10057 | 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] | 10058 | test_array [0] = 0 |
| 10059 | |
| 10060 | ; |
| 10061 | return 0; |
| 10062 | } |
| 10063 | _ACEOF |
| 10064 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10065 | if { (ac_try="$ac_compile" |
| 10066 | case "(($ac_try" in |
| 10067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10068 | *) ac_try_echo=$ac_try;; |
| 10069 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10071 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10072 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10074 | rm -f conftest.er1 |
| 10075 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10077 | (exit $ac_status); } && { |
| 10078 | test -z "$ac_c_werror_flag" || |
| 10079 | test ! -s conftest.err |
| 10080 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10081 | ac_hi=-1 ac_mid=-1 |
| 10082 | while :; do |
| 10083 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10084 | /* confdefs.h. */ |
| 10085 | _ACEOF |
| 10086 | cat confdefs.h >>conftest.$ac_ext |
| 10087 | cat >>conftest.$ac_ext <<_ACEOF |
| 10088 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10089 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10090 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10091 | int |
| 10092 | main () |
| 10093 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10094 | 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] | 10095 | test_array [0] = 0 |
| 10096 | |
| 10097 | ; |
| 10098 | return 0; |
| 10099 | } |
| 10100 | _ACEOF |
| 10101 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10102 | if { (ac_try="$ac_compile" |
| 10103 | case "(($ac_try" in |
| 10104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10105 | *) ac_try_echo=$ac_try;; |
| 10106 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10108 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10109 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10110 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10111 | rm -f conftest.er1 |
| 10112 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10114 | (exit $ac_status); } && { |
| 10115 | test -z "$ac_c_werror_flag" || |
| 10116 | test ! -s conftest.err |
| 10117 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10118 | ac_lo=$ac_mid; break |
| 10119 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10120 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10122 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10123 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10124 | if test $ac_mid -le $ac_hi; then |
| 10125 | ac_lo= ac_hi= |
| 10126 | break |
| 10127 | fi |
| 10128 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10129 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10130 | |
| 10131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10132 | done |
| 10133 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10134 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10136 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10137 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10138 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10139 | |
| 10140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10141 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10142 | |
| 10143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10144 | # Binary search between lo and hi bounds. |
| 10145 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10146 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10147 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10148 | /* confdefs.h. */ |
| 10149 | _ACEOF |
| 10150 | cat confdefs.h >>conftest.$ac_ext |
| 10151 | cat >>conftest.$ac_ext <<_ACEOF |
| 10152 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10153 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10154 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10155 | int |
| 10156 | main () |
| 10157 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10158 | 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] | 10159 | test_array [0] = 0 |
| 10160 | |
| 10161 | ; |
| 10162 | return 0; |
| 10163 | } |
| 10164 | _ACEOF |
| 10165 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10166 | if { (ac_try="$ac_compile" |
| 10167 | case "(($ac_try" in |
| 10168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10169 | *) ac_try_echo=$ac_try;; |
| 10170 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10172 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10173 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10175 | rm -f conftest.er1 |
| 10176 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10178 | (exit $ac_status); } && { |
| 10179 | test -z "$ac_c_werror_flag" || |
| 10180 | test ! -s conftest.err |
| 10181 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10182 | ac_hi=$ac_mid |
| 10183 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10184 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10186 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10187 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10188 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10189 | |
| 10190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10191 | done |
| 10192 | case $ac_lo in |
| 10193 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10194 | '') if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10195 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10196 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10197 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10198 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10199 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10200 | else |
| 10201 | ac_cv_sizeof_fpos_t=0 |
| 10202 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10203 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10204 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10205 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10206 | /* confdefs.h. */ |
| 10207 | _ACEOF |
| 10208 | cat confdefs.h >>conftest.$ac_ext |
| 10209 | cat >>conftest.$ac_ext <<_ACEOF |
| 10210 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10211 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10212 | typedef fpos_t ac__type_sizeof_; |
| 10213 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10214 | 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] | 10215 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10216 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10217 | int |
| 10218 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10219 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10220 | |
| 10221 | FILE *f = fopen ("conftest.val", "w"); |
| 10222 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10223 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10224 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10225 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10226 | long int i = longval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10227 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10228 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10229 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10230 | } |
| 10231 | else |
| 10232 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10233 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10234 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10235 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10236 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10237 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10238 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10239 | |
| 10240 | ; |
| 10241 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10242 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10243 | _ACEOF |
| 10244 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10245 | if { (ac_try="$ac_link" |
| 10246 | case "(($ac_try" in |
| 10247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10248 | *) ac_try_echo=$ac_try;; |
| 10249 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10251 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10252 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10254 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10255 | { (case "(($ac_try" in |
| 10256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10257 | *) ac_try_echo=$ac_try;; |
| 10258 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10260 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10261 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10263 | (exit $ac_status); }; }; then |
| 10264 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10265 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10266 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10267 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10269 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10270 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10271 | if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10272 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10273 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10274 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10275 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10276 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10277 | else |
| 10278 | ac_cv_sizeof_fpos_t=0 |
| 10279 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10280 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10281 | 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] | 10282 | fi |
| 10283 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10284 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10285 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 10286 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10287 | |
| 10288 | |
| 10289 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10290 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10291 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10292 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10293 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10294 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10295 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 10296 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 10297 | if test "${ac_cv_type_size_t+set}" = set; then |
| 10298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10299 | else |
| 10300 | cat >conftest.$ac_ext <<_ACEOF |
| 10301 | /* confdefs.h. */ |
| 10302 | _ACEOF |
| 10303 | cat confdefs.h >>conftest.$ac_ext |
| 10304 | cat >>conftest.$ac_ext <<_ACEOF |
| 10305 | /* end confdefs.h. */ |
| 10306 | $ac_includes_default |
| 10307 | typedef size_t ac__type_new_; |
| 10308 | int |
| 10309 | main () |
| 10310 | { |
| 10311 | if ((ac__type_new_ *) 0) |
| 10312 | return 0; |
| 10313 | if (sizeof (ac__type_new_)) |
| 10314 | return 0; |
| 10315 | ; |
| 10316 | return 0; |
| 10317 | } |
| 10318 | _ACEOF |
| 10319 | rm -f conftest.$ac_objext |
| 10320 | if { (ac_try="$ac_compile" |
| 10321 | case "(($ac_try" in |
| 10322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10323 | *) ac_try_echo=$ac_try;; |
| 10324 | esac |
| 10325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10326 | (eval "$ac_compile") 2>conftest.er1 |
| 10327 | ac_status=$? |
| 10328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10329 | rm -f conftest.er1 |
| 10330 | cat conftest.err >&5 |
| 10331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10332 | (exit $ac_status); } && { |
| 10333 | test -z "$ac_c_werror_flag" || |
| 10334 | test ! -s conftest.err |
| 10335 | } && test -s conftest.$ac_objext; then |
| 10336 | ac_cv_type_size_t=yes |
| 10337 | else |
| 10338 | echo "$as_me: failed program was:" >&5 |
| 10339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10340 | |
| 10341 | ac_cv_type_size_t=no |
| 10342 | fi |
| 10343 | |
| 10344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10345 | fi |
| 10346 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 10347 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 10348 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10349 | # The cast to long int works around a bug in the HP C Compiler |
| 10350 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10351 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10352 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10353 | { echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 10354 | 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] | 10355 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10357 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10358 | if test "$cross_compiling" = yes; then |
| 10359 | # Depending upon the size, compute the lo and hi bounds. |
| 10360 | cat >conftest.$ac_ext <<_ACEOF |
| 10361 | /* confdefs.h. */ |
| 10362 | _ACEOF |
| 10363 | cat confdefs.h >>conftest.$ac_ext |
| 10364 | cat >>conftest.$ac_ext <<_ACEOF |
| 10365 | /* end confdefs.h. */ |
| 10366 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10367 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10368 | int |
| 10369 | main () |
| 10370 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10371 | 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] | 10372 | test_array [0] = 0 |
| 10373 | |
| 10374 | ; |
| 10375 | return 0; |
| 10376 | } |
| 10377 | _ACEOF |
| 10378 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10379 | if { (ac_try="$ac_compile" |
| 10380 | case "(($ac_try" in |
| 10381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10382 | *) ac_try_echo=$ac_try;; |
| 10383 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10385 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10386 | ac_status=$? |
| 10387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10388 | rm -f conftest.er1 |
| 10389 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10391 | (exit $ac_status); } && { |
| 10392 | test -z "$ac_c_werror_flag" || |
| 10393 | test ! -s conftest.err |
| 10394 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10395 | ac_lo=0 ac_mid=0 |
| 10396 | while :; do |
| 10397 | cat >conftest.$ac_ext <<_ACEOF |
| 10398 | /* confdefs.h. */ |
| 10399 | _ACEOF |
| 10400 | cat confdefs.h >>conftest.$ac_ext |
| 10401 | cat >>conftest.$ac_ext <<_ACEOF |
| 10402 | /* end confdefs.h. */ |
| 10403 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10404 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10405 | int |
| 10406 | main () |
| 10407 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10408 | 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] | 10409 | test_array [0] = 0 |
| 10410 | |
| 10411 | ; |
| 10412 | return 0; |
| 10413 | } |
| 10414 | _ACEOF |
| 10415 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10416 | if { (ac_try="$ac_compile" |
| 10417 | case "(($ac_try" in |
| 10418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10419 | *) ac_try_echo=$ac_try;; |
| 10420 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10422 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10423 | ac_status=$? |
| 10424 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10425 | rm -f conftest.er1 |
| 10426 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10428 | (exit $ac_status); } && { |
| 10429 | test -z "$ac_c_werror_flag" || |
| 10430 | test ! -s conftest.err |
| 10431 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10432 | ac_hi=$ac_mid; break |
| 10433 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10434 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10436 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10437 | ac_lo=`expr $ac_mid + 1` |
| 10438 | if test $ac_lo -le $ac_mid; then |
| 10439 | ac_lo= ac_hi= |
| 10440 | break |
| 10441 | fi |
| 10442 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10443 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10444 | |
| 10445 | 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] | 10446 | done |
| 10447 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10448 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10450 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10451 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10452 | /* confdefs.h. */ |
| 10453 | _ACEOF |
| 10454 | cat confdefs.h >>conftest.$ac_ext |
| 10455 | cat >>conftest.$ac_ext <<_ACEOF |
| 10456 | /* end confdefs.h. */ |
| 10457 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10458 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10459 | int |
| 10460 | main () |
| 10461 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10462 | 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] | 10463 | test_array [0] = 0 |
| 10464 | |
| 10465 | ; |
| 10466 | return 0; |
| 10467 | } |
| 10468 | _ACEOF |
| 10469 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10470 | if { (ac_try="$ac_compile" |
| 10471 | case "(($ac_try" in |
| 10472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10473 | *) ac_try_echo=$ac_try;; |
| 10474 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10476 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10477 | ac_status=$? |
| 10478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10479 | rm -f conftest.er1 |
| 10480 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10482 | (exit $ac_status); } && { |
| 10483 | test -z "$ac_c_werror_flag" || |
| 10484 | test ! -s conftest.err |
| 10485 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10486 | ac_hi=-1 ac_mid=-1 |
| 10487 | while :; do |
| 10488 | cat >conftest.$ac_ext <<_ACEOF |
| 10489 | /* confdefs.h. */ |
| 10490 | _ACEOF |
| 10491 | cat confdefs.h >>conftest.$ac_ext |
| 10492 | cat >>conftest.$ac_ext <<_ACEOF |
| 10493 | /* end confdefs.h. */ |
| 10494 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10495 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10496 | int |
| 10497 | main () |
| 10498 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10499 | 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] | 10500 | test_array [0] = 0 |
| 10501 | |
| 10502 | ; |
| 10503 | return 0; |
| 10504 | } |
| 10505 | _ACEOF |
| 10506 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10507 | if { (ac_try="$ac_compile" |
| 10508 | case "(($ac_try" in |
| 10509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10510 | *) ac_try_echo=$ac_try;; |
| 10511 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10513 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10514 | ac_status=$? |
| 10515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10516 | rm -f conftest.er1 |
| 10517 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10519 | (exit $ac_status); } && { |
| 10520 | test -z "$ac_c_werror_flag" || |
| 10521 | test ! -s conftest.err |
| 10522 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10523 | ac_lo=$ac_mid; break |
| 10524 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10525 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10527 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10528 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10529 | if test $ac_mid -le $ac_hi; then |
| 10530 | ac_lo= ac_hi= |
| 10531 | break |
| 10532 | fi |
| 10533 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10534 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10535 | |
| 10536 | 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] | 10537 | done |
| 10538 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10539 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10541 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10542 | ac_lo= ac_hi= |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10543 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10544 | |
| 10545 | 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] | 10546 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10547 | |
| 10548 | 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] | 10549 | # Binary search between lo and hi bounds. |
| 10550 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10551 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10552 | cat >conftest.$ac_ext <<_ACEOF |
| 10553 | /* confdefs.h. */ |
| 10554 | _ACEOF |
| 10555 | cat confdefs.h >>conftest.$ac_ext |
| 10556 | cat >>conftest.$ac_ext <<_ACEOF |
| 10557 | /* end confdefs.h. */ |
| 10558 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10559 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10560 | int |
| 10561 | main () |
| 10562 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10563 | 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] | 10564 | test_array [0] = 0 |
| 10565 | |
| 10566 | ; |
| 10567 | return 0; |
| 10568 | } |
| 10569 | _ACEOF |
| 10570 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10571 | if { (ac_try="$ac_compile" |
| 10572 | case "(($ac_try" in |
| 10573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10574 | *) ac_try_echo=$ac_try;; |
| 10575 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10577 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10578 | ac_status=$? |
| 10579 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10580 | rm -f conftest.er1 |
| 10581 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10583 | (exit $ac_status); } && { |
| 10584 | test -z "$ac_c_werror_flag" || |
| 10585 | test ! -s conftest.err |
| 10586 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10587 | ac_hi=$ac_mid |
| 10588 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10589 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10591 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10592 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10593 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10594 | |
| 10595 | 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] | 10596 | done |
| 10597 | case $ac_lo in |
| 10598 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10599 | '') if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10600 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10601 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10602 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10603 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10604 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10605 | else |
| 10606 | ac_cv_sizeof_size_t=0 |
| 10607 | fi ;; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10608 | esac |
| 10609 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10610 | cat >conftest.$ac_ext <<_ACEOF |
| 10611 | /* confdefs.h. */ |
| 10612 | _ACEOF |
| 10613 | cat confdefs.h >>conftest.$ac_ext |
| 10614 | cat >>conftest.$ac_ext <<_ACEOF |
| 10615 | /* end confdefs.h. */ |
| 10616 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10617 | typedef size_t ac__type_sizeof_; |
| 10618 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10619 | 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] | 10620 | #include <stdio.h> |
| 10621 | #include <stdlib.h> |
| 10622 | int |
| 10623 | main () |
| 10624 | { |
| 10625 | |
| 10626 | FILE *f = fopen ("conftest.val", "w"); |
| 10627 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10628 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10629 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10630 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10631 | long int i = longval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10632 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10633 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10634 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10635 | } |
| 10636 | else |
| 10637 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10638 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10639 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10640 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10641 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10642 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10643 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10644 | |
| 10645 | ; |
| 10646 | return 0; |
| 10647 | } |
| 10648 | _ACEOF |
| 10649 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10650 | if { (ac_try="$ac_link" |
| 10651 | case "(($ac_try" in |
| 10652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10653 | *) ac_try_echo=$ac_try;; |
| 10654 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10656 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10657 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10659 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10660 | { (case "(($ac_try" in |
| 10661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10662 | *) ac_try_echo=$ac_try;; |
| 10663 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10665 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10666 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10668 | (exit $ac_status); }; }; then |
| 10669 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 10670 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10671 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10672 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10674 | |
| 10675 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10676 | if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10677 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10678 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10679 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10680 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10681 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10682 | else |
| 10683 | ac_cv_sizeof_size_t=0 |
| 10684 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10685 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10686 | 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] | 10687 | fi |
| 10688 | rm -f conftest.val |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10689 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10690 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 10691 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10692 | |
| 10693 | |
| 10694 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10695 | cat >>confdefs.h <<_ACEOF |
| 10696 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 10697 | _ACEOF |
| 10698 | |
| 10699 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10700 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 10701 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 10702 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 10703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10704 | else |
| 10705 | cat >conftest.$ac_ext <<_ACEOF |
| 10706 | /* confdefs.h. */ |
| 10707 | _ACEOF |
| 10708 | cat confdefs.h >>conftest.$ac_ext |
| 10709 | cat >>conftest.$ac_ext <<_ACEOF |
| 10710 | /* end confdefs.h. */ |
| 10711 | $ac_includes_default |
| 10712 | typedef pid_t ac__type_new_; |
| 10713 | int |
| 10714 | main () |
| 10715 | { |
| 10716 | if ((ac__type_new_ *) 0) |
| 10717 | return 0; |
| 10718 | if (sizeof (ac__type_new_)) |
| 10719 | return 0; |
| 10720 | ; |
| 10721 | return 0; |
| 10722 | } |
| 10723 | _ACEOF |
| 10724 | rm -f conftest.$ac_objext |
| 10725 | if { (ac_try="$ac_compile" |
| 10726 | case "(($ac_try" in |
| 10727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10728 | *) ac_try_echo=$ac_try;; |
| 10729 | esac |
| 10730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10731 | (eval "$ac_compile") 2>conftest.er1 |
| 10732 | ac_status=$? |
| 10733 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10734 | rm -f conftest.er1 |
| 10735 | cat conftest.err >&5 |
| 10736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10737 | (exit $ac_status); } && { |
| 10738 | test -z "$ac_c_werror_flag" || |
| 10739 | test ! -s conftest.err |
| 10740 | } && test -s conftest.$ac_objext; then |
| 10741 | ac_cv_type_pid_t=yes |
| 10742 | else |
| 10743 | echo "$as_me: failed program was:" >&5 |
| 10744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10745 | |
| 10746 | ac_cv_type_pid_t=no |
| 10747 | fi |
| 10748 | |
| 10749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10750 | fi |
| 10751 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 10752 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 10753 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10754 | # The cast to long int works around a bug in the HP C Compiler |
| 10755 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10756 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10757 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10758 | { echo "$as_me:$LINENO: checking size of pid_t" >&5 |
| 10759 | echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10760 | if test "${ac_cv_sizeof_pid_t+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10762 | else |
| 10763 | if test "$cross_compiling" = yes; then |
| 10764 | # Depending upon the size, compute the lo and hi bounds. |
| 10765 | cat >conftest.$ac_ext <<_ACEOF |
| 10766 | /* confdefs.h. */ |
| 10767 | _ACEOF |
| 10768 | cat confdefs.h >>conftest.$ac_ext |
| 10769 | cat >>conftest.$ac_ext <<_ACEOF |
| 10770 | /* end confdefs.h. */ |
| 10771 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10772 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10773 | int |
| 10774 | main () |
| 10775 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10776 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10777 | test_array [0] = 0 |
| 10778 | |
| 10779 | ; |
| 10780 | return 0; |
| 10781 | } |
| 10782 | _ACEOF |
| 10783 | rm -f conftest.$ac_objext |
| 10784 | if { (ac_try="$ac_compile" |
| 10785 | case "(($ac_try" in |
| 10786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10787 | *) ac_try_echo=$ac_try;; |
| 10788 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10790 | (eval "$ac_compile") 2>conftest.er1 |
| 10791 | ac_status=$? |
| 10792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10793 | rm -f conftest.er1 |
| 10794 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10796 | (exit $ac_status); } && { |
| 10797 | test -z "$ac_c_werror_flag" || |
| 10798 | test ! -s conftest.err |
| 10799 | } && test -s conftest.$ac_objext; then |
| 10800 | ac_lo=0 ac_mid=0 |
| 10801 | while :; do |
| 10802 | cat >conftest.$ac_ext <<_ACEOF |
| 10803 | /* confdefs.h. */ |
| 10804 | _ACEOF |
| 10805 | cat confdefs.h >>conftest.$ac_ext |
| 10806 | cat >>conftest.$ac_ext <<_ACEOF |
| 10807 | /* end confdefs.h. */ |
| 10808 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10809 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10810 | int |
| 10811 | main () |
| 10812 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10813 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10814 | test_array [0] = 0 |
| 10815 | |
| 10816 | ; |
| 10817 | return 0; |
| 10818 | } |
| 10819 | _ACEOF |
| 10820 | rm -f conftest.$ac_objext |
| 10821 | if { (ac_try="$ac_compile" |
| 10822 | case "(($ac_try" in |
| 10823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10824 | *) ac_try_echo=$ac_try;; |
| 10825 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10827 | (eval "$ac_compile") 2>conftest.er1 |
| 10828 | ac_status=$? |
| 10829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10830 | rm -f conftest.er1 |
| 10831 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10833 | (exit $ac_status); } && { |
| 10834 | test -z "$ac_c_werror_flag" || |
| 10835 | test ! -s conftest.err |
| 10836 | } && test -s conftest.$ac_objext; then |
| 10837 | ac_hi=$ac_mid; break |
| 10838 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10839 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10841 | |
| 10842 | ac_lo=`expr $ac_mid + 1` |
| 10843 | if test $ac_lo -le $ac_mid; then |
| 10844 | ac_lo= ac_hi= |
| 10845 | break |
| 10846 | fi |
| 10847 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 10848 | fi |
| 10849 | |
| 10850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10851 | done |
| 10852 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10853 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10855 | |
| 10856 | cat >conftest.$ac_ext <<_ACEOF |
| 10857 | /* confdefs.h. */ |
| 10858 | _ACEOF |
| 10859 | cat confdefs.h >>conftest.$ac_ext |
| 10860 | cat >>conftest.$ac_ext <<_ACEOF |
| 10861 | /* end confdefs.h. */ |
| 10862 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10863 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10864 | int |
| 10865 | main () |
| 10866 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10867 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10868 | test_array [0] = 0 |
| 10869 | |
| 10870 | ; |
| 10871 | return 0; |
| 10872 | } |
| 10873 | _ACEOF |
| 10874 | rm -f conftest.$ac_objext |
| 10875 | if { (ac_try="$ac_compile" |
| 10876 | case "(($ac_try" in |
| 10877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10878 | *) ac_try_echo=$ac_try;; |
| 10879 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10881 | (eval "$ac_compile") 2>conftest.er1 |
| 10882 | ac_status=$? |
| 10883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10884 | rm -f conftest.er1 |
| 10885 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10887 | (exit $ac_status); } && { |
| 10888 | test -z "$ac_c_werror_flag" || |
| 10889 | test ! -s conftest.err |
| 10890 | } && test -s conftest.$ac_objext; then |
| 10891 | ac_hi=-1 ac_mid=-1 |
| 10892 | while :; do |
| 10893 | cat >conftest.$ac_ext <<_ACEOF |
| 10894 | /* confdefs.h. */ |
| 10895 | _ACEOF |
| 10896 | cat confdefs.h >>conftest.$ac_ext |
| 10897 | cat >>conftest.$ac_ext <<_ACEOF |
| 10898 | /* end confdefs.h. */ |
| 10899 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10900 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10901 | int |
| 10902 | main () |
| 10903 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10904 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10905 | test_array [0] = 0 |
| 10906 | |
| 10907 | ; |
| 10908 | return 0; |
| 10909 | } |
| 10910 | _ACEOF |
| 10911 | rm -f conftest.$ac_objext |
| 10912 | if { (ac_try="$ac_compile" |
| 10913 | case "(($ac_try" in |
| 10914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10915 | *) ac_try_echo=$ac_try;; |
| 10916 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10918 | (eval "$ac_compile") 2>conftest.er1 |
| 10919 | ac_status=$? |
| 10920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10921 | rm -f conftest.er1 |
| 10922 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10924 | (exit $ac_status); } && { |
| 10925 | test -z "$ac_c_werror_flag" || |
| 10926 | test ! -s conftest.err |
| 10927 | } && test -s conftest.$ac_objext; then |
| 10928 | ac_lo=$ac_mid; break |
| 10929 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10930 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10932 | |
| 10933 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10934 | if test $ac_mid -le $ac_hi; then |
| 10935 | ac_lo= ac_hi= |
| 10936 | break |
| 10937 | fi |
| 10938 | ac_mid=`expr 2 '*' $ac_mid` |
| 10939 | fi |
| 10940 | |
| 10941 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10942 | done |
| 10943 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10944 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10946 | |
| 10947 | ac_lo= ac_hi= |
| 10948 | fi |
| 10949 | |
| 10950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10951 | fi |
| 10952 | |
| 10953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10954 | # Binary search between lo and hi bounds. |
| 10955 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10956 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10957 | cat >conftest.$ac_ext <<_ACEOF |
| 10958 | /* confdefs.h. */ |
| 10959 | _ACEOF |
| 10960 | cat confdefs.h >>conftest.$ac_ext |
| 10961 | cat >>conftest.$ac_ext <<_ACEOF |
| 10962 | /* end confdefs.h. */ |
| 10963 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10964 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10965 | int |
| 10966 | main () |
| 10967 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10968 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10969 | test_array [0] = 0 |
| 10970 | |
| 10971 | ; |
| 10972 | return 0; |
| 10973 | } |
| 10974 | _ACEOF |
| 10975 | rm -f conftest.$ac_objext |
| 10976 | if { (ac_try="$ac_compile" |
| 10977 | case "(($ac_try" in |
| 10978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10979 | *) ac_try_echo=$ac_try;; |
| 10980 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10982 | (eval "$ac_compile") 2>conftest.er1 |
| 10983 | ac_status=$? |
| 10984 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10985 | rm -f conftest.er1 |
| 10986 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10988 | (exit $ac_status); } && { |
| 10989 | test -z "$ac_c_werror_flag" || |
| 10990 | test ! -s conftest.err |
| 10991 | } && test -s conftest.$ac_objext; then |
| 10992 | ac_hi=$ac_mid |
| 10993 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 10994 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10996 | |
| 10997 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 10998 | fi |
| 10999 | |
| 11000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11001 | done |
| 11002 | case $ac_lo in |
| 11003 | ?*) ac_cv_sizeof_pid_t=$ac_lo;; |
| 11004 | '') if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11005 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11006 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11007 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11008 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11009 | { (exit 77); exit 77; }; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11010 | else |
| 11011 | ac_cv_sizeof_pid_t=0 |
| 11012 | fi ;; |
| 11013 | esac |
| 11014 | else |
| 11015 | cat >conftest.$ac_ext <<_ACEOF |
| 11016 | /* confdefs.h. */ |
| 11017 | _ACEOF |
| 11018 | cat confdefs.h >>conftest.$ac_ext |
| 11019 | cat >>conftest.$ac_ext <<_ACEOF |
| 11020 | /* end confdefs.h. */ |
| 11021 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11022 | typedef pid_t ac__type_sizeof_; |
| 11023 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11024 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11025 | #include <stdio.h> |
| 11026 | #include <stdlib.h> |
| 11027 | int |
| 11028 | main () |
| 11029 | { |
| 11030 | |
| 11031 | FILE *f = fopen ("conftest.val", "w"); |
| 11032 | if (! f) |
| 11033 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11034 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11035 | { |
| 11036 | long int i = longval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11037 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11038 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11039 | fprintf (f, "%ld\n", i); |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11040 | } |
| 11041 | else |
| 11042 | { |
| 11043 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11044 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11045 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11046 | fprintf (f, "%lu\n", i); |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11047 | } |
| 11048 | return ferror (f) || fclose (f) != 0; |
| 11049 | |
| 11050 | ; |
| 11051 | return 0; |
| 11052 | } |
| 11053 | _ACEOF |
| 11054 | rm -f conftest$ac_exeext |
| 11055 | if { (ac_try="$ac_link" |
| 11056 | case "(($ac_try" in |
| 11057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11058 | *) ac_try_echo=$ac_try;; |
| 11059 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11061 | (eval "$ac_link") 2>&5 |
| 11062 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11064 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11065 | { (case "(($ac_try" in |
| 11066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11067 | *) ac_try_echo=$ac_try;; |
| 11068 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11070 | (eval "$ac_try") 2>&5 |
| 11071 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11073 | (exit $ac_status); }; }; then |
| 11074 | ac_cv_sizeof_pid_t=`cat conftest.val` |
| 11075 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11076 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11077 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11079 | |
| 11080 | ( exit $ac_status ) |
| 11081 | if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11082 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11083 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11084 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11085 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11086 | { (exit 77); exit 77; }; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11087 | else |
| 11088 | ac_cv_sizeof_pid_t=0 |
| 11089 | fi |
| 11090 | fi |
| 11091 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11092 | fi |
| 11093 | rm -f conftest.val |
| 11094 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11095 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5 |
| 11096 | echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11097 | |
| 11098 | |
| 11099 | |
| 11100 | cat >>confdefs.h <<_ACEOF |
| 11101 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 11102 | _ACEOF |
| 11103 | |
| 11104 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11105 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11106 | { echo "$as_me:$LINENO: checking for long long support" >&5 |
| 11107 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11108 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11109 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11110 | /* confdefs.h. */ |
| 11111 | _ACEOF |
| 11112 | cat confdefs.h >>conftest.$ac_ext |
| 11113 | cat >>conftest.$ac_ext <<_ACEOF |
| 11114 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11115 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11116 | int |
| 11117 | main () |
| 11118 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11119 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11120 | ; |
| 11121 | return 0; |
| 11122 | } |
| 11123 | _ACEOF |
| 11124 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11125 | if { (ac_try="$ac_compile" |
| 11126 | case "(($ac_try" in |
| 11127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11128 | *) ac_try_echo=$ac_try;; |
| 11129 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11131 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11132 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11133 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11134 | rm -f conftest.er1 |
| 11135 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11137 | (exit $ac_status); } && { |
| 11138 | test -z "$ac_c_werror_flag" || |
| 11139 | test ! -s conftest.err |
| 11140 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11141 | |
| 11142 | |
| 11143 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11144 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11145 | _ACEOF |
| 11146 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11147 | have_long_long=yes |
| 11148 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11149 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11150 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11152 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11153 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11154 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11155 | |
| 11156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11157 | { echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 11158 | echo "${ECHO_T}$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 11159 | if test "$have_long_long" = yes ; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11160 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 11161 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
| 11162 | if test "${ac_cv_type_long_long+set}" = set; then |
| 11163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11164 | else |
| 11165 | cat >conftest.$ac_ext <<_ACEOF |
| 11166 | /* confdefs.h. */ |
| 11167 | _ACEOF |
| 11168 | cat confdefs.h >>conftest.$ac_ext |
| 11169 | cat >>conftest.$ac_ext <<_ACEOF |
| 11170 | /* end confdefs.h. */ |
| 11171 | $ac_includes_default |
| 11172 | typedef long long ac__type_new_; |
| 11173 | int |
| 11174 | main () |
| 11175 | { |
| 11176 | if ((ac__type_new_ *) 0) |
| 11177 | return 0; |
| 11178 | if (sizeof (ac__type_new_)) |
| 11179 | return 0; |
| 11180 | ; |
| 11181 | return 0; |
| 11182 | } |
| 11183 | _ACEOF |
| 11184 | rm -f conftest.$ac_objext |
| 11185 | if { (ac_try="$ac_compile" |
| 11186 | case "(($ac_try" in |
| 11187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11188 | *) ac_try_echo=$ac_try;; |
| 11189 | esac |
| 11190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11191 | (eval "$ac_compile") 2>conftest.er1 |
| 11192 | ac_status=$? |
| 11193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11194 | rm -f conftest.er1 |
| 11195 | cat conftest.err >&5 |
| 11196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11197 | (exit $ac_status); } && { |
| 11198 | test -z "$ac_c_werror_flag" || |
| 11199 | test ! -s conftest.err |
| 11200 | } && test -s conftest.$ac_objext; then |
| 11201 | ac_cv_type_long_long=yes |
| 11202 | else |
| 11203 | echo "$as_me: failed program was:" >&5 |
| 11204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11205 | |
| 11206 | ac_cv_type_long_long=no |
| 11207 | fi |
| 11208 | |
| 11209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11210 | fi |
| 11211 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 11212 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 11213 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11214 | # The cast to long int works around a bug in the HP C Compiler |
| 11215 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11216 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11217 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11218 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 11219 | 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] | 11220 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11222 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11223 | if test "$cross_compiling" = yes; then |
| 11224 | # Depending upon the size, compute the lo and hi bounds. |
| 11225 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11226 | /* confdefs.h. */ |
| 11227 | _ACEOF |
| 11228 | cat confdefs.h >>conftest.$ac_ext |
| 11229 | cat >>conftest.$ac_ext <<_ACEOF |
| 11230 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11231 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11232 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11233 | int |
| 11234 | main () |
| 11235 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11236 | 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] | 11237 | test_array [0] = 0 |
| 11238 | |
| 11239 | ; |
| 11240 | return 0; |
| 11241 | } |
| 11242 | _ACEOF |
| 11243 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11244 | if { (ac_try="$ac_compile" |
| 11245 | case "(($ac_try" in |
| 11246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11247 | *) ac_try_echo=$ac_try;; |
| 11248 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11250 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11251 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11252 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11253 | rm -f conftest.er1 |
| 11254 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11256 | (exit $ac_status); } && { |
| 11257 | test -z "$ac_c_werror_flag" || |
| 11258 | test ! -s conftest.err |
| 11259 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11260 | ac_lo=0 ac_mid=0 |
| 11261 | while :; do |
| 11262 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11263 | /* confdefs.h. */ |
| 11264 | _ACEOF |
| 11265 | cat confdefs.h >>conftest.$ac_ext |
| 11266 | cat >>conftest.$ac_ext <<_ACEOF |
| 11267 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11268 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11269 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11270 | int |
| 11271 | main () |
| 11272 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11273 | 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] | 11274 | test_array [0] = 0 |
| 11275 | |
| 11276 | ; |
| 11277 | return 0; |
| 11278 | } |
| 11279 | _ACEOF |
| 11280 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11281 | if { (ac_try="$ac_compile" |
| 11282 | case "(($ac_try" in |
| 11283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11284 | *) ac_try_echo=$ac_try;; |
| 11285 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11287 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11288 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11289 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11290 | rm -f conftest.er1 |
| 11291 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11293 | (exit $ac_status); } && { |
| 11294 | test -z "$ac_c_werror_flag" || |
| 11295 | test ! -s conftest.err |
| 11296 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11297 | ac_hi=$ac_mid; break |
| 11298 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11299 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11301 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11302 | ac_lo=`expr $ac_mid + 1` |
| 11303 | if test $ac_lo -le $ac_mid; then |
| 11304 | ac_lo= ac_hi= |
| 11305 | break |
| 11306 | fi |
| 11307 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11308 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11309 | |
| 11310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11311 | done |
| 11312 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11313 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11315 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11316 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11317 | /* confdefs.h. */ |
| 11318 | _ACEOF |
| 11319 | cat confdefs.h >>conftest.$ac_ext |
| 11320 | cat >>conftest.$ac_ext <<_ACEOF |
| 11321 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11322 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11323 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11324 | int |
| 11325 | main () |
| 11326 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11327 | 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] | 11328 | test_array [0] = 0 |
| 11329 | |
| 11330 | ; |
| 11331 | return 0; |
| 11332 | } |
| 11333 | _ACEOF |
| 11334 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11335 | if { (ac_try="$ac_compile" |
| 11336 | case "(($ac_try" in |
| 11337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11338 | *) ac_try_echo=$ac_try;; |
| 11339 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11341 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11342 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11343 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11344 | rm -f conftest.er1 |
| 11345 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11347 | (exit $ac_status); } && { |
| 11348 | test -z "$ac_c_werror_flag" || |
| 11349 | test ! -s conftest.err |
| 11350 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11351 | ac_hi=-1 ac_mid=-1 |
| 11352 | while :; do |
| 11353 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11354 | /* confdefs.h. */ |
| 11355 | _ACEOF |
| 11356 | cat confdefs.h >>conftest.$ac_ext |
| 11357 | cat >>conftest.$ac_ext <<_ACEOF |
| 11358 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11359 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11360 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11361 | int |
| 11362 | main () |
| 11363 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11364 | 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] | 11365 | test_array [0] = 0 |
| 11366 | |
| 11367 | ; |
| 11368 | return 0; |
| 11369 | } |
| 11370 | _ACEOF |
| 11371 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11372 | if { (ac_try="$ac_compile" |
| 11373 | case "(($ac_try" in |
| 11374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11375 | *) ac_try_echo=$ac_try;; |
| 11376 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11378 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11379 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11380 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11381 | rm -f conftest.er1 |
| 11382 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11384 | (exit $ac_status); } && { |
| 11385 | test -z "$ac_c_werror_flag" || |
| 11386 | test ! -s conftest.err |
| 11387 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11388 | ac_lo=$ac_mid; break |
| 11389 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11390 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11392 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11393 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11394 | if test $ac_mid -le $ac_hi; then |
| 11395 | ac_lo= ac_hi= |
| 11396 | break |
| 11397 | fi |
| 11398 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11399 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11400 | |
| 11401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11402 | done |
| 11403 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11404 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11406 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11407 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11408 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11409 | |
| 11410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11411 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11412 | |
| 11413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11414 | # Binary search between lo and hi bounds. |
| 11415 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11416 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11417 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11418 | /* confdefs.h. */ |
| 11419 | _ACEOF |
| 11420 | cat confdefs.h >>conftest.$ac_ext |
| 11421 | cat >>conftest.$ac_ext <<_ACEOF |
| 11422 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11423 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11424 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11425 | int |
| 11426 | main () |
| 11427 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11428 | 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] | 11429 | test_array [0] = 0 |
| 11430 | |
| 11431 | ; |
| 11432 | return 0; |
| 11433 | } |
| 11434 | _ACEOF |
| 11435 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11436 | if { (ac_try="$ac_compile" |
| 11437 | case "(($ac_try" in |
| 11438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11439 | *) ac_try_echo=$ac_try;; |
| 11440 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11442 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11443 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11445 | rm -f conftest.er1 |
| 11446 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11448 | (exit $ac_status); } && { |
| 11449 | test -z "$ac_c_werror_flag" || |
| 11450 | test ! -s conftest.err |
| 11451 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11452 | ac_hi=$ac_mid |
| 11453 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11454 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11456 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11457 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11458 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11459 | |
| 11460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11461 | done |
| 11462 | case $ac_lo in |
| 11463 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11464 | '') if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11465 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11466 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11467 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11468 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11469 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11470 | else |
| 11471 | ac_cv_sizeof_long_long=0 |
| 11472 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11473 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11474 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11475 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11476 | /* confdefs.h. */ |
| 11477 | _ACEOF |
| 11478 | cat confdefs.h >>conftest.$ac_ext |
| 11479 | cat >>conftest.$ac_ext <<_ACEOF |
| 11480 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11481 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11482 | typedef long long ac__type_sizeof_; |
| 11483 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11484 | 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] | 11485 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11486 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11487 | int |
| 11488 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11489 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11490 | |
| 11491 | FILE *f = fopen ("conftest.val", "w"); |
| 11492 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11493 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11494 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11495 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11496 | long int i = longval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11497 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11498 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11499 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11500 | } |
| 11501 | else |
| 11502 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11503 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11504 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11505 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11506 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11507 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11508 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11509 | |
| 11510 | ; |
| 11511 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11512 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11513 | _ACEOF |
| 11514 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11515 | if { (ac_try="$ac_link" |
| 11516 | case "(($ac_try" in |
| 11517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11518 | *) ac_try_echo=$ac_try;; |
| 11519 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11521 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11522 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11524 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11525 | { (case "(($ac_try" in |
| 11526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11527 | *) ac_try_echo=$ac_try;; |
| 11528 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11530 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11531 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11533 | (exit $ac_status); }; }; then |
| 11534 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11535 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11536 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11537 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11540 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11541 | if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11542 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11543 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11544 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11545 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11546 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11547 | else |
| 11548 | ac_cv_sizeof_long_long=0 |
| 11549 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11550 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11551 | 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] | 11552 | fi |
| 11553 | rm -f conftest.val |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11554 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11555 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 11556 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11557 | |
| 11558 | |
| 11559 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11560 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11561 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11562 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11563 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11564 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11565 | fi |
| 11566 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11567 | { echo "$as_me:$LINENO: checking for long double support" >&5 |
| 11568 | echo $ECHO_N "checking for long double support... $ECHO_C" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11569 | have_long_double=no |
| 11570 | cat >conftest.$ac_ext <<_ACEOF |
| 11571 | /* confdefs.h. */ |
| 11572 | _ACEOF |
| 11573 | cat confdefs.h >>conftest.$ac_ext |
| 11574 | cat >>conftest.$ac_ext <<_ACEOF |
| 11575 | /* end confdefs.h. */ |
| 11576 | |
| 11577 | int |
| 11578 | main () |
| 11579 | { |
| 11580 | long double x; x = (long double)0; |
| 11581 | ; |
| 11582 | return 0; |
| 11583 | } |
| 11584 | _ACEOF |
| 11585 | rm -f conftest.$ac_objext |
| 11586 | if { (ac_try="$ac_compile" |
| 11587 | case "(($ac_try" in |
| 11588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11589 | *) ac_try_echo=$ac_try;; |
| 11590 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11592 | (eval "$ac_compile") 2>conftest.er1 |
| 11593 | ac_status=$? |
| 11594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11595 | rm -f conftest.er1 |
| 11596 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11598 | (exit $ac_status); } && { |
| 11599 | test -z "$ac_c_werror_flag" || |
| 11600 | test ! -s conftest.err |
| 11601 | } && test -s conftest.$ac_objext; then |
| 11602 | |
| 11603 | |
| 11604 | cat >>confdefs.h <<\_ACEOF |
| 11605 | #define HAVE_LONG_DOUBLE 1 |
| 11606 | _ACEOF |
| 11607 | |
| 11608 | have_long_double=yes |
| 11609 | |
| 11610 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11611 | echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11612 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11613 | |
| 11614 | |
| 11615 | fi |
| 11616 | |
| 11617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11618 | { echo "$as_me:$LINENO: result: $have_long_double" >&5 |
| 11619 | echo "${ECHO_T}$have_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11620 | if test "$have_long_double" = yes ; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11621 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 11622 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
| 11623 | if test "${ac_cv_type_long_double+set}" = set; then |
| 11624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11625 | else |
| 11626 | cat >conftest.$ac_ext <<_ACEOF |
| 11627 | /* confdefs.h. */ |
| 11628 | _ACEOF |
| 11629 | cat confdefs.h >>conftest.$ac_ext |
| 11630 | cat >>conftest.$ac_ext <<_ACEOF |
| 11631 | /* end confdefs.h. */ |
| 11632 | $ac_includes_default |
| 11633 | typedef long double ac__type_new_; |
| 11634 | int |
| 11635 | main () |
| 11636 | { |
| 11637 | if ((ac__type_new_ *) 0) |
| 11638 | return 0; |
| 11639 | if (sizeof (ac__type_new_)) |
| 11640 | return 0; |
| 11641 | ; |
| 11642 | return 0; |
| 11643 | } |
| 11644 | _ACEOF |
| 11645 | rm -f conftest.$ac_objext |
| 11646 | if { (ac_try="$ac_compile" |
| 11647 | case "(($ac_try" in |
| 11648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11649 | *) ac_try_echo=$ac_try;; |
| 11650 | esac |
| 11651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11652 | (eval "$ac_compile") 2>conftest.er1 |
| 11653 | ac_status=$? |
| 11654 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11655 | rm -f conftest.er1 |
| 11656 | cat conftest.err >&5 |
| 11657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11658 | (exit $ac_status); } && { |
| 11659 | test -z "$ac_c_werror_flag" || |
| 11660 | test ! -s conftest.err |
| 11661 | } && test -s conftest.$ac_objext; then |
| 11662 | ac_cv_type_long_double=yes |
| 11663 | else |
| 11664 | echo "$as_me: failed program was:" >&5 |
| 11665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11666 | |
| 11667 | ac_cv_type_long_double=no |
| 11668 | fi |
| 11669 | |
| 11670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11671 | fi |
| 11672 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 |
| 11673 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } |
| 11674 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11675 | # The cast to long int works around a bug in the HP C Compiler |
| 11676 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11677 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11678 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11679 | { echo "$as_me:$LINENO: checking size of long double" >&5 |
| 11680 | echo $ECHO_N "checking size of long double... $ECHO_C" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11681 | if test "${ac_cv_sizeof_long_double+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11683 | else |
| 11684 | if test "$cross_compiling" = yes; then |
| 11685 | # Depending upon the size, compute the lo and hi bounds. |
| 11686 | cat >conftest.$ac_ext <<_ACEOF |
| 11687 | /* confdefs.h. */ |
| 11688 | _ACEOF |
| 11689 | cat confdefs.h >>conftest.$ac_ext |
| 11690 | cat >>conftest.$ac_ext <<_ACEOF |
| 11691 | /* end confdefs.h. */ |
| 11692 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11693 | typedef long double ac__type_sizeof_; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11694 | int |
| 11695 | main () |
| 11696 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11697 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11698 | test_array [0] = 0 |
| 11699 | |
| 11700 | ; |
| 11701 | return 0; |
| 11702 | } |
| 11703 | _ACEOF |
| 11704 | rm -f conftest.$ac_objext |
| 11705 | if { (ac_try="$ac_compile" |
| 11706 | case "(($ac_try" in |
| 11707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11708 | *) ac_try_echo=$ac_try;; |
| 11709 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11711 | (eval "$ac_compile") 2>conftest.er1 |
| 11712 | ac_status=$? |
| 11713 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11714 | rm -f conftest.er1 |
| 11715 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11717 | (exit $ac_status); } && { |
| 11718 | test -z "$ac_c_werror_flag" || |
| 11719 | test ! -s conftest.err |
| 11720 | } && test -s conftest.$ac_objext; then |
| 11721 | ac_lo=0 ac_mid=0 |
| 11722 | while :; do |
| 11723 | cat >conftest.$ac_ext <<_ACEOF |
| 11724 | /* confdefs.h. */ |
| 11725 | _ACEOF |
| 11726 | cat confdefs.h >>conftest.$ac_ext |
| 11727 | cat >>conftest.$ac_ext <<_ACEOF |
| 11728 | /* end confdefs.h. */ |
| 11729 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11730 | typedef long double ac__type_sizeof_; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11731 | int |
| 11732 | main () |
| 11733 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11734 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11735 | test_array [0] = 0 |
| 11736 | |
| 11737 | ; |
| 11738 | return 0; |
| 11739 | } |
| 11740 | _ACEOF |
| 11741 | rm -f conftest.$ac_objext |
| 11742 | if { (ac_try="$ac_compile" |
| 11743 | case "(($ac_try" in |
| 11744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11745 | *) ac_try_echo=$ac_try;; |
| 11746 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11748 | (eval "$ac_compile") 2>conftest.er1 |
| 11749 | ac_status=$? |
| 11750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11751 | rm -f conftest.er1 |
| 11752 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11754 | (exit $ac_status); } && { |
| 11755 | test -z "$ac_c_werror_flag" || |
| 11756 | test ! -s conftest.err |
| 11757 | } && test -s conftest.$ac_objext; then |
| 11758 | ac_hi=$ac_mid; break |
| 11759 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11760 | echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11761 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11762 | |
| 11763 | ac_lo=`expr $ac_mid + 1` |
| 11764 | if test $ac_lo -le $ac_mid; then |
| 11765 | ac_lo= ac_hi= |
| 11766 | break |
| 11767 | fi |
| 11768 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11769 | fi |
| 11770 | |
| 11771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11772 | done |
| 11773 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11774 | echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11776 | |
| 11777 | cat >conftest.$ac_ext <<_ACEOF |
| 11778 | /* confdefs.h. */ |
| 11779 | _ACEOF |
| 11780 | cat confdefs.h >>conftest.$ac_ext |
| 11781 | cat >>conftest.$ac_ext <<_ACEOF |
| 11782 | /* end confdefs.h. */ |
| 11783 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11784 | typedef long double ac__type_sizeof_; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11785 | int |
| 11786 | main () |
| 11787 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11788 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11789 | test_array [0] = 0 |
| 11790 | |
| 11791 | ; |
| 11792 | return 0; |
| 11793 | } |
| 11794 | _ACEOF |
| 11795 | rm -f conftest.$ac_objext |
| 11796 | if { (ac_try="$ac_compile" |
| 11797 | case "(($ac_try" in |
| 11798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11799 | *) ac_try_echo=$ac_try;; |
| 11800 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11802 | (eval "$ac_compile") 2>conftest.er1 |
| 11803 | ac_status=$? |
| 11804 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11805 | rm -f conftest.er1 |
| 11806 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11808 | (exit $ac_status); } && { |
| 11809 | test -z "$ac_c_werror_flag" || |
| 11810 | test ! -s conftest.err |
| 11811 | } && test -s conftest.$ac_objext; then |
| 11812 | ac_hi=-1 ac_mid=-1 |
| 11813 | while :; do |
| 11814 | cat >conftest.$ac_ext <<_ACEOF |
| 11815 | /* confdefs.h. */ |
| 11816 | _ACEOF |
| 11817 | cat confdefs.h >>conftest.$ac_ext |
| 11818 | cat >>conftest.$ac_ext <<_ACEOF |
| 11819 | /* end confdefs.h. */ |
| 11820 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11821 | typedef long double ac__type_sizeof_; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11822 | int |
| 11823 | main () |
| 11824 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11825 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11826 | test_array [0] = 0 |
| 11827 | |
| 11828 | ; |
| 11829 | return 0; |
| 11830 | } |
| 11831 | _ACEOF |
| 11832 | rm -f conftest.$ac_objext |
| 11833 | if { (ac_try="$ac_compile" |
| 11834 | case "(($ac_try" in |
| 11835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11836 | *) ac_try_echo=$ac_try;; |
| 11837 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11839 | (eval "$ac_compile") 2>conftest.er1 |
| 11840 | ac_status=$? |
| 11841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11842 | rm -f conftest.er1 |
| 11843 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11845 | (exit $ac_status); } && { |
| 11846 | test -z "$ac_c_werror_flag" || |
| 11847 | test ! -s conftest.err |
| 11848 | } && test -s conftest.$ac_objext; then |
| 11849 | ac_lo=$ac_mid; break |
| 11850 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11851 | echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11853 | |
| 11854 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11855 | if test $ac_mid -le $ac_hi; then |
| 11856 | ac_lo= ac_hi= |
| 11857 | break |
| 11858 | fi |
| 11859 | ac_mid=`expr 2 '*' $ac_mid` |
| 11860 | fi |
| 11861 | |
| 11862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11863 | done |
| 11864 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11865 | echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11867 | |
| 11868 | ac_lo= ac_hi= |
| 11869 | fi |
| 11870 | |
| 11871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11872 | fi |
| 11873 | |
| 11874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11875 | # Binary search between lo and hi bounds. |
| 11876 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11877 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11878 | cat >conftest.$ac_ext <<_ACEOF |
| 11879 | /* confdefs.h. */ |
| 11880 | _ACEOF |
| 11881 | cat confdefs.h >>conftest.$ac_ext |
| 11882 | cat >>conftest.$ac_ext <<_ACEOF |
| 11883 | /* end confdefs.h. */ |
| 11884 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11885 | typedef long double ac__type_sizeof_; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11886 | int |
| 11887 | main () |
| 11888 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11889 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11890 | test_array [0] = 0 |
| 11891 | |
| 11892 | ; |
| 11893 | return 0; |
| 11894 | } |
| 11895 | _ACEOF |
| 11896 | rm -f conftest.$ac_objext |
| 11897 | if { (ac_try="$ac_compile" |
| 11898 | case "(($ac_try" in |
| 11899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11900 | *) ac_try_echo=$ac_try;; |
| 11901 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11903 | (eval "$ac_compile") 2>conftest.er1 |
| 11904 | ac_status=$? |
| 11905 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11906 | rm -f conftest.er1 |
| 11907 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11909 | (exit $ac_status); } && { |
| 11910 | test -z "$ac_c_werror_flag" || |
| 11911 | test ! -s conftest.err |
| 11912 | } && test -s conftest.$ac_objext; then |
| 11913 | ac_hi=$ac_mid |
| 11914 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11915 | echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11917 | |
| 11918 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11919 | fi |
| 11920 | |
| 11921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11922 | done |
| 11923 | case $ac_lo in |
| 11924 | ?*) ac_cv_sizeof_long_double=$ac_lo;; |
| 11925 | '') if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11926 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11927 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11928 | echo "$as_me: error: cannot compute sizeof (long double) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11929 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11930 | { (exit 77); exit 77; }; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11931 | else |
| 11932 | ac_cv_sizeof_long_double=0 |
| 11933 | fi ;; |
| 11934 | esac |
| 11935 | else |
| 11936 | cat >conftest.$ac_ext <<_ACEOF |
| 11937 | /* confdefs.h. */ |
| 11938 | _ACEOF |
| 11939 | cat confdefs.h >>conftest.$ac_ext |
| 11940 | cat >>conftest.$ac_ext <<_ACEOF |
| 11941 | /* end confdefs.h. */ |
| 11942 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11943 | typedef long double ac__type_sizeof_; |
| 11944 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11945 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11946 | #include <stdio.h> |
| 11947 | #include <stdlib.h> |
| 11948 | int |
| 11949 | main () |
| 11950 | { |
| 11951 | |
| 11952 | FILE *f = fopen ("conftest.val", "w"); |
| 11953 | if (! f) |
| 11954 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11955 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11956 | { |
| 11957 | long int i = longval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11958 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11959 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11960 | fprintf (f, "%ld\n", i); |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11961 | } |
| 11962 | else |
| 11963 | { |
| 11964 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11965 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11966 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11967 | fprintf (f, "%lu\n", i); |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11968 | } |
| 11969 | return ferror (f) || fclose (f) != 0; |
| 11970 | |
| 11971 | ; |
| 11972 | return 0; |
| 11973 | } |
| 11974 | _ACEOF |
| 11975 | rm -f conftest$ac_exeext |
| 11976 | if { (ac_try="$ac_link" |
| 11977 | case "(($ac_try" in |
| 11978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11979 | *) ac_try_echo=$ac_try;; |
| 11980 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11982 | (eval "$ac_link") 2>&5 |
| 11983 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11985 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11986 | { (case "(($ac_try" in |
| 11987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11988 | *) ac_try_echo=$ac_try;; |
| 11989 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11991 | (eval "$ac_try") 2>&5 |
| 11992 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11994 | (exit $ac_status); }; }; then |
| 11995 | ac_cv_sizeof_long_double=`cat conftest.val` |
| 11996 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11997 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11998 | echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12000 | |
| 12001 | ( exit $ac_status ) |
| 12002 | if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12003 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12004 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12005 | echo "$as_me: error: cannot compute sizeof (long double) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12006 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12007 | { (exit 77); exit 77; }; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12008 | else |
| 12009 | ac_cv_sizeof_long_double=0 |
| 12010 | fi |
| 12011 | fi |
| 12012 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12013 | fi |
| 12014 | rm -f conftest.val |
| 12015 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12016 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 |
| 12017 | echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12018 | |
| 12019 | |
| 12020 | |
| 12021 | cat >>confdefs.h <<_ACEOF |
| 12022 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 12023 | _ACEOF |
| 12024 | |
| 12025 | |
| 12026 | fi |
| 12027 | |
| 12028 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12029 | { echo "$as_me:$LINENO: checking for _Bool support" >&5 |
| 12030 | echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12031 | have_c99_bool=no |
| 12032 | cat >conftest.$ac_ext <<_ACEOF |
| 12033 | /* confdefs.h. */ |
| 12034 | _ACEOF |
| 12035 | cat confdefs.h >>conftest.$ac_ext |
| 12036 | cat >>conftest.$ac_ext <<_ACEOF |
| 12037 | /* end confdefs.h. */ |
| 12038 | |
| 12039 | int |
| 12040 | main () |
| 12041 | { |
| 12042 | _Bool x; x = (_Bool)0; |
| 12043 | ; |
| 12044 | return 0; |
| 12045 | } |
| 12046 | _ACEOF |
| 12047 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12048 | if { (ac_try="$ac_compile" |
| 12049 | case "(($ac_try" in |
| 12050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12051 | *) ac_try_echo=$ac_try;; |
| 12052 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12054 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12055 | ac_status=$? |
| 12056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12057 | rm -f conftest.er1 |
| 12058 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12060 | (exit $ac_status); } && { |
| 12061 | test -z "$ac_c_werror_flag" || |
| 12062 | test ! -s conftest.err |
| 12063 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12064 | |
| 12065 | |
| 12066 | cat >>confdefs.h <<\_ACEOF |
| 12067 | #define HAVE_C99_BOOL 1 |
| 12068 | _ACEOF |
| 12069 | |
| 12070 | have_c99_bool=yes |
| 12071 | |
| 12072 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12073 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12075 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12076 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12077 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12078 | |
| 12079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12080 | { echo "$as_me:$LINENO: result: $have_c99_bool" >&5 |
| 12081 | echo "${ECHO_T}$have_c99_bool" >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12082 | if test "$have_c99_bool" = yes ; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12083 | { echo "$as_me:$LINENO: checking for _Bool" >&5 |
| 12084 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
| 12085 | if test "${ac_cv_type__Bool+set}" = set; then |
| 12086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12087 | else |
| 12088 | cat >conftest.$ac_ext <<_ACEOF |
| 12089 | /* confdefs.h. */ |
| 12090 | _ACEOF |
| 12091 | cat confdefs.h >>conftest.$ac_ext |
| 12092 | cat >>conftest.$ac_ext <<_ACEOF |
| 12093 | /* end confdefs.h. */ |
| 12094 | $ac_includes_default |
| 12095 | typedef _Bool ac__type_new_; |
| 12096 | int |
| 12097 | main () |
| 12098 | { |
| 12099 | if ((ac__type_new_ *) 0) |
| 12100 | return 0; |
| 12101 | if (sizeof (ac__type_new_)) |
| 12102 | return 0; |
| 12103 | ; |
| 12104 | return 0; |
| 12105 | } |
| 12106 | _ACEOF |
| 12107 | rm -f conftest.$ac_objext |
| 12108 | if { (ac_try="$ac_compile" |
| 12109 | case "(($ac_try" in |
| 12110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12111 | *) ac_try_echo=$ac_try;; |
| 12112 | esac |
| 12113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12114 | (eval "$ac_compile") 2>conftest.er1 |
| 12115 | ac_status=$? |
| 12116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12117 | rm -f conftest.er1 |
| 12118 | cat conftest.err >&5 |
| 12119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12120 | (exit $ac_status); } && { |
| 12121 | test -z "$ac_c_werror_flag" || |
| 12122 | test ! -s conftest.err |
| 12123 | } && test -s conftest.$ac_objext; then |
| 12124 | ac_cv_type__Bool=yes |
| 12125 | else |
| 12126 | echo "$as_me: failed program was:" >&5 |
| 12127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12128 | |
| 12129 | ac_cv_type__Bool=no |
| 12130 | fi |
| 12131 | |
| 12132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12133 | fi |
| 12134 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
| 12135 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
| 12136 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12137 | # The cast to long int works around a bug in the HP C Compiler |
| 12138 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12139 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12140 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12141 | { echo "$as_me:$LINENO: checking size of _Bool" >&5 |
| 12142 | echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12143 | if test "${ac_cv_sizeof__Bool+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12145 | else |
| 12146 | if test "$cross_compiling" = yes; then |
| 12147 | # Depending upon the size, compute the lo and hi bounds. |
| 12148 | cat >conftest.$ac_ext <<_ACEOF |
| 12149 | /* confdefs.h. */ |
| 12150 | _ACEOF |
| 12151 | cat confdefs.h >>conftest.$ac_ext |
| 12152 | cat >>conftest.$ac_ext <<_ACEOF |
| 12153 | /* end confdefs.h. */ |
| 12154 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12155 | typedef _Bool ac__type_sizeof_; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12156 | int |
| 12157 | main () |
| 12158 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12159 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12160 | test_array [0] = 0 |
| 12161 | |
| 12162 | ; |
| 12163 | return 0; |
| 12164 | } |
| 12165 | _ACEOF |
| 12166 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12167 | if { (ac_try="$ac_compile" |
| 12168 | case "(($ac_try" in |
| 12169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12170 | *) ac_try_echo=$ac_try;; |
| 12171 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12173 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12174 | ac_status=$? |
| 12175 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12176 | rm -f conftest.er1 |
| 12177 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12179 | (exit $ac_status); } && { |
| 12180 | test -z "$ac_c_werror_flag" || |
| 12181 | test ! -s conftest.err |
| 12182 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12183 | ac_lo=0 ac_mid=0 |
| 12184 | while :; do |
| 12185 | cat >conftest.$ac_ext <<_ACEOF |
| 12186 | /* confdefs.h. */ |
| 12187 | _ACEOF |
| 12188 | cat confdefs.h >>conftest.$ac_ext |
| 12189 | cat >>conftest.$ac_ext <<_ACEOF |
| 12190 | /* end confdefs.h. */ |
| 12191 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12192 | typedef _Bool ac__type_sizeof_; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12193 | int |
| 12194 | main () |
| 12195 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12196 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12197 | test_array [0] = 0 |
| 12198 | |
| 12199 | ; |
| 12200 | return 0; |
| 12201 | } |
| 12202 | _ACEOF |
| 12203 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12204 | if { (ac_try="$ac_compile" |
| 12205 | case "(($ac_try" in |
| 12206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12207 | *) ac_try_echo=$ac_try;; |
| 12208 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12210 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12211 | ac_status=$? |
| 12212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12213 | rm -f conftest.er1 |
| 12214 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12216 | (exit $ac_status); } && { |
| 12217 | test -z "$ac_c_werror_flag" || |
| 12218 | test ! -s conftest.err |
| 12219 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12220 | ac_hi=$ac_mid; break |
| 12221 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12222 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12224 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12225 | ac_lo=`expr $ac_mid + 1` |
| 12226 | if test $ac_lo -le $ac_mid; then |
| 12227 | ac_lo= ac_hi= |
| 12228 | break |
| 12229 | fi |
| 12230 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12231 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12232 | |
| 12233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12234 | done |
| 12235 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12236 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12238 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12239 | cat >conftest.$ac_ext <<_ACEOF |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12240 | /* confdefs.h. */ |
| 12241 | _ACEOF |
| 12242 | cat confdefs.h >>conftest.$ac_ext |
| 12243 | cat >>conftest.$ac_ext <<_ACEOF |
| 12244 | /* end confdefs.h. */ |
| 12245 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12246 | typedef _Bool ac__type_sizeof_; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12247 | int |
| 12248 | main () |
| 12249 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12250 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12251 | test_array [0] = 0 |
| 12252 | |
| 12253 | ; |
| 12254 | return 0; |
| 12255 | } |
| 12256 | _ACEOF |
| 12257 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12258 | if { (ac_try="$ac_compile" |
| 12259 | case "(($ac_try" in |
| 12260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12261 | *) ac_try_echo=$ac_try;; |
| 12262 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12264 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12265 | ac_status=$? |
| 12266 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12267 | rm -f conftest.er1 |
| 12268 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12270 | (exit $ac_status); } && { |
| 12271 | test -z "$ac_c_werror_flag" || |
| 12272 | test ! -s conftest.err |
| 12273 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12274 | ac_hi=-1 ac_mid=-1 |
| 12275 | while :; do |
| 12276 | cat >conftest.$ac_ext <<_ACEOF |
| 12277 | /* confdefs.h. */ |
| 12278 | _ACEOF |
| 12279 | cat confdefs.h >>conftest.$ac_ext |
| 12280 | cat >>conftest.$ac_ext <<_ACEOF |
| 12281 | /* end confdefs.h. */ |
| 12282 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12283 | typedef _Bool ac__type_sizeof_; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12284 | int |
| 12285 | main () |
| 12286 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12287 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12288 | test_array [0] = 0 |
| 12289 | |
| 12290 | ; |
| 12291 | return 0; |
| 12292 | } |
| 12293 | _ACEOF |
| 12294 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12295 | if { (ac_try="$ac_compile" |
| 12296 | case "(($ac_try" in |
| 12297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12298 | *) ac_try_echo=$ac_try;; |
| 12299 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12301 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12302 | ac_status=$? |
| 12303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12304 | rm -f conftest.er1 |
| 12305 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12307 | (exit $ac_status); } && { |
| 12308 | test -z "$ac_c_werror_flag" || |
| 12309 | test ! -s conftest.err |
| 12310 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12311 | ac_lo=$ac_mid; break |
| 12312 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12313 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12315 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12316 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12317 | if test $ac_mid -le $ac_hi; then |
| 12318 | ac_lo= ac_hi= |
| 12319 | break |
| 12320 | fi |
| 12321 | ac_mid=`expr 2 '*' $ac_mid` |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12322 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12323 | |
| 12324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12325 | done |
| 12326 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12327 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12329 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12330 | ac_lo= ac_hi= |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12331 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12332 | |
| 12333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12334 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12335 | |
| 12336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12337 | # Binary search between lo and hi bounds. |
| 12338 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12339 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12340 | cat >conftest.$ac_ext <<_ACEOF |
| 12341 | /* confdefs.h. */ |
| 12342 | _ACEOF |
| 12343 | cat confdefs.h >>conftest.$ac_ext |
| 12344 | cat >>conftest.$ac_ext <<_ACEOF |
| 12345 | /* end confdefs.h. */ |
| 12346 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12347 | typedef _Bool ac__type_sizeof_; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12348 | int |
| 12349 | main () |
| 12350 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12351 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12352 | test_array [0] = 0 |
| 12353 | |
| 12354 | ; |
| 12355 | return 0; |
| 12356 | } |
| 12357 | _ACEOF |
| 12358 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12359 | if { (ac_try="$ac_compile" |
| 12360 | case "(($ac_try" in |
| 12361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12362 | *) ac_try_echo=$ac_try;; |
| 12363 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12365 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12366 | ac_status=$? |
| 12367 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12368 | rm -f conftest.er1 |
| 12369 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12371 | (exit $ac_status); } && { |
| 12372 | test -z "$ac_c_werror_flag" || |
| 12373 | test ! -s conftest.err |
| 12374 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12375 | ac_hi=$ac_mid |
| 12376 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12377 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12379 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12380 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12381 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12382 | |
| 12383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12384 | done |
| 12385 | case $ac_lo in |
| 12386 | ?*) ac_cv_sizeof__Bool=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12387 | '') if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12388 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12389 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12390 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12391 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12392 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12393 | else |
| 12394 | ac_cv_sizeof__Bool=0 |
| 12395 | fi ;; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12396 | esac |
| 12397 | else |
| 12398 | cat >conftest.$ac_ext <<_ACEOF |
| 12399 | /* confdefs.h. */ |
| 12400 | _ACEOF |
| 12401 | cat confdefs.h >>conftest.$ac_ext |
| 12402 | cat >>conftest.$ac_ext <<_ACEOF |
| 12403 | /* end confdefs.h. */ |
| 12404 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12405 | typedef _Bool ac__type_sizeof_; |
| 12406 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12407 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12408 | #include <stdio.h> |
| 12409 | #include <stdlib.h> |
| 12410 | int |
| 12411 | main () |
| 12412 | { |
| 12413 | |
| 12414 | FILE *f = fopen ("conftest.val", "w"); |
| 12415 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12416 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12417 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12418 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12419 | long int i = longval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12420 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12421 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12422 | fprintf (f, "%ld\n", i); |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12423 | } |
| 12424 | else |
| 12425 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12426 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12427 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12428 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12429 | fprintf (f, "%lu\n", i); |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12430 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12431 | return ferror (f) || fclose (f) != 0; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12432 | |
| 12433 | ; |
| 12434 | return 0; |
| 12435 | } |
| 12436 | _ACEOF |
| 12437 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12438 | if { (ac_try="$ac_link" |
| 12439 | case "(($ac_try" in |
| 12440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12441 | *) ac_try_echo=$ac_try;; |
| 12442 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12444 | (eval "$ac_link") 2>&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12445 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12447 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12448 | { (case "(($ac_try" in |
| 12449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12450 | *) ac_try_echo=$ac_try;; |
| 12451 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12453 | (eval "$ac_try") 2>&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12454 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12456 | (exit $ac_status); }; }; then |
| 12457 | ac_cv_sizeof__Bool=`cat conftest.val` |
| 12458 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12459 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12460 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12462 | |
| 12463 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12464 | if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12465 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12466 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12467 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12468 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12469 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12470 | else |
| 12471 | ac_cv_sizeof__Bool=0 |
| 12472 | fi |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12473 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12474 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12475 | fi |
| 12476 | rm -f conftest.val |
| 12477 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12478 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5 |
| 12479 | echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12480 | |
| 12481 | |
| 12482 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12483 | cat >>confdefs.h <<_ACEOF |
| 12484 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 12485 | _ACEOF |
| 12486 | |
| 12487 | |
| 12488 | fi |
| 12489 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12490 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12491 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12492 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12494 | else |
| 12495 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12496 | /* confdefs.h. */ |
| 12497 | _ACEOF |
| 12498 | cat confdefs.h >>conftest.$ac_ext |
| 12499 | cat >>conftest.$ac_ext <<_ACEOF |
| 12500 | /* end confdefs.h. */ |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12501 | #ifdef HAVE_STDINT_H |
| 12502 | #include <stdint.h> |
| 12503 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12504 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12505 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12506 | int |
| 12507 | main () |
| 12508 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12509 | if ((ac__type_new_ *) 0) |
| 12510 | return 0; |
| 12511 | if (sizeof (ac__type_new_)) |
| 12512 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12513 | ; |
| 12514 | return 0; |
| 12515 | } |
| 12516 | _ACEOF |
| 12517 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12518 | if { (ac_try="$ac_compile" |
| 12519 | case "(($ac_try" in |
| 12520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12521 | *) ac_try_echo=$ac_try;; |
| 12522 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12524 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12525 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12527 | rm -f conftest.er1 |
| 12528 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12530 | (exit $ac_status); } && { |
| 12531 | test -z "$ac_c_werror_flag" || |
| 12532 | test ! -s conftest.err |
| 12533 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12534 | ac_cv_type_uintptr_t=yes |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12535 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12536 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12538 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12539 | ac_cv_type_uintptr_t=no |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12540 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12541 | |
| 12542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12543 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12544 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12545 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12546 | if test $ac_cv_type_uintptr_t = yes; then |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12547 | |
| 12548 | cat >>confdefs.h <<_ACEOF |
| 12549 | #define HAVE_UINTPTR_T 1 |
| 12550 | _ACEOF |
| 12551 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12552 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12553 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
| 12554 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 12555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12556 | else |
| 12557 | cat >conftest.$ac_ext <<_ACEOF |
| 12558 | /* confdefs.h. */ |
| 12559 | _ACEOF |
| 12560 | cat confdefs.h >>conftest.$ac_ext |
| 12561 | cat >>conftest.$ac_ext <<_ACEOF |
| 12562 | /* end confdefs.h. */ |
| 12563 | $ac_includes_default |
| 12564 | typedef uintptr_t ac__type_new_; |
| 12565 | int |
| 12566 | main () |
| 12567 | { |
| 12568 | if ((ac__type_new_ *) 0) |
| 12569 | return 0; |
| 12570 | if (sizeof (ac__type_new_)) |
| 12571 | return 0; |
| 12572 | ; |
| 12573 | return 0; |
| 12574 | } |
| 12575 | _ACEOF |
| 12576 | rm -f conftest.$ac_objext |
| 12577 | if { (ac_try="$ac_compile" |
| 12578 | case "(($ac_try" in |
| 12579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12580 | *) ac_try_echo=$ac_try;; |
| 12581 | esac |
| 12582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12583 | (eval "$ac_compile") 2>conftest.er1 |
| 12584 | ac_status=$? |
| 12585 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12586 | rm -f conftest.er1 |
| 12587 | cat conftest.err >&5 |
| 12588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12589 | (exit $ac_status); } && { |
| 12590 | test -z "$ac_c_werror_flag" || |
| 12591 | test ! -s conftest.err |
| 12592 | } && test -s conftest.$ac_objext; then |
| 12593 | ac_cv_type_uintptr_t=yes |
| 12594 | else |
| 12595 | echo "$as_me: failed program was:" >&5 |
| 12596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12597 | |
| 12598 | ac_cv_type_uintptr_t=no |
| 12599 | fi |
| 12600 | |
| 12601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12602 | fi |
| 12603 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12604 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12605 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12606 | # The cast to long int works around a bug in the HP C Compiler |
| 12607 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12608 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12609 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12610 | { echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 12611 | 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] | 12612 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12614 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12615 | if test "$cross_compiling" = yes; then |
| 12616 | # Depending upon the size, compute the lo and hi bounds. |
| 12617 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12618 | /* confdefs.h. */ |
| 12619 | _ACEOF |
| 12620 | cat confdefs.h >>conftest.$ac_ext |
| 12621 | cat >>conftest.$ac_ext <<_ACEOF |
| 12622 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12623 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12624 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12625 | int |
| 12626 | main () |
| 12627 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12628 | 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] | 12629 | test_array [0] = 0 |
| 12630 | |
| 12631 | ; |
| 12632 | return 0; |
| 12633 | } |
| 12634 | _ACEOF |
| 12635 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12636 | if { (ac_try="$ac_compile" |
| 12637 | case "(($ac_try" in |
| 12638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12639 | *) ac_try_echo=$ac_try;; |
| 12640 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12642 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12643 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12644 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12645 | rm -f conftest.er1 |
| 12646 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12648 | (exit $ac_status); } && { |
| 12649 | test -z "$ac_c_werror_flag" || |
| 12650 | test ! -s conftest.err |
| 12651 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12652 | ac_lo=0 ac_mid=0 |
| 12653 | while :; do |
| 12654 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12655 | /* confdefs.h. */ |
| 12656 | _ACEOF |
| 12657 | cat confdefs.h >>conftest.$ac_ext |
| 12658 | cat >>conftest.$ac_ext <<_ACEOF |
| 12659 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12660 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12661 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12662 | int |
| 12663 | main () |
| 12664 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12665 | 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] | 12666 | test_array [0] = 0 |
| 12667 | |
| 12668 | ; |
| 12669 | return 0; |
| 12670 | } |
| 12671 | _ACEOF |
| 12672 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12673 | if { (ac_try="$ac_compile" |
| 12674 | case "(($ac_try" in |
| 12675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12676 | *) ac_try_echo=$ac_try;; |
| 12677 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12679 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12680 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12682 | rm -f conftest.er1 |
| 12683 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12685 | (exit $ac_status); } && { |
| 12686 | test -z "$ac_c_werror_flag" || |
| 12687 | test ! -s conftest.err |
| 12688 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12689 | ac_hi=$ac_mid; break |
| 12690 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12691 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12693 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12694 | ac_lo=`expr $ac_mid + 1` |
| 12695 | if test $ac_lo -le $ac_mid; then |
| 12696 | ac_lo= ac_hi= |
| 12697 | break |
| 12698 | fi |
| 12699 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12700 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12701 | |
| 12702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12703 | done |
| 12704 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12705 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12707 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12708 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12709 | /* confdefs.h. */ |
| 12710 | _ACEOF |
| 12711 | cat confdefs.h >>conftest.$ac_ext |
| 12712 | cat >>conftest.$ac_ext <<_ACEOF |
| 12713 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12714 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12715 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12716 | int |
| 12717 | main () |
| 12718 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12719 | 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] | 12720 | test_array [0] = 0 |
| 12721 | |
| 12722 | ; |
| 12723 | return 0; |
| 12724 | } |
| 12725 | _ACEOF |
| 12726 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12727 | if { (ac_try="$ac_compile" |
| 12728 | case "(($ac_try" in |
| 12729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12730 | *) ac_try_echo=$ac_try;; |
| 12731 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12733 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12734 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12735 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12736 | rm -f conftest.er1 |
| 12737 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12739 | (exit $ac_status); } && { |
| 12740 | test -z "$ac_c_werror_flag" || |
| 12741 | test ! -s conftest.err |
| 12742 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12743 | ac_hi=-1 ac_mid=-1 |
| 12744 | while :; do |
| 12745 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12746 | /* confdefs.h. */ |
| 12747 | _ACEOF |
| 12748 | cat confdefs.h >>conftest.$ac_ext |
| 12749 | cat >>conftest.$ac_ext <<_ACEOF |
| 12750 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12751 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12752 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12753 | int |
| 12754 | main () |
| 12755 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12756 | 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] | 12757 | test_array [0] = 0 |
| 12758 | |
| 12759 | ; |
| 12760 | return 0; |
| 12761 | } |
| 12762 | _ACEOF |
| 12763 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12764 | if { (ac_try="$ac_compile" |
| 12765 | case "(($ac_try" in |
| 12766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12767 | *) ac_try_echo=$ac_try;; |
| 12768 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12770 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12771 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12773 | rm -f conftest.er1 |
| 12774 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12776 | (exit $ac_status); } && { |
| 12777 | test -z "$ac_c_werror_flag" || |
| 12778 | test ! -s conftest.err |
| 12779 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12780 | ac_lo=$ac_mid; break |
| 12781 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12782 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12784 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12785 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12786 | if test $ac_mid -le $ac_hi; then |
| 12787 | ac_lo= ac_hi= |
| 12788 | break |
| 12789 | fi |
| 12790 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12791 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12792 | |
| 12793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12794 | done |
| 12795 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12796 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12798 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12799 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12800 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12801 | |
| 12802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12803 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12804 | |
| 12805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12806 | # Binary search between lo and hi bounds. |
| 12807 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12808 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12809 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12810 | /* confdefs.h. */ |
| 12811 | _ACEOF |
| 12812 | cat confdefs.h >>conftest.$ac_ext |
| 12813 | cat >>conftest.$ac_ext <<_ACEOF |
| 12814 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12815 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12816 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12817 | int |
| 12818 | main () |
| 12819 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12820 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12821 | test_array [0] = 0 |
| 12822 | |
| 12823 | ; |
| 12824 | return 0; |
| 12825 | } |
| 12826 | _ACEOF |
| 12827 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12828 | if { (ac_try="$ac_compile" |
| 12829 | case "(($ac_try" in |
| 12830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12831 | *) ac_try_echo=$ac_try;; |
| 12832 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12834 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12835 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12837 | rm -f conftest.er1 |
| 12838 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12840 | (exit $ac_status); } && { |
| 12841 | test -z "$ac_c_werror_flag" || |
| 12842 | test ! -s conftest.err |
| 12843 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12844 | ac_hi=$ac_mid |
| 12845 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12846 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12848 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12849 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12850 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | done |
| 12854 | case $ac_lo in |
| 12855 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12856 | '') if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12857 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12858 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12859 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12860 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12861 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12862 | else |
| 12863 | ac_cv_sizeof_uintptr_t=0 |
| 12864 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12865 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12866 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12867 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12868 | /* confdefs.h. */ |
| 12869 | _ACEOF |
| 12870 | cat confdefs.h >>conftest.$ac_ext |
| 12871 | cat >>conftest.$ac_ext <<_ACEOF |
| 12872 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12873 | $ac_includes_default |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12874 | typedef uintptr_t ac__type_sizeof_; |
| 12875 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12876 | 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] | 12877 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12878 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12879 | int |
| 12880 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12881 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12882 | |
| 12883 | FILE *f = fopen ("conftest.val", "w"); |
| 12884 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12885 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12886 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12887 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12888 | long int i = longval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12889 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12890 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12891 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12892 | } |
| 12893 | else |
| 12894 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12895 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12896 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12897 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12898 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12899 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12900 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12901 | |
| 12902 | ; |
| 12903 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12904 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12905 | _ACEOF |
| 12906 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12907 | if { (ac_try="$ac_link" |
| 12908 | case "(($ac_try" in |
| 12909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12910 | *) ac_try_echo=$ac_try;; |
| 12911 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12913 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12914 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12916 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12917 | { (case "(($ac_try" in |
| 12918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12919 | *) ac_try_echo=$ac_try;; |
| 12920 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12922 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12923 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12925 | (exit $ac_status); }; }; then |
| 12926 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12927 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12928 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12929 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12931 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12932 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12933 | if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12934 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12935 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12936 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12937 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12938 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12939 | else |
| 12940 | ac_cv_sizeof_uintptr_t=0 |
| 12941 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12942 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12943 | 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] | 12944 | fi |
| 12945 | rm -f conftest.val |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12946 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12947 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 12948 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12949 | |
| 12950 | |
| 12951 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12952 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12953 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12954 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12955 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12956 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12957 | fi |
| 12958 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12959 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12960 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 12961 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
| 12962 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12964 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12965 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12966 | /* confdefs.h. */ |
| 12967 | _ACEOF |
| 12968 | cat confdefs.h >>conftest.$ac_ext |
| 12969 | cat >>conftest.$ac_ext <<_ACEOF |
| 12970 | /* end confdefs.h. */ |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12971 | |
| 12972 | #ifdef HAVE_SYS_TYPES_H |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 12973 | #include <sys/types.h> |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12974 | #endif |
| 12975 | |
| 12976 | |
| 12977 | typedef off_t ac__type_new_; |
| 12978 | int |
| 12979 | main () |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12980 | { |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12981 | if ((ac__type_new_ *) 0) |
| 12982 | return 0; |
| 12983 | if (sizeof (ac__type_new_)) |
| 12984 | return 0; |
| 12985 | ; |
| 12986 | return 0; |
| 12987 | } |
| 12988 | _ACEOF |
| 12989 | rm -f conftest.$ac_objext |
| 12990 | if { (ac_try="$ac_compile" |
| 12991 | case "(($ac_try" in |
| 12992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12993 | *) ac_try_echo=$ac_try;; |
| 12994 | esac |
| 12995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12996 | (eval "$ac_compile") 2>conftest.er1 |
| 12997 | ac_status=$? |
| 12998 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12999 | rm -f conftest.er1 |
| 13000 | cat conftest.err >&5 |
| 13001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13002 | (exit $ac_status); } && { |
| 13003 | test -z "$ac_c_werror_flag" || |
| 13004 | test ! -s conftest.err |
| 13005 | } && test -s conftest.$ac_objext; then |
| 13006 | ac_cv_type_off_t=yes |
| 13007 | else |
| 13008 | echo "$as_me: failed program was:" >&5 |
| 13009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13010 | |
| 13011 | ac_cv_type_off_t=no |
| 13012 | fi |
| 13013 | |
| 13014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13015 | fi |
| 13016 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 13017 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 13018 | |
| 13019 | # The cast to long int works around a bug in the HP C Compiler |
| 13020 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13021 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13022 | # This bug is HP SR number 8606223364. |
| 13023 | { echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 13024 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; } |
| 13025 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 13026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13027 | else |
| 13028 | if test "$cross_compiling" = yes; then |
| 13029 | # Depending upon the size, compute the lo and hi bounds. |
| 13030 | cat >conftest.$ac_ext <<_ACEOF |
| 13031 | /* confdefs.h. */ |
| 13032 | _ACEOF |
| 13033 | cat confdefs.h >>conftest.$ac_ext |
| 13034 | cat >>conftest.$ac_ext <<_ACEOF |
| 13035 | /* end confdefs.h. */ |
| 13036 | |
| 13037 | #ifdef HAVE_SYS_TYPES_H |
| 13038 | #include <sys/types.h> |
| 13039 | #endif |
| 13040 | |
| 13041 | |
| 13042 | typedef off_t ac__type_sizeof_; |
| 13043 | int |
| 13044 | main () |
| 13045 | { |
| 13046 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 13047 | test_array [0] = 0 |
| 13048 | |
| 13049 | ; |
| 13050 | return 0; |
| 13051 | } |
| 13052 | _ACEOF |
| 13053 | rm -f conftest.$ac_objext |
| 13054 | if { (ac_try="$ac_compile" |
| 13055 | case "(($ac_try" in |
| 13056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13057 | *) ac_try_echo=$ac_try;; |
| 13058 | esac |
| 13059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13060 | (eval "$ac_compile") 2>conftest.er1 |
| 13061 | ac_status=$? |
| 13062 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13063 | rm -f conftest.er1 |
| 13064 | cat conftest.err >&5 |
| 13065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13066 | (exit $ac_status); } && { |
| 13067 | test -z "$ac_c_werror_flag" || |
| 13068 | test ! -s conftest.err |
| 13069 | } && test -s conftest.$ac_objext; then |
| 13070 | ac_lo=0 ac_mid=0 |
| 13071 | while :; do |
| 13072 | cat >conftest.$ac_ext <<_ACEOF |
| 13073 | /* confdefs.h. */ |
| 13074 | _ACEOF |
| 13075 | cat confdefs.h >>conftest.$ac_ext |
| 13076 | cat >>conftest.$ac_ext <<_ACEOF |
| 13077 | /* end confdefs.h. */ |
| 13078 | |
| 13079 | #ifdef HAVE_SYS_TYPES_H |
| 13080 | #include <sys/types.h> |
| 13081 | #endif |
| 13082 | |
| 13083 | |
| 13084 | typedef off_t ac__type_sizeof_; |
| 13085 | int |
| 13086 | main () |
| 13087 | { |
| 13088 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13089 | test_array [0] = 0 |
| 13090 | |
| 13091 | ; |
| 13092 | return 0; |
| 13093 | } |
| 13094 | _ACEOF |
| 13095 | rm -f conftest.$ac_objext |
| 13096 | if { (ac_try="$ac_compile" |
| 13097 | case "(($ac_try" in |
| 13098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13099 | *) ac_try_echo=$ac_try;; |
| 13100 | esac |
| 13101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13102 | (eval "$ac_compile") 2>conftest.er1 |
| 13103 | ac_status=$? |
| 13104 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13105 | rm -f conftest.er1 |
| 13106 | cat conftest.err >&5 |
| 13107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13108 | (exit $ac_status); } && { |
| 13109 | test -z "$ac_c_werror_flag" || |
| 13110 | test ! -s conftest.err |
| 13111 | } && test -s conftest.$ac_objext; then |
| 13112 | ac_hi=$ac_mid; break |
| 13113 | else |
| 13114 | echo "$as_me: failed program was:" >&5 |
| 13115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13116 | |
| 13117 | ac_lo=`expr $ac_mid + 1` |
| 13118 | if test $ac_lo -le $ac_mid; then |
| 13119 | ac_lo= ac_hi= |
| 13120 | break |
| 13121 | fi |
| 13122 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13123 | fi |
| 13124 | |
| 13125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13126 | done |
| 13127 | else |
| 13128 | echo "$as_me: failed program was:" >&5 |
| 13129 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13130 | |
| 13131 | cat >conftest.$ac_ext <<_ACEOF |
| 13132 | /* confdefs.h. */ |
| 13133 | _ACEOF |
| 13134 | cat confdefs.h >>conftest.$ac_ext |
| 13135 | cat >>conftest.$ac_ext <<_ACEOF |
| 13136 | /* end confdefs.h. */ |
| 13137 | |
| 13138 | #ifdef HAVE_SYS_TYPES_H |
| 13139 | #include <sys/types.h> |
| 13140 | #endif |
| 13141 | |
| 13142 | |
| 13143 | typedef off_t ac__type_sizeof_; |
| 13144 | int |
| 13145 | main () |
| 13146 | { |
| 13147 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 13148 | test_array [0] = 0 |
| 13149 | |
| 13150 | ; |
| 13151 | return 0; |
| 13152 | } |
| 13153 | _ACEOF |
| 13154 | rm -f conftest.$ac_objext |
| 13155 | if { (ac_try="$ac_compile" |
| 13156 | case "(($ac_try" in |
| 13157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13158 | *) ac_try_echo=$ac_try;; |
| 13159 | esac |
| 13160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13161 | (eval "$ac_compile") 2>conftest.er1 |
| 13162 | ac_status=$? |
| 13163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13164 | rm -f conftest.er1 |
| 13165 | cat conftest.err >&5 |
| 13166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13167 | (exit $ac_status); } && { |
| 13168 | test -z "$ac_c_werror_flag" || |
| 13169 | test ! -s conftest.err |
| 13170 | } && test -s conftest.$ac_objext; then |
| 13171 | ac_hi=-1 ac_mid=-1 |
| 13172 | while :; do |
| 13173 | cat >conftest.$ac_ext <<_ACEOF |
| 13174 | /* confdefs.h. */ |
| 13175 | _ACEOF |
| 13176 | cat confdefs.h >>conftest.$ac_ext |
| 13177 | cat >>conftest.$ac_ext <<_ACEOF |
| 13178 | /* end confdefs.h. */ |
| 13179 | |
| 13180 | #ifdef HAVE_SYS_TYPES_H |
| 13181 | #include <sys/types.h> |
| 13182 | #endif |
| 13183 | |
| 13184 | |
| 13185 | typedef off_t ac__type_sizeof_; |
| 13186 | int |
| 13187 | main () |
| 13188 | { |
| 13189 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 13190 | test_array [0] = 0 |
| 13191 | |
| 13192 | ; |
| 13193 | return 0; |
| 13194 | } |
| 13195 | _ACEOF |
| 13196 | rm -f conftest.$ac_objext |
| 13197 | if { (ac_try="$ac_compile" |
| 13198 | case "(($ac_try" in |
| 13199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13200 | *) ac_try_echo=$ac_try;; |
| 13201 | esac |
| 13202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13203 | (eval "$ac_compile") 2>conftest.er1 |
| 13204 | ac_status=$? |
| 13205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13206 | rm -f conftest.er1 |
| 13207 | cat conftest.err >&5 |
| 13208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13209 | (exit $ac_status); } && { |
| 13210 | test -z "$ac_c_werror_flag" || |
| 13211 | test ! -s conftest.err |
| 13212 | } && test -s conftest.$ac_objext; then |
| 13213 | ac_lo=$ac_mid; break |
| 13214 | else |
| 13215 | echo "$as_me: failed program was:" >&5 |
| 13216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13217 | |
| 13218 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13219 | if test $ac_mid -le $ac_hi; then |
| 13220 | ac_lo= ac_hi= |
| 13221 | break |
| 13222 | fi |
| 13223 | ac_mid=`expr 2 '*' $ac_mid` |
| 13224 | fi |
| 13225 | |
| 13226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13227 | done |
| 13228 | else |
| 13229 | echo "$as_me: failed program was:" >&5 |
| 13230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13231 | |
| 13232 | ac_lo= ac_hi= |
| 13233 | fi |
| 13234 | |
| 13235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13236 | fi |
| 13237 | |
| 13238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13239 | # Binary search between lo and hi bounds. |
| 13240 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13241 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13242 | cat >conftest.$ac_ext <<_ACEOF |
| 13243 | /* confdefs.h. */ |
| 13244 | _ACEOF |
| 13245 | cat confdefs.h >>conftest.$ac_ext |
| 13246 | cat >>conftest.$ac_ext <<_ACEOF |
| 13247 | /* end confdefs.h. */ |
| 13248 | |
| 13249 | #ifdef HAVE_SYS_TYPES_H |
| 13250 | #include <sys/types.h> |
| 13251 | #endif |
| 13252 | |
| 13253 | |
| 13254 | typedef off_t ac__type_sizeof_; |
| 13255 | int |
| 13256 | main () |
| 13257 | { |
| 13258 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13259 | test_array [0] = 0 |
| 13260 | |
| 13261 | ; |
| 13262 | return 0; |
| 13263 | } |
| 13264 | _ACEOF |
| 13265 | rm -f conftest.$ac_objext |
| 13266 | if { (ac_try="$ac_compile" |
| 13267 | case "(($ac_try" in |
| 13268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13269 | *) ac_try_echo=$ac_try;; |
| 13270 | esac |
| 13271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13272 | (eval "$ac_compile") 2>conftest.er1 |
| 13273 | ac_status=$? |
| 13274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13275 | rm -f conftest.er1 |
| 13276 | cat conftest.err >&5 |
| 13277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13278 | (exit $ac_status); } && { |
| 13279 | test -z "$ac_c_werror_flag" || |
| 13280 | test ! -s conftest.err |
| 13281 | } && test -s conftest.$ac_objext; then |
| 13282 | ac_hi=$ac_mid |
| 13283 | else |
| 13284 | echo "$as_me: failed program was:" >&5 |
| 13285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13286 | |
| 13287 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13288 | fi |
| 13289 | |
| 13290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13291 | done |
| 13292 | case $ac_lo in |
| 13293 | ?*) ac_cv_sizeof_off_t=$ac_lo;; |
| 13294 | '') if test "$ac_cv_type_off_t" = yes; then |
| 13295 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13296 | See \`config.log' for more details." >&5 |
| 13297 | echo "$as_me: error: cannot compute sizeof (off_t) |
| 13298 | See \`config.log' for more details." >&2;} |
| 13299 | { (exit 77); exit 77; }; } |
| 13300 | else |
| 13301 | ac_cv_sizeof_off_t=0 |
| 13302 | fi ;; |
| 13303 | esac |
| 13304 | else |
| 13305 | cat >conftest.$ac_ext <<_ACEOF |
| 13306 | /* confdefs.h. */ |
| 13307 | _ACEOF |
| 13308 | cat confdefs.h >>conftest.$ac_ext |
| 13309 | cat >>conftest.$ac_ext <<_ACEOF |
| 13310 | /* end confdefs.h. */ |
| 13311 | |
| 13312 | #ifdef HAVE_SYS_TYPES_H |
| 13313 | #include <sys/types.h> |
| 13314 | #endif |
| 13315 | |
| 13316 | |
| 13317 | typedef off_t ac__type_sizeof_; |
| 13318 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13319 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13320 | #include <stdio.h> |
| 13321 | #include <stdlib.h> |
| 13322 | int |
| 13323 | main () |
| 13324 | { |
| 13325 | |
| 13326 | FILE *f = fopen ("conftest.val", "w"); |
| 13327 | if (! f) |
| 13328 | return 1; |
| 13329 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 13330 | { |
| 13331 | long int i = longval (); |
| 13332 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13333 | return 1; |
| 13334 | fprintf (f, "%ld\n", i); |
| 13335 | } |
| 13336 | else |
| 13337 | { |
| 13338 | unsigned long int i = ulongval (); |
| 13339 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13340 | return 1; |
| 13341 | fprintf (f, "%lu\n", i); |
| 13342 | } |
| 13343 | return ferror (f) || fclose (f) != 0; |
| 13344 | |
| 13345 | ; |
| 13346 | return 0; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13347 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13348 | _ACEOF |
| 13349 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13350 | if { (ac_try="$ac_link" |
| 13351 | case "(($ac_try" in |
| 13352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13353 | *) ac_try_echo=$ac_try;; |
| 13354 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13356 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13357 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13359 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13360 | { (case "(($ac_try" in |
| 13361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13362 | *) ac_try_echo=$ac_try;; |
| 13363 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13365 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13366 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13368 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13369 | ac_cv_sizeof_off_t=`cat conftest.val` |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13370 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13371 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13372 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13374 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13375 | ( exit $ac_status ) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13376 | if test "$ac_cv_type_off_t" = yes; then |
| 13377 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13378 | See \`config.log' for more details." >&5 |
| 13379 | echo "$as_me: error: cannot compute sizeof (off_t) |
| 13380 | See \`config.log' for more details." >&2;} |
| 13381 | { (exit 77); exit 77; }; } |
| 13382 | else |
| 13383 | ac_cv_sizeof_off_t=0 |
| 13384 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13385 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13386 | 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] | 13387 | fi |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13388 | rm -f conftest.val |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13389 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13390 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 13391 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13392 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13393 | |
| 13394 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13395 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13396 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13397 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13398 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13399 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13400 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13401 | { echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 13402 | 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] | 13403 | if test "$have_long_long" = yes -a \ |
| 13404 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 13405 | "$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] | 13406 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13407 | cat >>confdefs.h <<\_ACEOF |
| 13408 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 13409 | _ACEOF |
| 13410 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13411 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13412 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13413 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13414 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13415 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13416 | fi |
| 13417 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13418 | { echo "$as_me:$LINENO: checking for time_t" >&5 |
| 13419 | echo $ECHO_N "checking for time_t... $ECHO_C" >&6; } |
| 13420 | if test "${ac_cv_type_time_t+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13422 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13423 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13424 | /* confdefs.h. */ |
| 13425 | _ACEOF |
| 13426 | cat confdefs.h >>conftest.$ac_ext |
| 13427 | cat >>conftest.$ac_ext <<_ACEOF |
| 13428 | /* end confdefs.h. */ |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13429 | |
| 13430 | #ifdef HAVE_SYS_TYPES_H |
| 13431 | #include <sys/types.h> |
| 13432 | #endif |
| 13433 | #ifdef HAVE_TIME_H |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13434 | #include <time.h> |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13435 | #endif |
| 13436 | |
| 13437 | |
| 13438 | typedef time_t ac__type_new_; |
| 13439 | int |
| 13440 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13441 | { |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13442 | if ((ac__type_new_ *) 0) |
| 13443 | return 0; |
| 13444 | if (sizeof (ac__type_new_)) |
| 13445 | return 0; |
| 13446 | ; |
| 13447 | return 0; |
| 13448 | } |
| 13449 | _ACEOF |
| 13450 | rm -f conftest.$ac_objext |
| 13451 | if { (ac_try="$ac_compile" |
| 13452 | case "(($ac_try" in |
| 13453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13454 | *) ac_try_echo=$ac_try;; |
| 13455 | esac |
| 13456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13457 | (eval "$ac_compile") 2>conftest.er1 |
| 13458 | ac_status=$? |
| 13459 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13460 | rm -f conftest.er1 |
| 13461 | cat conftest.err >&5 |
| 13462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13463 | (exit $ac_status); } && { |
| 13464 | test -z "$ac_c_werror_flag" || |
| 13465 | test ! -s conftest.err |
| 13466 | } && test -s conftest.$ac_objext; then |
| 13467 | ac_cv_type_time_t=yes |
| 13468 | else |
| 13469 | echo "$as_me: failed program was:" >&5 |
| 13470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13471 | |
| 13472 | ac_cv_type_time_t=no |
| 13473 | fi |
| 13474 | |
| 13475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13476 | fi |
| 13477 | { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5 |
| 13478 | echo "${ECHO_T}$ac_cv_type_time_t" >&6; } |
| 13479 | |
| 13480 | # The cast to long int works around a bug in the HP C Compiler |
| 13481 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13482 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13483 | # This bug is HP SR number 8606223364. |
| 13484 | { echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 13485 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; } |
| 13486 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 13487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13488 | else |
| 13489 | if test "$cross_compiling" = yes; then |
| 13490 | # Depending upon the size, compute the lo and hi bounds. |
| 13491 | cat >conftest.$ac_ext <<_ACEOF |
| 13492 | /* confdefs.h. */ |
| 13493 | _ACEOF |
| 13494 | cat confdefs.h >>conftest.$ac_ext |
| 13495 | cat >>conftest.$ac_ext <<_ACEOF |
| 13496 | /* end confdefs.h. */ |
| 13497 | |
| 13498 | #ifdef HAVE_SYS_TYPES_H |
| 13499 | #include <sys/types.h> |
| 13500 | #endif |
| 13501 | #ifdef HAVE_TIME_H |
| 13502 | #include <time.h> |
| 13503 | #endif |
| 13504 | |
| 13505 | |
| 13506 | typedef time_t ac__type_sizeof_; |
| 13507 | int |
| 13508 | main () |
| 13509 | { |
| 13510 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 13511 | test_array [0] = 0 |
| 13512 | |
| 13513 | ; |
| 13514 | return 0; |
| 13515 | } |
| 13516 | _ACEOF |
| 13517 | rm -f conftest.$ac_objext |
| 13518 | if { (ac_try="$ac_compile" |
| 13519 | case "(($ac_try" in |
| 13520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13521 | *) ac_try_echo=$ac_try;; |
| 13522 | esac |
| 13523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13524 | (eval "$ac_compile") 2>conftest.er1 |
| 13525 | ac_status=$? |
| 13526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13527 | rm -f conftest.er1 |
| 13528 | cat conftest.err >&5 |
| 13529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13530 | (exit $ac_status); } && { |
| 13531 | test -z "$ac_c_werror_flag" || |
| 13532 | test ! -s conftest.err |
| 13533 | } && test -s conftest.$ac_objext; then |
| 13534 | ac_lo=0 ac_mid=0 |
| 13535 | while :; do |
| 13536 | cat >conftest.$ac_ext <<_ACEOF |
| 13537 | /* confdefs.h. */ |
| 13538 | _ACEOF |
| 13539 | cat confdefs.h >>conftest.$ac_ext |
| 13540 | cat >>conftest.$ac_ext <<_ACEOF |
| 13541 | /* end confdefs.h. */ |
| 13542 | |
| 13543 | #ifdef HAVE_SYS_TYPES_H |
| 13544 | #include <sys/types.h> |
| 13545 | #endif |
| 13546 | #ifdef HAVE_TIME_H |
| 13547 | #include <time.h> |
| 13548 | #endif |
| 13549 | |
| 13550 | |
| 13551 | typedef time_t ac__type_sizeof_; |
| 13552 | int |
| 13553 | main () |
| 13554 | { |
| 13555 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13556 | test_array [0] = 0 |
| 13557 | |
| 13558 | ; |
| 13559 | return 0; |
| 13560 | } |
| 13561 | _ACEOF |
| 13562 | rm -f conftest.$ac_objext |
| 13563 | if { (ac_try="$ac_compile" |
| 13564 | case "(($ac_try" in |
| 13565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13566 | *) ac_try_echo=$ac_try;; |
| 13567 | esac |
| 13568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13569 | (eval "$ac_compile") 2>conftest.er1 |
| 13570 | ac_status=$? |
| 13571 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13572 | rm -f conftest.er1 |
| 13573 | cat conftest.err >&5 |
| 13574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13575 | (exit $ac_status); } && { |
| 13576 | test -z "$ac_c_werror_flag" || |
| 13577 | test ! -s conftest.err |
| 13578 | } && test -s conftest.$ac_objext; then |
| 13579 | ac_hi=$ac_mid; break |
| 13580 | else |
| 13581 | echo "$as_me: failed program was:" >&5 |
| 13582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13583 | |
| 13584 | ac_lo=`expr $ac_mid + 1` |
| 13585 | if test $ac_lo -le $ac_mid; then |
| 13586 | ac_lo= ac_hi= |
| 13587 | break |
| 13588 | fi |
| 13589 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13590 | fi |
| 13591 | |
| 13592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13593 | done |
| 13594 | else |
| 13595 | echo "$as_me: failed program was:" >&5 |
| 13596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13597 | |
| 13598 | cat >conftest.$ac_ext <<_ACEOF |
| 13599 | /* confdefs.h. */ |
| 13600 | _ACEOF |
| 13601 | cat confdefs.h >>conftest.$ac_ext |
| 13602 | cat >>conftest.$ac_ext <<_ACEOF |
| 13603 | /* end confdefs.h. */ |
| 13604 | |
| 13605 | #ifdef HAVE_SYS_TYPES_H |
| 13606 | #include <sys/types.h> |
| 13607 | #endif |
| 13608 | #ifdef HAVE_TIME_H |
| 13609 | #include <time.h> |
| 13610 | #endif |
| 13611 | |
| 13612 | |
| 13613 | typedef time_t ac__type_sizeof_; |
| 13614 | int |
| 13615 | main () |
| 13616 | { |
| 13617 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 13618 | test_array [0] = 0 |
| 13619 | |
| 13620 | ; |
| 13621 | return 0; |
| 13622 | } |
| 13623 | _ACEOF |
| 13624 | rm -f conftest.$ac_objext |
| 13625 | if { (ac_try="$ac_compile" |
| 13626 | case "(($ac_try" in |
| 13627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13628 | *) ac_try_echo=$ac_try;; |
| 13629 | esac |
| 13630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13631 | (eval "$ac_compile") 2>conftest.er1 |
| 13632 | ac_status=$? |
| 13633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13634 | rm -f conftest.er1 |
| 13635 | cat conftest.err >&5 |
| 13636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13637 | (exit $ac_status); } && { |
| 13638 | test -z "$ac_c_werror_flag" || |
| 13639 | test ! -s conftest.err |
| 13640 | } && test -s conftest.$ac_objext; then |
| 13641 | ac_hi=-1 ac_mid=-1 |
| 13642 | while :; do |
| 13643 | cat >conftest.$ac_ext <<_ACEOF |
| 13644 | /* confdefs.h. */ |
| 13645 | _ACEOF |
| 13646 | cat confdefs.h >>conftest.$ac_ext |
| 13647 | cat >>conftest.$ac_ext <<_ACEOF |
| 13648 | /* end confdefs.h. */ |
| 13649 | |
| 13650 | #ifdef HAVE_SYS_TYPES_H |
| 13651 | #include <sys/types.h> |
| 13652 | #endif |
| 13653 | #ifdef HAVE_TIME_H |
| 13654 | #include <time.h> |
| 13655 | #endif |
| 13656 | |
| 13657 | |
| 13658 | typedef time_t ac__type_sizeof_; |
| 13659 | int |
| 13660 | main () |
| 13661 | { |
| 13662 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 13663 | test_array [0] = 0 |
| 13664 | |
| 13665 | ; |
| 13666 | return 0; |
| 13667 | } |
| 13668 | _ACEOF |
| 13669 | rm -f conftest.$ac_objext |
| 13670 | if { (ac_try="$ac_compile" |
| 13671 | case "(($ac_try" in |
| 13672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13673 | *) ac_try_echo=$ac_try;; |
| 13674 | esac |
| 13675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13676 | (eval "$ac_compile") 2>conftest.er1 |
| 13677 | ac_status=$? |
| 13678 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13679 | rm -f conftest.er1 |
| 13680 | cat conftest.err >&5 |
| 13681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13682 | (exit $ac_status); } && { |
| 13683 | test -z "$ac_c_werror_flag" || |
| 13684 | test ! -s conftest.err |
| 13685 | } && test -s conftest.$ac_objext; then |
| 13686 | ac_lo=$ac_mid; break |
| 13687 | else |
| 13688 | echo "$as_me: failed program was:" >&5 |
| 13689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13690 | |
| 13691 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13692 | if test $ac_mid -le $ac_hi; then |
| 13693 | ac_lo= ac_hi= |
| 13694 | break |
| 13695 | fi |
| 13696 | ac_mid=`expr 2 '*' $ac_mid` |
| 13697 | fi |
| 13698 | |
| 13699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13700 | done |
| 13701 | else |
| 13702 | echo "$as_me: failed program was:" >&5 |
| 13703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13704 | |
| 13705 | ac_lo= ac_hi= |
| 13706 | fi |
| 13707 | |
| 13708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13709 | fi |
| 13710 | |
| 13711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13712 | # Binary search between lo and hi bounds. |
| 13713 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13714 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13715 | cat >conftest.$ac_ext <<_ACEOF |
| 13716 | /* confdefs.h. */ |
| 13717 | _ACEOF |
| 13718 | cat confdefs.h >>conftest.$ac_ext |
| 13719 | cat >>conftest.$ac_ext <<_ACEOF |
| 13720 | /* end confdefs.h. */ |
| 13721 | |
| 13722 | #ifdef HAVE_SYS_TYPES_H |
| 13723 | #include <sys/types.h> |
| 13724 | #endif |
| 13725 | #ifdef HAVE_TIME_H |
| 13726 | #include <time.h> |
| 13727 | #endif |
| 13728 | |
| 13729 | |
| 13730 | typedef time_t ac__type_sizeof_; |
| 13731 | int |
| 13732 | main () |
| 13733 | { |
| 13734 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13735 | test_array [0] = 0 |
| 13736 | |
| 13737 | ; |
| 13738 | return 0; |
| 13739 | } |
| 13740 | _ACEOF |
| 13741 | rm -f conftest.$ac_objext |
| 13742 | if { (ac_try="$ac_compile" |
| 13743 | case "(($ac_try" in |
| 13744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13745 | *) ac_try_echo=$ac_try;; |
| 13746 | esac |
| 13747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13748 | (eval "$ac_compile") 2>conftest.er1 |
| 13749 | ac_status=$? |
| 13750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13751 | rm -f conftest.er1 |
| 13752 | cat conftest.err >&5 |
| 13753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13754 | (exit $ac_status); } && { |
| 13755 | test -z "$ac_c_werror_flag" || |
| 13756 | test ! -s conftest.err |
| 13757 | } && test -s conftest.$ac_objext; then |
| 13758 | ac_hi=$ac_mid |
| 13759 | else |
| 13760 | echo "$as_me: failed program was:" >&5 |
| 13761 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13762 | |
| 13763 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13764 | fi |
| 13765 | |
| 13766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13767 | done |
| 13768 | case $ac_lo in |
| 13769 | ?*) ac_cv_sizeof_time_t=$ac_lo;; |
| 13770 | '') if test "$ac_cv_type_time_t" = yes; then |
| 13771 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 13772 | See \`config.log' for more details." >&5 |
| 13773 | echo "$as_me: error: cannot compute sizeof (time_t) |
| 13774 | See \`config.log' for more details." >&2;} |
| 13775 | { (exit 77); exit 77; }; } |
| 13776 | else |
| 13777 | ac_cv_sizeof_time_t=0 |
| 13778 | fi ;; |
| 13779 | esac |
| 13780 | else |
| 13781 | cat >conftest.$ac_ext <<_ACEOF |
| 13782 | /* confdefs.h. */ |
| 13783 | _ACEOF |
| 13784 | cat confdefs.h >>conftest.$ac_ext |
| 13785 | cat >>conftest.$ac_ext <<_ACEOF |
| 13786 | /* end confdefs.h. */ |
| 13787 | |
| 13788 | #ifdef HAVE_SYS_TYPES_H |
| 13789 | #include <sys/types.h> |
| 13790 | #endif |
| 13791 | #ifdef HAVE_TIME_H |
| 13792 | #include <time.h> |
| 13793 | #endif |
| 13794 | |
| 13795 | |
| 13796 | typedef time_t ac__type_sizeof_; |
| 13797 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13798 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13799 | #include <stdio.h> |
| 13800 | #include <stdlib.h> |
| 13801 | int |
| 13802 | main () |
| 13803 | { |
| 13804 | |
| 13805 | FILE *f = fopen ("conftest.val", "w"); |
| 13806 | if (! f) |
| 13807 | return 1; |
| 13808 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 13809 | { |
| 13810 | long int i = longval (); |
| 13811 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13812 | return 1; |
| 13813 | fprintf (f, "%ld\n", i); |
| 13814 | } |
| 13815 | else |
| 13816 | { |
| 13817 | unsigned long int i = ulongval (); |
| 13818 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13819 | return 1; |
| 13820 | fprintf (f, "%lu\n", i); |
| 13821 | } |
| 13822 | return ferror (f) || fclose (f) != 0; |
| 13823 | |
| 13824 | ; |
| 13825 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13826 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13827 | _ACEOF |
| 13828 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13829 | if { (ac_try="$ac_link" |
| 13830 | case "(($ac_try" in |
| 13831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13832 | *) ac_try_echo=$ac_try;; |
| 13833 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13835 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13836 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13838 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13839 | { (case "(($ac_try" in |
| 13840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13841 | *) ac_try_echo=$ac_try;; |
| 13842 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13844 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13845 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13847 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13848 | ac_cv_sizeof_time_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13849 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13850 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13851 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13853 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13854 | ( exit $ac_status ) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13855 | if test "$ac_cv_type_time_t" = yes; then |
| 13856 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 13857 | See \`config.log' for more details." >&5 |
| 13858 | echo "$as_me: error: cannot compute sizeof (time_t) |
| 13859 | See \`config.log' for more details." >&2;} |
| 13860 | { (exit 77); exit 77; }; } |
| 13861 | else |
| 13862 | ac_cv_sizeof_time_t=0 |
| 13863 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13864 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13865 | 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] | 13866 | fi |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13867 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13868 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13869 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 13870 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13871 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13872 | |
| 13873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13874 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13875 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13876 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13877 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13878 | |
| 13879 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13880 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13881 | ac_save_cc="$CC" |
| 13882 | if test "$ac_cv_kpthread" = "yes" |
| 13883 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 13884 | elif test "$ac_cv_kthread" = "yes" |
| 13885 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13886 | elif test "$ac_cv_pthread" = "yes" |
| 13887 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13888 | fi |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13889 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13890 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 13891 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13892 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13893 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13894 | /* confdefs.h. */ |
| 13895 | _ACEOF |
| 13896 | cat confdefs.h >>conftest.$ac_ext |
| 13897 | cat >>conftest.$ac_ext <<_ACEOF |
| 13898 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13899 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13900 | int |
| 13901 | main () |
| 13902 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 13903 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13904 | ; |
| 13905 | return 0; |
| 13906 | } |
| 13907 | _ACEOF |
| 13908 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13909 | if { (ac_try="$ac_compile" |
| 13910 | case "(($ac_try" in |
| 13911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13912 | *) ac_try_echo=$ac_try;; |
| 13913 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13915 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13916 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13918 | rm -f conftest.er1 |
| 13919 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13921 | (exit $ac_status); } && { |
| 13922 | test -z "$ac_c_werror_flag" || |
| 13923 | test ! -s conftest.err |
| 13924 | } && test -s conftest.$ac_objext; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13925 | have_pthread_t=yes |
| 13926 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13927 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13929 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13930 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13931 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13932 | |
| 13933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13934 | { echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 13935 | echo "${ECHO_T}$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13936 | if test "$have_pthread_t" = yes ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13937 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 13938 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
| 13939 | if test "${ac_cv_type_pthread_t+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13941 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13942 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13943 | /* confdefs.h. */ |
| 13944 | _ACEOF |
| 13945 | cat confdefs.h >>conftest.$ac_ext |
| 13946 | cat >>conftest.$ac_ext <<_ACEOF |
| 13947 | /* end confdefs.h. */ |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13948 | |
| 13949 | #ifdef HAVE_PTHREAD_H |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 13950 | #include <pthread.h> |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 13951 | #endif |
| 13952 | |
| 13953 | |
| 13954 | typedef pthread_t ac__type_new_; |
| 13955 | int |
| 13956 | main () |
| 13957 | { |
| 13958 | if ((ac__type_new_ *) 0) |
| 13959 | return 0; |
| 13960 | if (sizeof (ac__type_new_)) |
| 13961 | return 0; |
| 13962 | ; |
| 13963 | return 0; |
| 13964 | } |
| 13965 | _ACEOF |
| 13966 | rm -f conftest.$ac_objext |
| 13967 | if { (ac_try="$ac_compile" |
| 13968 | case "(($ac_try" in |
| 13969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13970 | *) ac_try_echo=$ac_try;; |
| 13971 | esac |
| 13972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13973 | (eval "$ac_compile") 2>conftest.er1 |
| 13974 | ac_status=$? |
| 13975 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13976 | rm -f conftest.er1 |
| 13977 | cat conftest.err >&5 |
| 13978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13979 | (exit $ac_status); } && { |
| 13980 | test -z "$ac_c_werror_flag" || |
| 13981 | test ! -s conftest.err |
| 13982 | } && test -s conftest.$ac_objext; then |
| 13983 | ac_cv_type_pthread_t=yes |
| 13984 | else |
| 13985 | echo "$as_me: failed program was:" >&5 |
| 13986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13987 | |
| 13988 | ac_cv_type_pthread_t=no |
| 13989 | fi |
| 13990 | |
| 13991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13992 | fi |
| 13993 | { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5 |
| 13994 | echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; } |
| 13995 | |
| 13996 | # The cast to long int works around a bug in the HP C Compiler |
| 13997 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13998 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13999 | # This bug is HP SR number 8606223364. |
| 14000 | { echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 14001 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; } |
| 14002 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 14003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14004 | else |
| 14005 | if test "$cross_compiling" = yes; then |
| 14006 | # Depending upon the size, compute the lo and hi bounds. |
| 14007 | cat >conftest.$ac_ext <<_ACEOF |
| 14008 | /* confdefs.h. */ |
| 14009 | _ACEOF |
| 14010 | cat confdefs.h >>conftest.$ac_ext |
| 14011 | cat >>conftest.$ac_ext <<_ACEOF |
| 14012 | /* end confdefs.h. */ |
| 14013 | |
| 14014 | #ifdef HAVE_PTHREAD_H |
| 14015 | #include <pthread.h> |
| 14016 | #endif |
| 14017 | |
| 14018 | |
| 14019 | typedef pthread_t ac__type_sizeof_; |
| 14020 | int |
| 14021 | main () |
| 14022 | { |
| 14023 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 14024 | test_array [0] = 0 |
| 14025 | |
| 14026 | ; |
| 14027 | return 0; |
| 14028 | } |
| 14029 | _ACEOF |
| 14030 | rm -f conftest.$ac_objext |
| 14031 | if { (ac_try="$ac_compile" |
| 14032 | case "(($ac_try" in |
| 14033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14034 | *) ac_try_echo=$ac_try;; |
| 14035 | esac |
| 14036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14037 | (eval "$ac_compile") 2>conftest.er1 |
| 14038 | ac_status=$? |
| 14039 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14040 | rm -f conftest.er1 |
| 14041 | cat conftest.err >&5 |
| 14042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14043 | (exit $ac_status); } && { |
| 14044 | test -z "$ac_c_werror_flag" || |
| 14045 | test ! -s conftest.err |
| 14046 | } && test -s conftest.$ac_objext; then |
| 14047 | ac_lo=0 ac_mid=0 |
| 14048 | while :; do |
| 14049 | cat >conftest.$ac_ext <<_ACEOF |
| 14050 | /* confdefs.h. */ |
| 14051 | _ACEOF |
| 14052 | cat confdefs.h >>conftest.$ac_ext |
| 14053 | cat >>conftest.$ac_ext <<_ACEOF |
| 14054 | /* end confdefs.h. */ |
| 14055 | |
| 14056 | #ifdef HAVE_PTHREAD_H |
| 14057 | #include <pthread.h> |
| 14058 | #endif |
| 14059 | |
| 14060 | |
| 14061 | typedef pthread_t ac__type_sizeof_; |
| 14062 | int |
| 14063 | main () |
| 14064 | { |
| 14065 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 14066 | test_array [0] = 0 |
| 14067 | |
| 14068 | ; |
| 14069 | return 0; |
| 14070 | } |
| 14071 | _ACEOF |
| 14072 | rm -f conftest.$ac_objext |
| 14073 | if { (ac_try="$ac_compile" |
| 14074 | case "(($ac_try" in |
| 14075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14076 | *) ac_try_echo=$ac_try;; |
| 14077 | esac |
| 14078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14079 | (eval "$ac_compile") 2>conftest.er1 |
| 14080 | ac_status=$? |
| 14081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14082 | rm -f conftest.er1 |
| 14083 | cat conftest.err >&5 |
| 14084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14085 | (exit $ac_status); } && { |
| 14086 | test -z "$ac_c_werror_flag" || |
| 14087 | test ! -s conftest.err |
| 14088 | } && test -s conftest.$ac_objext; then |
| 14089 | ac_hi=$ac_mid; break |
| 14090 | else |
| 14091 | echo "$as_me: failed program was:" >&5 |
| 14092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14093 | |
| 14094 | ac_lo=`expr $ac_mid + 1` |
| 14095 | if test $ac_lo -le $ac_mid; then |
| 14096 | ac_lo= ac_hi= |
| 14097 | break |
| 14098 | fi |
| 14099 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 14100 | fi |
| 14101 | |
| 14102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14103 | done |
| 14104 | else |
| 14105 | echo "$as_me: failed program was:" >&5 |
| 14106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14107 | |
| 14108 | cat >conftest.$ac_ext <<_ACEOF |
| 14109 | /* confdefs.h. */ |
| 14110 | _ACEOF |
| 14111 | cat confdefs.h >>conftest.$ac_ext |
| 14112 | cat >>conftest.$ac_ext <<_ACEOF |
| 14113 | /* end confdefs.h. */ |
| 14114 | |
| 14115 | #ifdef HAVE_PTHREAD_H |
| 14116 | #include <pthread.h> |
| 14117 | #endif |
| 14118 | |
| 14119 | |
| 14120 | typedef pthread_t ac__type_sizeof_; |
| 14121 | int |
| 14122 | main () |
| 14123 | { |
| 14124 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 14125 | test_array [0] = 0 |
| 14126 | |
| 14127 | ; |
| 14128 | return 0; |
| 14129 | } |
| 14130 | _ACEOF |
| 14131 | rm -f conftest.$ac_objext |
| 14132 | if { (ac_try="$ac_compile" |
| 14133 | case "(($ac_try" in |
| 14134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14135 | *) ac_try_echo=$ac_try;; |
| 14136 | esac |
| 14137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14138 | (eval "$ac_compile") 2>conftest.er1 |
| 14139 | ac_status=$? |
| 14140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14141 | rm -f conftest.er1 |
| 14142 | cat conftest.err >&5 |
| 14143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14144 | (exit $ac_status); } && { |
| 14145 | test -z "$ac_c_werror_flag" || |
| 14146 | test ! -s conftest.err |
| 14147 | } && test -s conftest.$ac_objext; then |
| 14148 | ac_hi=-1 ac_mid=-1 |
| 14149 | while :; do |
| 14150 | cat >conftest.$ac_ext <<_ACEOF |
| 14151 | /* confdefs.h. */ |
| 14152 | _ACEOF |
| 14153 | cat confdefs.h >>conftest.$ac_ext |
| 14154 | cat >>conftest.$ac_ext <<_ACEOF |
| 14155 | /* end confdefs.h. */ |
| 14156 | |
| 14157 | #ifdef HAVE_PTHREAD_H |
| 14158 | #include <pthread.h> |
| 14159 | #endif |
| 14160 | |
| 14161 | |
| 14162 | typedef pthread_t ac__type_sizeof_; |
| 14163 | int |
| 14164 | main () |
| 14165 | { |
| 14166 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 14167 | test_array [0] = 0 |
| 14168 | |
| 14169 | ; |
| 14170 | return 0; |
| 14171 | } |
| 14172 | _ACEOF |
| 14173 | rm -f conftest.$ac_objext |
| 14174 | if { (ac_try="$ac_compile" |
| 14175 | case "(($ac_try" in |
| 14176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14177 | *) ac_try_echo=$ac_try;; |
| 14178 | esac |
| 14179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14180 | (eval "$ac_compile") 2>conftest.er1 |
| 14181 | ac_status=$? |
| 14182 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14183 | rm -f conftest.er1 |
| 14184 | cat conftest.err >&5 |
| 14185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14186 | (exit $ac_status); } && { |
| 14187 | test -z "$ac_c_werror_flag" || |
| 14188 | test ! -s conftest.err |
| 14189 | } && test -s conftest.$ac_objext; then |
| 14190 | ac_lo=$ac_mid; break |
| 14191 | else |
| 14192 | echo "$as_me: failed program was:" >&5 |
| 14193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14194 | |
| 14195 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14196 | if test $ac_mid -le $ac_hi; then |
| 14197 | ac_lo= ac_hi= |
| 14198 | break |
| 14199 | fi |
| 14200 | ac_mid=`expr 2 '*' $ac_mid` |
| 14201 | fi |
| 14202 | |
| 14203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14204 | done |
| 14205 | else |
| 14206 | echo "$as_me: failed program was:" >&5 |
| 14207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14208 | |
| 14209 | ac_lo= ac_hi= |
| 14210 | fi |
| 14211 | |
| 14212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14213 | fi |
| 14214 | |
| 14215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14216 | # Binary search between lo and hi bounds. |
| 14217 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14218 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14219 | cat >conftest.$ac_ext <<_ACEOF |
| 14220 | /* confdefs.h. */ |
| 14221 | _ACEOF |
| 14222 | cat confdefs.h >>conftest.$ac_ext |
| 14223 | cat >>conftest.$ac_ext <<_ACEOF |
| 14224 | /* end confdefs.h. */ |
| 14225 | |
| 14226 | #ifdef HAVE_PTHREAD_H |
| 14227 | #include <pthread.h> |
| 14228 | #endif |
| 14229 | |
| 14230 | |
| 14231 | typedef pthread_t ac__type_sizeof_; |
| 14232 | int |
| 14233 | main () |
| 14234 | { |
| 14235 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 14236 | test_array [0] = 0 |
| 14237 | |
| 14238 | ; |
| 14239 | return 0; |
| 14240 | } |
| 14241 | _ACEOF |
| 14242 | rm -f conftest.$ac_objext |
| 14243 | if { (ac_try="$ac_compile" |
| 14244 | case "(($ac_try" in |
| 14245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14246 | *) ac_try_echo=$ac_try;; |
| 14247 | esac |
| 14248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14249 | (eval "$ac_compile") 2>conftest.er1 |
| 14250 | ac_status=$? |
| 14251 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14252 | rm -f conftest.er1 |
| 14253 | cat conftest.err >&5 |
| 14254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14255 | (exit $ac_status); } && { |
| 14256 | test -z "$ac_c_werror_flag" || |
| 14257 | test ! -s conftest.err |
| 14258 | } && test -s conftest.$ac_objext; then |
| 14259 | ac_hi=$ac_mid |
| 14260 | else |
| 14261 | echo "$as_me: failed program was:" >&5 |
| 14262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14263 | |
| 14264 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 14265 | fi |
| 14266 | |
| 14267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14268 | done |
| 14269 | case $ac_lo in |
| 14270 | ?*) ac_cv_sizeof_pthread_t=$ac_lo;; |
| 14271 | '') if test "$ac_cv_type_pthread_t" = yes; then |
| 14272 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14273 | See \`config.log' for more details." >&5 |
| 14274 | echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14275 | See \`config.log' for more details." >&2;} |
| 14276 | { (exit 77); exit 77; }; } |
| 14277 | else |
| 14278 | ac_cv_sizeof_pthread_t=0 |
| 14279 | fi ;; |
| 14280 | esac |
| 14281 | else |
| 14282 | cat >conftest.$ac_ext <<_ACEOF |
| 14283 | /* confdefs.h. */ |
| 14284 | _ACEOF |
| 14285 | cat confdefs.h >>conftest.$ac_ext |
| 14286 | cat >>conftest.$ac_ext <<_ACEOF |
| 14287 | /* end confdefs.h. */ |
| 14288 | |
| 14289 | #ifdef HAVE_PTHREAD_H |
| 14290 | #include <pthread.h> |
| 14291 | #endif |
| 14292 | |
| 14293 | |
| 14294 | typedef pthread_t ac__type_sizeof_; |
| 14295 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14296 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14297 | #include <stdio.h> |
| 14298 | #include <stdlib.h> |
| 14299 | int |
| 14300 | main () |
| 14301 | { |
| 14302 | |
| 14303 | FILE *f = fopen ("conftest.val", "w"); |
| 14304 | if (! f) |
| 14305 | return 1; |
| 14306 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 14307 | { |
| 14308 | long int i = longval (); |
| 14309 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14310 | return 1; |
| 14311 | fprintf (f, "%ld\n", i); |
| 14312 | } |
| 14313 | else |
| 14314 | { |
| 14315 | unsigned long int i = ulongval (); |
| 14316 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14317 | return 1; |
| 14318 | fprintf (f, "%lu\n", i); |
| 14319 | } |
| 14320 | return ferror (f) || fclose (f) != 0; |
| 14321 | |
| 14322 | ; |
| 14323 | return 0; |
| 14324 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14325 | _ACEOF |
| 14326 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14327 | if { (ac_try="$ac_link" |
| 14328 | case "(($ac_try" in |
| 14329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14330 | *) ac_try_echo=$ac_try;; |
| 14331 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14333 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14334 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14336 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14337 | { (case "(($ac_try" in |
| 14338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14339 | *) ac_try_echo=$ac_try;; |
| 14340 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14342 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14343 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14345 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14346 | ac_cv_sizeof_pthread_t=`cat conftest.val` |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14347 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14348 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14349 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14351 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14352 | ( exit $ac_status ) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14353 | if test "$ac_cv_type_pthread_t" = yes; then |
| 14354 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14355 | See \`config.log' for more details." >&5 |
| 14356 | echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14357 | See \`config.log' for more details." >&2;} |
| 14358 | { (exit 77); exit 77; }; } |
| 14359 | else |
| 14360 | ac_cv_sizeof_pthread_t=0 |
| 14361 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14362 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14363 | 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] | 14364 | fi |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14365 | rm -f conftest.val |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14366 | fi |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14367 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14368 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14369 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14370 | |
| 14371 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14372 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14373 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14374 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14375 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14376 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14377 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14378 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14379 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14380 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14381 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14382 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14383 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 14384 | ;; |
| 14385 | Darwin/*) |
| 14386 | OTHER_LIBTOOL_OPT="" |
| 14387 | ;; |
| 14388 | esac |
| 14389 | |
| 14390 | |
| 14391 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14392 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14393 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 14394 | if test "${enable_universalsdk}"; then |
| 14395 | : |
| 14396 | else |
| 14397 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`" |
| 14398 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14399 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14400 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 14401 | Darwin/*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14402 | gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| 14403 | if test ${gcc_version} '<' 4.0 |
| 14404 | then |
| 14405 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 14406 | else |
| 14407 | LIBTOOL_CRUFT="" |
| 14408 | fi |
Jack Jansen | 39fd231 | 2006-02-23 15:12:19 +0000 | [diff] [blame] | 14409 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14410 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14411 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14412 | esac |
| 14413 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14414 | { echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 14415 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14416 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14417 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 14418 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14419 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14420 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14421 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14422 | cat >>confdefs.h <<\_ACEOF |
| 14423 | #define WITH_NEXT_FRAMEWORK 1 |
| 14424 | _ACEOF |
| 14425 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14426 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14427 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 14428 | if test $enable_shared = "yes" |
| 14429 | then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14430 | { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5 |
| 14431 | echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;} |
Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 14432 | { (exit 1); exit 1; }; } |
| 14433 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14434 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14435 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14436 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14437 | fi |
| 14438 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14439 | { echo "$as_me:$LINENO: checking for dyld" >&5 |
| 14440 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14441 | case $ac_sys_system/$ac_sys_release in |
| 14442 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14444 | cat >>confdefs.h <<\_ACEOF |
| 14445 | #define WITH_DYLD 1 |
| 14446 | _ACEOF |
| 14447 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14448 | { echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 14449 | echo "${ECHO_T}always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14450 | ;; |
| 14451 | *) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14452 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14453 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14454 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14455 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14456 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14457 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14458 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14459 | |
| 14460 | |
| 14461 | |
| 14462 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14463 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14464 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14465 | { echo "$as_me:$LINENO: checking SO" >&5 |
| 14466 | echo $ECHO_N "checking SO... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14467 | if test -z "$SO" |
| 14468 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14469 | case $ac_sys_system in |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14470 | hp*|HP*) |
| 14471 | case `uname -m` in |
| 14472 | ia64) SO=.so;; |
| 14473 | *) SO=.sl;; |
| 14474 | esac |
| 14475 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14476 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14477 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14478 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 14479 | else |
| 14480 | # this might also be a termcap variable, see #610332 |
| 14481 | echo |
| 14482 | echo '=====================================================================' |
| 14483 | echo '+ +' |
| 14484 | echo '+ WARNING: You have set SO in your environment. +' |
| 14485 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 14486 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 14487 | echo '+ +' |
| 14488 | echo '=====================================================================' |
| 14489 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14490 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14491 | { echo "$as_me:$LINENO: result: $SO" >&5 |
| 14492 | echo "${ECHO_T}$SO" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14493 | |
Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 14494 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14495 | cat >>confdefs.h <<_ACEOF |
| 14496 | #define SHLIB_EXT "$SO" |
| 14497 | _ACEOF |
| 14498 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14499 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 14500 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14501 | # (Shared libraries in this instance are shared modules to be loaded into |
| 14502 | # Python, as opposed to building Python itself as a shared library.) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14503 | { echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 14504 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14505 | if test -z "$LDSHARED" |
| 14506 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14507 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14508 | AIX*) |
| 14509 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14510 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14511 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14512 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 14513 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14514 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 14515 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 14516 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 14517 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 14518 | fi ;; |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 14519 | hp*|HP*) |
| 14520 | if test "$GCC" = "yes" |
| 14521 | then LDSHARED='$(CC) -shared' |
| 14522 | else LDSHARED='ld -b'; |
| 14523 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14524 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14525 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14526 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14527 | if test "$enable_framework" ; then |
| 14528 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14529 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14530 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14531 | else |
| 14532 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14533 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14534 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14535 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14536 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14537 | if test "$enable_framework" ; then |
| 14538 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14539 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14540 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14541 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 14542 | # No framework, use the Python app as bundle-loader |
| 14543 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 14544 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14545 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14546 | Darwin/*) |
| 14547 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 14548 | # This allows an extension to be used in any Python |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14549 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 14550 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14551 | then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14552 | if test "${enable_universalsdk}"; then |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 14553 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14554 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14555 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 14556 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14557 | else |
| 14558 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14559 | if test "$enable_framework" ; then |
| 14560 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14561 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14562 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14563 | else |
| 14564 | # No framework, use the Python app as bundle-loader |
| 14565 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 14566 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 14567 | fi |
| 14568 | fi |
| 14569 | ;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 14570 | Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 14571 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 14572 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 14573 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14574 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 14575 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14576 | else |
| 14577 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14578 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 14579 | OpenBSD*) |
| 14580 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 14581 | then |
| 14582 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 14583 | else |
| 14584 | case `uname -r` in |
| 14585 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 14586 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14587 | ;; |
| 14588 | *) |
| 14589 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 14590 | ;; |
| 14591 | esac |
| 14592 | fi;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14593 | NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14594 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14595 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 14596 | then LDSHARED='$(CC) -shared' |
| 14597 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14598 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 14599 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14600 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14601 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14602 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14603 | *) LDSHARED="ld";; |
| 14604 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14605 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14606 | { echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 14607 | echo "${ECHO_T}$LDSHARED" >&6; } |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14608 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14609 | # 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] | 14610 | # library (module) -- this is only needed for a few systems |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14611 | { echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 14612 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14613 | if test -z "$CCSHARED" |
| 14614 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14615 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 14616 | SunOS*) if test "$GCC" = yes; |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 14617 | then CCSHARED="-fPIC"; |
| 14618 | elif test `uname -p` = sparc; |
| 14619 | then CCSHARED="-xcode=pic32"; |
| 14620 | else CCSHARED="-Kpic"; |
| 14621 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14622 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 14623 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14624 | else CCSHARED="+z"; |
| 14625 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14626 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14627 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14628 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14629 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14630 | if test "$GCC" = "yes" |
| 14631 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14632 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14633 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 14634 | SCO_SV*) |
| 14635 | if test "$GCC" = "yes" |
| 14636 | then CCSHARED="-fPIC" |
| 14637 | else CCSHARED="-Kpic -belf" |
| 14638 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14639 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14640 | IRIX*/6*) case $CC in |
| 14641 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 14642 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14643 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14644 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14645 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14646 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14647 | { echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 14648 | echo "${ECHO_T}$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14649 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14650 | # the python executable -- this is only needed for a few systems |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14651 | { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 14652 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14653 | if test -z "$LINKFORSHARED" |
| 14654 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14655 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14656 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 14657 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14658 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 14659 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14660 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14661 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14662 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14663 | Darwin/*) |
Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 14664 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14665 | if test "$enable_framework" |
| 14666 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14667 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14668 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14669 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14670 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 14671 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 14672 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14673 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 14674 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 14675 | then |
| 14676 | LINKFORSHARED="-Wl,--export-dynamic" |
| 14677 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14678 | SunOS/5*) case $CC in |
| 14679 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 14680 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 14681 | then |
| 14682 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14683 | fi;; |
| 14684 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 14685 | CYGWIN*) |
| 14686 | if test $enable_shared = "no" |
| 14687 | then |
| 14688 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 14689 | fi;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 14690 | QNX*) |
| 14691 | # -Wl,-E causes the symbols to be added to the dynamic |
| 14692 | # symbol table so that they can be found when a module |
| 14693 | # is loaded. -N 2048K causes the stack size to be set |
| 14694 | # to 2048 kilobytes so that the stack doesn't overflow |
| 14695 | # when running test_compile.py. |
| 14696 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14697 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14698 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14699 | { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 14700 | echo "${ECHO_T}$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14701 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14702 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 14703 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14704 | { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 14705 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14706 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 14707 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 14708 | case $ac_sys_system in |
| 14709 | CYGWIN*) |
| 14710 | # Cygwin needs CCSHARED when building extension DLLs |
| 14711 | # but not when building the interpreter DLL. |
| 14712 | CFLAGSFORSHARED='';; |
| 14713 | *) |
| 14714 | CFLAGSFORSHARED='$(CCSHARED)' |
| 14715 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14716 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14717 | { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 14718 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14719 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14720 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 14721 | # library (with --enable-shared). |
| 14722 | # 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] | 14723 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 14724 | # if it is not required, since it creates a dependency of the shared library |
| 14725 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 14726 | # don't need to link LIBS explicitly. The default should be only changed |
| 14727 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14728 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14729 | { echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 14730 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14731 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14732 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 14733 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14734 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14735 | { echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 14736 | echo "${ECHO_T}$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14737 | |
| 14738 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14739 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14740 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14741 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 14742 | 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] | 14743 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14745 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14746 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14747 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14748 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14749 | /* confdefs.h. */ |
| 14750 | _ACEOF |
| 14751 | cat confdefs.h >>conftest.$ac_ext |
| 14752 | cat >>conftest.$ac_ext <<_ACEOF |
| 14753 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14754 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14755 | /* Override any GCC internal prototype to avoid an error. |
| 14756 | Use char because int might match the return type of a GCC |
| 14757 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14758 | #ifdef __cplusplus |
| 14759 | extern "C" |
| 14760 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14761 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14762 | int |
| 14763 | main () |
| 14764 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14765 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14766 | ; |
| 14767 | return 0; |
| 14768 | } |
| 14769 | _ACEOF |
| 14770 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14771 | if { (ac_try="$ac_link" |
| 14772 | case "(($ac_try" in |
| 14773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14774 | *) ac_try_echo=$ac_try;; |
| 14775 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14777 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14778 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14780 | rm -f conftest.er1 |
| 14781 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14783 | (exit $ac_status); } && { |
| 14784 | test -z "$ac_c_werror_flag" || |
| 14785 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14786 | } && test -s conftest$ac_exeext && |
| 14787 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14788 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14789 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14790 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14792 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14793 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14794 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14795 | |
| 14796 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14797 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14798 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14799 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14800 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 14801 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 14802 | if test $ac_cv_lib_dl_dlopen = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14803 | cat >>confdefs.h <<_ACEOF |
| 14804 | #define HAVE_LIBDL 1 |
| 14805 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14806 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14807 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14808 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14809 | fi |
| 14810 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14811 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14812 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 14813 | 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] | 14814 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14816 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14817 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14818 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14819 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14820 | /* confdefs.h. */ |
| 14821 | _ACEOF |
| 14822 | cat confdefs.h >>conftest.$ac_ext |
| 14823 | cat >>conftest.$ac_ext <<_ACEOF |
| 14824 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14825 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14826 | /* Override any GCC internal prototype to avoid an error. |
| 14827 | Use char because int might match the return type of a GCC |
| 14828 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14829 | #ifdef __cplusplus |
| 14830 | extern "C" |
| 14831 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14832 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14833 | int |
| 14834 | main () |
| 14835 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14836 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14837 | ; |
| 14838 | return 0; |
| 14839 | } |
| 14840 | _ACEOF |
| 14841 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14842 | if { (ac_try="$ac_link" |
| 14843 | case "(($ac_try" in |
| 14844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14845 | *) ac_try_echo=$ac_try;; |
| 14846 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14848 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14849 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14850 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14851 | rm -f conftest.er1 |
| 14852 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14854 | (exit $ac_status); } && { |
| 14855 | test -z "$ac_c_werror_flag" || |
| 14856 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14857 | } && test -s conftest$ac_exeext && |
| 14858 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14859 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14860 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14861 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14863 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14864 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14865 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14866 | |
| 14867 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14868 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14869 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14870 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14871 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 14872 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 14873 | if test $ac_cv_lib_dld_shl_load = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14874 | cat >>confdefs.h <<_ACEOF |
| 14875 | #define HAVE_LIBDLD 1 |
| 14876 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14877 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14878 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14879 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14880 | fi |
| 14881 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 14882 | |
Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 14883 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 14884 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14885 | { echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 14886 | 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] | 14887 | if test "${ac_cv_search_sem_init+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 14889 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 14890 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14891 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14892 | /* confdefs.h. */ |
| 14893 | _ACEOF |
| 14894 | cat confdefs.h >>conftest.$ac_ext |
| 14895 | cat >>conftest.$ac_ext <<_ACEOF |
| 14896 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14897 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14898 | /* Override any GCC internal prototype to avoid an error. |
| 14899 | Use char because int might match the return type of a GCC |
| 14900 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14901 | #ifdef __cplusplus |
| 14902 | extern "C" |
| 14903 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14904 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14905 | int |
| 14906 | main () |
| 14907 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14908 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14909 | ; |
| 14910 | return 0; |
| 14911 | } |
| 14912 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14913 | for ac_lib in '' pthread rt posix4; do |
| 14914 | if test -z "$ac_lib"; then |
| 14915 | ac_res="none required" |
| 14916 | else |
| 14917 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 14918 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14919 | fi |
| 14920 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14921 | if { (ac_try="$ac_link" |
| 14922 | case "(($ac_try" in |
| 14923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14924 | *) ac_try_echo=$ac_try;; |
| 14925 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14927 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 14928 | ac_status=$? |
| 14929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14930 | rm -f conftest.er1 |
| 14931 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14933 | (exit $ac_status); } && { |
| 14934 | test -z "$ac_c_werror_flag" || |
| 14935 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14936 | } && test -s conftest$ac_exeext && |
| 14937 | $as_test_x conftest$ac_exeext; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14938 | ac_cv_search_sem_init=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14939 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14940 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 14941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14942 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14943 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14944 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14945 | |
| 14946 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 14947 | conftest$ac_exeext |
| 14948 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 14949 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 14950 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14951 | done |
| 14952 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 14953 | : |
| 14954 | else |
| 14955 | ac_cv_search_sem_init=no |
| 14956 | fi |
| 14957 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 14958 | LIBS=$ac_func_search_save_LIBS |
| 14959 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14960 | { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 14961 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14962 | ac_res=$ac_cv_search_sem_init |
| 14963 | if test "$ac_res" != no; then |
| 14964 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 14965 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 14966 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 14967 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 14968 | # posix4 on Solaris 2.6 |
| 14969 | # pthread (first!) on Linux |
| 14970 | fi |
| 14971 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 14972 | # check if we need libintl for locale functions |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14973 | { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 14974 | 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] | 14975 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 14977 | else |
| 14978 | ac_check_lib_save_LIBS=$LIBS |
| 14979 | LIBS="-lintl $LIBS" |
| 14980 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14981 | /* confdefs.h. */ |
| 14982 | _ACEOF |
| 14983 | cat confdefs.h >>conftest.$ac_ext |
| 14984 | cat >>conftest.$ac_ext <<_ACEOF |
| 14985 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 14986 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14987 | /* Override any GCC internal prototype to avoid an error. |
| 14988 | Use char because int might match the return type of a GCC |
| 14989 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 14990 | #ifdef __cplusplus |
| 14991 | extern "C" |
| 14992 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 14993 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 14994 | int |
| 14995 | main () |
| 14996 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14997 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 14998 | ; |
| 14999 | return 0; |
| 15000 | } |
| 15001 | _ACEOF |
| 15002 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15003 | if { (ac_try="$ac_link" |
| 15004 | case "(($ac_try" in |
| 15005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15006 | *) ac_try_echo=$ac_try;; |
| 15007 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15009 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15010 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15012 | rm -f conftest.er1 |
| 15013 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15015 | (exit $ac_status); } && { |
| 15016 | test -z "$ac_c_werror_flag" || |
| 15017 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15018 | } && test -s conftest$ac_exeext && |
| 15019 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15020 | ac_cv_lib_intl_textdomain=yes |
| 15021 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15022 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15024 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15025 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15026 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15027 | |
| 15028 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15029 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15030 | LIBS=$ac_check_lib_save_LIBS |
| 15031 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15032 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 15033 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; } |
| 15034 | if test $ac_cv_lib_intl_textdomain = yes; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15035 | |
| 15036 | cat >>confdefs.h <<\_ACEOF |
| 15037 | #define WITH_LIBINTL 1 |
| 15038 | _ACEOF |
| 15039 | |
Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 15040 | LIBS="-lintl $LIBS" |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15041 | fi |
| 15042 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15043 | |
| 15044 | # checks for system dependent C++ extensions support |
| 15045 | case "$ac_sys_system" in |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15046 | AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 15047 | 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] | 15048 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15049 | /* confdefs.h. */ |
| 15050 | _ACEOF |
| 15051 | cat confdefs.h >>conftest.$ac_ext |
| 15052 | cat >>conftest.$ac_ext <<_ACEOF |
| 15053 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15054 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15055 | int |
| 15056 | main () |
| 15057 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15058 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15059 | ; |
| 15060 | return 0; |
| 15061 | } |
| 15062 | _ACEOF |
| 15063 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15064 | if { (ac_try="$ac_link" |
| 15065 | case "(($ac_try" in |
| 15066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15067 | *) ac_try_echo=$ac_try;; |
| 15068 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15070 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15071 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15073 | rm -f conftest.er1 |
| 15074 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15076 | (exit $ac_status); } && { |
| 15077 | test -z "$ac_c_werror_flag" || |
| 15078 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15079 | } && test -s conftest$ac_exeext && |
| 15080 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15081 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15082 | cat >>confdefs.h <<\_ACEOF |
| 15083 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 15084 | _ACEOF |
| 15085 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15086 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15087 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15088 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15089 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15091 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15092 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15093 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15094 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15095 | |
| 15096 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15097 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15098 | *) ;; |
| 15099 | esac |
| 15100 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15101 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15102 | { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 15103 | 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] | 15104 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15106 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15107 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15108 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15109 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15110 | /* confdefs.h. */ |
| 15111 | _ACEOF |
| 15112 | cat confdefs.h >>conftest.$ac_ext |
| 15113 | cat >>conftest.$ac_ext <<_ACEOF |
| 15114 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15115 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15116 | /* Override any GCC internal prototype to avoid an error. |
| 15117 | Use char because int might match the return type of a GCC |
| 15118 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15119 | #ifdef __cplusplus |
| 15120 | extern "C" |
| 15121 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15122 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15123 | int |
| 15124 | main () |
| 15125 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15126 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15127 | ; |
| 15128 | return 0; |
| 15129 | } |
| 15130 | _ACEOF |
| 15131 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15132 | if { (ac_try="$ac_link" |
| 15133 | case "(($ac_try" in |
| 15134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15135 | *) ac_try_echo=$ac_try;; |
| 15136 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15138 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15139 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15141 | rm -f conftest.er1 |
| 15142 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15144 | (exit $ac_status); } && { |
| 15145 | test -z "$ac_c_werror_flag" || |
| 15146 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15147 | } && test -s conftest$ac_exeext && |
| 15148 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15149 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15150 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15151 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15153 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15154 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15155 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15156 | |
| 15157 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15158 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15159 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15160 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15161 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 15162 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; } |
| 15163 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15164 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15165 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 15166 | # SVR4 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15167 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 15168 | 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] | 15169 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15171 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15172 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15173 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15174 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15175 | /* confdefs.h. */ |
| 15176 | _ACEOF |
| 15177 | cat confdefs.h >>conftest.$ac_ext |
| 15178 | cat >>conftest.$ac_ext <<_ACEOF |
| 15179 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15180 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15181 | /* Override any GCC internal prototype to avoid an error. |
| 15182 | Use char because int might match the return type of a GCC |
| 15183 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15184 | #ifdef __cplusplus |
| 15185 | extern "C" |
| 15186 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15187 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15188 | int |
| 15189 | main () |
| 15190 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15191 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15192 | ; |
| 15193 | return 0; |
| 15194 | } |
| 15195 | _ACEOF |
| 15196 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15197 | if { (ac_try="$ac_link" |
| 15198 | case "(($ac_try" in |
| 15199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15200 | *) ac_try_echo=$ac_try;; |
| 15201 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15203 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15204 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15206 | rm -f conftest.er1 |
| 15207 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15209 | (exit $ac_status); } && { |
| 15210 | test -z "$ac_c_werror_flag" || |
| 15211 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15212 | } && test -s conftest$ac_exeext && |
| 15213 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15214 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15215 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15216 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15218 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15219 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15220 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15221 | |
| 15222 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15223 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15224 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15225 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15226 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 15227 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
| 15228 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15229 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15230 | fi |
| 15231 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 15232 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15233 | { echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 15234 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15235 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15236 | # Check whether --with-libs was given. |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15237 | if test "${with_libs+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15238 | withval=$with_libs; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15239 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15240 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15241 | LIBS="$withval $LIBS" |
| 15242 | |
| 15243 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15244 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15245 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15246 | fi |
| 15247 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15248 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15249 | # Check for use of the system libffi library |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15250 | { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 15251 | echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15252 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15253 | # Check whether --with-system_ffi was given. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15254 | if test "${with_system_ffi+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15255 | withval=$with_system_ffi; |
| 15256 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15257 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15258 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15259 | { echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 15260 | echo "${ECHO_T}$with_system_ffi" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15261 | |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 15262 | # Check for --with-dbmliborder |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15263 | { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5 |
| 15264 | echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 15265 | |
| 15266 | # Check whether --with-dbmliborder was given. |
| 15267 | if test "${with_dbmliborder+set}" = set; then |
| 15268 | withval=$with_dbmliborder; |
| 15269 | if test x$with_dbmliborder = xyes |
| 15270 | then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15271 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15272 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 15273 | { (exit 1); exit 1; }; } |
| 15274 | else |
| 15275 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 15276 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 15277 | then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15278 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15279 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 15280 | { (exit 1); exit 1; }; } |
| 15281 | fi |
| 15282 | done |
| 15283 | fi |
| 15284 | fi |
| 15285 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15286 | { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5 |
| 15287 | echo "${ECHO_T}$with_dbmliborder" >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 15288 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 15289 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15290 | |
| 15291 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15292 | { echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 15293 | 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] | 15294 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15295 | # Check whether --with-signal-module was given. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15296 | if test "${with_signal_module+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15297 | withval=$with_signal_module; |
| 15298 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15299 | |
| 15300 | |
| 15301 | if test -z "$with_signal_module" |
| 15302 | then with_signal_module="yes" |
| 15303 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15304 | { echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 15305 | echo "${ECHO_T}$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15306 | |
| 15307 | if test "${with_signal_module}" = "yes"; then |
| 15308 | USE_SIGNAL_MODULE="" |
| 15309 | SIGNAL_OBJS="" |
| 15310 | else |
| 15311 | USE_SIGNAL_MODULE="#" |
| 15312 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 15313 | fi |
| 15314 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 15315 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15316 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15317 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15318 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15319 | { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 15320 | 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] | 15321 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15322 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15323 | # Check whether --with-dec-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15324 | if test "${with_dec_threads+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15325 | withval=$with_dec_threads; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15326 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15327 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15328 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15329 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15330 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15331 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15332 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15333 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15334 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15335 | fi |
| 15336 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15337 | |
| 15338 | # Templates for things AC_DEFINEd more than once. |
| 15339 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15340 | |
| 15341 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15342 | |
| 15343 | |
| 15344 | |
| 15345 | |
| 15346 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15347 | { echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 15348 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15349 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15350 | # Check whether --with-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15351 | if test "${with_threads+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15352 | withval=$with_threads; |
| 15353 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15354 | |
| 15355 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15356 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15357 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15358 | # Check whether --with-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15359 | if test "${with_thread+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15360 | withval=$with_thread; with_threads=$with_thread |
| 15361 | fi |
| 15362 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15363 | |
| 15364 | if test -z "$with_threads" |
| 15365 | then with_threads="yes" |
| 15366 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15367 | { echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 15368 | echo "${ECHO_T}$with_threads" >&6; } |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15369 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15370 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15371 | if test "$with_threads" = "no" |
| 15372 | then |
| 15373 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15374 | elif test "$ac_cv_pthread_is_default" = yes |
| 15375 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15376 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15377 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15378 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15379 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15380 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15381 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15382 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15383 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15384 | |
| 15385 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15386 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15387 | elif test "$ac_cv_kpthread" = "yes" |
| 15388 | then |
| 15389 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15390 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15391 | CXX="$CXX -Kpthread" |
| 15392 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15393 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15394 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15395 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15396 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15397 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15398 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15399 | elif test "$ac_cv_kthread" = "yes" |
| 15400 | then |
| 15401 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15402 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15403 | CXX="$CXX -Kthread" |
| 15404 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15405 | cat >>confdefs.h <<\_ACEOF |
| 15406 | #define WITH_THREAD 1 |
| 15407 | _ACEOF |
| 15408 | |
| 15409 | posix_threads=yes |
| 15410 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15411 | elif test "$ac_cv_pthread" = "yes" |
| 15412 | then |
| 15413 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15414 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15415 | CXX="$CXX -pthread" |
| 15416 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15417 | cat >>confdefs.h <<\_ACEOF |
| 15418 | #define WITH_THREAD 1 |
| 15419 | _ACEOF |
| 15420 | |
| 15421 | posix_threads=yes |
| 15422 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15423 | else |
| 15424 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 15425 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 15426 | fi |
| 15427 | if test ! -z "$withval" -a -d "$withval" |
| 15428 | then LDFLAGS="$LDFLAGS -L$withval" |
| 15429 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15430 | |
| 15431 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 15432 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 15433 | # (e.g. gnu pth with pthread emulation) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15434 | { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 15435 | 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] | 15436 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15437 | /* confdefs.h. */ |
| 15438 | _ACEOF |
| 15439 | cat confdefs.h >>conftest.$ac_ext |
| 15440 | cat >>conftest.$ac_ext <<_ACEOF |
| 15441 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15442 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15443 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15444 | #ifdef _POSIX_THREADS |
| 15445 | yes |
| 15446 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15447 | |
| 15448 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15449 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15450 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15451 | unistd_defines_pthreads=yes |
| 15452 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15453 | unistd_defines_pthreads=no |
| 15454 | fi |
| 15455 | rm -f conftest* |
| 15456 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15457 | { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 15458 | echo "${ECHO_T}$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15459 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15460 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 15461 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15462 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 15463 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15464 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15465 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 15466 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15467 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15469 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15470 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 15471 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15472 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15473 | # Is the header compilable? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15474 | { echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 15475 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15476 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15477 | /* confdefs.h. */ |
| 15478 | _ACEOF |
| 15479 | cat confdefs.h >>conftest.$ac_ext |
| 15480 | cat >>conftest.$ac_ext <<_ACEOF |
| 15481 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15482 | $ac_includes_default |
| 15483 | #include <cthreads.h> |
| 15484 | _ACEOF |
| 15485 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15486 | if { (ac_try="$ac_compile" |
| 15487 | case "(($ac_try" in |
| 15488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15489 | *) ac_try_echo=$ac_try;; |
| 15490 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15492 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15493 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15494 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15495 | rm -f conftest.er1 |
| 15496 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15498 | (exit $ac_status); } && { |
| 15499 | test -z "$ac_c_werror_flag" || |
| 15500 | test ! -s conftest.err |
| 15501 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15502 | ac_header_compiler=yes |
| 15503 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15504 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15506 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15507 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15508 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15509 | |
| 15510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15511 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15512 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15513 | |
| 15514 | # Is the header present? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15515 | { echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 15516 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15517 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15518 | /* confdefs.h. */ |
| 15519 | _ACEOF |
| 15520 | cat confdefs.h >>conftest.$ac_ext |
| 15521 | cat >>conftest.$ac_ext <<_ACEOF |
| 15522 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15523 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15524 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15525 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15526 | case "(($ac_try" in |
| 15527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15528 | *) ac_try_echo=$ac_try;; |
| 15529 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15531 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15532 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15533 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15534 | rm -f conftest.er1 |
| 15535 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15537 | (exit $ac_status); } >/dev/null && { |
| 15538 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15539 | test ! -s conftest.err |
| 15540 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15541 | ac_header_preproc=yes |
| 15542 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15543 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15546 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15547 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15548 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15549 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15550 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15551 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15552 | |
| 15553 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15554 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15555 | yes:no: ) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15556 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15557 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15558 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 15559 | 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] | 15560 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15561 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15562 | no:yes:* ) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15563 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 15564 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 15565 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 15566 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 15567 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 15568 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 15569 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 15570 | echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15571 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 15572 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 15573 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 15574 | echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15575 | ( cat <<\_ASBOX |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 15576 | ## -------------------------------------- ## |
| 15577 | ## Report this to http://bugs.python.org/ ## |
| 15578 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15579 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15580 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15581 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15582 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15583 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 15584 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15585 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15587 | else |
| 15588 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15589 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15590 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 15591 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15592 | |
| 15593 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15594 | if test $ac_cv_header_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15595 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15596 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15597 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15598 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15599 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15600 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15601 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15602 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15603 | |
| 15604 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15605 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15606 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15607 | |
| 15608 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15609 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15610 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15611 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15612 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15613 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 15614 | 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] | 15615 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15617 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15618 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 15619 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15620 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15621 | # Is the header compilable? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15622 | { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 15623 | 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] | 15624 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15625 | /* confdefs.h. */ |
| 15626 | _ACEOF |
| 15627 | cat confdefs.h >>conftest.$ac_ext |
| 15628 | cat >>conftest.$ac_ext <<_ACEOF |
| 15629 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15630 | $ac_includes_default |
| 15631 | #include <mach/cthreads.h> |
| 15632 | _ACEOF |
| 15633 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15634 | if { (ac_try="$ac_compile" |
| 15635 | case "(($ac_try" in |
| 15636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15637 | *) ac_try_echo=$ac_try;; |
| 15638 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15640 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15641 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15642 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15643 | rm -f conftest.er1 |
| 15644 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15646 | (exit $ac_status); } && { |
| 15647 | test -z "$ac_c_werror_flag" || |
| 15648 | test ! -s conftest.err |
| 15649 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15650 | ac_header_compiler=yes |
| 15651 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15652 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15654 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15655 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15656 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15657 | |
| 15658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15659 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15660 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15661 | |
| 15662 | # Is the header present? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15663 | { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 15664 | 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] | 15665 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15666 | /* confdefs.h. */ |
| 15667 | _ACEOF |
| 15668 | cat confdefs.h >>conftest.$ac_ext |
| 15669 | cat >>conftest.$ac_ext <<_ACEOF |
| 15670 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15671 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15672 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15673 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15674 | case "(($ac_try" in |
| 15675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15676 | *) ac_try_echo=$ac_try;; |
| 15677 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15679 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15680 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15681 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15682 | rm -f conftest.er1 |
| 15683 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15685 | (exit $ac_status); } >/dev/null && { |
| 15686 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15687 | test ! -s conftest.err |
| 15688 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15689 | ac_header_preproc=yes |
| 15690 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15691 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15693 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15694 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15695 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15696 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15697 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15698 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15699 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15700 | |
| 15701 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15702 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15703 | yes:no: ) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15704 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15705 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15706 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 15707 | 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] | 15708 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15709 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15710 | no:yes:* ) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15711 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 15712 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 15713 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 15714 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 15715 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 15716 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 15717 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 15718 | echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15719 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 15720 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 15721 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 15722 | echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15723 | ( cat <<\_ASBOX |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 15724 | ## -------------------------------------- ## |
| 15725 | ## Report this to http://bugs.python.org/ ## |
| 15726 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15727 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15728 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15729 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15730 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15731 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 15732 | 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] | 15733 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15735 | else |
| 15736 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15737 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15738 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 15739 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15740 | |
| 15741 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15742 | if test $ac_cv_header_mach_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15743 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15744 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15745 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15746 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15747 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15748 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15749 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15750 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15751 | |
| 15752 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15753 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15754 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15755 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15756 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15757 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15758 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15759 | { echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 15760 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15761 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15762 | # Check whether --with-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 15763 | if test "${with_pth+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15764 | withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15765 | echo "${ECHO_T}$withval" >&6; } |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 15766 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15767 | #define WITH_THREAD 1 |
| 15768 | _ACEOF |
| 15769 | |
| 15770 | |
| 15771 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 15772 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15773 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 15774 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 15775 | LIBS="-lpth $LIBS" |
| 15776 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 15777 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15778 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15779 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 15780 | |
| 15781 | # Just looking for pthread_create in libpthread is not enough: |
| 15782 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 15783 | # So we really have to include pthread.h, and then link. |
| 15784 | _libs=$LIBS |
| 15785 | LIBS="$LIBS -lpthread" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15786 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 15787 | 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] | 15788 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15789 | /* confdefs.h. */ |
| 15790 | _ACEOF |
| 15791 | cat confdefs.h >>conftest.$ac_ext |
| 15792 | cat >>conftest.$ac_ext <<_ACEOF |
| 15793 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 15794 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 15795 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 15796 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15797 | int |
| 15798 | main () |
| 15799 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 15800 | |
| 15801 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15802 | ; |
| 15803 | return 0; |
| 15804 | } |
| 15805 | _ACEOF |
| 15806 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15807 | if { (ac_try="$ac_link" |
| 15808 | case "(($ac_try" in |
| 15809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15810 | *) ac_try_echo=$ac_try;; |
| 15811 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15813 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15814 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15816 | rm -f conftest.er1 |
| 15817 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15819 | (exit $ac_status); } && { |
| 15820 | test -z "$ac_c_werror_flag" || |
| 15821 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15822 | } && test -s conftest$ac_exeext && |
| 15823 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15824 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15825 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15826 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15827 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 15828 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15829 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 15830 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15831 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15832 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 15833 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15834 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15836 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15837 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 15838 | LIBS=$_libs |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15839 | { echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 15840 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15841 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15843 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15844 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15845 | /* confdefs.h. */ |
| 15846 | _ACEOF |
| 15847 | cat confdefs.h >>conftest.$ac_ext |
| 15848 | cat >>conftest.$ac_ext <<_ACEOF |
| 15849 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15850 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 15851 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15852 | #define pthread_detach innocuous_pthread_detach |
| 15853 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15854 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15855 | which can conflict with char pthread_detach (); below. |
| 15856 | 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] | 15857 | <limits.h> exists even on freestanding compilers. */ |
| 15858 | |
| 15859 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15860 | # include <limits.h> |
| 15861 | #else |
| 15862 | # include <assert.h> |
| 15863 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15864 | |
| 15865 | #undef pthread_detach |
| 15866 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15867 | /* Override any GCC internal prototype to avoid an error. |
| 15868 | Use char because int might match the return type of a GCC |
| 15869 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15870 | #ifdef __cplusplus |
| 15871 | extern "C" |
| 15872 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15873 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15874 | /* The GNU C library defines this for functions which it implements |
| 15875 | to always fail with ENOSYS. Some functions are actually named |
| 15876 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15877 | #if defined __stub_pthread_detach || defined __stub___pthread_detach |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15878 | choke me |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15879 | #endif |
| 15880 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15881 | int |
| 15882 | main () |
| 15883 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15884 | return pthread_detach (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15885 | ; |
| 15886 | return 0; |
| 15887 | } |
| 15888 | _ACEOF |
| 15889 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15890 | if { (ac_try="$ac_link" |
| 15891 | case "(($ac_try" in |
| 15892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15893 | *) ac_try_echo=$ac_try;; |
| 15894 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15896 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15897 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15899 | rm -f conftest.er1 |
| 15900 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15902 | (exit $ac_status); } && { |
| 15903 | test -z "$ac_c_werror_flag" || |
| 15904 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15905 | } && test -s conftest$ac_exeext && |
| 15906 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15907 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15908 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15909 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15911 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15912 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15913 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15914 | |
| 15915 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15916 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15917 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15918 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 15919 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; } |
| 15920 | if test $ac_cv_func_pthread_detach = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15921 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15922 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15923 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15924 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15925 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15926 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15927 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15928 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15929 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15930 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 15931 | 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] | 15932 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15934 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15935 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 15936 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15937 | else |
| 15938 | # Is the header compilable? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15939 | { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 15940 | 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] | 15941 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15942 | /* confdefs.h. */ |
| 15943 | _ACEOF |
| 15944 | cat confdefs.h >>conftest.$ac_ext |
| 15945 | cat >>conftest.$ac_ext <<_ACEOF |
| 15946 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15947 | $ac_includes_default |
| 15948 | #include <atheos/threads.h> |
| 15949 | _ACEOF |
| 15950 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15951 | if { (ac_try="$ac_compile" |
| 15952 | case "(($ac_try" in |
| 15953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15954 | *) ac_try_echo=$ac_try;; |
| 15955 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15957 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15958 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15960 | rm -f conftest.er1 |
| 15961 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15963 | (exit $ac_status); } && { |
| 15964 | test -z "$ac_c_werror_flag" || |
| 15965 | test ! -s conftest.err |
| 15966 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15967 | ac_header_compiler=yes |
| 15968 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15969 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15971 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15972 | ac_header_compiler=no |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15973 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15974 | |
| 15975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15976 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15977 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15978 | |
| 15979 | # Is the header present? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15980 | { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 15981 | 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] | 15982 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15983 | /* confdefs.h. */ |
| 15984 | _ACEOF |
| 15985 | cat confdefs.h >>conftest.$ac_ext |
| 15986 | cat >>conftest.$ac_ext <<_ACEOF |
| 15987 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15988 | #include <atheos/threads.h> |
| 15989 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15990 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15991 | case "(($ac_try" in |
| 15992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15993 | *) ac_try_echo=$ac_try;; |
| 15994 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15996 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15997 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15998 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15999 | rm -f conftest.er1 |
| 16000 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16002 | (exit $ac_status); } >/dev/null && { |
| 16003 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16004 | test ! -s conftest.err |
| 16005 | }; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16006 | ac_header_preproc=yes |
| 16007 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16008 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16010 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16011 | ac_header_preproc=no |
| 16012 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16013 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16014 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16015 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16016 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16017 | |
| 16018 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16019 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16020 | yes:no: ) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16021 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16022 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16023 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 16024 | 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] | 16025 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16026 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16027 | no:yes:* ) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16028 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 16029 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 16030 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 16031 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 16032 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 16033 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 16034 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16035 | echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16036 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 16037 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 16038 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 16039 | echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16040 | ( cat <<\_ASBOX |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 16041 | ## -------------------------------------- ## |
| 16042 | ## Report this to http://bugs.python.org/ ## |
| 16043 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16044 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16045 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16046 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16047 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16048 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16049 | 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] | 16050 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16052 | else |
| 16053 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 16054 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16055 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16056 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16057 | |
| 16058 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16059 | if test $ac_cv_header_atheos_threads_h = yes; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16060 | cat >>confdefs.h <<\_ACEOF |
| 16061 | #define WITH_THREAD 1 |
| 16062 | _ACEOF |
| 16063 | |
| 16064 | |
| 16065 | cat >>confdefs.h <<\_ACEOF |
| 16066 | #define ATHEOS_THREADS 1 |
| 16067 | _ACEOF |
| 16068 | |
| 16069 | THREADOBJ="Python/thread.o" |
| 16070 | else |
| 16071 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16072 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 16073 | 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] | 16074 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16076 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16077 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16078 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16079 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16080 | /* confdefs.h. */ |
| 16081 | _ACEOF |
| 16082 | cat confdefs.h >>conftest.$ac_ext |
| 16083 | cat >>conftest.$ac_ext <<_ACEOF |
| 16084 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16085 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16086 | /* Override any GCC internal prototype to avoid an error. |
| 16087 | Use char because int might match the return type of a GCC |
| 16088 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16089 | #ifdef __cplusplus |
| 16090 | extern "C" |
| 16091 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16092 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16093 | int |
| 16094 | main () |
| 16095 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16096 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16097 | ; |
| 16098 | return 0; |
| 16099 | } |
| 16100 | _ACEOF |
| 16101 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16102 | if { (ac_try="$ac_link" |
| 16103 | case "(($ac_try" in |
| 16104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16105 | *) ac_try_echo=$ac_try;; |
| 16106 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16108 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16109 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16110 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16111 | rm -f conftest.er1 |
| 16112 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16114 | (exit $ac_status); } && { |
| 16115 | test -z "$ac_c_werror_flag" || |
| 16116 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16117 | } && test -s conftest$ac_exeext && |
| 16118 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16119 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16120 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16121 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16123 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16124 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16125 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16126 | |
| 16127 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16128 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16129 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16130 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16131 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 16132 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; } |
| 16133 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16134 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16135 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16136 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16137 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16138 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16139 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16140 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16141 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16142 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16143 | { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 16144 | 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] | 16145 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16147 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16148 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16149 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16150 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16151 | /* confdefs.h. */ |
| 16152 | _ACEOF |
| 16153 | cat confdefs.h >>conftest.$ac_ext |
| 16154 | cat >>conftest.$ac_ext <<_ACEOF |
| 16155 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16156 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16157 | /* Override any GCC internal prototype to avoid an error. |
| 16158 | Use char because int might match the return type of a GCC |
| 16159 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16160 | #ifdef __cplusplus |
| 16161 | extern "C" |
| 16162 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16163 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16164 | int |
| 16165 | main () |
| 16166 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16167 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16168 | ; |
| 16169 | return 0; |
| 16170 | } |
| 16171 | _ACEOF |
| 16172 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16173 | if { (ac_try="$ac_link" |
| 16174 | case "(($ac_try" in |
| 16175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16176 | *) ac_try_echo=$ac_try;; |
| 16177 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16179 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16180 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16182 | rm -f conftest.er1 |
| 16183 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16185 | (exit $ac_status); } && { |
| 16186 | test -z "$ac_c_werror_flag" || |
| 16187 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16188 | } && test -s conftest$ac_exeext && |
| 16189 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16190 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16191 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16192 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16194 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16195 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16196 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16197 | |
| 16198 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16199 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16200 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16201 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16202 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 16203 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; } |
| 16204 | 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] | 16205 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16206 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16207 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16208 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16209 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16210 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16211 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16212 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16213 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16214 | { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 16215 | 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] | 16216 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16218 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16219 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16220 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16221 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16222 | /* confdefs.h. */ |
| 16223 | _ACEOF |
| 16224 | cat confdefs.h >>conftest.$ac_ext |
| 16225 | cat >>conftest.$ac_ext <<_ACEOF |
| 16226 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16227 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16228 | /* Override any GCC internal prototype to avoid an error. |
| 16229 | Use char because int might match the return type of a GCC |
| 16230 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16231 | #ifdef __cplusplus |
| 16232 | extern "C" |
| 16233 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16234 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16235 | int |
| 16236 | main () |
| 16237 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16238 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16239 | ; |
| 16240 | return 0; |
| 16241 | } |
| 16242 | _ACEOF |
| 16243 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16244 | if { (ac_try="$ac_link" |
| 16245 | case "(($ac_try" in |
| 16246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16247 | *) ac_try_echo=$ac_try;; |
| 16248 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16250 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16251 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16252 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16253 | rm -f conftest.er1 |
| 16254 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16256 | (exit $ac_status); } && { |
| 16257 | test -z "$ac_c_werror_flag" || |
| 16258 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16259 | } && test -s conftest$ac_exeext && |
| 16260 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16261 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16262 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16263 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16265 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16266 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16267 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16268 | |
| 16269 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16270 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16271 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16272 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16273 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 16274 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; } |
| 16275 | 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] | 16276 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16277 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16278 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16279 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16280 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16281 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16282 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16283 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16284 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16285 | { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 16286 | 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] | 16287 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16289 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16290 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16291 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16292 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16293 | /* confdefs.h. */ |
| 16294 | _ACEOF |
| 16295 | cat confdefs.h >>conftest.$ac_ext |
| 16296 | cat >>conftest.$ac_ext <<_ACEOF |
| 16297 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16298 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16299 | /* Override any GCC internal prototype to avoid an error. |
| 16300 | Use char because int might match the return type of a GCC |
| 16301 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16302 | #ifdef __cplusplus |
| 16303 | extern "C" |
| 16304 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16305 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16306 | int |
| 16307 | main () |
| 16308 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16309 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16310 | ; |
| 16311 | return 0; |
| 16312 | } |
| 16313 | _ACEOF |
| 16314 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16315 | if { (ac_try="$ac_link" |
| 16316 | case "(($ac_try" in |
| 16317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16318 | *) ac_try_echo=$ac_try;; |
| 16319 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16321 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16322 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16324 | rm -f conftest.er1 |
| 16325 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16327 | (exit $ac_status); } && { |
| 16328 | test -z "$ac_c_werror_flag" || |
| 16329 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16330 | } && test -s conftest$ac_exeext && |
| 16331 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16332 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16333 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16334 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16336 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16337 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16338 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16339 | |
| 16340 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16341 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16342 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16343 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16344 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 16345 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; } |
| 16346 | if test $ac_cv_lib_cma_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16347 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16348 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16349 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16350 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16351 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16352 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16353 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16354 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 16355 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16356 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 16357 | fi |
| 16358 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16359 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16360 | fi |
| 16361 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 16362 | fi |
| 16363 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16364 | fi |
| 16365 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16366 | fi |
| 16367 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16368 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16369 | fi |
| 16370 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16371 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16372 | |
| 16373 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16374 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16375 | fi |
| 16376 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16377 | fi |
| 16378 | |
| 16379 | |
| 16380 | fi |
| 16381 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16382 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16383 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16384 | { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 16385 | 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] | 16386 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16388 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16389 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16390 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16391 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16392 | /* confdefs.h. */ |
| 16393 | _ACEOF |
| 16394 | cat confdefs.h >>conftest.$ac_ext |
| 16395 | cat >>conftest.$ac_ext <<_ACEOF |
| 16396 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16397 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16398 | /* Override any GCC internal prototype to avoid an error. |
| 16399 | Use char because int might match the return type of a GCC |
| 16400 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16401 | #ifdef __cplusplus |
| 16402 | extern "C" |
| 16403 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16404 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16405 | int |
| 16406 | main () |
| 16407 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16408 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16409 | ; |
| 16410 | return 0; |
| 16411 | } |
| 16412 | _ACEOF |
| 16413 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16414 | if { (ac_try="$ac_link" |
| 16415 | case "(($ac_try" in |
| 16416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16417 | *) ac_try_echo=$ac_try;; |
| 16418 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16420 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16421 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16423 | rm -f conftest.er1 |
| 16424 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16426 | (exit $ac_status); } && { |
| 16427 | test -z "$ac_c_werror_flag" || |
| 16428 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16429 | } && test -s conftest$ac_exeext && |
| 16430 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16431 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16432 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16433 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16434 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16435 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16436 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16437 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16438 | |
| 16439 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16440 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16441 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16442 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16443 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 16444 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; } |
| 16445 | if test $ac_cv_lib_mpc_usconfig = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16446 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16447 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16448 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16449 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16450 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16451 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16452 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16453 | fi |
| 16454 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 16455 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 16456 | if test "$posix_threads" != "yes"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16457 | { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 16458 | 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] | 16459 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16461 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16462 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16463 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16464 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16465 | /* confdefs.h. */ |
| 16466 | _ACEOF |
| 16467 | cat confdefs.h >>conftest.$ac_ext |
| 16468 | cat >>conftest.$ac_ext <<_ACEOF |
| 16469 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16470 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16471 | /* Override any GCC internal prototype to avoid an error. |
| 16472 | Use char because int might match the return type of a GCC |
| 16473 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16474 | #ifdef __cplusplus |
| 16475 | extern "C" |
| 16476 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16477 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16478 | int |
| 16479 | main () |
| 16480 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16481 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16482 | ; |
| 16483 | return 0; |
| 16484 | } |
| 16485 | _ACEOF |
| 16486 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16487 | if { (ac_try="$ac_link" |
| 16488 | case "(($ac_try" in |
| 16489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16490 | *) ac_try_echo=$ac_try;; |
| 16491 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16493 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16494 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16496 | rm -f conftest.er1 |
| 16497 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16499 | (exit $ac_status); } && { |
| 16500 | test -z "$ac_c_werror_flag" || |
| 16501 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16502 | } && test -s conftest$ac_exeext && |
| 16503 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16504 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16505 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16506 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16508 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16509 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16510 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16511 | |
| 16512 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16513 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16514 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16515 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16516 | { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 16517 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; } |
| 16518 | if test $ac_cv_lib_thread_thr_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16519 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16520 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16521 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16522 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 16523 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16524 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 16525 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16526 | fi |
| 16527 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 16528 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16529 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16530 | if test "$USE_THREAD_MODULE" != "#" |
| 16531 | then |
| 16532 | # If the above checks didn't disable threads, (at least) OSF1 |
| 16533 | # needs this '-threads' argument during linking. |
| 16534 | case $ac_sys_system in |
| 16535 | OSF1) LDLAST=-threads;; |
| 16536 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 16537 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16538 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 16539 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16540 | if test "$posix_threads" = "yes"; then |
| 16541 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 16542 | |
| 16543 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16544 | #define _POSIX_THREADS 1 |
| 16545 | _ACEOF |
| 16546 | |
| 16547 | fi |
| 16548 | |
| 16549 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 16550 | case $ac_sys_system/$ac_sys_release in |
| 16551 | SunOS/5.6) |
| 16552 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 16553 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 16554 | _ACEOF |
| 16555 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16556 | ;; |
| 16557 | SunOS/5.8) |
| 16558 | cat >>confdefs.h <<\_ACEOF |
| 16559 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 16560 | _ACEOF |
| 16561 | |
| 16562 | ;; |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 16563 | AIX/5) |
| 16564 | cat >>confdefs.h <<\_ACEOF |
| 16565 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 16566 | _ACEOF |
| 16567 | |
| 16568 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16569 | esac |
| 16570 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16571 | { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 16572 | 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] | 16573 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16575 | else |
| 16576 | if test "$cross_compiling" = yes; then |
| 16577 | ac_cv_pthread_system_supported=no |
| 16578 | else |
| 16579 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16580 | /* confdefs.h. */ |
| 16581 | _ACEOF |
| 16582 | cat confdefs.h >>conftest.$ac_ext |
| 16583 | cat >>conftest.$ac_ext <<_ACEOF |
| 16584 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16585 | #include <pthread.h> |
| 16586 | void *foo(void *parm) { |
| 16587 | return NULL; |
| 16588 | } |
| 16589 | main() { |
| 16590 | pthread_attr_t attr; |
| 16591 | pthread_t id; |
| 16592 | if (pthread_attr_init(&attr)) exit(-1); |
| 16593 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 16594 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 16595 | exit(0); |
| 16596 | } |
| 16597 | _ACEOF |
| 16598 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16599 | if { (ac_try="$ac_link" |
| 16600 | case "(($ac_try" in |
| 16601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16602 | *) ac_try_echo=$ac_try;; |
| 16603 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16605 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16606 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16608 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16609 | { (case "(($ac_try" in |
| 16610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16611 | *) ac_try_echo=$ac_try;; |
| 16612 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16614 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16615 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16617 | (exit $ac_status); }; }; then |
| 16618 | ac_cv_pthread_system_supported=yes |
| 16619 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16620 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16621 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16623 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16624 | ( exit $ac_status ) |
| 16625 | ac_cv_pthread_system_supported=no |
| 16626 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16627 | 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] | 16628 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 16629 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16630 | |
| 16631 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16632 | fi |
| 16633 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16634 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 16635 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16636 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 16637 | |
| 16638 | cat >>confdefs.h <<\_ACEOF |
| 16639 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 16640 | _ACEOF |
| 16641 | |
| 16642 | fi |
| 16643 | |
| 16644 | for ac_func in pthread_sigmask |
| 16645 | do |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16646 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16647 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16648 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16649 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16651 | else |
| 16652 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16653 | /* confdefs.h. */ |
| 16654 | _ACEOF |
| 16655 | cat confdefs.h >>conftest.$ac_ext |
| 16656 | cat >>conftest.$ac_ext <<_ACEOF |
| 16657 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16658 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16659 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16660 | #define $ac_func innocuous_$ac_func |
| 16661 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16662 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16663 | which can conflict with char $ac_func (); below. |
| 16664 | 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] | 16665 | <limits.h> exists even on freestanding compilers. */ |
| 16666 | |
| 16667 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16668 | # include <limits.h> |
| 16669 | #else |
| 16670 | # include <assert.h> |
| 16671 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16672 | |
| 16673 | #undef $ac_func |
| 16674 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16675 | /* Override any GCC internal prototype to avoid an error. |
| 16676 | Use char because int might match the return type of a GCC |
| 16677 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16678 | #ifdef __cplusplus |
| 16679 | extern "C" |
| 16680 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16681 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16682 | /* The GNU C library defines this for functions which it implements |
| 16683 | to always fail with ENOSYS. Some functions are actually named |
| 16684 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16685 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16686 | choke me |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16687 | #endif |
| 16688 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16689 | int |
| 16690 | main () |
| 16691 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16692 | return $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16693 | ; |
| 16694 | return 0; |
| 16695 | } |
| 16696 | _ACEOF |
| 16697 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16698 | if { (ac_try="$ac_link" |
| 16699 | case "(($ac_try" in |
| 16700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16701 | *) ac_try_echo=$ac_try;; |
| 16702 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16704 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16705 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16707 | rm -f conftest.er1 |
| 16708 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16710 | (exit $ac_status); } && { |
| 16711 | test -z "$ac_c_werror_flag" || |
| 16712 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16713 | } && test -s conftest$ac_exeext && |
| 16714 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16715 | eval "$as_ac_var=yes" |
| 16716 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16717 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16719 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16720 | eval "$as_ac_var=no" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16721 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16722 | |
| 16723 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16724 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16725 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16726 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16727 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16728 | echo "${ECHO_T}$ac_res" >&6; } |
| 16729 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16730 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16731 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16732 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 16733 | case $ac_sys_system in |
| 16734 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16735 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 16736 | cat >>confdefs.h <<\_ACEOF |
| 16737 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 16738 | _ACEOF |
| 16739 | |
| 16740 | ;; |
| 16741 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16742 | fi |
| 16743 | done |
| 16744 | |
| 16745 | fi |
| 16746 | |
| 16747 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16748 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16749 | |
| 16750 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16751 | { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 16752 | echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16753 | # Check whether --enable-ipv6 was given. |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16754 | if test "${enable_ipv6+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16755 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16756 | no) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16757 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16758 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16759 | ipv6=no |
| 16760 | ;; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16761 | *) { echo "$as_me:$LINENO: result: yes" >&5 |
| 16762 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16763 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16764 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16765 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16766 | |
| 16767 | ipv6=yes |
| 16768 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16769 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16770 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16771 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16772 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16773 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16774 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16775 | ipv6=no |
| 16776 | |
| 16777 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16778 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16779 | /* confdefs.h. */ |
| 16780 | _ACEOF |
| 16781 | cat confdefs.h >>conftest.$ac_ext |
| 16782 | cat >>conftest.$ac_ext <<_ACEOF |
| 16783 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16784 | /* AF_INET6 available check */ |
| 16785 | #include <sys/types.h> |
| 16786 | #include <sys/socket.h> |
| 16787 | main() |
| 16788 | { |
| 16789 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 16790 | exit(1); |
| 16791 | else |
| 16792 | exit(0); |
| 16793 | } |
| 16794 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16795 | _ACEOF |
| 16796 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16797 | if { (ac_try="$ac_link" |
| 16798 | case "(($ac_try" in |
| 16799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16800 | *) ac_try_echo=$ac_try;; |
| 16801 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16803 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16804 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16806 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16807 | { (case "(($ac_try" in |
| 16808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16809 | *) ac_try_echo=$ac_try;; |
| 16810 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16812 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16813 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16815 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16816 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16817 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16818 | ipv6=yes |
| 16819 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16820 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16821 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16823 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16824 | ( exit $ac_status ) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16825 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16826 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16827 | ipv6=no |
| 16828 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16829 | 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] | 16830 | fi |
| 16831 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16832 | |
| 16833 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 16834 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16835 | { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 16836 | 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] | 16837 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16838 | /* confdefs.h. */ |
| 16839 | _ACEOF |
| 16840 | cat confdefs.h >>conftest.$ac_ext |
| 16841 | cat >>conftest.$ac_ext <<_ACEOF |
| 16842 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 16843 | #include <sys/types.h> |
| 16844 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16845 | int |
| 16846 | main () |
| 16847 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 16848 | struct sockaddr_in6 x; |
| 16849 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16850 | ; |
| 16851 | return 0; |
| 16852 | } |
| 16853 | _ACEOF |
| 16854 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16855 | if { (ac_try="$ac_compile" |
| 16856 | case "(($ac_try" in |
| 16857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16858 | *) ac_try_echo=$ac_try;; |
| 16859 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16861 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16862 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16863 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16864 | rm -f conftest.er1 |
| 16865 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16867 | (exit $ac_status); } && { |
| 16868 | test -z "$ac_c_werror_flag" || |
| 16869 | test ! -s conftest.err |
| 16870 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16871 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16872 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 16873 | ipv6=yes |
| 16874 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16875 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16877 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16878 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16879 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 16880 | ipv6=no |
| 16881 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16882 | |
| 16883 | 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] | 16884 | fi |
| 16885 | |
| 16886 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16887 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 16888 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16889 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 16890 | |
| 16891 | fi |
| 16892 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16893 | fi |
| 16894 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16895 | |
| 16896 | ipv6type=unknown |
| 16897 | ipv6lib=none |
| 16898 | ipv6trylibc=no |
| 16899 | |
| 16900 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16901 | { echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 16902 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 16903 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 16904 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16905 | case $i in |
| 16906 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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 | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 16913 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16914 | #include <netinet/in.h> |
| 16915 | #ifdef IPV6_INRIA_VERSION |
| 16916 | yes |
| 16917 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16918 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16919 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16920 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 16921 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16922 | fi |
| 16923 | rm -f conftest* |
| 16924 | |
| 16925 | ;; |
| 16926 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16927 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16928 | /* confdefs.h. */ |
| 16929 | _ACEOF |
| 16930 | cat confdefs.h >>conftest.$ac_ext |
| 16931 | cat >>conftest.$ac_ext <<_ACEOF |
| 16932 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 16933 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16934 | #include <netinet/in.h> |
| 16935 | #ifdef __KAME__ |
| 16936 | yes |
| 16937 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16938 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16939 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16940 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16941 | ipv6type=$i; |
| 16942 | ipv6lib=inet6 |
| 16943 | ipv6libdir=/usr/local/v6/lib |
| 16944 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16945 | fi |
| 16946 | rm -f conftest* |
| 16947 | |
| 16948 | ;; |
| 16949 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16950 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16951 | /* confdefs.h. */ |
| 16952 | _ACEOF |
| 16953 | cat confdefs.h >>conftest.$ac_ext |
| 16954 | cat >>conftest.$ac_ext <<_ACEOF |
| 16955 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 16956 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16957 | #include <features.h> |
| 16958 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 16959 | yes |
| 16960 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16961 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16962 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16963 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16964 | ipv6type=$i; |
| 16965 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16966 | fi |
| 16967 | rm -f conftest* |
| 16968 | |
| 16969 | ;; |
| 16970 | linux-inet6) |
| 16971 | if test -d /usr/inet6; then |
| 16972 | ipv6type=$i |
| 16973 | ipv6lib=inet6 |
| 16974 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16975 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16976 | fi |
| 16977 | ;; |
| 16978 | solaris) |
| 16979 | if test -f /etc/netconfig; then |
| 16980 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 16981 | ipv6type=$i |
| 16982 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16983 | fi |
| 16984 | fi |
| 16985 | ;; |
| 16986 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16987 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16988 | /* confdefs.h. */ |
| 16989 | _ACEOF |
| 16990 | cat confdefs.h >>conftest.$ac_ext |
| 16991 | cat >>conftest.$ac_ext <<_ACEOF |
| 16992 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 16993 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16994 | #include <sys/param.h> |
| 16995 | #ifdef _TOSHIBA_INET6 |
| 16996 | yes |
| 16997 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16998 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16999 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17000 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17001 | ipv6type=$i; |
| 17002 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17003 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17004 | fi |
| 17005 | rm -f conftest* |
| 17006 | |
| 17007 | ;; |
| 17008 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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 | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17015 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17016 | #include </usr/local/v6/include/sys/v6config.h> |
| 17017 | #ifdef __V6D__ |
| 17018 | yes |
| 17019 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17020 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17021 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17022 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17023 | ipv6type=$i; |
| 17024 | ipv6lib=v6; |
| 17025 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17026 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17027 | fi |
| 17028 | rm -f conftest* |
| 17029 | |
| 17030 | ;; |
| 17031 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17032 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17033 | /* confdefs.h. */ |
| 17034 | _ACEOF |
| 17035 | cat confdefs.h >>conftest.$ac_ext |
| 17036 | cat >>conftest.$ac_ext <<_ACEOF |
| 17037 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17038 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17039 | #include <sys/param.h> |
| 17040 | #ifdef _ZETA_MINAMI_INET6 |
| 17041 | yes |
| 17042 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17043 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17044 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17045 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17046 | ipv6type=$i; |
| 17047 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17048 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17049 | fi |
| 17050 | rm -f conftest* |
| 17051 | |
| 17052 | ;; |
| 17053 | esac |
| 17054 | if test "$ipv6type" != "unknown"; then |
| 17055 | break |
| 17056 | fi |
| 17057 | done |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17058 | { echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 17059 | echo "${ECHO_T}$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17060 | fi |
| 17061 | |
| 17062 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 17063 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 17064 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 17065 | echo "using lib$ipv6lib" |
| 17066 | else |
| 17067 | if test $ipv6trylibc = "yes"; then |
| 17068 | echo "using libc" |
| 17069 | else |
| 17070 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 17071 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 17072 | echo 'ipv6 kit and compile beforehand.' |
| 17073 | exit 1 |
| 17074 | fi |
| 17075 | fi |
| 17076 | fi |
| 17077 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17078 | { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5 |
| 17079 | echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; } |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 17080 | cat >conftest.$ac_ext <<_ACEOF |
| 17081 | /* confdefs.h. */ |
| 17082 | _ACEOF |
| 17083 | cat confdefs.h >>conftest.$ac_ext |
| 17084 | cat >>conftest.$ac_ext <<_ACEOF |
| 17085 | /* end confdefs.h. */ |
| 17086 | #include <Carbon/Carbon.h> |
| 17087 | int |
| 17088 | main () |
| 17089 | { |
| 17090 | FSIORefNum fRef = 0 |
| 17091 | ; |
| 17092 | return 0; |
| 17093 | } |
| 17094 | _ACEOF |
| 17095 | rm -f conftest.$ac_objext |
| 17096 | if { (ac_try="$ac_compile" |
| 17097 | case "(($ac_try" in |
| 17098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17099 | *) ac_try_echo=$ac_try;; |
| 17100 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 17102 | (eval "$ac_compile") 2>conftest.er1 |
| 17103 | ac_status=$? |
| 17104 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17105 | rm -f conftest.er1 |
| 17106 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 17108 | (exit $ac_status); } && { |
| 17109 | test -z "$ac_c_werror_flag" || |
| 17110 | test ! -s conftest.err |
| 17111 | } && test -s conftest.$ac_objext; then |
| 17112 | |
| 17113 | cat >>confdefs.h <<\_ACEOF |
| 17114 | #define HAVE_OSX105_SDK 1 |
| 17115 | _ACEOF |
| 17116 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17117 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17118 | echo "${ECHO_T}yes" >&6; } |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 17119 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17120 | echo "$as_me: failed program was:" >&5 |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 17121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17122 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17123 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17124 | echo "${ECHO_T}no" >&6; } |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 17125 | |
| 17126 | fi |
| 17127 | |
| 17128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17129 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17130 | # Check for --with-doc-strings |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17131 | { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 17132 | 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] | 17133 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17134 | # Check whether --with-doc-strings was given. |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17135 | if test "${with_doc_strings+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17136 | withval=$with_doc_strings; |
| 17137 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17138 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17139 | |
| 17140 | if test -z "$with_doc_strings" |
| 17141 | then with_doc_strings="yes" |
| 17142 | fi |
| 17143 | if test "$with_doc_strings" != "no" |
| 17144 | then |
| 17145 | |
| 17146 | cat >>confdefs.h <<\_ACEOF |
| 17147 | #define WITH_DOC_STRINGS 1 |
| 17148 | _ACEOF |
| 17149 | |
| 17150 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17151 | { echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 17152 | echo "${ECHO_T}$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17153 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17154 | # Check for Python-specific malloc support |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17155 | { echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 17156 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17157 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17158 | # Check whether --with-tsc was given. |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17159 | if test "${with_tsc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17160 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17161 | if test "$withval" != no |
| 17162 | then |
| 17163 | |
| 17164 | cat >>confdefs.h <<\_ACEOF |
| 17165 | #define WITH_TSC 1 |
| 17166 | _ACEOF |
| 17167 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17168 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17169 | echo "${ECHO_T}yes" >&6; } |
| 17170 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 17171 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17172 | fi |
| 17173 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17174 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17175 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17176 | fi |
| 17177 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17178 | |
| 17179 | # Check for Python-specific malloc support |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17180 | { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 17181 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17182 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17183 | # Check whether --with-pymalloc was given. |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17184 | if test "${with_pymalloc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17185 | withval=$with_pymalloc; |
| 17186 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17187 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17188 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17189 | if test -z "$with_pymalloc" |
| 17190 | then with_pymalloc="yes" |
| 17191 | fi |
| 17192 | if test "$with_pymalloc" != "no" |
| 17193 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17194 | |
| 17195 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17196 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17197 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17198 | |
| 17199 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17200 | { echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 17201 | echo "${ECHO_T}$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17202 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17203 | # Check for --with-wctype-functions |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17204 | { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 17205 | 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] | 17206 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17207 | # Check whether --with-wctype-functions was given. |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17208 | if test "${with_wctype_functions+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17209 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17210 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17211 | then |
| 17212 | |
| 17213 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17214 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17215 | _ACEOF |
| 17216 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17217 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17218 | echo "${ECHO_T}yes" >&6; } |
| 17219 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 17220 | echo "${ECHO_T}no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17221 | fi |
| 17222 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17223 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17224 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17225 | fi |
| 17226 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17227 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17228 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17229 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 17230 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17231 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17232 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 17233 | # 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] | 17234 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17235 | for ac_func in dlopen |
| 17236 | do |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17237 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17238 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17239 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17240 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17242 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17243 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17244 | /* confdefs.h. */ |
| 17245 | _ACEOF |
| 17246 | cat confdefs.h >>conftest.$ac_ext |
| 17247 | cat >>conftest.$ac_ext <<_ACEOF |
| 17248 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17249 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17250 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17251 | #define $ac_func innocuous_$ac_func |
| 17252 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17253 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17254 | which can conflict with char $ac_func (); below. |
| 17255 | 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] | 17256 | <limits.h> exists even on freestanding compilers. */ |
| 17257 | |
| 17258 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17259 | # include <limits.h> |
| 17260 | #else |
| 17261 | # include <assert.h> |
| 17262 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17263 | |
| 17264 | #undef $ac_func |
| 17265 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17266 | /* Override any GCC internal prototype to avoid an error. |
| 17267 | Use char because int might match the return type of a GCC |
| 17268 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17269 | #ifdef __cplusplus |
| 17270 | extern "C" |
| 17271 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17272 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17273 | /* The GNU C library defines this for functions which it implements |
| 17274 | to always fail with ENOSYS. Some functions are actually named |
| 17275 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17276 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17277 | choke me |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17278 | #endif |
| 17279 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17280 | int |
| 17281 | main () |
| 17282 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17283 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17284 | ; |
| 17285 | return 0; |
| 17286 | } |
| 17287 | _ACEOF |
| 17288 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17289 | if { (ac_try="$ac_link" |
| 17290 | case "(($ac_try" in |
| 17291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17292 | *) ac_try_echo=$ac_try;; |
| 17293 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17295 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17296 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17298 | rm -f conftest.er1 |
| 17299 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17301 | (exit $ac_status); } && { |
| 17302 | test -z "$ac_c_werror_flag" || |
| 17303 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17304 | } && test -s conftest$ac_exeext && |
| 17305 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17306 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17307 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17308 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17310 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17311 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17312 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17313 | |
| 17314 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17315 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17316 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17317 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17318 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17319 | echo "${ECHO_T}$ac_res" >&6; } |
| 17320 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17321 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17322 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17323 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17324 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17325 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17326 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17327 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17328 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17329 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 17330 | # loading of modules. |
| 17331 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17332 | { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 17333 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17334 | if test -z "$DYNLOADFILE" |
| 17335 | then |
| 17336 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 17337 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 17338 | if test "$ac_cv_func_dlopen" = yes |
| 17339 | then DYNLOADFILE="dynload_shlib.o" |
| 17340 | else DYNLOADFILE="dynload_aix.o" |
| 17341 | fi |
| 17342 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17343 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 17344 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 17345 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 17346 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17347 | *) |
| 17348 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 17349 | # out any dynamic loading |
| 17350 | if test "$ac_cv_func_dlopen" = yes |
| 17351 | then DYNLOADFILE="dynload_shlib.o" |
| 17352 | else DYNLOADFILE="dynload_stub.o" |
| 17353 | fi |
| 17354 | ;; |
| 17355 | esac |
| 17356 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17357 | { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 17358 | echo "${ECHO_T}$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17359 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 17360 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17361 | |
| 17362 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17363 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17364 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17365 | |
| 17366 | fi |
| 17367 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17368 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 17369 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17370 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17371 | { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 17372 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17373 | if test -z "$MACHDEP_OBJS" |
| 17374 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 17375 | MACHDEP_OBJS=$extra_machdep_objs |
| 17376 | else |
| 17377 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17378 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17379 | { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 17380 | echo "${ECHO_T}MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17381 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17382 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17383 | |
| 17384 | |
| 17385 | |
| 17386 | |
| 17387 | |
| 17388 | |
| 17389 | |
| 17390 | |
| 17391 | |
| 17392 | |
| 17393 | |
| 17394 | |
| 17395 | |
| 17396 | |
| 17397 | |
| 17398 | |
| 17399 | |
| 17400 | |
| 17401 | |
| 17402 | |
| 17403 | |
| 17404 | |
| 17405 | |
| 17406 | |
| 17407 | |
| 17408 | |
| 17409 | |
| 17410 | |
| 17411 | |
| 17412 | |
| 17413 | |
| 17414 | |
| 17415 | |
| 17416 | |
| 17417 | |
| 17418 | |
| 17419 | |
| 17420 | |
| 17421 | |
| 17422 | |
| 17423 | |
| 17424 | |
| 17425 | |
| 17426 | |
| 17427 | |
| 17428 | |
| 17429 | |
| 17430 | |
| 17431 | |
| 17432 | |
| 17433 | |
| 17434 | |
| 17435 | |
| 17436 | |
| 17437 | |
| 17438 | |
| 17439 | |
| 17440 | |
| 17441 | |
| 17442 | |
| 17443 | |
| 17444 | |
| 17445 | |
| 17446 | |
| 17447 | |
| 17448 | |
| 17449 | |
| 17450 | |
| 17451 | |
| 17452 | |
| 17453 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17454 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 17455 | |
| 17456 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 17457 | |
| 17458 | |
Thomas Wouters | cf297e4 | 2007-02-23 15:07:44 +0000 | [diff] [blame] | 17459 | |
| 17460 | |
Gregory P. Smith | 25523d2 | 2007-09-03 16:44:55 +0000 | [diff] [blame] | 17461 | |
Christian Heimes | 4e30a84 | 2007-11-30 22:12:06 +0000 | [diff] [blame] | 17462 | |
Martin v. Löwis | 92fab75 | 2008-03-08 10:40:41 +0000 | [diff] [blame] | 17463 | |
Martin v. Löwis | 823725e | 2008-03-24 13:39:54 +0000 | [diff] [blame] | 17464 | |
| 17465 | |
Benjamin Peterson | 965ce87 | 2009-04-05 21:24:58 +0000 | [diff] [blame] | 17466 | |
| 17467 | |
| 17468 | |
| 17469 | |
Martin v. Löwis | 011e842 | 2009-05-05 04:43:17 +0000 | [diff] [blame] | 17470 | |
Martin v. Löwis | 113a085 | 2009-05-29 17:25:39 +0000 | [diff] [blame] | 17471 | |
Martin v. Löwis | 823725e | 2008-03-24 13:39:54 +0000 | [diff] [blame] | 17472 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 17473 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 17474 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 17475 | getpriority getpwent getspnam getspent getsid getwd \ |
Martin v. Löwis | 011e842 | 2009-05-05 04:43:17 +0000 | [diff] [blame] | 17476 | kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 17477 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 17478 | putenv readlink realpath \ |
Benjamin Peterson | 965ce87 | 2009-04-05 21:24:58 +0000 | [diff] [blame] | 17479 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ |
| 17480 | setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 17481 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Gregory P. Smith | 25523d2 | 2007-09-03 16:44:55 +0000 | [diff] [blame] | 17482 | sigaction siginterrupt sigrelse strftime strlcpy \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 17483 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 113a085 | 2009-05-29 17:25:39 +0000 | [diff] [blame] | 17484 | truncate uname unsetenv utimes waitpid wait3 wait4 \ |
| 17485 | wcscoll wcsftime wcsxfrm _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17486 | do |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17487 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17488 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17489 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17490 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17492 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17493 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17494 | /* confdefs.h. */ |
| 17495 | _ACEOF |
| 17496 | cat confdefs.h >>conftest.$ac_ext |
| 17497 | cat >>conftest.$ac_ext <<_ACEOF |
| 17498 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17499 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17500 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17501 | #define $ac_func innocuous_$ac_func |
| 17502 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17503 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17504 | which can conflict with char $ac_func (); below. |
| 17505 | 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] | 17506 | <limits.h> exists even on freestanding compilers. */ |
| 17507 | |
| 17508 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17509 | # include <limits.h> |
| 17510 | #else |
| 17511 | # include <assert.h> |
| 17512 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17513 | |
| 17514 | #undef $ac_func |
| 17515 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17516 | /* Override any GCC internal prototype to avoid an error. |
| 17517 | Use char because int might match the return type of a GCC |
| 17518 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17519 | #ifdef __cplusplus |
| 17520 | extern "C" |
| 17521 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17522 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17523 | /* The GNU C library defines this for functions which it implements |
| 17524 | to always fail with ENOSYS. Some functions are actually named |
| 17525 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17526 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17527 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17528 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17529 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17530 | int |
| 17531 | main () |
| 17532 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17533 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17534 | ; |
| 17535 | return 0; |
| 17536 | } |
| 17537 | _ACEOF |
| 17538 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17539 | if { (ac_try="$ac_link" |
| 17540 | case "(($ac_try" in |
| 17541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17542 | *) ac_try_echo=$ac_try;; |
| 17543 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17545 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17546 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17547 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17548 | rm -f conftest.er1 |
| 17549 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17551 | (exit $ac_status); } && { |
| 17552 | test -z "$ac_c_werror_flag" || |
| 17553 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17554 | } && test -s conftest$ac_exeext && |
| 17555 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17556 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17557 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17558 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17560 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17561 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17562 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17563 | |
| 17564 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17565 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17566 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17567 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17568 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17569 | echo "${ECHO_T}$ac_res" >&6; } |
| 17570 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17571 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17572 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17573 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17574 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17575 | fi |
| 17576 | done |
| 17577 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17578 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17579 | # For some functions, having a definition is not sufficient, since |
| 17580 | # we want to take their address. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17581 | { echo "$as_me:$LINENO: checking for chroot" >&5 |
| 17582 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17583 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17584 | /* confdefs.h. */ |
| 17585 | _ACEOF |
| 17586 | cat confdefs.h >>conftest.$ac_ext |
| 17587 | cat >>conftest.$ac_ext <<_ACEOF |
| 17588 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17589 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17590 | int |
| 17591 | main () |
| 17592 | { |
| 17593 | void *x=chroot |
| 17594 | ; |
| 17595 | return 0; |
| 17596 | } |
| 17597 | _ACEOF |
| 17598 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17599 | if { (ac_try="$ac_compile" |
| 17600 | case "(($ac_try" in |
| 17601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17602 | *) ac_try_echo=$ac_try;; |
| 17603 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17605 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17606 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17607 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17608 | rm -f conftest.er1 |
| 17609 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17611 | (exit $ac_status); } && { |
| 17612 | test -z "$ac_c_werror_flag" || |
| 17613 | test ! -s conftest.err |
| 17614 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17615 | |
| 17616 | cat >>confdefs.h <<\_ACEOF |
| 17617 | #define HAVE_CHROOT 1 |
| 17618 | _ACEOF |
| 17619 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17620 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17621 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17622 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17623 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17625 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17626 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17627 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17628 | |
| 17629 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17630 | |
| 17631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17632 | { echo "$as_me:$LINENO: checking for link" >&5 |
| 17633 | echo $ECHO_N "checking for link... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17634 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17635 | /* confdefs.h. */ |
| 17636 | _ACEOF |
| 17637 | cat confdefs.h >>conftest.$ac_ext |
| 17638 | cat >>conftest.$ac_ext <<_ACEOF |
| 17639 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17640 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17641 | int |
| 17642 | main () |
| 17643 | { |
| 17644 | void *x=link |
| 17645 | ; |
| 17646 | return 0; |
| 17647 | } |
| 17648 | _ACEOF |
| 17649 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17650 | if { (ac_try="$ac_compile" |
| 17651 | case "(($ac_try" in |
| 17652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17653 | *) ac_try_echo=$ac_try;; |
| 17654 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17656 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17657 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17658 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17659 | rm -f conftest.er1 |
| 17660 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17662 | (exit $ac_status); } && { |
| 17663 | test -z "$ac_c_werror_flag" || |
| 17664 | test ! -s conftest.err |
| 17665 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17666 | |
| 17667 | cat >>confdefs.h <<\_ACEOF |
| 17668 | #define HAVE_LINK 1 |
| 17669 | _ACEOF |
| 17670 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17671 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17672 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17673 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17674 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17676 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17677 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17678 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17679 | |
| 17680 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17681 | |
| 17682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17683 | { echo "$as_me:$LINENO: checking for symlink" >&5 |
| 17684 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17685 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17686 | /* confdefs.h. */ |
| 17687 | _ACEOF |
| 17688 | cat confdefs.h >>conftest.$ac_ext |
| 17689 | cat >>conftest.$ac_ext <<_ACEOF |
| 17690 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17691 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17692 | int |
| 17693 | main () |
| 17694 | { |
| 17695 | void *x=symlink |
| 17696 | ; |
| 17697 | return 0; |
| 17698 | } |
| 17699 | _ACEOF |
| 17700 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17701 | if { (ac_try="$ac_compile" |
| 17702 | case "(($ac_try" in |
| 17703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17704 | *) ac_try_echo=$ac_try;; |
| 17705 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17707 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17708 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17710 | rm -f conftest.er1 |
| 17711 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17713 | (exit $ac_status); } && { |
| 17714 | test -z "$ac_c_werror_flag" || |
| 17715 | test ! -s conftest.err |
| 17716 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17717 | |
| 17718 | cat >>confdefs.h <<\_ACEOF |
| 17719 | #define HAVE_SYMLINK 1 |
| 17720 | _ACEOF |
| 17721 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17722 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17723 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17724 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17725 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17727 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17728 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17729 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17730 | |
| 17731 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17732 | |
| 17733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17734 | { echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 17735 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17736 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17737 | /* confdefs.h. */ |
| 17738 | _ACEOF |
| 17739 | cat confdefs.h >>conftest.$ac_ext |
| 17740 | cat >>conftest.$ac_ext <<_ACEOF |
| 17741 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17742 | #include <unistd.h> |
| 17743 | int |
| 17744 | main () |
| 17745 | { |
| 17746 | void *x=fchdir |
| 17747 | ; |
| 17748 | return 0; |
| 17749 | } |
| 17750 | _ACEOF |
| 17751 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17752 | if { (ac_try="$ac_compile" |
| 17753 | case "(($ac_try" in |
| 17754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17755 | *) ac_try_echo=$ac_try;; |
| 17756 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17758 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17759 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17760 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17761 | rm -f conftest.er1 |
| 17762 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17764 | (exit $ac_status); } && { |
| 17765 | test -z "$ac_c_werror_flag" || |
| 17766 | test ! -s conftest.err |
| 17767 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17768 | |
| 17769 | cat >>confdefs.h <<\_ACEOF |
| 17770 | #define HAVE_FCHDIR 1 |
| 17771 | _ACEOF |
| 17772 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17773 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17774 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17775 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17776 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17778 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17779 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17780 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17781 | |
| 17782 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17783 | |
| 17784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17785 | { echo "$as_me:$LINENO: checking for fsync" >&5 |
| 17786 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17787 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17788 | /* confdefs.h. */ |
| 17789 | _ACEOF |
| 17790 | cat confdefs.h >>conftest.$ac_ext |
| 17791 | cat >>conftest.$ac_ext <<_ACEOF |
| 17792 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17793 | #include <unistd.h> |
| 17794 | int |
| 17795 | main () |
| 17796 | { |
| 17797 | void *x=fsync |
| 17798 | ; |
| 17799 | return 0; |
| 17800 | } |
| 17801 | _ACEOF |
| 17802 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17803 | if { (ac_try="$ac_compile" |
| 17804 | case "(($ac_try" in |
| 17805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17806 | *) ac_try_echo=$ac_try;; |
| 17807 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17809 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17810 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17812 | rm -f conftest.er1 |
| 17813 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17815 | (exit $ac_status); } && { |
| 17816 | test -z "$ac_c_werror_flag" || |
| 17817 | test ! -s conftest.err |
| 17818 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17819 | |
| 17820 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17821 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17822 | _ACEOF |
| 17823 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17824 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17825 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17826 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17827 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17829 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17830 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17831 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17832 | |
| 17833 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17834 | |
| 17835 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17836 | { echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 17837 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17838 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17839 | /* confdefs.h. */ |
| 17840 | _ACEOF |
| 17841 | cat confdefs.h >>conftest.$ac_ext |
| 17842 | cat >>conftest.$ac_ext <<_ACEOF |
| 17843 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17844 | #include <unistd.h> |
| 17845 | int |
| 17846 | main () |
| 17847 | { |
| 17848 | void *x=fdatasync |
| 17849 | ; |
| 17850 | return 0; |
| 17851 | } |
| 17852 | _ACEOF |
| 17853 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17854 | if { (ac_try="$ac_compile" |
| 17855 | case "(($ac_try" in |
| 17856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17857 | *) ac_try_echo=$ac_try;; |
| 17858 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17860 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17861 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17863 | rm -f conftest.er1 |
| 17864 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17866 | (exit $ac_status); } && { |
| 17867 | test -z "$ac_c_werror_flag" || |
| 17868 | test ! -s conftest.err |
| 17869 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17870 | |
| 17871 | cat >>confdefs.h <<\_ACEOF |
| 17872 | #define HAVE_FDATASYNC 1 |
| 17873 | _ACEOF |
| 17874 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17875 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17876 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17877 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17878 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17880 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17881 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17882 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17883 | |
| 17884 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17885 | |
| 17886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17887 | { echo "$as_me:$LINENO: checking for epoll" >&5 |
| 17888 | echo $ECHO_N "checking for epoll... $ECHO_C" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17889 | cat >conftest.$ac_ext <<_ACEOF |
| 17890 | /* confdefs.h. */ |
| 17891 | _ACEOF |
| 17892 | cat confdefs.h >>conftest.$ac_ext |
| 17893 | cat >>conftest.$ac_ext <<_ACEOF |
| 17894 | /* end confdefs.h. */ |
| 17895 | #include <sys/epoll.h> |
| 17896 | int |
| 17897 | main () |
| 17898 | { |
| 17899 | void *x=epoll_create |
| 17900 | ; |
| 17901 | return 0; |
| 17902 | } |
| 17903 | _ACEOF |
| 17904 | rm -f conftest.$ac_objext |
| 17905 | if { (ac_try="$ac_compile" |
| 17906 | case "(($ac_try" in |
| 17907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17908 | *) ac_try_echo=$ac_try;; |
| 17909 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17911 | (eval "$ac_compile") 2>conftest.er1 |
| 17912 | ac_status=$? |
| 17913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17914 | rm -f conftest.er1 |
| 17915 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17917 | (exit $ac_status); } && { |
| 17918 | test -z "$ac_c_werror_flag" || |
| 17919 | test ! -s conftest.err |
| 17920 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17921 | |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17922 | cat >>confdefs.h <<\_ACEOF |
| 17923 | #define HAVE_EPOLL 1 |
| 17924 | _ACEOF |
| 17925 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17926 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17927 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17928 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17929 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17931 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17932 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17933 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17934 | |
| 17935 | fi |
| 17936 | |
| 17937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17938 | { echo "$as_me:$LINENO: checking for kqueue" >&5 |
| 17939 | echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17940 | cat >conftest.$ac_ext <<_ACEOF |
| 17941 | /* confdefs.h. */ |
| 17942 | _ACEOF |
| 17943 | cat confdefs.h >>conftest.$ac_ext |
| 17944 | cat >>conftest.$ac_ext <<_ACEOF |
| 17945 | /* end confdefs.h. */ |
| 17946 | |
| 17947 | #include <sys/types.h> |
| 17948 | #include <sys/event.h> |
| 17949 | |
| 17950 | int |
| 17951 | main () |
| 17952 | { |
| 17953 | int x=kqueue() |
| 17954 | ; |
| 17955 | return 0; |
| 17956 | } |
| 17957 | _ACEOF |
| 17958 | rm -f conftest.$ac_objext |
| 17959 | if { (ac_try="$ac_compile" |
| 17960 | case "(($ac_try" in |
| 17961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17962 | *) ac_try_echo=$ac_try;; |
| 17963 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17965 | (eval "$ac_compile") 2>conftest.er1 |
| 17966 | ac_status=$? |
| 17967 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17968 | rm -f conftest.er1 |
| 17969 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17971 | (exit $ac_status); } && { |
| 17972 | test -z "$ac_c_werror_flag" || |
| 17973 | test ! -s conftest.err |
| 17974 | } && test -s conftest.$ac_objext; then |
| 17975 | |
| 17976 | cat >>confdefs.h <<\_ACEOF |
| 17977 | #define HAVE_KQUEUE 1 |
| 17978 | _ACEOF |
| 17979 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17980 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17981 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17982 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17983 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17985 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17986 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17987 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17988 | |
| 17989 | fi |
| 17990 | |
| 17991 | 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] | 17992 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 17993 | # functions ctermid_r, setgroups in the library, but no prototype |
| 17994 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 17995 | # address to avoid compiler warnings and potential miscompilations |
| 17996 | # because of the missing prototypes. |
| 17997 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 17998 | { echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 17999 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18000 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18001 | /* confdefs.h. */ |
| 18002 | _ACEOF |
| 18003 | cat confdefs.h >>conftest.$ac_ext |
| 18004 | cat >>conftest.$ac_ext <<_ACEOF |
| 18005 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18006 | |
| 18007 | #include "confdefs.h" |
| 18008 | #include <stdio.h> |
| 18009 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18010 | int |
| 18011 | main () |
| 18012 | { |
| 18013 | void* p = ctermid_r |
| 18014 | ; |
| 18015 | return 0; |
| 18016 | } |
| 18017 | _ACEOF |
| 18018 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18019 | if { (ac_try="$ac_compile" |
| 18020 | case "(($ac_try" in |
| 18021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18022 | *) ac_try_echo=$ac_try;; |
| 18023 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18025 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18026 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18028 | rm -f conftest.er1 |
| 18029 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18031 | (exit $ac_status); } && { |
| 18032 | test -z "$ac_c_werror_flag" || |
| 18033 | test ! -s conftest.err |
| 18034 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18035 | |
| 18036 | cat >>confdefs.h <<\_ACEOF |
| 18037 | #define HAVE_CTERMID_R 1 |
| 18038 | _ACEOF |
| 18039 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18040 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18041 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18042 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18043 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18045 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18046 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18047 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18048 | |
| 18049 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18050 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18051 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18052 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18053 | { echo "$as_me:$LINENO: checking for flock" >&5 |
| 18054 | echo $ECHO_N "checking for flock... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18055 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18056 | /* confdefs.h. */ |
| 18057 | _ACEOF |
| 18058 | cat confdefs.h >>conftest.$ac_ext |
| 18059 | cat >>conftest.$ac_ext <<_ACEOF |
| 18060 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18061 | |
| 18062 | #include "confdefs.h" |
| 18063 | #include <sys/file.h> |
| 18064 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18065 | int |
| 18066 | main () |
| 18067 | { |
| 18068 | void* p = flock |
| 18069 | ; |
| 18070 | return 0; |
| 18071 | } |
| 18072 | _ACEOF |
| 18073 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18074 | if { (ac_try="$ac_compile" |
| 18075 | case "(($ac_try" in |
| 18076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18077 | *) ac_try_echo=$ac_try;; |
| 18078 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18080 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18081 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18083 | rm -f conftest.er1 |
| 18084 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18086 | (exit $ac_status); } && { |
| 18087 | test -z "$ac_c_werror_flag" || |
| 18088 | test ! -s conftest.err |
| 18089 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18090 | |
| 18091 | cat >>confdefs.h <<\_ACEOF |
| 18092 | #define HAVE_FLOCK 1 |
| 18093 | _ACEOF |
| 18094 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18095 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18096 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18097 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18098 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18100 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18101 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18102 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18103 | |
| 18104 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18105 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18107 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18108 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 18109 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18110 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18111 | /* confdefs.h. */ |
| 18112 | _ACEOF |
| 18113 | cat confdefs.h >>conftest.$ac_ext |
| 18114 | cat >>conftest.$ac_ext <<_ACEOF |
| 18115 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18116 | |
| 18117 | #include "confdefs.h" |
| 18118 | #include <unistd.h> |
| 18119 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18120 | int |
| 18121 | main () |
| 18122 | { |
| 18123 | void* p = getpagesize |
| 18124 | ; |
| 18125 | return 0; |
| 18126 | } |
| 18127 | _ACEOF |
| 18128 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18129 | if { (ac_try="$ac_compile" |
| 18130 | case "(($ac_try" in |
| 18131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18132 | *) ac_try_echo=$ac_try;; |
| 18133 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18135 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18136 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18137 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18138 | rm -f conftest.er1 |
| 18139 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18141 | (exit $ac_status); } && { |
| 18142 | test -z "$ac_c_werror_flag" || |
| 18143 | test ! -s conftest.err |
| 18144 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18145 | |
| 18146 | cat >>confdefs.h <<\_ACEOF |
| 18147 | #define HAVE_GETPAGESIZE 1 |
| 18148 | _ACEOF |
| 18149 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18150 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18151 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18152 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18153 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18155 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18156 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18157 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18158 | |
| 18159 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18160 | |
| 18161 | 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] | 18162 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18163 | for ac_prog in true |
| 18164 | do |
| 18165 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 18166 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18167 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18169 | if test "${ac_cv_prog_TRUE+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18171 | else |
| 18172 | if test -n "$TRUE"; then |
| 18173 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 18174 | else |
| 18175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18176 | for as_dir in $PATH |
| 18177 | do |
| 18178 | IFS=$as_save_IFS |
| 18179 | test -z "$as_dir" && as_dir=. |
| 18180 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18181 | 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] | 18182 | ac_cv_prog_TRUE="$ac_prog" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18183 | 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] | 18184 | break 2 |
| 18185 | fi |
| 18186 | done |
| 18187 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18188 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18189 | |
| 18190 | fi |
| 18191 | fi |
| 18192 | TRUE=$ac_cv_prog_TRUE |
| 18193 | if test -n "$TRUE"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18194 | { echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 18195 | echo "${ECHO_T}$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18196 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18197 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18198 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18199 | fi |
| 18200 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18201 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18202 | test -n "$TRUE" && break |
| 18203 | done |
| 18204 | test -n "$TRUE" || TRUE="/bin/true" |
| 18205 | |
| 18206 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18207 | { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 18208 | 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] | 18209 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18211 | else |
| 18212 | ac_check_lib_save_LIBS=$LIBS |
| 18213 | LIBS="-lc $LIBS" |
| 18214 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18215 | /* confdefs.h. */ |
| 18216 | _ACEOF |
| 18217 | cat confdefs.h >>conftest.$ac_ext |
| 18218 | cat >>conftest.$ac_ext <<_ACEOF |
| 18219 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18220 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18221 | /* Override any GCC internal prototype to avoid an error. |
| 18222 | Use char because int might match the return type of a GCC |
| 18223 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18224 | #ifdef __cplusplus |
| 18225 | extern "C" |
| 18226 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18227 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18228 | int |
| 18229 | main () |
| 18230 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18231 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18232 | ; |
| 18233 | return 0; |
| 18234 | } |
| 18235 | _ACEOF |
| 18236 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18237 | if { (ac_try="$ac_link" |
| 18238 | case "(($ac_try" in |
| 18239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18240 | *) ac_try_echo=$ac_try;; |
| 18241 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18243 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18244 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18245 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18246 | rm -f conftest.er1 |
| 18247 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18249 | (exit $ac_status); } && { |
| 18250 | test -z "$ac_c_werror_flag" || |
| 18251 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18252 | } && test -s conftest$ac_exeext && |
| 18253 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18254 | ac_cv_lib_c_inet_aton=yes |
| 18255 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18256 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18258 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18259 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18260 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18261 | |
| 18262 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18263 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18264 | LIBS=$ac_check_lib_save_LIBS |
| 18265 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18266 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 18267 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; } |
| 18268 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18269 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18270 | else |
| 18271 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18272 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 18273 | 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] | 18274 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18276 | else |
| 18277 | ac_check_lib_save_LIBS=$LIBS |
| 18278 | LIBS="-lresolv $LIBS" |
| 18279 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18280 | /* confdefs.h. */ |
| 18281 | _ACEOF |
| 18282 | cat confdefs.h >>conftest.$ac_ext |
| 18283 | cat >>conftest.$ac_ext <<_ACEOF |
| 18284 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18285 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18286 | /* Override any GCC internal prototype to avoid an error. |
| 18287 | Use char because int might match the return type of a GCC |
| 18288 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18289 | #ifdef __cplusplus |
| 18290 | extern "C" |
| 18291 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18292 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18293 | int |
| 18294 | main () |
| 18295 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18296 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18297 | ; |
| 18298 | return 0; |
| 18299 | } |
| 18300 | _ACEOF |
| 18301 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18302 | if { (ac_try="$ac_link" |
| 18303 | case "(($ac_try" in |
| 18304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18305 | *) ac_try_echo=$ac_try;; |
| 18306 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18308 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18309 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18310 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18311 | rm -f conftest.er1 |
| 18312 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18314 | (exit $ac_status); } && { |
| 18315 | test -z "$ac_c_werror_flag" || |
| 18316 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18317 | } && test -s conftest$ac_exeext && |
| 18318 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18319 | ac_cv_lib_resolv_inet_aton=yes |
| 18320 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18321 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18323 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18324 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18325 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18326 | |
| 18327 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18328 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18329 | LIBS=$ac_check_lib_save_LIBS |
| 18330 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18331 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 18332 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
| 18333 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18334 | cat >>confdefs.h <<_ACEOF |
| 18335 | #define HAVE_LIBRESOLV 1 |
| 18336 | _ACEOF |
| 18337 | |
| 18338 | LIBS="-lresolv $LIBS" |
| 18339 | |
| 18340 | fi |
| 18341 | |
| 18342 | |
| 18343 | fi |
| 18344 | |
| 18345 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 18346 | # On Tru64, chflags seems to be present, but calling it will |
| 18347 | # exit Python |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18348 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 18349 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18350 | if test "${ac_cv_have_chflags+set}" = set; then |
| 18351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18352 | else |
| 18353 | if test "$cross_compiling" = yes; then |
| 18354 | ac_cv_have_chflags=no |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 18355 | else |
| 18356 | cat >conftest.$ac_ext <<_ACEOF |
| 18357 | /* confdefs.h. */ |
| 18358 | _ACEOF |
| 18359 | cat confdefs.h >>conftest.$ac_ext |
| 18360 | cat >>conftest.$ac_ext <<_ACEOF |
| 18361 | /* end confdefs.h. */ |
| 18362 | |
| 18363 | #include <sys/stat.h> |
| 18364 | #include <unistd.h> |
| 18365 | int main(int argc, char*argv[]) |
| 18366 | { |
| 18367 | if(chflags(argv[0], 0) != 0) |
| 18368 | return 1; |
| 18369 | return 0; |
| 18370 | } |
| 18371 | |
| 18372 | _ACEOF |
| 18373 | rm -f conftest$ac_exeext |
| 18374 | if { (ac_try="$ac_link" |
| 18375 | case "(($ac_try" in |
| 18376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18377 | *) ac_try_echo=$ac_try;; |
| 18378 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 18380 | (eval "$ac_link") 2>&5 |
| 18381 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 18383 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18384 | { (case "(($ac_try" in |
| 18385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18386 | *) ac_try_echo=$ac_try;; |
| 18387 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 18389 | (eval "$ac_try") 2>&5 |
| 18390 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 18392 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18393 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18394 | else |
| 18395 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18396 | echo "$as_me: failed program was:" >&5 |
| 18397 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18398 | |
| 18399 | ( exit $ac_status ) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18400 | ac_cv_have_chflags=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18401 | fi |
| 18402 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 18403 | fi |
| 18404 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18405 | |
| 18406 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18407 | fi |
| 18408 | |
| 18409 | { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5 |
| 18410 | echo "${ECHO_T}$ac_cv_have_chflags" >&6; } |
| 18411 | if test $ac_cv_have_chflags = yes |
| 18412 | then |
| 18413 | |
| 18414 | cat >>confdefs.h <<\_ACEOF |
| 18415 | #define HAVE_CHFLAGS 1 |
| 18416 | _ACEOF |
| 18417 | |
| 18418 | fi |
| 18419 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18420 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 18421 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18422 | if test "${ac_cv_have_lchflags+set}" = set; then |
| 18423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18424 | else |
| 18425 | if test "$cross_compiling" = yes; then |
| 18426 | ac_cv_have_lchflags=no |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 18427 | else |
| 18428 | cat >conftest.$ac_ext <<_ACEOF |
| 18429 | /* confdefs.h. */ |
| 18430 | _ACEOF |
| 18431 | cat confdefs.h >>conftest.$ac_ext |
| 18432 | cat >>conftest.$ac_ext <<_ACEOF |
| 18433 | /* end confdefs.h. */ |
| 18434 | |
| 18435 | #include <sys/stat.h> |
| 18436 | #include <unistd.h> |
| 18437 | int main(int argc, char*argv[]) |
| 18438 | { |
| 18439 | if(lchflags(argv[0], 0) != 0) |
| 18440 | return 1; |
| 18441 | return 0; |
| 18442 | } |
| 18443 | |
| 18444 | _ACEOF |
| 18445 | rm -f conftest$ac_exeext |
| 18446 | if { (ac_try="$ac_link" |
| 18447 | case "(($ac_try" in |
| 18448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18449 | *) ac_try_echo=$ac_try;; |
| 18450 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 18452 | (eval "$ac_link") 2>&5 |
| 18453 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 18455 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18456 | { (case "(($ac_try" in |
| 18457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18458 | *) ac_try_echo=$ac_try;; |
| 18459 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 18461 | (eval "$ac_try") 2>&5 |
| 18462 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 18464 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18465 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18466 | else |
| 18467 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18468 | echo "$as_me: failed program was:" >&5 |
| 18469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18470 | |
| 18471 | ( exit $ac_status ) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18472 | ac_cv_have_lchflags=no |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 18473 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18474 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 18475 | fi |
| 18476 | |
| 18477 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 18478 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 18479 | fi |
| 18480 | |
| 18481 | { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5 |
| 18482 | echo "${ECHO_T}$ac_cv_have_lchflags" >&6; } |
| 18483 | if test $ac_cv_have_lchflags = yes |
| 18484 | then |
| 18485 | |
| 18486 | cat >>confdefs.h <<\_ACEOF |
| 18487 | #define HAVE_LCHFLAGS 1 |
| 18488 | _ACEOF |
| 18489 | |
| 18490 | fi |
| 18491 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18492 | case $ac_sys_system/$ac_sys_release in |
| 18493 | Darwin/*) |
| 18494 | _CUR_CFLAGS="${CFLAGS}" |
| 18495 | _CUR_LDFLAGS="${LDFLAGS}" |
| 18496 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 18497 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 18498 | ;; |
| 18499 | esac |
| 18500 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18501 | { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 18502 | echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18503 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18505 | else |
| 18506 | ac_check_lib_save_LIBS=$LIBS |
| 18507 | LIBS="-lz $LIBS" |
| 18508 | cat >conftest.$ac_ext <<_ACEOF |
| 18509 | /* confdefs.h. */ |
| 18510 | _ACEOF |
| 18511 | cat confdefs.h >>conftest.$ac_ext |
| 18512 | cat >>conftest.$ac_ext <<_ACEOF |
| 18513 | /* end confdefs.h. */ |
| 18514 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18515 | /* Override any GCC internal prototype to avoid an error. |
| 18516 | Use char because int might match the return type of a GCC |
| 18517 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18518 | #ifdef __cplusplus |
| 18519 | extern "C" |
| 18520 | #endif |
| 18521 | char inflateCopy (); |
| 18522 | int |
| 18523 | main () |
| 18524 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18525 | return inflateCopy (); |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18526 | ; |
| 18527 | return 0; |
| 18528 | } |
| 18529 | _ACEOF |
| 18530 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18531 | if { (ac_try="$ac_link" |
| 18532 | case "(($ac_try" in |
| 18533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18534 | *) ac_try_echo=$ac_try;; |
| 18535 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18537 | (eval "$ac_link") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18538 | ac_status=$? |
| 18539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18540 | rm -f conftest.er1 |
| 18541 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18543 | (exit $ac_status); } && { |
| 18544 | test -z "$ac_c_werror_flag" || |
| 18545 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18546 | } && test -s conftest$ac_exeext && |
| 18547 | $as_test_x conftest$ac_exeext; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18548 | ac_cv_lib_z_inflateCopy=yes |
| 18549 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18550 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18552 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18553 | ac_cv_lib_z_inflateCopy=no |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18554 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18555 | |
| 18556 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18557 | conftest$ac_exeext conftest.$ac_ext |
| 18558 | LIBS=$ac_check_lib_save_LIBS |
| 18559 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18560 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 18561 | echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; } |
| 18562 | if test $ac_cv_lib_z_inflateCopy = yes; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18563 | |
| 18564 | cat >>confdefs.h <<\_ACEOF |
| 18565 | #define HAVE_ZLIB_COPY 1 |
| 18566 | _ACEOF |
| 18567 | |
| 18568 | fi |
| 18569 | |
| 18570 | |
| 18571 | case $ac_sys_system/$ac_sys_release in |
| 18572 | Darwin/*) |
| 18573 | CFLAGS="${_CUR_CFLAGS}" |
| 18574 | LDFLAGS="${_CUR_LDFLAGS}" |
| 18575 | ;; |
| 18576 | esac |
| 18577 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18578 | { echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 18579 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18580 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18581 | /* confdefs.h. */ |
| 18582 | _ACEOF |
| 18583 | cat confdefs.h >>conftest.$ac_ext |
| 18584 | cat >>conftest.$ac_ext <<_ACEOF |
| 18585 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18586 | |
| 18587 | #include "confdefs.h" |
| 18588 | #include <netdb.h> |
| 18589 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18590 | int |
| 18591 | main () |
| 18592 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18593 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18594 | ; |
| 18595 | return 0; |
| 18596 | } |
| 18597 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18598 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18599 | if { (ac_try="$ac_link" |
| 18600 | case "(($ac_try" in |
| 18601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18602 | *) ac_try_echo=$ac_try;; |
| 18603 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18605 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18606 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18607 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18608 | rm -f conftest.er1 |
| 18609 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18611 | (exit $ac_status); } && { |
| 18612 | test -z "$ac_c_werror_flag" || |
| 18613 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18614 | } && test -s conftest$ac_exeext && |
| 18615 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18616 | |
| 18617 | cat >>confdefs.h <<\_ACEOF |
| 18618 | #define HAVE_HSTRERROR 1 |
| 18619 | _ACEOF |
| 18620 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18621 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18622 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18623 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18624 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18626 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18627 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18628 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18629 | |
| 18630 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18631 | |
| 18632 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18633 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18634 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18635 | { echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 18636 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18637 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18638 | /* confdefs.h. */ |
| 18639 | _ACEOF |
| 18640 | cat confdefs.h >>conftest.$ac_ext |
| 18641 | cat >>conftest.$ac_ext <<_ACEOF |
| 18642 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18643 | |
| 18644 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 18645 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18646 | #include <sys/socket.h> |
| 18647 | #include <netinet/in.h> |
| 18648 | #include <arpa/inet.h> |
| 18649 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18650 | int |
| 18651 | main () |
| 18652 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18653 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18654 | ; |
| 18655 | return 0; |
| 18656 | } |
| 18657 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18658 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18659 | if { (ac_try="$ac_link" |
| 18660 | case "(($ac_try" in |
| 18661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18662 | *) ac_try_echo=$ac_try;; |
| 18663 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18665 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18666 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18668 | rm -f conftest.er1 |
| 18669 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18671 | (exit $ac_status); } && { |
| 18672 | test -z "$ac_c_werror_flag" || |
| 18673 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18674 | } && test -s conftest$ac_exeext && |
| 18675 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18676 | |
| 18677 | cat >>confdefs.h <<\_ACEOF |
| 18678 | #define HAVE_INET_ATON 1 |
| 18679 | _ACEOF |
| 18680 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18681 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18682 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18683 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18684 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18686 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18687 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18688 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18689 | |
| 18690 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18691 | |
| 18692 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18693 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18694 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18695 | { echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 18696 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18697 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18698 | /* confdefs.h. */ |
| 18699 | _ACEOF |
| 18700 | cat confdefs.h >>conftest.$ac_ext |
| 18701 | cat >>conftest.$ac_ext <<_ACEOF |
| 18702 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18703 | |
| 18704 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 18705 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18706 | #include <sys/socket.h> |
| 18707 | #include <netinet/in.h> |
| 18708 | #include <arpa/inet.h> |
| 18709 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18710 | int |
| 18711 | main () |
| 18712 | { |
| 18713 | void* p = inet_pton |
| 18714 | ; |
| 18715 | return 0; |
| 18716 | } |
| 18717 | _ACEOF |
| 18718 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18719 | if { (ac_try="$ac_compile" |
| 18720 | case "(($ac_try" in |
| 18721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18722 | *) ac_try_echo=$ac_try;; |
| 18723 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18725 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18726 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18728 | rm -f conftest.er1 |
| 18729 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18731 | (exit $ac_status); } && { |
| 18732 | test -z "$ac_c_werror_flag" || |
| 18733 | test ! -s conftest.err |
| 18734 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18735 | |
| 18736 | cat >>confdefs.h <<\_ACEOF |
| 18737 | #define HAVE_INET_PTON 1 |
| 18738 | _ACEOF |
| 18739 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18740 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18741 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18742 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18743 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18745 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18746 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18747 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18748 | |
| 18749 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18750 | |
| 18751 | 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] | 18752 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 18753 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18754 | { echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 18755 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +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 | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18762 | |
| 18763 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 18764 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 18765 | #ifdef HAVE_GRP_H |
| 18766 | #include <grp.h> |
| 18767 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18768 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18769 | int |
| 18770 | main () |
| 18771 | { |
| 18772 | void* p = setgroups |
| 18773 | ; |
| 18774 | return 0; |
| 18775 | } |
| 18776 | _ACEOF |
| 18777 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18778 | if { (ac_try="$ac_compile" |
| 18779 | case "(($ac_try" in |
| 18780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18781 | *) ac_try_echo=$ac_try;; |
| 18782 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18784 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18785 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18786 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18787 | rm -f conftest.er1 |
| 18788 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18790 | (exit $ac_status); } && { |
| 18791 | test -z "$ac_c_werror_flag" || |
| 18792 | test ! -s conftest.err |
| 18793 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18794 | |
| 18795 | cat >>confdefs.h <<\_ACEOF |
| 18796 | #define HAVE_SETGROUPS 1 |
| 18797 | _ACEOF |
| 18798 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18799 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18800 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18801 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18802 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18804 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18805 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18806 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18807 | |
| 18808 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18809 | |
| 18810 | 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] | 18811 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18812 | # check for openpty and forkpty |
| 18813 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18814 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18815 | for ac_func in openpty |
| 18816 | do |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18817 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18818 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18819 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18820 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18822 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18823 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18824 | /* confdefs.h. */ |
| 18825 | _ACEOF |
| 18826 | cat confdefs.h >>conftest.$ac_ext |
| 18827 | cat >>conftest.$ac_ext <<_ACEOF |
| 18828 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18829 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18830 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18831 | #define $ac_func innocuous_$ac_func |
| 18832 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18833 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18834 | which can conflict with char $ac_func (); below. |
| 18835 | 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] | 18836 | <limits.h> exists even on freestanding compilers. */ |
| 18837 | |
| 18838 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18839 | # include <limits.h> |
| 18840 | #else |
| 18841 | # include <assert.h> |
| 18842 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18843 | |
| 18844 | #undef $ac_func |
| 18845 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18846 | /* Override any GCC internal prototype to avoid an error. |
| 18847 | Use char because int might match the return type of a GCC |
| 18848 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18849 | #ifdef __cplusplus |
| 18850 | extern "C" |
| 18851 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18852 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18853 | /* The GNU C library defines this for functions which it implements |
| 18854 | to always fail with ENOSYS. Some functions are actually named |
| 18855 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18856 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18857 | choke me |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18858 | #endif |
| 18859 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18860 | int |
| 18861 | main () |
| 18862 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18863 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18864 | ; |
| 18865 | return 0; |
| 18866 | } |
| 18867 | _ACEOF |
| 18868 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18869 | if { (ac_try="$ac_link" |
| 18870 | case "(($ac_try" in |
| 18871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18872 | *) ac_try_echo=$ac_try;; |
| 18873 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18875 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18876 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18878 | rm -f conftest.er1 |
| 18879 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18881 | (exit $ac_status); } && { |
| 18882 | test -z "$ac_c_werror_flag" || |
| 18883 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18884 | } && test -s conftest$ac_exeext && |
| 18885 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18886 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18887 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18888 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18890 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18891 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18892 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18893 | |
| 18894 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18895 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18896 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18897 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18898 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18899 | echo "${ECHO_T}$ac_res" >&6; } |
| 18900 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18901 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18902 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18903 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18904 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18905 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18906 | { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 18907 | 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] | 18908 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18910 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18911 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18912 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18913 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18914 | /* confdefs.h. */ |
| 18915 | _ACEOF |
| 18916 | cat confdefs.h >>conftest.$ac_ext |
| 18917 | cat >>conftest.$ac_ext <<_ACEOF |
| 18918 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18919 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18920 | /* Override any GCC internal prototype to avoid an error. |
| 18921 | Use char because int might match the return type of a GCC |
| 18922 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18923 | #ifdef __cplusplus |
| 18924 | extern "C" |
| 18925 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18926 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18927 | int |
| 18928 | main () |
| 18929 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18930 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18931 | ; |
| 18932 | return 0; |
| 18933 | } |
| 18934 | _ACEOF |
| 18935 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18936 | if { (ac_try="$ac_link" |
| 18937 | case "(($ac_try" in |
| 18938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18939 | *) ac_try_echo=$ac_try;; |
| 18940 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18942 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18943 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18945 | rm -f conftest.er1 |
| 18946 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18948 | (exit $ac_status); } && { |
| 18949 | test -z "$ac_c_werror_flag" || |
| 18950 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18951 | } && test -s conftest$ac_exeext && |
| 18952 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18953 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18954 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18955 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18957 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18958 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18959 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18960 | |
| 18961 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18962 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18963 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18964 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18965 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 18966 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } |
| 18967 | if test $ac_cv_lib_util_openpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18968 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18969 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18970 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18971 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18972 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18973 | { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 18974 | 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] | 18975 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 18976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18977 | else |
| 18978 | ac_check_lib_save_LIBS=$LIBS |
| 18979 | LIBS="-lbsd $LIBS" |
| 18980 | cat >conftest.$ac_ext <<_ACEOF |
| 18981 | /* confdefs.h. */ |
| 18982 | _ACEOF |
| 18983 | cat confdefs.h >>conftest.$ac_ext |
| 18984 | cat >>conftest.$ac_ext <<_ACEOF |
| 18985 | /* end confdefs.h. */ |
| 18986 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18987 | /* Override any GCC internal prototype to avoid an error. |
| 18988 | Use char because int might match the return type of a GCC |
| 18989 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18990 | #ifdef __cplusplus |
| 18991 | extern "C" |
| 18992 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18993 | char openpty (); |
| 18994 | int |
| 18995 | main () |
| 18996 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18997 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18998 | ; |
| 18999 | return 0; |
| 19000 | } |
| 19001 | _ACEOF |
| 19002 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19003 | if { (ac_try="$ac_link" |
| 19004 | case "(($ac_try" in |
| 19005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19006 | *) ac_try_echo=$ac_try;; |
| 19007 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19009 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19010 | ac_status=$? |
| 19011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19012 | rm -f conftest.er1 |
| 19013 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19015 | (exit $ac_status); } && { |
| 19016 | test -z "$ac_c_werror_flag" || |
| 19017 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19018 | } && test -s conftest$ac_exeext && |
| 19019 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19020 | ac_cv_lib_bsd_openpty=yes |
| 19021 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19022 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19024 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19025 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19026 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19027 | |
| 19028 | 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] | 19029 | conftest$ac_exeext conftest.$ac_ext |
| 19030 | LIBS=$ac_check_lib_save_LIBS |
| 19031 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19032 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 19033 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; } |
| 19034 | if test $ac_cv_lib_bsd_openpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19035 | cat >>confdefs.h <<\_ACEOF |
| 19036 | #define HAVE_OPENPTY 1 |
| 19037 | _ACEOF |
| 19038 | LIBS="$LIBS -lbsd" |
| 19039 | fi |
| 19040 | |
| 19041 | |
| 19042 | fi |
| 19043 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19044 | |
| 19045 | fi |
| 19046 | done |
| 19047 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19048 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19049 | for ac_func in forkpty |
| 19050 | do |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19051 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19052 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19053 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19054 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19056 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19057 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19058 | /* confdefs.h. */ |
| 19059 | _ACEOF |
| 19060 | cat confdefs.h >>conftest.$ac_ext |
| 19061 | cat >>conftest.$ac_ext <<_ACEOF |
| 19062 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19063 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19064 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19065 | #define $ac_func innocuous_$ac_func |
| 19066 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19067 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19068 | which can conflict with char $ac_func (); below. |
| 19069 | 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] | 19070 | <limits.h> exists even on freestanding compilers. */ |
| 19071 | |
| 19072 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19073 | # include <limits.h> |
| 19074 | #else |
| 19075 | # include <assert.h> |
| 19076 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19077 | |
| 19078 | #undef $ac_func |
| 19079 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19080 | /* Override any GCC internal prototype to avoid an error. |
| 19081 | Use char because int might match the return type of a GCC |
| 19082 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19083 | #ifdef __cplusplus |
| 19084 | extern "C" |
| 19085 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19086 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19087 | /* The GNU C library defines this for functions which it implements |
| 19088 | to always fail with ENOSYS. Some functions are actually named |
| 19089 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19090 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19091 | choke me |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19092 | #endif |
| 19093 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19094 | int |
| 19095 | main () |
| 19096 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19097 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19098 | ; |
| 19099 | return 0; |
| 19100 | } |
| 19101 | _ACEOF |
| 19102 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19103 | if { (ac_try="$ac_link" |
| 19104 | case "(($ac_try" in |
| 19105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19106 | *) ac_try_echo=$ac_try;; |
| 19107 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19109 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19110 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19111 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19112 | rm -f conftest.er1 |
| 19113 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19115 | (exit $ac_status); } && { |
| 19116 | test -z "$ac_c_werror_flag" || |
| 19117 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19118 | } && test -s conftest$ac_exeext && |
| 19119 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19120 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19121 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19122 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19123 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19124 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19125 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19126 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19127 | |
| 19128 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19129 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19130 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19131 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19132 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19133 | echo "${ECHO_T}$ac_res" >&6; } |
| 19134 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19135 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19136 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19137 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19138 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19139 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19140 | { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 19141 | 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] | 19142 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19144 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19145 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19146 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19147 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19148 | /* confdefs.h. */ |
| 19149 | _ACEOF |
| 19150 | cat confdefs.h >>conftest.$ac_ext |
| 19151 | cat >>conftest.$ac_ext <<_ACEOF |
| 19152 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19153 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19154 | /* Override any GCC internal prototype to avoid an error. |
| 19155 | Use char because int might match the return type of a GCC |
| 19156 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19157 | #ifdef __cplusplus |
| 19158 | extern "C" |
| 19159 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19160 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19161 | int |
| 19162 | main () |
| 19163 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19164 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19165 | ; |
| 19166 | return 0; |
| 19167 | } |
| 19168 | _ACEOF |
| 19169 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19170 | if { (ac_try="$ac_link" |
| 19171 | case "(($ac_try" in |
| 19172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19173 | *) ac_try_echo=$ac_try;; |
| 19174 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19176 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19177 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19179 | rm -f conftest.er1 |
| 19180 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19182 | (exit $ac_status); } && { |
| 19183 | test -z "$ac_c_werror_flag" || |
| 19184 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19185 | } && test -s conftest$ac_exeext && |
| 19186 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19187 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19188 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19189 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19191 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19192 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19193 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19194 | |
| 19195 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19196 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19197 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19198 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19199 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 19200 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; } |
| 19201 | if test $ac_cv_lib_util_forkpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19202 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19203 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19204 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19205 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19206 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19207 | { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 19208 | 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] | 19209 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19211 | else |
| 19212 | ac_check_lib_save_LIBS=$LIBS |
| 19213 | LIBS="-lbsd $LIBS" |
| 19214 | cat >conftest.$ac_ext <<_ACEOF |
| 19215 | /* confdefs.h. */ |
| 19216 | _ACEOF |
| 19217 | cat confdefs.h >>conftest.$ac_ext |
| 19218 | cat >>conftest.$ac_ext <<_ACEOF |
| 19219 | /* end confdefs.h. */ |
| 19220 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19221 | /* Override any GCC internal prototype to avoid an error. |
| 19222 | Use char because int might match the return type of a GCC |
| 19223 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19224 | #ifdef __cplusplus |
| 19225 | extern "C" |
| 19226 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19227 | char forkpty (); |
| 19228 | int |
| 19229 | main () |
| 19230 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19231 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19232 | ; |
| 19233 | return 0; |
| 19234 | } |
| 19235 | _ACEOF |
| 19236 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19237 | if { (ac_try="$ac_link" |
| 19238 | case "(($ac_try" in |
| 19239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19240 | *) ac_try_echo=$ac_try;; |
| 19241 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19243 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19244 | ac_status=$? |
| 19245 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19246 | rm -f conftest.er1 |
| 19247 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19249 | (exit $ac_status); } && { |
| 19250 | test -z "$ac_c_werror_flag" || |
| 19251 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19252 | } && test -s conftest$ac_exeext && |
| 19253 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19254 | ac_cv_lib_bsd_forkpty=yes |
| 19255 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19256 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19258 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19259 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19260 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19261 | |
| 19262 | 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] | 19263 | conftest$ac_exeext conftest.$ac_ext |
| 19264 | LIBS=$ac_check_lib_save_LIBS |
| 19265 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19266 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 19267 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; } |
| 19268 | if test $ac_cv_lib_bsd_forkpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19269 | cat >>confdefs.h <<\_ACEOF |
| 19270 | #define HAVE_FORKPTY 1 |
| 19271 | _ACEOF |
| 19272 | LIBS="$LIBS -lbsd" |
| 19273 | fi |
| 19274 | |
| 19275 | |
| 19276 | fi |
| 19277 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19278 | |
| 19279 | fi |
| 19280 | done |
| 19281 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19282 | |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 19283 | # Stuff for expat. |
| 19284 | |
| 19285 | for ac_func in memmove |
| 19286 | do |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19287 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19288 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19289 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 19290 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 19292 | else |
| 19293 | cat >conftest.$ac_ext <<_ACEOF |
| 19294 | /* confdefs.h. */ |
| 19295 | _ACEOF |
| 19296 | cat confdefs.h >>conftest.$ac_ext |
| 19297 | cat >>conftest.$ac_ext <<_ACEOF |
| 19298 | /* end confdefs.h. */ |
| 19299 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19300 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19301 | #define $ac_func innocuous_$ac_func |
| 19302 | |
| 19303 | /* System header to define __stub macros and hopefully few prototypes, |
| 19304 | which can conflict with char $ac_func (); below. |
| 19305 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19306 | <limits.h> exists even on freestanding compilers. */ |
| 19307 | |
| 19308 | #ifdef __STDC__ |
| 19309 | # include <limits.h> |
| 19310 | #else |
| 19311 | # include <assert.h> |
| 19312 | #endif |
| 19313 | |
| 19314 | #undef $ac_func |
| 19315 | |
| 19316 | /* Override any GCC internal prototype to avoid an error. |
| 19317 | Use char because int might match the return type of a GCC |
| 19318 | builtin and then its argument prototype would still apply. */ |
| 19319 | #ifdef __cplusplus |
| 19320 | extern "C" |
| 19321 | #endif |
| 19322 | char $ac_func (); |
| 19323 | /* The GNU C library defines this for functions which it implements |
| 19324 | to always fail with ENOSYS. Some functions are actually named |
| 19325 | something starting with __ and the normal name is an alias. */ |
| 19326 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 19327 | choke me |
| 19328 | #endif |
| 19329 | |
| 19330 | int |
| 19331 | main () |
| 19332 | { |
| 19333 | return $ac_func (); |
| 19334 | ; |
| 19335 | return 0; |
| 19336 | } |
| 19337 | _ACEOF |
| 19338 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19339 | if { (ac_try="$ac_link" |
| 19340 | case "(($ac_try" in |
| 19341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19342 | *) ac_try_echo=$ac_try;; |
| 19343 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 19345 | (eval "$ac_link") 2>conftest.er1 |
| 19346 | ac_status=$? |
| 19347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19348 | rm -f conftest.er1 |
| 19349 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 19351 | (exit $ac_status); } && { |
| 19352 | test -z "$ac_c_werror_flag" || |
| 19353 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19354 | } && test -s conftest$ac_exeext && |
| 19355 | $as_test_x conftest$ac_exeext; then |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 19356 | eval "$as_ac_var=yes" |
| 19357 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19358 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 19359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19360 | |
| 19361 | eval "$as_ac_var=no" |
| 19362 | fi |
| 19363 | |
| 19364 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19365 | conftest$ac_exeext conftest.$ac_ext |
| 19366 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19367 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19368 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19369 | echo "${ECHO_T}$ac_res" >&6; } |
| 19370 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 19371 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19372 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 19373 | _ACEOF |
| 19374 | |
| 19375 | fi |
| 19376 | done |
| 19377 | |
| 19378 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19379 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19380 | |
| 19381 | |
| 19382 | |
| 19383 | |
| 19384 | |
| 19385 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19386 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 19387 | do |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19388 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19389 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19390 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19391 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 19393 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19394 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19395 | /* confdefs.h. */ |
| 19396 | _ACEOF |
| 19397 | cat confdefs.h >>conftest.$ac_ext |
| 19398 | cat >>conftest.$ac_ext <<_ACEOF |
| 19399 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19400 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19401 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19402 | #define $ac_func innocuous_$ac_func |
| 19403 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 19404 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19405 | which can conflict with char $ac_func (); below. |
| 19406 | 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] | 19407 | <limits.h> exists even on freestanding compilers. */ |
| 19408 | |
| 19409 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19410 | # include <limits.h> |
| 19411 | #else |
| 19412 | # include <assert.h> |
| 19413 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19414 | |
| 19415 | #undef $ac_func |
| 19416 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19417 | /* Override any GCC internal prototype to avoid an error. |
| 19418 | Use char because int might match the return type of a GCC |
| 19419 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19420 | #ifdef __cplusplus |
| 19421 | extern "C" |
| 19422 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19423 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 19424 | /* The GNU C library defines this for functions which it implements |
| 19425 | to always fail with ENOSYS. Some functions are actually named |
| 19426 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19427 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 19428 | choke me |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 19429 | #endif |
| 19430 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19431 | int |
| 19432 | main () |
| 19433 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19434 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19435 | ; |
| 19436 | return 0; |
| 19437 | } |
| 19438 | _ACEOF |
| 19439 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19440 | if { (ac_try="$ac_link" |
| 19441 | case "(($ac_try" in |
| 19442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19443 | *) ac_try_echo=$ac_try;; |
| 19444 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19446 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19447 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19449 | rm -f conftest.er1 |
| 19450 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19452 | (exit $ac_status); } && { |
| 19453 | test -z "$ac_c_werror_flag" || |
| 19454 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19455 | } && test -s conftest$ac_exeext && |
| 19456 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19457 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19458 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19459 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19461 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19462 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19463 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19464 | |
| 19465 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19466 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19467 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19468 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19469 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19470 | echo "${ECHO_T}$ac_res" >&6; } |
| 19471 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19472 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19473 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19474 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19475 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19476 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19477 | done |
| 19478 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19479 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19480 | |
| 19481 | |
| 19482 | |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 19483 | for ac_func in dup2 getcwd strdup |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 19484 | do |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19485 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19486 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19487 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19488 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19490 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19491 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19492 | /* confdefs.h. */ |
| 19493 | _ACEOF |
| 19494 | cat confdefs.h >>conftest.$ac_ext |
| 19495 | cat >>conftest.$ac_ext <<_ACEOF |
| 19496 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19497 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19498 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19499 | #define $ac_func innocuous_$ac_func |
| 19500 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19501 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19502 | which can conflict with char $ac_func (); below. |
| 19503 | 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] | 19504 | <limits.h> exists even on freestanding compilers. */ |
| 19505 | |
| 19506 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19507 | # include <limits.h> |
| 19508 | #else |
| 19509 | # include <assert.h> |
| 19510 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19511 | |
| 19512 | #undef $ac_func |
| 19513 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19514 | /* Override any GCC internal prototype to avoid an error. |
| 19515 | Use char because int might match the return type of a GCC |
| 19516 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19517 | #ifdef __cplusplus |
| 19518 | extern "C" |
| 19519 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19520 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19521 | /* The GNU C library defines this for functions which it implements |
| 19522 | to always fail with ENOSYS. Some functions are actually named |
| 19523 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19524 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19525 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19526 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19527 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19528 | int |
| 19529 | main () |
| 19530 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19531 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19532 | ; |
| 19533 | return 0; |
| 19534 | } |
| 19535 | _ACEOF |
| 19536 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19537 | if { (ac_try="$ac_link" |
| 19538 | case "(($ac_try" in |
| 19539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19540 | *) ac_try_echo=$ac_try;; |
| 19541 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19543 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19544 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19545 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19546 | rm -f conftest.er1 |
| 19547 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19549 | (exit $ac_status); } && { |
| 19550 | test -z "$ac_c_werror_flag" || |
| 19551 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19552 | } && test -s conftest$ac_exeext && |
| 19553 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19554 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19555 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19556 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19558 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19559 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19560 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19561 | |
| 19562 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19563 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19564 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19565 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19566 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19567 | echo "${ECHO_T}$ac_res" >&6; } |
| 19568 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19569 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19570 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19571 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19572 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19573 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19574 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19575 | *" $ac_func.$ac_objext "* ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19576 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 19577 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19578 | esac |
| 19579 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19580 | fi |
| 19581 | done |
| 19582 | |
| 19583 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19584 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19585 | for ac_func in getpgrp |
| 19586 | do |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19587 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19588 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19589 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19590 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19592 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19593 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19594 | /* confdefs.h. */ |
| 19595 | _ACEOF |
| 19596 | cat confdefs.h >>conftest.$ac_ext |
| 19597 | cat >>conftest.$ac_ext <<_ACEOF |
| 19598 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19599 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19600 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19601 | #define $ac_func innocuous_$ac_func |
| 19602 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19603 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19604 | which can conflict with char $ac_func (); below. |
| 19605 | 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] | 19606 | <limits.h> exists even on freestanding compilers. */ |
| 19607 | |
| 19608 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19609 | # include <limits.h> |
| 19610 | #else |
| 19611 | # include <assert.h> |
| 19612 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19613 | |
| 19614 | #undef $ac_func |
| 19615 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19616 | /* Override any GCC internal prototype to avoid an error. |
| 19617 | Use char because int might match the return type of a GCC |
| 19618 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19619 | #ifdef __cplusplus |
| 19620 | extern "C" |
| 19621 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19622 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19623 | /* The GNU C library defines this for functions which it implements |
| 19624 | to always fail with ENOSYS. Some functions are actually named |
| 19625 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19626 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19627 | choke me |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 19628 | #endif |
| 19629 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19630 | int |
| 19631 | main () |
| 19632 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19633 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19634 | ; |
| 19635 | return 0; |
| 19636 | } |
| 19637 | _ACEOF |
| 19638 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19639 | if { (ac_try="$ac_link" |
| 19640 | case "(($ac_try" in |
| 19641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19642 | *) ac_try_echo=$ac_try;; |
| 19643 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19645 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19646 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19648 | rm -f conftest.er1 |
| 19649 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19651 | (exit $ac_status); } && { |
| 19652 | test -z "$ac_c_werror_flag" || |
| 19653 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19654 | } && test -s conftest$ac_exeext && |
| 19655 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19656 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19657 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19658 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19660 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19661 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19662 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19663 | |
| 19664 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19665 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19666 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19667 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19668 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19669 | echo "${ECHO_T}$ac_res" >&6; } |
| 19670 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19671 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19672 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19673 | _ACEOF |
| 19674 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19675 | /* confdefs.h. */ |
| 19676 | _ACEOF |
| 19677 | cat confdefs.h >>conftest.$ac_ext |
| 19678 | cat >>conftest.$ac_ext <<_ACEOF |
| 19679 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19680 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19681 | int |
| 19682 | main () |
| 19683 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19684 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19685 | ; |
| 19686 | return 0; |
| 19687 | } |
| 19688 | _ACEOF |
| 19689 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19690 | if { (ac_try="$ac_compile" |
| 19691 | case "(($ac_try" in |
| 19692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19693 | *) ac_try_echo=$ac_try;; |
| 19694 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19696 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19697 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19698 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19699 | rm -f conftest.er1 |
| 19700 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19702 | (exit $ac_status); } && { |
| 19703 | test -z "$ac_c_werror_flag" || |
| 19704 | test ! -s conftest.err |
| 19705 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19706 | |
| 19707 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19708 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19709 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19710 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19711 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 19712 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19713 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19715 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19716 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19717 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19718 | |
| 19719 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 19720 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19721 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 19722 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19723 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19724 | |
| 19725 | for ac_func in setpgrp |
| 19726 | do |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19727 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19728 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19729 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19730 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19732 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19733 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19734 | /* confdefs.h. */ |
| 19735 | _ACEOF |
| 19736 | cat confdefs.h >>conftest.$ac_ext |
| 19737 | cat >>conftest.$ac_ext <<_ACEOF |
| 19738 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19739 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19740 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19741 | #define $ac_func innocuous_$ac_func |
| 19742 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19743 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19744 | which can conflict with char $ac_func (); below. |
| 19745 | 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] | 19746 | <limits.h> exists even on freestanding compilers. */ |
| 19747 | |
| 19748 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19749 | # include <limits.h> |
| 19750 | #else |
| 19751 | # include <assert.h> |
| 19752 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19753 | |
| 19754 | #undef $ac_func |
| 19755 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19756 | /* Override any GCC internal prototype to avoid an error. |
| 19757 | Use char because int might match the return type of a GCC |
| 19758 | builtin and then its argument prototype would still apply. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19759 | #ifdef __cplusplus |
| 19760 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19761 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19762 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19763 | /* The GNU C library defines this for functions which it implements |
| 19764 | to always fail with ENOSYS. Some functions are actually named |
| 19765 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19766 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19767 | choke me |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19768 | #endif |
| 19769 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19770 | int |
| 19771 | main () |
| 19772 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19773 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19774 | ; |
| 19775 | return 0; |
| 19776 | } |
| 19777 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19778 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19779 | if { (ac_try="$ac_link" |
| 19780 | case "(($ac_try" in |
| 19781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19782 | *) ac_try_echo=$ac_try;; |
| 19783 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19785 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19786 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19788 | rm -f conftest.er1 |
| 19789 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19791 | (exit $ac_status); } && { |
| 19792 | test -z "$ac_c_werror_flag" || |
| 19793 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19794 | } && test -s conftest$ac_exeext && |
| 19795 | $as_test_x conftest$ac_exeext; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19796 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19797 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19798 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19800 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19801 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19802 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19803 | |
| 19804 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19805 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19806 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19807 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19808 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19809 | echo "${ECHO_T}$ac_res" >&6; } |
| 19810 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19811 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19812 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19813 | _ACEOF |
| 19814 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19815 | /* confdefs.h. */ |
| 19816 | _ACEOF |
| 19817 | cat confdefs.h >>conftest.$ac_ext |
| 19818 | cat >>conftest.$ac_ext <<_ACEOF |
| 19819 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19820 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19821 | int |
| 19822 | main () |
| 19823 | { |
| 19824 | setpgrp(0,0); |
| 19825 | ; |
| 19826 | return 0; |
| 19827 | } |
| 19828 | _ACEOF |
| 19829 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19830 | if { (ac_try="$ac_compile" |
| 19831 | case "(($ac_try" in |
| 19832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19833 | *) ac_try_echo=$ac_try;; |
| 19834 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19836 | (eval "$ac_compile") 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19837 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19838 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19839 | rm -f conftest.er1 |
| 19840 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19842 | (exit $ac_status); } && { |
| 19843 | test -z "$ac_c_werror_flag" || |
| 19844 | test ! -s conftest.err |
| 19845 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19846 | |
| 19847 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19848 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19849 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 19850 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19851 | |
| 19852 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19853 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19855 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19856 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 19857 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19858 | |
| 19859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19860 | |
| 19861 | fi |
| 19862 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 19863 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19864 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 19865 | for ac_func in gettimeofday |
| 19866 | do |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19867 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19868 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19869 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19870 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19872 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19873 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19874 | /* confdefs.h. */ |
| 19875 | _ACEOF |
| 19876 | cat confdefs.h >>conftest.$ac_ext |
| 19877 | cat >>conftest.$ac_ext <<_ACEOF |
| 19878 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19879 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19880 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19881 | #define $ac_func innocuous_$ac_func |
| 19882 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19883 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19884 | which can conflict with char $ac_func (); below. |
| 19885 | 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] | 19886 | <limits.h> exists even on freestanding compilers. */ |
| 19887 | |
| 19888 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19889 | # include <limits.h> |
| 19890 | #else |
| 19891 | # include <assert.h> |
| 19892 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19893 | |
| 19894 | #undef $ac_func |
| 19895 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19896 | /* Override any GCC internal prototype to avoid an error. |
| 19897 | Use char because int might match the return type of a GCC |
| 19898 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19899 | #ifdef __cplusplus |
| 19900 | extern "C" |
| 19901 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19902 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19903 | /* The GNU C library defines this for functions which it implements |
| 19904 | to always fail with ENOSYS. Some functions are actually named |
| 19905 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19906 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19907 | choke me |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19908 | #endif |
| 19909 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19910 | int |
| 19911 | main () |
| 19912 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19913 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19914 | ; |
| 19915 | return 0; |
| 19916 | } |
| 19917 | _ACEOF |
| 19918 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19919 | if { (ac_try="$ac_link" |
| 19920 | case "(($ac_try" in |
| 19921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19922 | *) ac_try_echo=$ac_try;; |
| 19923 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19925 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19926 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19928 | rm -f conftest.er1 |
| 19929 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19931 | (exit $ac_status); } && { |
| 19932 | test -z "$ac_c_werror_flag" || |
| 19933 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19934 | } && test -s conftest$ac_exeext && |
| 19935 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19936 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19937 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19938 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19940 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19941 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19942 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19943 | |
| 19944 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19945 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19946 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19947 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19948 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19949 | echo "${ECHO_T}$ac_res" >&6; } |
| 19950 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19951 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19952 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19953 | _ACEOF |
| 19954 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19955 | /* confdefs.h. */ |
| 19956 | _ACEOF |
| 19957 | cat confdefs.h >>conftest.$ac_ext |
| 19958 | cat >>conftest.$ac_ext <<_ACEOF |
| 19959 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19960 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19961 | int |
| 19962 | main () |
| 19963 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19964 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19965 | ; |
| 19966 | return 0; |
| 19967 | } |
| 19968 | _ACEOF |
| 19969 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19970 | if { (ac_try="$ac_compile" |
| 19971 | case "(($ac_try" in |
| 19972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19973 | *) ac_try_echo=$ac_try;; |
| 19974 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19976 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19977 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19978 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19979 | rm -f conftest.er1 |
| 19980 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19982 | (exit $ac_status); } && { |
| 19983 | test -z "$ac_c_werror_flag" || |
| 19984 | test ! -s conftest.err |
| 19985 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19986 | : |
| 19987 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 19988 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19990 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19991 | |
| 19992 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19993 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19994 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19995 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19996 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19997 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19998 | |
| 19999 | 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] | 20000 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20001 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20002 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20003 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20004 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20005 | { echo "$as_me:$LINENO: checking for major" >&5 |
| 20006 | echo $ECHO_N "checking for major... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20007 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20008 | /* confdefs.h. */ |
| 20009 | _ACEOF |
| 20010 | cat confdefs.h >>conftest.$ac_ext |
| 20011 | cat >>conftest.$ac_ext <<_ACEOF |
| 20012 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20013 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 20014 | #if defined(MAJOR_IN_MKDEV) |
| 20015 | #include <sys/mkdev.h> |
| 20016 | #elif defined(MAJOR_IN_SYSMACROS) |
| 20017 | #include <sys/sysmacros.h> |
| 20018 | #else |
| 20019 | #include <sys/types.h> |
| 20020 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20021 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20022 | int |
| 20023 | main () |
| 20024 | { |
| 20025 | |
| 20026 | makedev(major(0),minor(0)); |
| 20027 | |
| 20028 | ; |
| 20029 | return 0; |
| 20030 | } |
| 20031 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 20032 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20033 | if { (ac_try="$ac_link" |
| 20034 | case "(($ac_try" in |
| 20035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20036 | *) ac_try_echo=$ac_try;; |
| 20037 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20039 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20040 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20041 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20042 | rm -f conftest.er1 |
| 20043 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20045 | (exit $ac_status); } && { |
| 20046 | test -z "$ac_c_werror_flag" || |
| 20047 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20048 | } && test -s conftest$ac_exeext && |
| 20049 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20050 | |
| 20051 | |
| 20052 | cat >>confdefs.h <<\_ACEOF |
| 20053 | #define HAVE_DEVICE_MACROS 1 |
| 20054 | _ACEOF |
| 20055 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20056 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20057 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20058 | |
| 20059 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20060 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20062 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20063 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20064 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20065 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20066 | |
| 20067 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20068 | |
| 20069 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20070 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20071 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20072 | # 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] | 20073 | # for [no]getaddrinfo in netdb.h. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20074 | { echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 20075 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20076 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20077 | /* confdefs.h. */ |
| 20078 | _ACEOF |
| 20079 | cat confdefs.h >>conftest.$ac_ext |
| 20080 | cat >>conftest.$ac_ext <<_ACEOF |
| 20081 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20082 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 20083 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20084 | #include <sys/socket.h> |
| 20085 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 20086 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20087 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20088 | int |
| 20089 | main () |
| 20090 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20091 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20092 | ; |
| 20093 | return 0; |
| 20094 | } |
| 20095 | _ACEOF |
| 20096 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20097 | if { (ac_try="$ac_link" |
| 20098 | case "(($ac_try" in |
| 20099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20100 | *) ac_try_echo=$ac_try;; |
| 20101 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20103 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20104 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20106 | rm -f conftest.er1 |
| 20107 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20109 | (exit $ac_status); } && { |
| 20110 | test -z "$ac_c_werror_flag" || |
| 20111 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20112 | } && test -s conftest$ac_exeext && |
| 20113 | $as_test_x conftest$ac_exeext; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 20114 | have_getaddrinfo=yes |
| 20115 | else |
| 20116 | echo "$as_me: failed program was:" >&5 |
| 20117 | sed 's/^/| /' conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20118 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 20119 | have_getaddrinfo=no |
| 20120 | fi |
| 20121 | |
| 20122 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20123 | conftest$ac_exeext conftest.$ac_ext |
| 20124 | { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5 |
| 20125 | echo "${ECHO_T}$have_getaddrinfo" >&6; } |
| 20126 | if test $have_getaddrinfo = yes |
| 20127 | then |
| 20128 | { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20129 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 20130 | if test "${ac_cv_buggy_getaddrinfo+set}" = set; then |
| 20131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20132 | else |
| 20133 | if test "$cross_compiling" = yes; then |
| 20134 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20135 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20136 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20137 | /* confdefs.h. */ |
| 20138 | _ACEOF |
| 20139 | cat confdefs.h >>conftest.$ac_ext |
| 20140 | cat >>conftest.$ac_ext <<_ACEOF |
| 20141 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20142 | |
| 20143 | #include <sys/types.h> |
| 20144 | #include <netdb.h> |
| 20145 | #include <string.h> |
| 20146 | #include <sys/socket.h> |
| 20147 | #include <netinet/in.h> |
| 20148 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 20149 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20150 | { |
| 20151 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 20152 | struct addrinfo hints, *ai, *aitop; |
| 20153 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 20154 | |
| 20155 | for (passive = 0; passive <= 1; passive++) { |
| 20156 | memset(&hints, 0, sizeof(hints)); |
| 20157 | hints.ai_family = AF_UNSPEC; |
| 20158 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 20159 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 20160 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20161 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 20162 | (void)gai_strerror(gaierr); |
| 20163 | goto bad; |
| 20164 | } |
| 20165 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 20166 | if (ai->ai_addr == NULL || |
| 20167 | ai->ai_addrlen == 0 || |
| 20168 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 20169 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 20170 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 20171 | goto bad; |
| 20172 | } |
| 20173 | switch (ai->ai_family) { |
| 20174 | case AF_INET: |
| 20175 | if (strcmp(strport, "54321") != 0) { |
| 20176 | goto bad; |
| 20177 | } |
| 20178 | if (passive) { |
| 20179 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 20180 | goto bad; |
| 20181 | } |
| 20182 | } else { |
| 20183 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 20184 | goto bad; |
| 20185 | } |
| 20186 | } |
| 20187 | inet4++; |
| 20188 | break; |
| 20189 | case AF_INET6: |
| 20190 | if (strcmp(strport, "54321") != 0) { |
| 20191 | goto bad; |
| 20192 | } |
| 20193 | if (passive) { |
| 20194 | if (strcmp(straddr, "::") != 0) { |
| 20195 | goto bad; |
| 20196 | } |
| 20197 | } else { |
| 20198 | if (strcmp(straddr, "::1") != 0) { |
| 20199 | goto bad; |
| 20200 | } |
| 20201 | } |
| 20202 | inet6++; |
| 20203 | break; |
| 20204 | case AF_UNSPEC: |
| 20205 | goto bad; |
| 20206 | break; |
| 20207 | default: |
| 20208 | /* another family support? */ |
| 20209 | break; |
| 20210 | } |
| 20211 | } |
| 20212 | } |
| 20213 | |
| 20214 | if (!(inet4 == 0 || inet4 == 2)) |
| 20215 | goto bad; |
| 20216 | if (!(inet6 == 0 || inet6 == 2)) |
| 20217 | goto bad; |
| 20218 | |
| 20219 | if (aitop) |
| 20220 | freeaddrinfo(aitop); |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 20221 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20222 | |
| 20223 | bad: |
| 20224 | if (aitop) |
| 20225 | freeaddrinfo(aitop); |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 20226 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20227 | } |
| 20228 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20229 | _ACEOF |
| 20230 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20231 | if { (ac_try="$ac_link" |
| 20232 | case "(($ac_try" in |
| 20233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20234 | *) ac_try_echo=$ac_try;; |
| 20235 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20237 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20238 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20240 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20241 | { (case "(($ac_try" in |
| 20242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20243 | *) ac_try_echo=$ac_try;; |
| 20244 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20246 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20247 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20249 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 20250 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20251 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20252 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20253 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20255 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20256 | ( exit $ac_status ) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 20257 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20258 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20259 | 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] | 20260 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20261 | |
| 20262 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 20263 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20264 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20265 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20266 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 20267 | if test $have_getaddrinfo = no -o $ac_cv_buggy_getaddrinfo = yes |
| 20268 | then |
| 20269 | if test $ipv6 = yes |
| 20270 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20271 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 20272 | echo ' or you can specify "--disable-ipv6"'. |
| 20273 | exit 1 |
| 20274 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20275 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20276 | |
| 20277 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20278 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20279 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20280 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20281 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20282 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 20283 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20284 | do |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20285 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20286 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20287 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20288 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20290 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20291 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20292 | /* confdefs.h. */ |
| 20293 | _ACEOF |
| 20294 | cat confdefs.h >>conftest.$ac_ext |
| 20295 | cat >>conftest.$ac_ext <<_ACEOF |
| 20296 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20297 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20298 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20299 | #define $ac_func innocuous_$ac_func |
| 20300 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20301 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20302 | which can conflict with char $ac_func (); below. |
| 20303 | 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] | 20304 | <limits.h> exists even on freestanding compilers. */ |
| 20305 | |
| 20306 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20307 | # include <limits.h> |
| 20308 | #else |
| 20309 | # include <assert.h> |
| 20310 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20311 | |
| 20312 | #undef $ac_func |
| 20313 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20314 | /* Override any GCC internal prototype to avoid an error. |
| 20315 | Use char because int might match the return type of a GCC |
| 20316 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20317 | #ifdef __cplusplus |
| 20318 | extern "C" |
| 20319 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20320 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20321 | /* The GNU C library defines this for functions which it implements |
| 20322 | to always fail with ENOSYS. Some functions are actually named |
| 20323 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20324 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20325 | choke me |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20326 | #endif |
| 20327 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20328 | int |
| 20329 | main () |
| 20330 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20331 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20332 | ; |
| 20333 | return 0; |
| 20334 | } |
| 20335 | _ACEOF |
| 20336 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20337 | if { (ac_try="$ac_link" |
| 20338 | case "(($ac_try" in |
| 20339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20340 | *) ac_try_echo=$ac_try;; |
| 20341 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20343 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20344 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20346 | rm -f conftest.er1 |
| 20347 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20349 | (exit $ac_status); } && { |
| 20350 | test -z "$ac_c_werror_flag" || |
| 20351 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20352 | } && test -s conftest$ac_exeext && |
| 20353 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20354 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20355 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20356 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20358 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20359 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20360 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20361 | |
| 20362 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20363 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20364 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20365 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20366 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20367 | echo "${ECHO_T}$ac_res" >&6; } |
| 20368 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20369 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20370 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20371 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20372 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20373 | fi |
| 20374 | done |
| 20375 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20376 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20377 | # checks for structures |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20378 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 20379 | 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] | 20380 | if test "${ac_cv_header_time+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20382 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20383 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20384 | /* confdefs.h. */ |
| 20385 | _ACEOF |
| 20386 | cat confdefs.h >>conftest.$ac_ext |
| 20387 | cat >>conftest.$ac_ext <<_ACEOF |
| 20388 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20389 | #include <sys/types.h> |
| 20390 | #include <sys/time.h> |
| 20391 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20392 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20393 | int |
| 20394 | main () |
| 20395 | { |
| 20396 | if ((struct tm *) 0) |
| 20397 | return 0; |
| 20398 | ; |
| 20399 | return 0; |
| 20400 | } |
| 20401 | _ACEOF |
| 20402 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20403 | if { (ac_try="$ac_compile" |
| 20404 | case "(($ac_try" in |
| 20405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20406 | *) ac_try_echo=$ac_try;; |
| 20407 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20409 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20410 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20411 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20412 | rm -f conftest.er1 |
| 20413 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20415 | (exit $ac_status); } && { |
| 20416 | test -z "$ac_c_werror_flag" || |
| 20417 | test ! -s conftest.err |
| 20418 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20419 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20420 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20421 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20423 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20424 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20425 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20426 | |
| 20427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20428 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20429 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 20430 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20431 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20432 | |
| 20433 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20434 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20435 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20436 | |
| 20437 | fi |
| 20438 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20439 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 20440 | 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] | 20441 | if test "${ac_cv_struct_tm+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20443 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20444 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20445 | /* confdefs.h. */ |
| 20446 | _ACEOF |
| 20447 | cat confdefs.h >>conftest.$ac_ext |
| 20448 | cat >>conftest.$ac_ext <<_ACEOF |
| 20449 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20450 | #include <sys/types.h> |
| 20451 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20452 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20453 | int |
| 20454 | main () |
| 20455 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20456 | struct tm tm; |
| 20457 | int *p = &tm.tm_sec; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20458 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20459 | ; |
| 20460 | return 0; |
| 20461 | } |
| 20462 | _ACEOF |
| 20463 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20464 | if { (ac_try="$ac_compile" |
| 20465 | case "(($ac_try" in |
| 20466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20467 | *) ac_try_echo=$ac_try;; |
| 20468 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20470 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20471 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20473 | rm -f conftest.er1 |
| 20474 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20476 | (exit $ac_status); } && { |
| 20477 | test -z "$ac_c_werror_flag" || |
| 20478 | test ! -s conftest.err |
| 20479 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20480 | ac_cv_struct_tm=time.h |
| 20481 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20482 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20484 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20485 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20486 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20487 | |
| 20488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20489 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20490 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 20491 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20492 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20493 | |
| 20494 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20495 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20496 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20497 | |
| 20498 | fi |
| 20499 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20500 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 20501 | 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] | 20502 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20504 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20505 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20506 | /* confdefs.h. */ |
| 20507 | _ACEOF |
| 20508 | cat confdefs.h >>conftest.$ac_ext |
| 20509 | cat >>conftest.$ac_ext <<_ACEOF |
| 20510 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20511 | #include <sys/types.h> |
| 20512 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20513 | |
| 20514 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20515 | int |
| 20516 | main () |
| 20517 | { |
| 20518 | static struct tm ac_aggr; |
| 20519 | if (ac_aggr.tm_zone) |
| 20520 | return 0; |
| 20521 | ; |
| 20522 | return 0; |
| 20523 | } |
| 20524 | _ACEOF |
| 20525 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20526 | if { (ac_try="$ac_compile" |
| 20527 | case "(($ac_try" in |
| 20528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20529 | *) ac_try_echo=$ac_try;; |
| 20530 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20532 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20533 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20534 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20535 | rm -f conftest.er1 |
| 20536 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20538 | (exit $ac_status); } && { |
| 20539 | test -z "$ac_c_werror_flag" || |
| 20540 | test ! -s conftest.err |
| 20541 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20542 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20543 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20544 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20546 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20547 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20548 | /* confdefs.h. */ |
| 20549 | _ACEOF |
| 20550 | cat confdefs.h >>conftest.$ac_ext |
| 20551 | cat >>conftest.$ac_ext <<_ACEOF |
| 20552 | /* end confdefs.h. */ |
| 20553 | #include <sys/types.h> |
| 20554 | #include <$ac_cv_struct_tm> |
| 20555 | |
| 20556 | |
| 20557 | int |
| 20558 | main () |
| 20559 | { |
| 20560 | static struct tm ac_aggr; |
| 20561 | if (sizeof ac_aggr.tm_zone) |
| 20562 | return 0; |
| 20563 | ; |
| 20564 | return 0; |
| 20565 | } |
| 20566 | _ACEOF |
| 20567 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20568 | if { (ac_try="$ac_compile" |
| 20569 | case "(($ac_try" in |
| 20570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20571 | *) ac_try_echo=$ac_try;; |
| 20572 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20574 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20575 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20577 | rm -f conftest.er1 |
| 20578 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20580 | (exit $ac_status); } && { |
| 20581 | test -z "$ac_c_werror_flag" || |
| 20582 | test ! -s conftest.err |
| 20583 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20584 | ac_cv_member_struct_tm_tm_zone=yes |
| 20585 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20586 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20588 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20589 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20590 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20591 | |
| 20592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20593 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20594 | |
| 20595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20596 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20597 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 20598 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 20599 | 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] | 20600 | |
| 20601 | cat >>confdefs.h <<_ACEOF |
| 20602 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 20603 | _ACEOF |
| 20604 | |
| 20605 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20606 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 20607 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20608 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 20609 | |
| 20610 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20611 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20612 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20613 | |
| 20614 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20615 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 20616 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20617 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20619 | else |
| 20620 | cat >conftest.$ac_ext <<_ACEOF |
| 20621 | /* confdefs.h. */ |
| 20622 | _ACEOF |
| 20623 | cat confdefs.h >>conftest.$ac_ext |
| 20624 | cat >>conftest.$ac_ext <<_ACEOF |
| 20625 | /* end confdefs.h. */ |
| 20626 | #include <time.h> |
| 20627 | |
| 20628 | int |
| 20629 | main () |
| 20630 | { |
| 20631 | #ifndef tzname |
| 20632 | (void) tzname; |
| 20633 | #endif |
| 20634 | |
| 20635 | ; |
| 20636 | return 0; |
| 20637 | } |
| 20638 | _ACEOF |
| 20639 | rm -f conftest.$ac_objext |
| 20640 | if { (ac_try="$ac_compile" |
| 20641 | case "(($ac_try" in |
| 20642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20643 | *) ac_try_echo=$ac_try;; |
| 20644 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20646 | (eval "$ac_compile") 2>conftest.er1 |
| 20647 | ac_status=$? |
| 20648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20649 | rm -f conftest.er1 |
| 20650 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20652 | (exit $ac_status); } && { |
| 20653 | test -z "$ac_c_werror_flag" || |
| 20654 | test ! -s conftest.err |
| 20655 | } && test -s conftest.$ac_objext; then |
| 20656 | ac_cv_have_decl_tzname=yes |
| 20657 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20658 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20660 | |
| 20661 | ac_cv_have_decl_tzname=no |
| 20662 | fi |
| 20663 | |
| 20664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20665 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20666 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 20667 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 20668 | if test $ac_cv_have_decl_tzname = yes; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20669 | |
| 20670 | cat >>confdefs.h <<_ACEOF |
| 20671 | #define HAVE_DECL_TZNAME 1 |
| 20672 | _ACEOF |
| 20673 | |
| 20674 | |
| 20675 | else |
| 20676 | cat >>confdefs.h <<_ACEOF |
| 20677 | #define HAVE_DECL_TZNAME 0 |
| 20678 | _ACEOF |
| 20679 | |
| 20680 | |
| 20681 | fi |
| 20682 | |
| 20683 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20684 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 20685 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20686 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20688 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20689 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20690 | /* confdefs.h. */ |
| 20691 | _ACEOF |
| 20692 | cat confdefs.h >>conftest.$ac_ext |
| 20693 | cat >>conftest.$ac_ext <<_ACEOF |
| 20694 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20695 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20696 | #if !HAVE_DECL_TZNAME |
| 20697 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20698 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20699 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20700 | int |
| 20701 | main () |
| 20702 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20703 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20704 | ; |
| 20705 | return 0; |
| 20706 | } |
| 20707 | _ACEOF |
| 20708 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20709 | if { (ac_try="$ac_link" |
| 20710 | case "(($ac_try" in |
| 20711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20712 | *) ac_try_echo=$ac_try;; |
| 20713 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20715 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20716 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20718 | rm -f conftest.er1 |
| 20719 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20721 | (exit $ac_status); } && { |
| 20722 | test -z "$ac_c_werror_flag" || |
| 20723 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20724 | } && test -s conftest$ac_exeext && |
| 20725 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20726 | ac_cv_var_tzname=yes |
| 20727 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20728 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20730 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20731 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20732 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20733 | |
| 20734 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20735 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20736 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20737 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 20738 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20739 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20740 | |
| 20741 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20742 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20743 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20744 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20745 | fi |
| 20746 | fi |
| 20747 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20748 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 20749 | 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] | 20750 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20752 | else |
| 20753 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20754 | /* confdefs.h. */ |
| 20755 | _ACEOF |
| 20756 | cat confdefs.h >>conftest.$ac_ext |
| 20757 | cat >>conftest.$ac_ext <<_ACEOF |
| 20758 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20759 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20760 | int |
| 20761 | main () |
| 20762 | { |
| 20763 | static struct stat ac_aggr; |
| 20764 | if (ac_aggr.st_rdev) |
| 20765 | return 0; |
| 20766 | ; |
| 20767 | return 0; |
| 20768 | } |
| 20769 | _ACEOF |
| 20770 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20771 | if { (ac_try="$ac_compile" |
| 20772 | case "(($ac_try" in |
| 20773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20774 | *) ac_try_echo=$ac_try;; |
| 20775 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20777 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20778 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20780 | rm -f conftest.er1 |
| 20781 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20783 | (exit $ac_status); } && { |
| 20784 | test -z "$ac_c_werror_flag" || |
| 20785 | test ! -s conftest.err |
| 20786 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20787 | ac_cv_member_struct_stat_st_rdev=yes |
| 20788 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20789 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20791 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20792 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20793 | /* confdefs.h. */ |
| 20794 | _ACEOF |
| 20795 | cat confdefs.h >>conftest.$ac_ext |
| 20796 | cat >>conftest.$ac_ext <<_ACEOF |
| 20797 | /* end confdefs.h. */ |
| 20798 | $ac_includes_default |
| 20799 | int |
| 20800 | main () |
| 20801 | { |
| 20802 | static struct stat ac_aggr; |
| 20803 | if (sizeof ac_aggr.st_rdev) |
| 20804 | return 0; |
| 20805 | ; |
| 20806 | return 0; |
| 20807 | } |
| 20808 | _ACEOF |
| 20809 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20810 | if { (ac_try="$ac_compile" |
| 20811 | case "(($ac_try" in |
| 20812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20813 | *) ac_try_echo=$ac_try;; |
| 20814 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20816 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20817 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20819 | rm -f conftest.er1 |
| 20820 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20822 | (exit $ac_status); } && { |
| 20823 | test -z "$ac_c_werror_flag" || |
| 20824 | test ! -s conftest.err |
| 20825 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20826 | ac_cv_member_struct_stat_st_rdev=yes |
| 20827 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20828 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20830 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20831 | ac_cv_member_struct_stat_st_rdev=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20832 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20833 | |
| 20834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20835 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20836 | |
| 20837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20838 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20839 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 20840 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } |
| 20841 | 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] | 20842 | |
| 20843 | cat >>confdefs.h <<_ACEOF |
| 20844 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 20845 | _ACEOF |
| 20846 | |
| 20847 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20848 | fi |
| 20849 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20850 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 20851 | 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] | 20852 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20854 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20855 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20856 | /* confdefs.h. */ |
| 20857 | _ACEOF |
| 20858 | cat confdefs.h >>conftest.$ac_ext |
| 20859 | cat >>conftest.$ac_ext <<_ACEOF |
| 20860 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20861 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20862 | int |
| 20863 | main () |
| 20864 | { |
| 20865 | static struct stat ac_aggr; |
| 20866 | if (ac_aggr.st_blksize) |
| 20867 | return 0; |
| 20868 | ; |
| 20869 | return 0; |
| 20870 | } |
| 20871 | _ACEOF |
| 20872 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20873 | if { (ac_try="$ac_compile" |
| 20874 | case "(($ac_try" in |
| 20875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20876 | *) ac_try_echo=$ac_try;; |
| 20877 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20879 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20880 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20882 | rm -f conftest.er1 |
| 20883 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20885 | (exit $ac_status); } && { |
| 20886 | test -z "$ac_c_werror_flag" || |
| 20887 | test ! -s conftest.err |
| 20888 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20889 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20890 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20891 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20893 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20894 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20895 | /* confdefs.h. */ |
| 20896 | _ACEOF |
| 20897 | cat confdefs.h >>conftest.$ac_ext |
| 20898 | cat >>conftest.$ac_ext <<_ACEOF |
| 20899 | /* end confdefs.h. */ |
| 20900 | $ac_includes_default |
| 20901 | int |
| 20902 | main () |
| 20903 | { |
| 20904 | static struct stat ac_aggr; |
| 20905 | if (sizeof ac_aggr.st_blksize) |
| 20906 | return 0; |
| 20907 | ; |
| 20908 | return 0; |
| 20909 | } |
| 20910 | _ACEOF |
| 20911 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20912 | if { (ac_try="$ac_compile" |
| 20913 | case "(($ac_try" in |
| 20914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20915 | *) ac_try_echo=$ac_try;; |
| 20916 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20918 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20919 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20921 | rm -f conftest.er1 |
| 20922 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20924 | (exit $ac_status); } && { |
| 20925 | test -z "$ac_c_werror_flag" || |
| 20926 | test ! -s conftest.err |
| 20927 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20928 | ac_cv_member_struct_stat_st_blksize=yes |
| 20929 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20930 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20932 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20933 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20934 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20935 | |
| 20936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20937 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20938 | |
| 20939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20940 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20941 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 20942 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } |
| 20943 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20944 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20945 | cat >>confdefs.h <<_ACEOF |
| 20946 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 20947 | _ACEOF |
| 20948 | |
| 20949 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20950 | fi |
| 20951 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20952 | { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 20953 | 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] | 20954 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20956 | else |
| 20957 | cat >conftest.$ac_ext <<_ACEOF |
| 20958 | /* confdefs.h. */ |
| 20959 | _ACEOF |
| 20960 | cat confdefs.h >>conftest.$ac_ext |
| 20961 | cat >>conftest.$ac_ext <<_ACEOF |
| 20962 | /* end confdefs.h. */ |
| 20963 | $ac_includes_default |
| 20964 | int |
| 20965 | main () |
| 20966 | { |
| 20967 | static struct stat ac_aggr; |
| 20968 | if (ac_aggr.st_flags) |
| 20969 | return 0; |
| 20970 | ; |
| 20971 | return 0; |
| 20972 | } |
| 20973 | _ACEOF |
| 20974 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20975 | if { (ac_try="$ac_compile" |
| 20976 | case "(($ac_try" in |
| 20977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20978 | *) ac_try_echo=$ac_try;; |
| 20979 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20981 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20982 | ac_status=$? |
| 20983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20984 | rm -f conftest.er1 |
| 20985 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20987 | (exit $ac_status); } && { |
| 20988 | test -z "$ac_c_werror_flag" || |
| 20989 | test ! -s conftest.err |
| 20990 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20991 | ac_cv_member_struct_stat_st_flags=yes |
| 20992 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 20993 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20995 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20996 | cat >conftest.$ac_ext <<_ACEOF |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +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. */ |
| 21002 | $ac_includes_default |
| 21003 | int |
| 21004 | main () |
| 21005 | { |
| 21006 | static struct stat ac_aggr; |
| 21007 | if (sizeof ac_aggr.st_flags) |
| 21008 | return 0; |
| 21009 | ; |
| 21010 | return 0; |
| 21011 | } |
| 21012 | _ACEOF |
| 21013 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21014 | if { (ac_try="$ac_compile" |
| 21015 | case "(($ac_try" in |
| 21016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21017 | *) ac_try_echo=$ac_try;; |
| 21018 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21020 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21021 | ac_status=$? |
| 21022 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21023 | rm -f conftest.er1 |
| 21024 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21026 | (exit $ac_status); } && { |
| 21027 | test -z "$ac_c_werror_flag" || |
| 21028 | test ! -s conftest.err |
| 21029 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21030 | ac_cv_member_struct_stat_st_flags=yes |
| 21031 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21032 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21034 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21035 | ac_cv_member_struct_stat_st_flags=no |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21036 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21037 | |
| 21038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21039 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21040 | |
| 21041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21042 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21043 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 21044 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; } |
| 21045 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21046 | |
| 21047 | cat >>confdefs.h <<_ACEOF |
| 21048 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 21049 | _ACEOF |
| 21050 | |
| 21051 | |
| 21052 | fi |
| 21053 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21054 | { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 21055 | 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] | 21056 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21058 | else |
| 21059 | cat >conftest.$ac_ext <<_ACEOF |
| 21060 | /* confdefs.h. */ |
| 21061 | _ACEOF |
| 21062 | cat confdefs.h >>conftest.$ac_ext |
| 21063 | cat >>conftest.$ac_ext <<_ACEOF |
| 21064 | /* end confdefs.h. */ |
| 21065 | $ac_includes_default |
| 21066 | int |
| 21067 | main () |
| 21068 | { |
| 21069 | static struct stat ac_aggr; |
| 21070 | if (ac_aggr.st_gen) |
| 21071 | return 0; |
| 21072 | ; |
| 21073 | return 0; |
| 21074 | } |
| 21075 | _ACEOF |
| 21076 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21077 | if { (ac_try="$ac_compile" |
| 21078 | case "(($ac_try" in |
| 21079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21080 | *) ac_try_echo=$ac_try;; |
| 21081 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21083 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21084 | ac_status=$? |
| 21085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21086 | rm -f conftest.er1 |
| 21087 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21089 | (exit $ac_status); } && { |
| 21090 | test -z "$ac_c_werror_flag" || |
| 21091 | test ! -s conftest.err |
| 21092 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21093 | ac_cv_member_struct_stat_st_gen=yes |
| 21094 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21095 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21097 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21098 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21099 | /* confdefs.h. */ |
| 21100 | _ACEOF |
| 21101 | cat confdefs.h >>conftest.$ac_ext |
| 21102 | cat >>conftest.$ac_ext <<_ACEOF |
| 21103 | /* end confdefs.h. */ |
| 21104 | $ac_includes_default |
| 21105 | int |
| 21106 | main () |
| 21107 | { |
| 21108 | static struct stat ac_aggr; |
| 21109 | if (sizeof ac_aggr.st_gen) |
| 21110 | return 0; |
| 21111 | ; |
| 21112 | return 0; |
| 21113 | } |
| 21114 | _ACEOF |
| 21115 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21116 | if { (ac_try="$ac_compile" |
| 21117 | case "(($ac_try" in |
| 21118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21119 | *) ac_try_echo=$ac_try;; |
| 21120 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21122 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21123 | ac_status=$? |
| 21124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21125 | rm -f conftest.er1 |
| 21126 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21128 | (exit $ac_status); } && { |
| 21129 | test -z "$ac_c_werror_flag" || |
| 21130 | test ! -s conftest.err |
| 21131 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21132 | ac_cv_member_struct_stat_st_gen=yes |
| 21133 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21134 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21136 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21137 | ac_cv_member_struct_stat_st_gen=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21138 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21139 | |
| 21140 | 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] | 21141 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21142 | |
| 21143 | 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] | 21144 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21145 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 21146 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; } |
| 21147 | 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] | 21148 | |
| 21149 | cat >>confdefs.h <<_ACEOF |
| 21150 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 21151 | _ACEOF |
| 21152 | |
| 21153 | |
| 21154 | fi |
| 21155 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21156 | { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 21157 | 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] | 21158 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21160 | else |
| 21161 | cat >conftest.$ac_ext <<_ACEOF |
| 21162 | /* confdefs.h. */ |
| 21163 | _ACEOF |
| 21164 | cat confdefs.h >>conftest.$ac_ext |
| 21165 | cat >>conftest.$ac_ext <<_ACEOF |
| 21166 | /* end confdefs.h. */ |
| 21167 | $ac_includes_default |
| 21168 | int |
| 21169 | main () |
| 21170 | { |
| 21171 | static struct stat ac_aggr; |
| 21172 | if (ac_aggr.st_birthtime) |
| 21173 | return 0; |
| 21174 | ; |
| 21175 | return 0; |
| 21176 | } |
| 21177 | _ACEOF |
| 21178 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21179 | if { (ac_try="$ac_compile" |
| 21180 | case "(($ac_try" in |
| 21181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21182 | *) ac_try_echo=$ac_try;; |
| 21183 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21185 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21186 | ac_status=$? |
| 21187 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21188 | rm -f conftest.er1 |
| 21189 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21191 | (exit $ac_status); } && { |
| 21192 | test -z "$ac_c_werror_flag" || |
| 21193 | test ! -s conftest.err |
| 21194 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21195 | ac_cv_member_struct_stat_st_birthtime=yes |
| 21196 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21197 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21199 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21200 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21201 | /* confdefs.h. */ |
| 21202 | _ACEOF |
| 21203 | cat confdefs.h >>conftest.$ac_ext |
| 21204 | cat >>conftest.$ac_ext <<_ACEOF |
| 21205 | /* end confdefs.h. */ |
| 21206 | $ac_includes_default |
| 21207 | int |
| 21208 | main () |
| 21209 | { |
| 21210 | static struct stat ac_aggr; |
| 21211 | if (sizeof ac_aggr.st_birthtime) |
| 21212 | return 0; |
| 21213 | ; |
| 21214 | return 0; |
| 21215 | } |
| 21216 | _ACEOF |
| 21217 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21218 | if { (ac_try="$ac_compile" |
| 21219 | case "(($ac_try" in |
| 21220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21221 | *) ac_try_echo=$ac_try;; |
| 21222 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21224 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21225 | ac_status=$? |
| 21226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21227 | rm -f conftest.er1 |
| 21228 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21230 | (exit $ac_status); } && { |
| 21231 | test -z "$ac_c_werror_flag" || |
| 21232 | test ! -s conftest.err |
| 21233 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21234 | ac_cv_member_struct_stat_st_birthtime=yes |
| 21235 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21236 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21238 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21239 | ac_cv_member_struct_stat_st_birthtime=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21240 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21241 | |
| 21242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21243 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21244 | |
| 21245 | 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] | 21246 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21247 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 21248 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; } |
| 21249 | 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] | 21250 | |
| 21251 | cat >>confdefs.h <<_ACEOF |
| 21252 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 21253 | _ACEOF |
| 21254 | |
| 21255 | |
| 21256 | fi |
| 21257 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21258 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 21259 | 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] | 21260 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21262 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21263 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21264 | /* confdefs.h. */ |
| 21265 | _ACEOF |
| 21266 | cat confdefs.h >>conftest.$ac_ext |
| 21267 | cat >>conftest.$ac_ext <<_ACEOF |
| 21268 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21269 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21270 | int |
| 21271 | main () |
| 21272 | { |
| 21273 | static struct stat ac_aggr; |
| 21274 | if (ac_aggr.st_blocks) |
| 21275 | return 0; |
| 21276 | ; |
| 21277 | return 0; |
| 21278 | } |
| 21279 | _ACEOF |
| 21280 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21281 | if { (ac_try="$ac_compile" |
| 21282 | case "(($ac_try" in |
| 21283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21284 | *) ac_try_echo=$ac_try;; |
| 21285 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21287 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21288 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21289 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21290 | rm -f conftest.er1 |
| 21291 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21293 | (exit $ac_status); } && { |
| 21294 | test -z "$ac_c_werror_flag" || |
| 21295 | test ! -s conftest.err |
| 21296 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21297 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21298 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21299 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21301 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21302 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21303 | /* confdefs.h. */ |
| 21304 | _ACEOF |
| 21305 | cat confdefs.h >>conftest.$ac_ext |
| 21306 | cat >>conftest.$ac_ext <<_ACEOF |
| 21307 | /* end confdefs.h. */ |
| 21308 | $ac_includes_default |
| 21309 | int |
| 21310 | main () |
| 21311 | { |
| 21312 | static struct stat ac_aggr; |
| 21313 | if (sizeof ac_aggr.st_blocks) |
| 21314 | return 0; |
| 21315 | ; |
| 21316 | return 0; |
| 21317 | } |
| 21318 | _ACEOF |
| 21319 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21320 | if { (ac_try="$ac_compile" |
| 21321 | case "(($ac_try" in |
| 21322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21323 | *) ac_try_echo=$ac_try;; |
| 21324 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21326 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21327 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21329 | rm -f conftest.er1 |
| 21330 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21332 | (exit $ac_status); } && { |
| 21333 | test -z "$ac_c_werror_flag" || |
| 21334 | test ! -s conftest.err |
| 21335 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21336 | ac_cv_member_struct_stat_st_blocks=yes |
| 21337 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21338 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21340 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21341 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21342 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21343 | |
| 21344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21345 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21346 | |
| 21347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21348 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21349 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 21350 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } |
| 21351 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21353 | cat >>confdefs.h <<_ACEOF |
| 21354 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 21355 | _ACEOF |
| 21356 | |
| 21357 | |
| 21358 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21359 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21360 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21361 | |
| 21362 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21363 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21364 | *" fileblocks.$ac_objext "* ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21365 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 21366 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21367 | esac |
| 21368 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21369 | fi |
| 21370 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21371 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21372 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21373 | { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 21374 | 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] | 21375 | if test "${ac_cv_header_time_altzone+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21377 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21378 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21379 | /* confdefs.h. */ |
| 21380 | _ACEOF |
| 21381 | cat confdefs.h >>conftest.$ac_ext |
| 21382 | cat >>conftest.$ac_ext <<_ACEOF |
| 21383 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21384 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21385 | int |
| 21386 | main () |
| 21387 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21388 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21389 | ; |
| 21390 | return 0; |
| 21391 | } |
| 21392 | _ACEOF |
| 21393 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21394 | if { (ac_try="$ac_compile" |
| 21395 | case "(($ac_try" in |
| 21396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21397 | *) ac_try_echo=$ac_try;; |
| 21398 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21400 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21401 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21403 | rm -f conftest.er1 |
| 21404 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21406 | (exit $ac_status); } && { |
| 21407 | test -z "$ac_c_werror_flag" || |
| 21408 | test ! -s conftest.err |
| 21409 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21410 | ac_cv_header_time_altzone=yes |
| 21411 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21412 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21414 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21415 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21416 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21417 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21418 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21419 | fi |
| 21420 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21421 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 21422 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21423 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21424 | |
| 21425 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21426 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21427 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21428 | |
| 21429 | fi |
| 21430 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21431 | was_it_defined=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21432 | { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 21433 | 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] | 21434 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21435 | /* confdefs.h. */ |
| 21436 | _ACEOF |
| 21437 | cat confdefs.h >>conftest.$ac_ext |
| 21438 | cat >>conftest.$ac_ext <<_ACEOF |
| 21439 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21440 | |
| 21441 | #include <sys/types.h> |
| 21442 | #include <sys/select.h> |
| 21443 | #include <sys/time.h> |
| 21444 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21445 | int |
| 21446 | main () |
| 21447 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21448 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21449 | ; |
| 21450 | return 0; |
| 21451 | } |
| 21452 | _ACEOF |
| 21453 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
| 21472 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21473 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21474 | _ACEOF |
| 21475 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 21476 | was_it_defined=yes |
| 21477 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 21478 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21479 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21481 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21482 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21483 | fi |
| 21484 | |
| 21485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21486 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 21487 | echo "${ECHO_T}$was_it_defined" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21488 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21489 | { echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 21490 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21491 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21493 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21494 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21495 | /* confdefs.h. */ |
| 21496 | _ACEOF |
| 21497 | cat confdefs.h >>conftest.$ac_ext |
| 21498 | cat >>conftest.$ac_ext <<_ACEOF |
| 21499 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21500 | |
| 21501 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21502 | int |
| 21503 | main () |
| 21504 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21505 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21506 | ; |
| 21507 | return 0; |
| 21508 | } |
| 21509 | _ACEOF |
| 21510 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21511 | if { (ac_try="$ac_compile" |
| 21512 | case "(($ac_try" in |
| 21513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21514 | *) ac_try_echo=$ac_try;; |
| 21515 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21517 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21518 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21519 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21520 | rm -f conftest.er1 |
| 21521 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21523 | (exit $ac_status); } && { |
| 21524 | test -z "$ac_c_werror_flag" || |
| 21525 | test ! -s conftest.err |
| 21526 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21527 | ac_cv_struct_addrinfo=yes |
| 21528 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21529 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21531 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21532 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21533 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21534 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21536 | fi |
| 21537 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21538 | { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 21539 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21540 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21541 | |
| 21542 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21543 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21544 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21545 | |
| 21546 | fi |
| 21547 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21548 | { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 21549 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21550 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21552 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21553 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21554 | /* confdefs.h. */ |
| 21555 | _ACEOF |
| 21556 | cat confdefs.h >>conftest.$ac_ext |
| 21557 | cat >>conftest.$ac_ext <<_ACEOF |
| 21558 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21559 | |
| 21560 | # include <sys/types.h> |
| 21561 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21562 | int |
| 21563 | main () |
| 21564 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21565 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21566 | ; |
| 21567 | return 0; |
| 21568 | } |
| 21569 | _ACEOF |
| 21570 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21571 | if { (ac_try="$ac_compile" |
| 21572 | case "(($ac_try" in |
| 21573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21574 | *) ac_try_echo=$ac_try;; |
| 21575 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21577 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21578 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21579 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21580 | rm -f conftest.er1 |
| 21581 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21583 | (exit $ac_status); } && { |
| 21584 | test -z "$ac_c_werror_flag" || |
| 21585 | test ! -s conftest.err |
| 21586 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21587 | ac_cv_struct_sockaddr_storage=yes |
| 21588 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21589 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21591 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21592 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21593 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21594 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21596 | fi |
| 21597 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21598 | { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 21599 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21600 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21601 | |
| 21602 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21603 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21604 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21605 | |
| 21606 | fi |
| 21607 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21608 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21609 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21610 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21611 | { echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 21612 | 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] | 21613 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21615 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21616 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21617 | /* confdefs.h. */ |
| 21618 | _ACEOF |
| 21619 | cat confdefs.h >>conftest.$ac_ext |
| 21620 | cat >>conftest.$ac_ext <<_ACEOF |
| 21621 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21622 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21623 | int |
| 21624 | main () |
| 21625 | { |
| 21626 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 21627 | test_array [0] = 0 |
| 21628 | |
| 21629 | ; |
| 21630 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21631 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21632 | _ACEOF |
| 21633 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21634 | if { (ac_try="$ac_compile" |
| 21635 | case "(($ac_try" in |
| 21636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21637 | *) ac_try_echo=$ac_try;; |
| 21638 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21640 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21641 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21642 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21643 | rm -f conftest.er1 |
| 21644 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21646 | (exit $ac_status); } && { |
| 21647 | test -z "$ac_c_werror_flag" || |
| 21648 | test ! -s conftest.err |
| 21649 | } && test -s conftest.$ac_objext; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21650 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21651 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21652 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21654 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21655 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21656 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21657 | |
| 21658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21659 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21660 | { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 21661 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21662 | 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] | 21663 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21664 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21665 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21666 | |
| 21667 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21668 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21669 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 21670 | 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] | 21671 | if test "${ac_cv_c_const+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21673 | else |
| 21674 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21675 | /* confdefs.h. */ |
| 21676 | _ACEOF |
| 21677 | cat confdefs.h >>conftest.$ac_ext |
| 21678 | cat >>conftest.$ac_ext <<_ACEOF |
| 21679 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21680 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21681 | int |
| 21682 | main () |
| 21683 | { |
| 21684 | /* FIXME: Include the comments suggested by Paul. */ |
| 21685 | #ifndef __cplusplus |
| 21686 | /* Ultrix mips cc rejects this. */ |
| 21687 | typedef int charset[2]; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21688 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21689 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21690 | char const *const *pcpcc; |
| 21691 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21692 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 21693 | struct point {int x, y;}; |
| 21694 | static struct point const zero = {0,0}; |
| 21695 | /* AIX XL C 1.02.0.0 rejects this. |
| 21696 | It does not let you subtract one const X* pointer from another in |
| 21697 | an arm of an if-expression whose if-part is not a constant |
| 21698 | expression */ |
| 21699 | const char *g = "string"; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21700 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21701 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21702 | ++pcpcc; |
| 21703 | ppc = (char**) pcpcc; |
| 21704 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21705 | { /* SCO 3.2v4 cc rejects this. */ |
| 21706 | char *t; |
| 21707 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21708 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21709 | *t++ = 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21710 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21711 | } |
| 21712 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 21713 | int x[] = {25, 17}; |
| 21714 | const int *foo = &x[0]; |
| 21715 | ++foo; |
| 21716 | } |
| 21717 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 21718 | typedef const int *iptr; |
| 21719 | iptr p = 0; |
| 21720 | ++p; |
| 21721 | } |
| 21722 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 21723 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 21724 | struct s { int j; const int *ap[3]; }; |
| 21725 | struct s *b; b->j = 5; |
| 21726 | } |
| 21727 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 21728 | const int foo = 10; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21729 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21730 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21731 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21732 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21733 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21734 | ; |
| 21735 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21736 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21737 | _ACEOF |
| 21738 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21739 | if { (ac_try="$ac_compile" |
| 21740 | case "(($ac_try" in |
| 21741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21742 | *) ac_try_echo=$ac_try;; |
| 21743 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21745 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21746 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21748 | rm -f conftest.er1 |
| 21749 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21751 | (exit $ac_status); } && { |
| 21752 | test -z "$ac_c_werror_flag" || |
| 21753 | test ! -s conftest.err |
| 21754 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21755 | ac_cv_c_const=yes |
| 21756 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21757 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21759 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21760 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21761 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21762 | |
| 21763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21764 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21765 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 21766 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21767 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21768 | |
| 21769 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21770 | #define const |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21771 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21772 | |
| 21773 | fi |
| 21774 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21775 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21776 | works=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21777 | { echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 21778 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21779 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21780 | /* confdefs.h. */ |
| 21781 | _ACEOF |
| 21782 | cat confdefs.h >>conftest.$ac_ext |
| 21783 | cat >>conftest.$ac_ext <<_ACEOF |
| 21784 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21785 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21786 | int |
| 21787 | main () |
| 21788 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21789 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21790 | ; |
| 21791 | return 0; |
| 21792 | } |
| 21793 | _ACEOF |
| 21794 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21795 | if { (ac_try="$ac_compile" |
| 21796 | case "(($ac_try" in |
| 21797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21798 | *) ac_try_echo=$ac_try;; |
| 21799 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21801 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21802 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21804 | rm -f conftest.er1 |
| 21805 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21807 | (exit $ac_status); } && { |
| 21808 | test -z "$ac_c_werror_flag" || |
| 21809 | test ! -s conftest.err |
| 21810 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21811 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21812 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21813 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21815 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21816 | |
| 21817 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21818 | #define volatile |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21819 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21820 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 21821 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21822 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21823 | |
| 21824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21825 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 21826 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21827 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21828 | works=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21829 | { echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 21830 | 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] | 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. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 21837 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21838 | int |
| 21839 | main () |
| 21840 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21841 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21842 | ; |
| 21843 | return 0; |
| 21844 | } |
| 21845 | _ACEOF |
| 21846 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21847 | if { (ac_try="$ac_compile" |
| 21848 | case "(($ac_try" in |
| 21849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21850 | *) ac_try_echo=$ac_try;; |
| 21851 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21853 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21854 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21856 | rm -f conftest.er1 |
| 21857 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21859 | (exit $ac_status); } && { |
| 21860 | test -z "$ac_c_werror_flag" || |
| 21861 | test ! -s conftest.err |
| 21862 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21863 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 21864 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21865 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21868 | |
| 21869 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21870 | #define signed |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21871 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21872 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 21873 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21874 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21875 | |
| 21876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21877 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 21878 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21879 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21880 | have_prototypes=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21881 | { echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 21882 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21883 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21884 | /* confdefs.h. */ |
| 21885 | _ACEOF |
| 21886 | cat confdefs.h >>conftest.$ac_ext |
| 21887 | cat >>conftest.$ac_ext <<_ACEOF |
| 21888 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21889 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21890 | int |
| 21891 | main () |
| 21892 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21893 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21894 | ; |
| 21895 | return 0; |
| 21896 | } |
| 21897 | _ACEOF |
| 21898 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21899 | if { (ac_try="$ac_compile" |
| 21900 | case "(($ac_try" in |
| 21901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21902 | *) ac_try_echo=$ac_try;; |
| 21903 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21905 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21906 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21908 | rm -f conftest.er1 |
| 21909 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21911 | (exit $ac_status); } && { |
| 21912 | test -z "$ac_c_werror_flag" || |
| 21913 | test ! -s conftest.err |
| 21914 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21915 | |
| 21916 | |
| 21917 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21918 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21919 | _ACEOF |
| 21920 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 21921 | have_prototypes=yes |
| 21922 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 21923 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21924 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21925 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21926 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21927 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21928 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21929 | |
| 21930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21931 | { echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 21932 | echo "${ECHO_T}$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21933 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21934 | works=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21935 | { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 21936 | 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] | 21937 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21938 | /* confdefs.h. */ |
| 21939 | _ACEOF |
| 21940 | cat confdefs.h >>conftest.$ac_ext |
| 21941 | cat >>conftest.$ac_ext <<_ACEOF |
| 21942 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21943 | |
| 21944 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 21945 | int foo(int x, ...) { |
| 21946 | va_list va; |
| 21947 | va_start(va, x); |
| 21948 | va_arg(va, int); |
| 21949 | va_arg(va, char *); |
| 21950 | va_arg(va, double); |
| 21951 | return 0; |
| 21952 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21953 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21954 | int |
| 21955 | main () |
| 21956 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 21957 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21958 | ; |
| 21959 | return 0; |
| 21960 | } |
| 21961 | _ACEOF |
| 21962 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21963 | if { (ac_try="$ac_compile" |
| 21964 | case "(($ac_try" in |
| 21965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21966 | *) ac_try_echo=$ac_try;; |
| 21967 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21969 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21970 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21972 | rm -f conftest.er1 |
| 21973 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21975 | (exit $ac_status); } && { |
| 21976 | test -z "$ac_c_werror_flag" || |
| 21977 | test ! -s conftest.err |
| 21978 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21979 | |
| 21980 | |
| 21981 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21982 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21983 | _ACEOF |
| 21984 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 21985 | works=yes |
| 21986 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 21987 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21988 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21990 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21991 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21992 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21993 | |
| 21994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21995 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 21996 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21997 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21998 | # check for socketpair |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 21999 | { echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 22000 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22001 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 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 <sys/types.h> |
| 22009 | #include <sys/socket.h> |
| 22010 | |
| 22011 | int |
| 22012 | main () |
| 22013 | { |
| 22014 | void *x=socketpair |
| 22015 | ; |
| 22016 | return 0; |
| 22017 | } |
| 22018 | _ACEOF |
| 22019 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22020 | if { (ac_try="$ac_compile" |
| 22021 | case "(($ac_try" in |
| 22022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22023 | *) ac_try_echo=$ac_try;; |
| 22024 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22026 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22027 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22028 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22029 | rm -f conftest.er1 |
| 22030 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22032 | (exit $ac_status); } && { |
| 22033 | test -z "$ac_c_werror_flag" || |
| 22034 | test ! -s conftest.err |
| 22035 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22036 | |
| 22037 | cat >>confdefs.h <<\_ACEOF |
| 22038 | #define HAVE_SOCKETPAIR 1 |
| 22039 | _ACEOF |
| 22040 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22041 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22042 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22043 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22044 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22045 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22046 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22047 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22048 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22049 | |
| 22050 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22051 | |
| 22052 | 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] | 22053 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22054 | # check if sockaddr has sa_len member |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22055 | { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 22056 | 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] | 22057 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22058 | /* confdefs.h. */ |
| 22059 | _ACEOF |
| 22060 | cat confdefs.h >>conftest.$ac_ext |
| 22061 | cat >>conftest.$ac_ext <<_ACEOF |
| 22062 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22063 | #include <sys/types.h> |
| 22064 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22065 | int |
| 22066 | main () |
| 22067 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22068 | struct sockaddr x; |
| 22069 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22070 | ; |
| 22071 | return 0; |
| 22072 | } |
| 22073 | _ACEOF |
| 22074 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22075 | if { (ac_try="$ac_compile" |
| 22076 | case "(($ac_try" in |
| 22077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22078 | *) ac_try_echo=$ac_try;; |
| 22079 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22081 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22082 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22084 | rm -f conftest.er1 |
| 22085 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22087 | (exit $ac_status); } && { |
| 22088 | test -z "$ac_c_werror_flag" || |
| 22089 | test ! -s conftest.err |
| 22090 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22091 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22092 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22093 | |
| 22094 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22095 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22096 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22097 | |
| 22098 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22099 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22101 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22102 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22103 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22104 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22105 | |
| 22106 | 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] | 22107 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22108 | va_list_is_array=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22109 | { echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 22110 | 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] | 22111 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22112 | /* confdefs.h. */ |
| 22113 | _ACEOF |
| 22114 | cat confdefs.h >>conftest.$ac_ext |
| 22115 | cat >>conftest.$ac_ext <<_ACEOF |
| 22116 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22117 | |
| 22118 | #ifdef HAVE_STDARG_PROTOTYPES |
| 22119 | #include <stdarg.h> |
| 22120 | #else |
| 22121 | #include <varargs.h> |
| 22122 | #endif |
| 22123 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22124 | int |
| 22125 | main () |
| 22126 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22127 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22128 | ; |
| 22129 | return 0; |
| 22130 | } |
| 22131 | _ACEOF |
| 22132 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22133 | if { (ac_try="$ac_compile" |
| 22134 | case "(($ac_try" in |
| 22135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22136 | *) ac_try_echo=$ac_try;; |
| 22137 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22139 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22140 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22142 | rm -f conftest.er1 |
| 22143 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22145 | (exit $ac_status); } && { |
| 22146 | test -z "$ac_c_werror_flag" || |
| 22147 | test ! -s conftest.err |
| 22148 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22149 | : |
| 22150 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22151 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22153 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22154 | |
| 22155 | |
| 22156 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22157 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22158 | _ACEOF |
| 22159 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22160 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22161 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22162 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22163 | |
| 22164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22165 | { echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 22166 | echo "${ECHO_T}$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22167 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22168 | # 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] | 22169 | |
| 22170 | |
| 22171 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22172 | { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 22173 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22174 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22176 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22177 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22178 | /* confdefs.h. */ |
| 22179 | _ACEOF |
| 22180 | cat confdefs.h >>conftest.$ac_ext |
| 22181 | cat >>conftest.$ac_ext <<_ACEOF |
| 22182 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 22183 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 22184 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22185 | #define gethostbyname_r innocuous_gethostbyname_r |
| 22186 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22187 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22188 | which can conflict with char gethostbyname_r (); below. |
| 22189 | 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] | 22190 | <limits.h> exists even on freestanding compilers. */ |
| 22191 | |
| 22192 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22193 | # include <limits.h> |
| 22194 | #else |
| 22195 | # include <assert.h> |
| 22196 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 22197 | |
| 22198 | #undef gethostbyname_r |
| 22199 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22200 | /* Override any GCC internal prototype to avoid an error. |
| 22201 | Use char because int might match the return type of a GCC |
| 22202 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22203 | #ifdef __cplusplus |
| 22204 | extern "C" |
| 22205 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22206 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22207 | /* The GNU C library defines this for functions which it implements |
| 22208 | to always fail with ENOSYS. Some functions are actually named |
| 22209 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22210 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22211 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22212 | #endif |
| 22213 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22214 | int |
| 22215 | main () |
| 22216 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22217 | return gethostbyname_r (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22218 | ; |
| 22219 | return 0; |
| 22220 | } |
| 22221 | _ACEOF |
| 22222 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22223 | if { (ac_try="$ac_link" |
| 22224 | case "(($ac_try" in |
| 22225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22226 | *) ac_try_echo=$ac_try;; |
| 22227 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22229 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22230 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22232 | rm -f conftest.er1 |
| 22233 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22235 | (exit $ac_status); } && { |
| 22236 | test -z "$ac_c_werror_flag" || |
| 22237 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22238 | } && test -s conftest$ac_exeext && |
| 22239 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22240 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22241 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22242 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22244 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22245 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22246 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22247 | |
| 22248 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22249 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22250 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22251 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 22252 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; } |
| 22253 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22254 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22255 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22256 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22257 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22258 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22259 | { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 22260 | 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] | 22261 | OLD_CFLAGS=$CFLAGS |
| 22262 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22263 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22264 | /* confdefs.h. */ |
| 22265 | _ACEOF |
| 22266 | cat confdefs.h >>conftest.$ac_ext |
| 22267 | cat >>conftest.$ac_ext <<_ACEOF |
| 22268 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22269 | |
| 22270 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22271 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22272 | int |
| 22273 | main () |
| 22274 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22275 | |
| 22276 | char *name; |
| 22277 | struct hostent *he, *res; |
| 22278 | char buffer[2048]; |
| 22279 | int buflen = 2048; |
| 22280 | int h_errnop; |
| 22281 | |
| 22282 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22283 | |
| 22284 | ; |
| 22285 | return 0; |
| 22286 | } |
| 22287 | _ACEOF |
| 22288 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22289 | if { (ac_try="$ac_compile" |
| 22290 | case "(($ac_try" in |
| 22291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22292 | *) ac_try_echo=$ac_try;; |
| 22293 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22295 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22296 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22298 | rm -f conftest.er1 |
| 22299 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22301 | (exit $ac_status); } && { |
| 22302 | test -z "$ac_c_werror_flag" || |
| 22303 | test ! -s conftest.err |
| 22304 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22305 | |
| 22306 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22307 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22308 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22309 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22310 | |
| 22311 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22312 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22313 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22314 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22315 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22316 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22317 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22318 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22319 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22321 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22322 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22323 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22324 | echo "${ECHO_T}no" >&6; } |
| 22325 | { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 22326 | 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] | 22327 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22328 | /* confdefs.h. */ |
| 22329 | _ACEOF |
| 22330 | cat confdefs.h >>conftest.$ac_ext |
| 22331 | cat >>conftest.$ac_ext <<_ACEOF |
| 22332 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22333 | |
| 22334 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22335 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22336 | int |
| 22337 | main () |
| 22338 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22339 | |
| 22340 | char *name; |
| 22341 | struct hostent *he; |
| 22342 | char buffer[2048]; |
| 22343 | int buflen = 2048; |
| 22344 | int h_errnop; |
| 22345 | |
| 22346 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22347 | |
| 22348 | ; |
| 22349 | return 0; |
| 22350 | } |
| 22351 | _ACEOF |
| 22352 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22353 | if { (ac_try="$ac_compile" |
| 22354 | case "(($ac_try" in |
| 22355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22356 | *) ac_try_echo=$ac_try;; |
| 22357 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22359 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22360 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22362 | rm -f conftest.er1 |
| 22363 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22365 | (exit $ac_status); } && { |
| 22366 | test -z "$ac_c_werror_flag" || |
| 22367 | test ! -s conftest.err |
| 22368 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22369 | |
| 22370 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22371 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22372 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22373 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22374 | |
| 22375 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22376 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22377 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22378 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22379 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22380 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22381 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22382 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22383 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22384 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22385 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22386 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22387 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22388 | echo "${ECHO_T}no" >&6; } |
| 22389 | { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 22390 | 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] | 22391 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22392 | /* confdefs.h. */ |
| 22393 | _ACEOF |
| 22394 | cat confdefs.h >>conftest.$ac_ext |
| 22395 | cat >>conftest.$ac_ext <<_ACEOF |
| 22396 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22397 | |
| 22398 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22399 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22400 | int |
| 22401 | main () |
| 22402 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22403 | |
| 22404 | char *name; |
| 22405 | struct hostent *he; |
| 22406 | struct hostent_data data; |
| 22407 | |
| 22408 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22409 | |
| 22410 | ; |
| 22411 | return 0; |
| 22412 | } |
| 22413 | _ACEOF |
| 22414 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22415 | if { (ac_try="$ac_compile" |
| 22416 | case "(($ac_try" in |
| 22417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22418 | *) ac_try_echo=$ac_try;; |
| 22419 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22421 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22422 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22424 | rm -f conftest.er1 |
| 22425 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22427 | (exit $ac_status); } && { |
| 22428 | test -z "$ac_c_werror_flag" || |
| 22429 | test ! -s conftest.err |
| 22430 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22431 | |
| 22432 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22433 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22434 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22435 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22436 | |
| 22437 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22438 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22439 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22440 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22441 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22442 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22443 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22444 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22445 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22447 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22448 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22449 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22450 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22451 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22452 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22453 | |
| 22454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22455 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22456 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22457 | |
| 22458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22459 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22460 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22461 | |
| 22462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22463 | CFLAGS=$OLD_CFLAGS |
| 22464 | |
| 22465 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22466 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22467 | |
| 22468 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 22469 | do |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22470 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22471 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22472 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22473 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22475 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22476 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22477 | /* confdefs.h. */ |
| 22478 | _ACEOF |
| 22479 | cat confdefs.h >>conftest.$ac_ext |
| 22480 | cat >>conftest.$ac_ext <<_ACEOF |
| 22481 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 22482 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22483 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22484 | #define $ac_func innocuous_$ac_func |
| 22485 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22486 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22487 | which can conflict with char $ac_func (); below. |
| 22488 | 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] | 22489 | <limits.h> exists even on freestanding compilers. */ |
| 22490 | |
| 22491 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22492 | # include <limits.h> |
| 22493 | #else |
| 22494 | # include <assert.h> |
| 22495 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 22496 | |
| 22497 | #undef $ac_func |
| 22498 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22499 | /* Override any GCC internal prototype to avoid an error. |
| 22500 | Use char because int might match the return type of a GCC |
| 22501 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22502 | #ifdef __cplusplus |
| 22503 | extern "C" |
| 22504 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22505 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22506 | /* The GNU C library defines this for functions which it implements |
| 22507 | to always fail with ENOSYS. Some functions are actually named |
| 22508 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22509 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22510 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22511 | #endif |
| 22512 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22513 | int |
| 22514 | main () |
| 22515 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22516 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22517 | ; |
| 22518 | return 0; |
| 22519 | } |
| 22520 | _ACEOF |
| 22521 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22522 | if { (ac_try="$ac_link" |
| 22523 | case "(($ac_try" in |
| 22524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22525 | *) ac_try_echo=$ac_try;; |
| 22526 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22528 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22529 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22530 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22531 | rm -f conftest.er1 |
| 22532 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22534 | (exit $ac_status); } && { |
| 22535 | test -z "$ac_c_werror_flag" || |
| 22536 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22537 | } && test -s conftest$ac_exeext && |
| 22538 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22539 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22540 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22541 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22543 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22544 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22545 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22546 | |
| 22547 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22548 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22549 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22550 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 22551 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 22552 | echo "${ECHO_T}$ac_res" >&6; } |
| 22553 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22554 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22555 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22556 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22557 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22558 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 22559 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22560 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22561 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22562 | fi |
| 22563 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22564 | |
| 22565 | |
| 22566 | |
| 22567 | |
| 22568 | |
| 22569 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22570 | # checks for system services |
| 22571 | # (none yet) |
| 22572 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22573 | # Linux requires this for correct f.p. operations |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22574 | { echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 22575 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22576 | if test "${ac_cv_func___fpu_control+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22578 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22579 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22580 | /* confdefs.h. */ |
| 22581 | _ACEOF |
| 22582 | cat confdefs.h >>conftest.$ac_ext |
| 22583 | cat >>conftest.$ac_ext <<_ACEOF |
| 22584 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 22585 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 22586 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22587 | #define __fpu_control innocuous___fpu_control |
| 22588 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22589 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22590 | which can conflict with char __fpu_control (); below. |
| 22591 | 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] | 22592 | <limits.h> exists even on freestanding compilers. */ |
| 22593 | |
| 22594 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22595 | # include <limits.h> |
| 22596 | #else |
| 22597 | # include <assert.h> |
| 22598 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 22599 | |
| 22600 | #undef __fpu_control |
| 22601 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22602 | /* Override any GCC internal prototype to avoid an error. |
| 22603 | Use char because int might match the return type of a GCC |
| 22604 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22605 | #ifdef __cplusplus |
| 22606 | extern "C" |
| 22607 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22608 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22609 | /* The GNU C library defines this for functions which it implements |
| 22610 | to always fail with ENOSYS. Some functions are actually named |
| 22611 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22612 | #if defined __stub___fpu_control || defined __stub_____fpu_control |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22613 | choke me |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22614 | #endif |
| 22615 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22616 | int |
| 22617 | main () |
| 22618 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22619 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22620 | ; |
| 22621 | return 0; |
| 22622 | } |
| 22623 | _ACEOF |
| 22624 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22625 | if { (ac_try="$ac_link" |
| 22626 | case "(($ac_try" in |
| 22627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22628 | *) ac_try_echo=$ac_try;; |
| 22629 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22631 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22632 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22634 | rm -f conftest.er1 |
| 22635 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22637 | (exit $ac_status); } && { |
| 22638 | test -z "$ac_c_werror_flag" || |
| 22639 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22640 | } && test -s conftest$ac_exeext && |
| 22641 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22642 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22643 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22644 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22646 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22647 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22648 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22649 | |
| 22650 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22651 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22652 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22653 | { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 22654 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; } |
| 22655 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22656 | : |
| 22657 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22658 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22659 | { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 22660 | 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] | 22661 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22663 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22664 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 22665 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22666 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22667 | /* confdefs.h. */ |
| 22668 | _ACEOF |
| 22669 | cat confdefs.h >>conftest.$ac_ext |
| 22670 | cat >>conftest.$ac_ext <<_ACEOF |
| 22671 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22672 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22673 | /* Override any GCC internal prototype to avoid an error. |
| 22674 | Use char because int might match the return type of a GCC |
| 22675 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22676 | #ifdef __cplusplus |
| 22677 | extern "C" |
| 22678 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22679 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22680 | int |
| 22681 | main () |
| 22682 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22683 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22684 | ; |
| 22685 | return 0; |
| 22686 | } |
| 22687 | _ACEOF |
| 22688 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22689 | if { (ac_try="$ac_link" |
| 22690 | case "(($ac_try" in |
| 22691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22692 | *) ac_try_echo=$ac_try;; |
| 22693 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22695 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22696 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22697 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22698 | rm -f conftest.er1 |
| 22699 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22701 | (exit $ac_status); } && { |
| 22702 | test -z "$ac_c_werror_flag" || |
| 22703 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22704 | } && test -s conftest$ac_exeext && |
| 22705 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22706 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22707 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22708 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22709 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22710 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22711 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22712 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22713 | |
| 22714 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22715 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22716 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22717 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22718 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 22719 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; } |
| 22720 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22721 | cat >>confdefs.h <<_ACEOF |
| 22722 | #define HAVE_LIBIEEE 1 |
| 22723 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22724 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 22725 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22726 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22727 | fi |
| 22728 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22729 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22730 | fi |
| 22731 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22732 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22733 | # Check for --with-fpectl |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22734 | { echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 22735 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22736 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22737 | # Check whether --with-fpectl was given. |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22738 | if test "${with_fpectl+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22739 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22740 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22741 | then |
| 22742 | |
| 22743 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22744 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22745 | _ACEOF |
| 22746 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22747 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22748 | echo "${ECHO_T}yes" >&6; } |
| 22749 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 22750 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22751 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22752 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22753 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22754 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22755 | fi |
| 22756 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22757 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22758 | # check for --with-libm=... |
| 22759 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 22760 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 22761 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 22762 | *) LIBM=-lm |
| 22763 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22764 | { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 22765 | 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] | 22766 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22767 | # Check whether --with-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 22768 | if test "${with_libm+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22769 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22770 | if test "$withval" = no |
| 22771 | then LIBM= |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22772 | { echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 22773 | echo "${ECHO_T}force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22774 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22775 | then LIBM=$withval |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22776 | { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 22777 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6; } |
| 22778 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 22779 | 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] | 22780 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22781 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22782 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22783 | { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 22784 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22785 | fi |
| 22786 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22787 | |
| 22788 | # check for --with-libc=... |
| 22789 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22790 | { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 22791 | 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] | 22792 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22793 | # Check whether --with-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 22794 | if test "${with_libc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22795 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22796 | if test "$withval" = no |
| 22797 | then LIBC= |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22798 | { echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 22799 | echo "${ECHO_T}force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22800 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22801 | then LIBC=$withval |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22802 | { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 22803 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6; } |
| 22804 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 22805 | 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] | 22806 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22807 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22808 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22809 | { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 22810 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22811 | fi |
| 22812 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22813 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22814 | # ************************************************** |
| 22815 | # * Check for various properties of floating point * |
| 22816 | # ************************************************** |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 22817 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22818 | { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
| 22819 | echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22820 | if test "${ac_cv_little_endian_double+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22822 | else |
| 22823 | |
| 22824 | if test "$cross_compiling" = yes; then |
| 22825 | ac_cv_little_endian_double=no |
| 22826 | else |
| 22827 | cat >conftest.$ac_ext <<_ACEOF |
| 22828 | /* confdefs.h. */ |
| 22829 | _ACEOF |
| 22830 | cat confdefs.h >>conftest.$ac_ext |
| 22831 | cat >>conftest.$ac_ext <<_ACEOF |
| 22832 | /* end confdefs.h. */ |
| 22833 | |
| 22834 | #include <string.h> |
| 22835 | int main() { |
| 22836 | double x = 9006104071832581.0; |
| 22837 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) |
| 22838 | return 0; |
| 22839 | else |
| 22840 | return 1; |
| 22841 | } |
| 22842 | |
| 22843 | _ACEOF |
| 22844 | rm -f conftest$ac_exeext |
| 22845 | if { (ac_try="$ac_link" |
| 22846 | case "(($ac_try" in |
| 22847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22848 | *) ac_try_echo=$ac_try;; |
| 22849 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22851 | (eval "$ac_link") 2>&5 |
| 22852 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22854 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22855 | { (case "(($ac_try" in |
| 22856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22857 | *) ac_try_echo=$ac_try;; |
| 22858 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22860 | (eval "$ac_try") 2>&5 |
| 22861 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22863 | (exit $ac_status); }; }; then |
| 22864 | ac_cv_little_endian_double=yes |
| 22865 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22866 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22867 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22869 | |
| 22870 | ( exit $ac_status ) |
| 22871 | ac_cv_little_endian_double=no |
| 22872 | fi |
| 22873 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 22874 | fi |
| 22875 | |
| 22876 | |
| 22877 | fi |
| 22878 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22879 | { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5 |
| 22880 | echo "${ECHO_T}$ac_cv_little_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22881 | if test "$ac_cv_little_endian_double" = yes |
| 22882 | then |
| 22883 | |
| 22884 | cat >>confdefs.h <<\_ACEOF |
| 22885 | #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1 |
| 22886 | _ACEOF |
| 22887 | |
| 22888 | fi |
| 22889 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22890 | { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
| 22891 | echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22892 | if test "${ac_cv_big_endian_double+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22894 | else |
| 22895 | |
| 22896 | if test "$cross_compiling" = yes; then |
| 22897 | ac_cv_big_endian_double=no |
| 22898 | else |
| 22899 | cat >conftest.$ac_ext <<_ACEOF |
| 22900 | /* confdefs.h. */ |
| 22901 | _ACEOF |
| 22902 | cat confdefs.h >>conftest.$ac_ext |
| 22903 | cat >>conftest.$ac_ext <<_ACEOF |
| 22904 | /* end confdefs.h. */ |
| 22905 | |
| 22906 | #include <string.h> |
| 22907 | int main() { |
| 22908 | double x = 9006104071832581.0; |
| 22909 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) |
| 22910 | return 0; |
| 22911 | else |
| 22912 | return 1; |
| 22913 | } |
| 22914 | |
| 22915 | _ACEOF |
| 22916 | rm -f conftest$ac_exeext |
| 22917 | if { (ac_try="$ac_link" |
| 22918 | case "(($ac_try" in |
| 22919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22920 | *) ac_try_echo=$ac_try;; |
| 22921 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22923 | (eval "$ac_link") 2>&5 |
| 22924 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22926 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22927 | { (case "(($ac_try" in |
| 22928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22929 | *) ac_try_echo=$ac_try;; |
| 22930 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22932 | (eval "$ac_try") 2>&5 |
| 22933 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22935 | (exit $ac_status); }; }; then |
| 22936 | ac_cv_big_endian_double=yes |
| 22937 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22938 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22939 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22941 | |
| 22942 | ( exit $ac_status ) |
| 22943 | ac_cv_big_endian_double=no |
| 22944 | fi |
| 22945 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 22946 | fi |
| 22947 | |
| 22948 | |
| 22949 | fi |
| 22950 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22951 | { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5 |
| 22952 | echo "${ECHO_T}$ac_cv_big_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22953 | if test "$ac_cv_big_endian_double" = yes |
| 22954 | then |
| 22955 | |
| 22956 | cat >>confdefs.h <<\_ACEOF |
| 22957 | #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1 |
| 22958 | _ACEOF |
| 22959 | |
| 22960 | fi |
| 22961 | |
| 22962 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 22963 | # While Python doesn't currently have full support for these platforms |
| 22964 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 22965 | # conversions work. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22966 | { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
| 22967 | echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22968 | if test "${ac_cv_mixed_endian_double+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22970 | else |
| 22971 | |
| 22972 | if test "$cross_compiling" = yes; then |
| 22973 | ac_cv_mixed_endian_double=no |
| 22974 | else |
| 22975 | cat >conftest.$ac_ext <<_ACEOF |
| 22976 | /* confdefs.h. */ |
| 22977 | _ACEOF |
| 22978 | cat confdefs.h >>conftest.$ac_ext |
| 22979 | cat >>conftest.$ac_ext <<_ACEOF |
| 22980 | /* end confdefs.h. */ |
| 22981 | |
| 22982 | #include <string.h> |
| 22983 | int main() { |
| 22984 | double x = 9006104071832581.0; |
| 22985 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) |
| 22986 | return 0; |
| 22987 | else |
| 22988 | return 1; |
| 22989 | } |
| 22990 | |
| 22991 | _ACEOF |
| 22992 | rm -f conftest$ac_exeext |
| 22993 | if { (ac_try="$ac_link" |
| 22994 | case "(($ac_try" in |
| 22995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22996 | *) ac_try_echo=$ac_try;; |
| 22997 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 22998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22999 | (eval "$ac_link") 2>&5 |
| 23000 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 23002 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23003 | { (case "(($ac_try" in |
| 23004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23005 | *) ac_try_echo=$ac_try;; |
| 23006 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 23008 | (eval "$ac_try") 2>&5 |
| 23009 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 23011 | (exit $ac_status); }; }; then |
| 23012 | ac_cv_mixed_endian_double=yes |
| 23013 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23014 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23015 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 23016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23017 | |
| 23018 | ( exit $ac_status ) |
| 23019 | ac_cv_mixed_endian_double=no |
| 23020 | fi |
| 23021 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23022 | fi |
| 23023 | |
| 23024 | |
| 23025 | fi |
| 23026 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23027 | { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5 |
| 23028 | echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 23029 | if test "$ac_cv_mixed_endian_double" = yes |
| 23030 | then |
| 23031 | |
| 23032 | cat >>confdefs.h <<\_ACEOF |
| 23033 | #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1 |
| 23034 | _ACEOF |
| 23035 | |
| 23036 | fi |
| 23037 | |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 23038 | # The short float repr introduced in Python 3.1 requires the |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23039 | # correctly-rounded string <-> double conversion functions from |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 23040 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23041 | # rounding; this is a problem on x86, where the x87 FPU has a default |
| 23042 | # rounding precision of 64 bits. For gcc/x86, we try to fix this by |
| 23043 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 23044 | if test "$GCC" = yes && test -n "`$CC -dM -E - </dev/null | grep i386`" |
| 23045 | then |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 23046 | # Check that it's okay to use gcc inline assembler to get and set |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23047 | # x87 control word. It should be, but you never know... |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23048 | { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
| 23049 | echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; } |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 23050 | cat >conftest.$ac_ext <<_ACEOF |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 23051 | /* confdefs.h. */ |
| 23052 | _ACEOF |
| 23053 | cat confdefs.h >>conftest.$ac_ext |
| 23054 | cat >>conftest.$ac_ext <<_ACEOF |
| 23055 | /* end confdefs.h. */ |
| 23056 | |
| 23057 | int |
| 23058 | main () |
| 23059 | { |
| 23060 | |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 23061 | unsigned short cw; |
| 23062 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 23063 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 23064 | |
| 23065 | ; |
| 23066 | return 0; |
| 23067 | } |
| 23068 | _ACEOF |
| 23069 | rm -f conftest.$ac_objext |
| 23070 | if { (ac_try="$ac_compile" |
| 23071 | case "(($ac_try" in |
| 23072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23073 | *) ac_try_echo=$ac_try;; |
| 23074 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 23076 | (eval "$ac_compile") 2>conftest.er1 |
| 23077 | ac_status=$? |
| 23078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23079 | rm -f conftest.er1 |
| 23080 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 23082 | (exit $ac_status); } && { |
| 23083 | test -z "$ac_c_werror_flag" || |
| 23084 | test ! -s conftest.err |
| 23085 | } && test -s conftest.$ac_objext; then |
| 23086 | have_gcc_asm_for_x87=yes |
| 23087 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23088 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 23089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23090 | |
| 23091 | have_gcc_asm_for_x87=no |
| 23092 | fi |
| 23093 | |
| 23094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23095 | { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5 |
| 23096 | echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; } |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 23097 | if test "$have_gcc_asm_for_x87" = yes |
| 23098 | then |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 23099 | |
| 23100 | cat >>confdefs.h <<\_ACEOF |
| 23101 | #define HAVE_GCC_ASM_FOR_X87 1 |
| 23102 | _ACEOF |
| 23103 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 23104 | fi |
| 23105 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23106 | |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23107 | # Detect whether system arithmetic is subject to x87-style double |
| 23108 | # rounding issues. The result of this test has little meaning on non |
| 23109 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 23110 | # mode is round-to-nearest and double rounding issues are present, and |
| 23111 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23112 | { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5 |
| 23113 | echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 23114 | # $BASECFLAGS may affect the result |
| 23115 | ac_save_cc="$CC" |
| 23116 | CC="$CC $BASECFLAGS" |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23117 | if test "$cross_compiling" = yes; then |
| 23118 | ac_cv_x87_double_rounding=no |
| 23119 | else |
| 23120 | cat >conftest.$ac_ext <<_ACEOF |
| 23121 | /* confdefs.h. */ |
| 23122 | _ACEOF |
| 23123 | cat confdefs.h >>conftest.$ac_ext |
| 23124 | cat >>conftest.$ac_ext <<_ACEOF |
| 23125 | /* end confdefs.h. */ |
| 23126 | |
| 23127 | #include <stdlib.h> |
| 23128 | #include <math.h> |
| 23129 | int main() { |
| 23130 | volatile double x, y, z; |
| 23131 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 23132 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 23133 | y = 1./x; |
| 23134 | if (y != 1.) |
| 23135 | exit(0); |
| 23136 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 23137 | x = 1e16; |
| 23138 | y = 2.99999; |
| 23139 | z = x + y; |
| 23140 | if (z != 1e16+4.) |
| 23141 | exit(0); |
| 23142 | /* both tests show evidence of double rounding */ |
| 23143 | exit(1); |
| 23144 | } |
| 23145 | |
| 23146 | _ACEOF |
| 23147 | rm -f conftest$ac_exeext |
| 23148 | if { (ac_try="$ac_link" |
| 23149 | case "(($ac_try" in |
| 23150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23151 | *) ac_try_echo=$ac_try;; |
| 23152 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23154 | (eval "$ac_link") 2>&5 |
| 23155 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23157 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23158 | { (case "(($ac_try" in |
| 23159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23160 | *) ac_try_echo=$ac_try;; |
| 23161 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23163 | (eval "$ac_try") 2>&5 |
| 23164 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23166 | (exit $ac_status); }; }; then |
| 23167 | ac_cv_x87_double_rounding=no |
| 23168 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23169 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23170 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23172 | |
| 23173 | ( exit $ac_status ) |
| 23174 | ac_cv_x87_double_rounding=yes |
| 23175 | fi |
| 23176 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23177 | fi |
| 23178 | |
| 23179 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 23180 | CC="$ac_save_cc" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23181 | { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5 |
| 23182 | echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23183 | if test "$ac_cv_x87_double_rounding" = yes |
| 23184 | then |
| 23185 | |
| 23186 | cat >>confdefs.h <<\_ACEOF |
| 23187 | #define X87_DOUBLE_ROUNDING 1 |
| 23188 | _ACEOF |
| 23189 | |
| 23190 | fi |
| 23191 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 23192 | # ************************************ |
| 23193 | # * Check for mathematical functions * |
| 23194 | # ************************************ |
| 23195 | |
| 23196 | LIBS_SAVE=$LIBS |
| 23197 | LIBS="$LIBS $LIBM" |
| 23198 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 23199 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 23200 | # -0. on some architectures. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23201 | { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5 |
| 23202 | echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; } |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 23203 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 23205 | else |
| 23206 | |
| 23207 | if test "$cross_compiling" = yes; then |
| 23208 | ac_cv_tanh_preserves_zero_sign=no |
| 23209 | else |
| 23210 | cat >conftest.$ac_ext <<_ACEOF |
| 23211 | /* confdefs.h. */ |
| 23212 | _ACEOF |
| 23213 | cat confdefs.h >>conftest.$ac_ext |
| 23214 | cat >>conftest.$ac_ext <<_ACEOF |
| 23215 | /* end confdefs.h. */ |
| 23216 | |
| 23217 | #include <math.h> |
| 23218 | #include <stdlib.h> |
| 23219 | int main() { |
| 23220 | /* return 0 if either negative zeros don't exist |
| 23221 | on this platform or if negative zeros exist |
| 23222 | and tanh(-0.) == -0. */ |
| 23223 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 23224 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 23225 | else exit(1); |
| 23226 | } |
| 23227 | |
| 23228 | _ACEOF |
| 23229 | rm -f conftest$ac_exeext |
| 23230 | if { (ac_try="$ac_link" |
| 23231 | case "(($ac_try" in |
| 23232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23233 | *) ac_try_echo=$ac_try;; |
| 23234 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 23236 | (eval "$ac_link") 2>&5 |
| 23237 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 23239 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23240 | { (case "(($ac_try" in |
| 23241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23242 | *) ac_try_echo=$ac_try;; |
| 23243 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 23245 | (eval "$ac_try") 2>&5 |
| 23246 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 23248 | (exit $ac_status); }; }; then |
| 23249 | ac_cv_tanh_preserves_zero_sign=yes |
| 23250 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23251 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23252 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 23253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23254 | |
| 23255 | ( exit $ac_status ) |
| 23256 | ac_cv_tanh_preserves_zero_sign=no |
| 23257 | fi |
| 23258 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23259 | fi |
| 23260 | |
| 23261 | |
| 23262 | fi |
| 23263 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23264 | { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 23265 | echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; } |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 23266 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 23267 | then |
| 23268 | |
| 23269 | cat >>confdefs.h <<\_ACEOF |
| 23270 | #define TANH_PRESERVES_ZERO_SIGN 1 |
| 23271 | _ACEOF |
| 23272 | |
| 23273 | fi |
| 23274 | |
| 23275 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 23276 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23277 | |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 23278 | |
| 23279 | |
| 23280 | |
| 23281 | |
| 23282 | |
Mark Dickinson | f253786 | 2009-04-18 13:58:18 +0000 | [diff] [blame] | 23283 | |
Mark Dickinson | 9c11336 | 2009-09-05 10:36:23 +0000 | [diff] [blame^] | 23284 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma |
| 23285 | do |
| 23286 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23287 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23288 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 23289 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 23290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23291 | else |
| 23292 | cat >conftest.$ac_ext <<_ACEOF |
| 23293 | /* confdefs.h. */ |
| 23294 | _ACEOF |
| 23295 | cat confdefs.h >>conftest.$ac_ext |
| 23296 | cat >>conftest.$ac_ext <<_ACEOF |
| 23297 | /* end confdefs.h. */ |
| 23298 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23299 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23300 | #define $ac_func innocuous_$ac_func |
| 23301 | |
| 23302 | /* System header to define __stub macros and hopefully few prototypes, |
| 23303 | which can conflict with char $ac_func (); below. |
| 23304 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23305 | <limits.h> exists even on freestanding compilers. */ |
| 23306 | |
| 23307 | #ifdef __STDC__ |
| 23308 | # include <limits.h> |
| 23309 | #else |
| 23310 | # include <assert.h> |
| 23311 | #endif |
| 23312 | |
| 23313 | #undef $ac_func |
| 23314 | |
| 23315 | /* Override any GCC internal prototype to avoid an error. |
| 23316 | Use char because int might match the return type of a GCC |
| 23317 | builtin and then its argument prototype would still apply. */ |
| 23318 | #ifdef __cplusplus |
| 23319 | extern "C" |
| 23320 | #endif |
| 23321 | char $ac_func (); |
| 23322 | /* The GNU C library defines this for functions which it implements |
| 23323 | to always fail with ENOSYS. Some functions are actually named |
| 23324 | something starting with __ and the normal name is an alias. */ |
| 23325 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 23326 | choke me |
| 23327 | #endif |
| 23328 | |
| 23329 | int |
| 23330 | main () |
| 23331 | { |
| 23332 | return $ac_func (); |
| 23333 | ; |
| 23334 | return 0; |
| 23335 | } |
| 23336 | _ACEOF |
| 23337 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23338 | if { (ac_try="$ac_link" |
| 23339 | case "(($ac_try" in |
| 23340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23341 | *) ac_try_echo=$ac_try;; |
| 23342 | esac |
| 23343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23344 | (eval "$ac_link") 2>conftest.er1 |
| 23345 | ac_status=$? |
| 23346 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23347 | rm -f conftest.er1 |
| 23348 | cat conftest.err >&5 |
| 23349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23350 | (exit $ac_status); } && { |
| 23351 | test -z "$ac_c_werror_flag" || |
| 23352 | test ! -s conftest.err |
| 23353 | } && test -s conftest$ac_exeext && |
| 23354 | $as_test_x conftest$ac_exeext; then |
| 23355 | eval "$as_ac_var=yes" |
| 23356 | else |
| 23357 | echo "$as_me: failed program was:" >&5 |
| 23358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23359 | |
| 23360 | eval "$as_ac_var=no" |
| 23361 | fi |
| 23362 | |
| 23363 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 23364 | conftest$ac_exeext conftest.$ac_ext |
| 23365 | fi |
| 23366 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 23367 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23368 | echo "${ECHO_T}$ac_res" >&6; } |
| 23369 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 23370 | cat >>confdefs.h <<_ACEOF |
| 23371 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 23372 | _ACEOF |
| 23373 | |
| 23374 | fi |
| 23375 | done |
| 23376 | |
| 23377 | |
| 23378 | |
| 23379 | |
| 23380 | |
| 23381 | |
| 23382 | for ac_func in hypot lgamma log1p round tgamma |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 23383 | do |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23384 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23385 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23386 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 23387 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 23389 | else |
| 23390 | cat >conftest.$ac_ext <<_ACEOF |
| 23391 | /* confdefs.h. */ |
| 23392 | _ACEOF |
| 23393 | cat confdefs.h >>conftest.$ac_ext |
| 23394 | cat >>conftest.$ac_ext <<_ACEOF |
| 23395 | /* end confdefs.h. */ |
| 23396 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23397 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23398 | #define $ac_func innocuous_$ac_func |
| 23399 | |
| 23400 | /* System header to define __stub macros and hopefully few prototypes, |
| 23401 | which can conflict with char $ac_func (); below. |
| 23402 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23403 | <limits.h> exists even on freestanding compilers. */ |
| 23404 | |
| 23405 | #ifdef __STDC__ |
| 23406 | # include <limits.h> |
| 23407 | #else |
| 23408 | # include <assert.h> |
| 23409 | #endif |
| 23410 | |
| 23411 | #undef $ac_func |
| 23412 | |
| 23413 | /* Override any GCC internal prototype to avoid an error. |
| 23414 | Use char because int might match the return type of a GCC |
| 23415 | builtin and then its argument prototype would still apply. */ |
| 23416 | #ifdef __cplusplus |
| 23417 | extern "C" |
| 23418 | #endif |
| 23419 | char $ac_func (); |
| 23420 | /* The GNU C library defines this for functions which it implements |
| 23421 | to always fail with ENOSYS. Some functions are actually named |
| 23422 | something starting with __ and the normal name is an alias. */ |
| 23423 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 23424 | choke me |
| 23425 | #endif |
| 23426 | |
| 23427 | int |
| 23428 | main () |
| 23429 | { |
| 23430 | return $ac_func (); |
| 23431 | ; |
| 23432 | return 0; |
| 23433 | } |
| 23434 | _ACEOF |
| 23435 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23436 | if { (ac_try="$ac_link" |
| 23437 | case "(($ac_try" in |
| 23438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23439 | *) ac_try_echo=$ac_try;; |
| 23440 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 23442 | (eval "$ac_link") 2>conftest.er1 |
| 23443 | ac_status=$? |
| 23444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23445 | rm -f conftest.er1 |
| 23446 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 23448 | (exit $ac_status); } && { |
| 23449 | test -z "$ac_c_werror_flag" || |
| 23450 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23451 | } && test -s conftest$ac_exeext && |
| 23452 | $as_test_x conftest$ac_exeext; then |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 23453 | eval "$as_ac_var=yes" |
| 23454 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23455 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 23456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23457 | |
| 23458 | eval "$as_ac_var=no" |
| 23459 | fi |
| 23460 | |
| 23461 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 23462 | conftest$ac_exeext conftest.$ac_ext |
| 23463 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23464 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 23465 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23466 | echo "${ECHO_T}$ac_res" >&6; } |
| 23467 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 23468 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23469 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 23470 | _ACEOF |
| 23471 | |
| 23472 | fi |
| 23473 | done |
| 23474 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23475 | { echo "$as_me:$LINENO: checking whether isinf is declared" >&5 |
| 23476 | echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23477 | if test "${ac_cv_have_decl_isinf+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23479 | else |
| 23480 | cat >conftest.$ac_ext <<_ACEOF |
| 23481 | /* confdefs.h. */ |
| 23482 | _ACEOF |
| 23483 | cat confdefs.h >>conftest.$ac_ext |
| 23484 | cat >>conftest.$ac_ext <<_ACEOF |
| 23485 | /* end confdefs.h. */ |
| 23486 | #include <math.h> |
| 23487 | |
| 23488 | int |
| 23489 | main () |
| 23490 | { |
| 23491 | #ifndef isinf |
| 23492 | (void) isinf; |
| 23493 | #endif |
| 23494 | |
| 23495 | ; |
| 23496 | return 0; |
| 23497 | } |
| 23498 | _ACEOF |
| 23499 | rm -f conftest.$ac_objext |
| 23500 | if { (ac_try="$ac_compile" |
| 23501 | case "(($ac_try" in |
| 23502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23503 | *) ac_try_echo=$ac_try;; |
| 23504 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23506 | (eval "$ac_compile") 2>conftest.er1 |
| 23507 | ac_status=$? |
| 23508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23509 | rm -f conftest.er1 |
| 23510 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23512 | (exit $ac_status); } && { |
| 23513 | test -z "$ac_c_werror_flag" || |
| 23514 | test ! -s conftest.err |
| 23515 | } && test -s conftest.$ac_objext; then |
| 23516 | ac_cv_have_decl_isinf=yes |
| 23517 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23518 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23520 | |
| 23521 | ac_cv_have_decl_isinf=no |
| 23522 | fi |
| 23523 | |
| 23524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23525 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23526 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5 |
| 23527 | echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; } |
| 23528 | if test $ac_cv_have_decl_isinf = yes; then |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23529 | |
| 23530 | cat >>confdefs.h <<_ACEOF |
| 23531 | #define HAVE_DECL_ISINF 1 |
| 23532 | _ACEOF |
| 23533 | |
| 23534 | |
| 23535 | else |
| 23536 | cat >>confdefs.h <<_ACEOF |
| 23537 | #define HAVE_DECL_ISINF 0 |
| 23538 | _ACEOF |
| 23539 | |
| 23540 | |
| 23541 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23542 | { echo "$as_me:$LINENO: checking whether isnan is declared" >&5 |
| 23543 | echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23544 | if test "${ac_cv_have_decl_isnan+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23546 | else |
| 23547 | cat >conftest.$ac_ext <<_ACEOF |
| 23548 | /* confdefs.h. */ |
| 23549 | _ACEOF |
| 23550 | cat confdefs.h >>conftest.$ac_ext |
| 23551 | cat >>conftest.$ac_ext <<_ACEOF |
| 23552 | /* end confdefs.h. */ |
| 23553 | #include <math.h> |
| 23554 | |
| 23555 | int |
| 23556 | main () |
| 23557 | { |
| 23558 | #ifndef isnan |
| 23559 | (void) isnan; |
| 23560 | #endif |
| 23561 | |
| 23562 | ; |
| 23563 | return 0; |
| 23564 | } |
| 23565 | _ACEOF |
| 23566 | rm -f conftest.$ac_objext |
| 23567 | if { (ac_try="$ac_compile" |
| 23568 | case "(($ac_try" in |
| 23569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23570 | *) ac_try_echo=$ac_try;; |
| 23571 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23573 | (eval "$ac_compile") 2>conftest.er1 |
| 23574 | ac_status=$? |
| 23575 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23576 | rm -f conftest.er1 |
| 23577 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23579 | (exit $ac_status); } && { |
| 23580 | test -z "$ac_c_werror_flag" || |
| 23581 | test ! -s conftest.err |
| 23582 | } && test -s conftest.$ac_objext; then |
| 23583 | ac_cv_have_decl_isnan=yes |
| 23584 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23585 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23587 | |
| 23588 | ac_cv_have_decl_isnan=no |
| 23589 | fi |
| 23590 | |
| 23591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23592 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23593 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5 |
| 23594 | echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; } |
| 23595 | if test $ac_cv_have_decl_isnan = yes; then |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23596 | |
| 23597 | cat >>confdefs.h <<_ACEOF |
| 23598 | #define HAVE_DECL_ISNAN 1 |
| 23599 | _ACEOF |
| 23600 | |
| 23601 | |
| 23602 | else |
| 23603 | cat >>confdefs.h <<_ACEOF |
| 23604 | #define HAVE_DECL_ISNAN 0 |
| 23605 | _ACEOF |
| 23606 | |
| 23607 | |
| 23608 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23609 | { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5 |
| 23610 | echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23611 | if test "${ac_cv_have_decl_isfinite+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23613 | else |
| 23614 | cat >conftest.$ac_ext <<_ACEOF |
| 23615 | /* confdefs.h. */ |
| 23616 | _ACEOF |
| 23617 | cat confdefs.h >>conftest.$ac_ext |
| 23618 | cat >>conftest.$ac_ext <<_ACEOF |
| 23619 | /* end confdefs.h. */ |
| 23620 | #include <math.h> |
| 23621 | |
| 23622 | int |
| 23623 | main () |
| 23624 | { |
| 23625 | #ifndef isfinite |
| 23626 | (void) isfinite; |
| 23627 | #endif |
| 23628 | |
| 23629 | ; |
| 23630 | return 0; |
| 23631 | } |
| 23632 | _ACEOF |
| 23633 | rm -f conftest.$ac_objext |
| 23634 | if { (ac_try="$ac_compile" |
| 23635 | case "(($ac_try" in |
| 23636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23637 | *) ac_try_echo=$ac_try;; |
| 23638 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23640 | (eval "$ac_compile") 2>conftest.er1 |
| 23641 | ac_status=$? |
| 23642 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23643 | rm -f conftest.er1 |
| 23644 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23646 | (exit $ac_status); } && { |
| 23647 | test -z "$ac_c_werror_flag" || |
| 23648 | test ! -s conftest.err |
| 23649 | } && test -s conftest.$ac_objext; then |
| 23650 | ac_cv_have_decl_isfinite=yes |
| 23651 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23652 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23654 | |
| 23655 | ac_cv_have_decl_isfinite=no |
| 23656 | fi |
| 23657 | |
| 23658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23659 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23660 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5 |
| 23661 | echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; } |
| 23662 | if test $ac_cv_have_decl_isfinite = yes; then |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 23663 | |
| 23664 | cat >>confdefs.h <<_ACEOF |
| 23665 | #define HAVE_DECL_ISFINITE 1 |
| 23666 | _ACEOF |
| 23667 | |
| 23668 | |
| 23669 | else |
| 23670 | cat >>confdefs.h <<_ACEOF |
| 23671 | #define HAVE_DECL_ISFINITE 0 |
| 23672 | _ACEOF |
| 23673 | |
| 23674 | |
| 23675 | fi |
| 23676 | |
| 23677 | |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 23678 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 23679 | LIBS=$LIBS_SAVE |
| 23680 | |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23681 | # Multiprocessing check for broken sem_getvalue |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23682 | { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5 |
| 23683 | echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 23684 | if test "${ac_cv_broken_sem_getvalue+set}" = set; then |
| 23685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23686 | else |
| 23687 | if test "$cross_compiling" = yes; then |
| 23688 | ac_cv_broken_sem_getvalue=yes |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23689 | else |
| 23690 | cat >conftest.$ac_ext <<_ACEOF |
| 23691 | /* confdefs.h. */ |
| 23692 | _ACEOF |
| 23693 | cat confdefs.h >>conftest.$ac_ext |
| 23694 | cat >>conftest.$ac_ext <<_ACEOF |
| 23695 | /* end confdefs.h. */ |
| 23696 | |
| 23697 | #include <unistd.h> |
| 23698 | #include <fcntl.h> |
| 23699 | #include <stdio.h> |
| 23700 | #include <semaphore.h> |
| 23701 | #include <sys/stat.h> |
| 23702 | |
| 23703 | int main(void){ |
| 23704 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 23705 | int count; |
| 23706 | int res; |
| 23707 | if(a==SEM_FAILED){ |
| 23708 | perror("sem_open"); |
| 23709 | return 1; |
| 23710 | |
| 23711 | } |
| 23712 | res = sem_getvalue(a, &count); |
| 23713 | sem_close(a); |
| 23714 | return res==-1 ? 1 : 0; |
| 23715 | } |
| 23716 | |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23717 | _ACEOF |
| 23718 | rm -f conftest$ac_exeext |
| 23719 | if { (ac_try="$ac_link" |
| 23720 | case "(($ac_try" in |
| 23721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23722 | *) ac_try_echo=$ac_try;; |
| 23723 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23725 | (eval "$ac_link") 2>&5 |
| 23726 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23728 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23729 | { (case "(($ac_try" in |
| 23730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23731 | *) ac_try_echo=$ac_try;; |
| 23732 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23734 | (eval "$ac_try") 2>&5 |
| 23735 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23737 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 23738 | ac_cv_broken_sem_getvalue=no |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23739 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23740 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23741 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23743 | |
| 23744 | ( exit $ac_status ) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 23745 | ac_cv_broken_sem_getvalue=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23746 | fi |
| 23747 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 23748 | fi |
| 23749 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23750 | |
| 23751 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 23752 | fi |
| 23753 | |
| 23754 | { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5 |
| 23755 | echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; } |
| 23756 | if test $ac_cv_broken_sem_getvalue = yes |
| 23757 | then |
| 23758 | |
| 23759 | cat >>confdefs.h <<\_ACEOF |
| 23760 | #define HAVE_BROKEN_SEM_GETVALUE 1 |
| 23761 | _ACEOF |
| 23762 | |
| 23763 | fi |
| 23764 | |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 23765 | # determine what size digit to use for Python's longs |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23766 | { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5 |
| 23767 | echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 23768 | # Check whether --enable-big-digits was given. |
| 23769 | if test "${enable_big_digits+set}" = set; then |
| 23770 | enableval=$enable_big_digits; case $enable_big_digits in |
| 23771 | yes) |
| 23772 | enable_big_digits=30 ;; |
| 23773 | no) |
| 23774 | enable_big_digits=15 ;; |
| 23775 | 15|30) |
| 23776 | ;; |
| 23777 | *) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23778 | { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5 |
| 23779 | echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;} |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 23780 | { (exit 1); exit 1; }; } ;; |
| 23781 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23782 | { echo "$as_me:$LINENO: result: $enable_big_digits" >&5 |
| 23783 | echo "${ECHO_T}$enable_big_digits" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 23784 | |
| 23785 | cat >>confdefs.h <<_ACEOF |
| 23786 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 23787 | _ACEOF |
| 23788 | |
| 23789 | |
| 23790 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23791 | { echo "$as_me:$LINENO: result: no value specified" >&5 |
| 23792 | echo "${ECHO_T}no value specified" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 23793 | fi |
| 23794 | |
| 23795 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23796 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23797 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23798 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 23799 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23800 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23802 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23803 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 23804 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23805 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23806 | # Is the header compilable? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23807 | { echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 23808 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23809 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23810 | /* confdefs.h. */ |
| 23811 | _ACEOF |
| 23812 | cat confdefs.h >>conftest.$ac_ext |
| 23813 | cat >>conftest.$ac_ext <<_ACEOF |
| 23814 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23815 | $ac_includes_default |
| 23816 | #include <wchar.h> |
| 23817 | _ACEOF |
| 23818 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23819 | if { (ac_try="$ac_compile" |
| 23820 | case "(($ac_try" in |
| 23821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23822 | *) ac_try_echo=$ac_try;; |
| 23823 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23825 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23826 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23828 | rm -f conftest.er1 |
| 23829 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23831 | (exit $ac_status); } && { |
| 23832 | test -z "$ac_c_werror_flag" || |
| 23833 | test ! -s conftest.err |
| 23834 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23835 | ac_header_compiler=yes |
| 23836 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23837 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23838 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23839 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23840 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23841 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23842 | |
| 23843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23844 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 23845 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23846 | |
| 23847 | # Is the header present? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23848 | { echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 23849 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23850 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23851 | /* confdefs.h. */ |
| 23852 | _ACEOF |
| 23853 | cat confdefs.h >>conftest.$ac_ext |
| 23854 | cat >>conftest.$ac_ext <<_ACEOF |
| 23855 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23856 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23857 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23858 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 23859 | case "(($ac_try" in |
| 23860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23861 | *) ac_try_echo=$ac_try;; |
| 23862 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23864 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23865 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23866 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23867 | rm -f conftest.er1 |
| 23868 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23870 | (exit $ac_status); } >/dev/null && { |
| 23871 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 23872 | test ! -s conftest.err |
| 23873 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23874 | ac_header_preproc=yes |
| 23875 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23876 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23878 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23879 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23880 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23881 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23882 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23883 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 23884 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23885 | |
| 23886 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23887 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 23888 | yes:no: ) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23889 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 23890 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 23891 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 23892 | 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] | 23893 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23894 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23895 | no:yes:* ) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23896 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 23897 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 23898 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 23899 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 23900 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 23901 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 23902 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 23903 | echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 23904 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 23905 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 23906 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 23907 | echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23908 | ( cat <<\_ASBOX |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 23909 | ## -------------------------------------- ## |
| 23910 | ## Report this to http://bugs.python.org/ ## |
| 23911 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23912 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23913 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23914 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23915 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23916 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 23917 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23918 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23920 | else |
| 23921 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23922 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23923 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 23924 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23925 | |
| 23926 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23927 | if test $ac_cv_header_wchar_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23928 | |
| 23929 | |
| 23930 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23931 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23932 | _ACEOF |
| 23933 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 23934 | wchar_h="yes" |
| 23935 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23936 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23937 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23938 | |
| 23939 | fi |
| 23940 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23942 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23943 | # determine wchar_t size |
| 23944 | if test "$wchar_h" = yes |
| 23945 | then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 23946 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 23947 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
| 23948 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 23949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23950 | else |
| 23951 | cat >conftest.$ac_ext <<_ACEOF |
| 23952 | /* confdefs.h. */ |
| 23953 | _ACEOF |
| 23954 | cat confdefs.h >>conftest.$ac_ext |
| 23955 | cat >>conftest.$ac_ext <<_ACEOF |
| 23956 | /* end confdefs.h. */ |
| 23957 | #include <wchar.h> |
| 23958 | |
| 23959 | typedef wchar_t ac__type_new_; |
| 23960 | int |
| 23961 | main () |
| 23962 | { |
| 23963 | if ((ac__type_new_ *) 0) |
| 23964 | return 0; |
| 23965 | if (sizeof (ac__type_new_)) |
| 23966 | return 0; |
| 23967 | ; |
| 23968 | return 0; |
| 23969 | } |
| 23970 | _ACEOF |
| 23971 | rm -f conftest.$ac_objext |
| 23972 | if { (ac_try="$ac_compile" |
| 23973 | case "(($ac_try" in |
| 23974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23975 | *) ac_try_echo=$ac_try;; |
| 23976 | esac |
| 23977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23978 | (eval "$ac_compile") 2>conftest.er1 |
| 23979 | ac_status=$? |
| 23980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23981 | rm -f conftest.er1 |
| 23982 | cat conftest.err >&5 |
| 23983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23984 | (exit $ac_status); } && { |
| 23985 | test -z "$ac_c_werror_flag" || |
| 23986 | test ! -s conftest.err |
| 23987 | } && test -s conftest.$ac_objext; then |
| 23988 | ac_cv_type_wchar_t=yes |
| 23989 | else |
| 23990 | echo "$as_me: failed program was:" >&5 |
| 23991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23992 | |
| 23993 | ac_cv_type_wchar_t=no |
| 23994 | fi |
| 23995 | |
| 23996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23997 | fi |
| 23998 | { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 23999 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; } |
| 24000 | |
| 24001 | # The cast to long int works around a bug in the HP C Compiler |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24002 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 24003 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 24004 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24005 | { echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 24006 | 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] | 24007 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24009 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24010 | if test "$cross_compiling" = yes; then |
| 24011 | # Depending upon the size, compute the lo and hi bounds. |
| 24012 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24013 | /* confdefs.h. */ |
| 24014 | _ACEOF |
| 24015 | cat confdefs.h >>conftest.$ac_ext |
| 24016 | cat >>conftest.$ac_ext <<_ACEOF |
| 24017 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24018 | #include <wchar.h> |
| 24019 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24020 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24021 | int |
| 24022 | main () |
| 24023 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24024 | 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] | 24025 | test_array [0] = 0 |
| 24026 | |
| 24027 | ; |
| 24028 | return 0; |
| 24029 | } |
| 24030 | _ACEOF |
| 24031 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24032 | if { (ac_try="$ac_compile" |
| 24033 | case "(($ac_try" in |
| 24034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24035 | *) ac_try_echo=$ac_try;; |
| 24036 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24038 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24039 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24041 | rm -f conftest.er1 |
| 24042 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24044 | (exit $ac_status); } && { |
| 24045 | test -z "$ac_c_werror_flag" || |
| 24046 | test ! -s conftest.err |
| 24047 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24048 | ac_lo=0 ac_mid=0 |
| 24049 | while :; do |
| 24050 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24051 | /* confdefs.h. */ |
| 24052 | _ACEOF |
| 24053 | cat confdefs.h >>conftest.$ac_ext |
| 24054 | cat >>conftest.$ac_ext <<_ACEOF |
| 24055 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24056 | #include <wchar.h> |
| 24057 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24058 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24059 | int |
| 24060 | main () |
| 24061 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24062 | 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] | 24063 | test_array [0] = 0 |
| 24064 | |
| 24065 | ; |
| 24066 | return 0; |
| 24067 | } |
| 24068 | _ACEOF |
| 24069 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24070 | if { (ac_try="$ac_compile" |
| 24071 | case "(($ac_try" in |
| 24072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24073 | *) ac_try_echo=$ac_try;; |
| 24074 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24076 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24077 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24079 | rm -f conftest.er1 |
| 24080 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24082 | (exit $ac_status); } && { |
| 24083 | test -z "$ac_c_werror_flag" || |
| 24084 | test ! -s conftest.err |
| 24085 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24086 | ac_hi=$ac_mid; break |
| 24087 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24088 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24090 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24091 | ac_lo=`expr $ac_mid + 1` |
| 24092 | if test $ac_lo -le $ac_mid; then |
| 24093 | ac_lo= ac_hi= |
| 24094 | break |
| 24095 | fi |
| 24096 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24097 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24098 | |
| 24099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24100 | done |
| 24101 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24102 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24104 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24105 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24106 | /* confdefs.h. */ |
| 24107 | _ACEOF |
| 24108 | cat confdefs.h >>conftest.$ac_ext |
| 24109 | cat >>conftest.$ac_ext <<_ACEOF |
| 24110 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24111 | #include <wchar.h> |
| 24112 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24113 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24114 | int |
| 24115 | main () |
| 24116 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24117 | 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] | 24118 | test_array [0] = 0 |
| 24119 | |
| 24120 | ; |
| 24121 | return 0; |
| 24122 | } |
| 24123 | _ACEOF |
| 24124 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24125 | if { (ac_try="$ac_compile" |
| 24126 | case "(($ac_try" in |
| 24127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24128 | *) ac_try_echo=$ac_try;; |
| 24129 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24131 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24132 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24133 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24134 | rm -f conftest.er1 |
| 24135 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24137 | (exit $ac_status); } && { |
| 24138 | test -z "$ac_c_werror_flag" || |
| 24139 | test ! -s conftest.err |
| 24140 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24141 | ac_hi=-1 ac_mid=-1 |
| 24142 | while :; do |
| 24143 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24144 | /* confdefs.h. */ |
| 24145 | _ACEOF |
| 24146 | cat confdefs.h >>conftest.$ac_ext |
| 24147 | cat >>conftest.$ac_ext <<_ACEOF |
| 24148 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24149 | #include <wchar.h> |
| 24150 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24151 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24152 | int |
| 24153 | main () |
| 24154 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24155 | 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] | 24156 | test_array [0] = 0 |
| 24157 | |
| 24158 | ; |
| 24159 | return 0; |
| 24160 | } |
| 24161 | _ACEOF |
| 24162 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24163 | if { (ac_try="$ac_compile" |
| 24164 | case "(($ac_try" in |
| 24165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24166 | *) ac_try_echo=$ac_try;; |
| 24167 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24169 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24170 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24172 | rm -f conftest.er1 |
| 24173 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24175 | (exit $ac_status); } && { |
| 24176 | test -z "$ac_c_werror_flag" || |
| 24177 | test ! -s conftest.err |
| 24178 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24179 | ac_lo=$ac_mid; break |
| 24180 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24181 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24183 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24184 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 24185 | if test $ac_mid -le $ac_hi; then |
| 24186 | ac_lo= ac_hi= |
| 24187 | break |
| 24188 | fi |
| 24189 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24190 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24191 | |
| 24192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24193 | done |
| 24194 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24195 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24197 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24198 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24199 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24200 | |
| 24201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24202 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24203 | |
| 24204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24205 | # Binary search between lo and hi bounds. |
| 24206 | while test "x$ac_lo" != "x$ac_hi"; do |
| 24207 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 24208 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24209 | /* confdefs.h. */ |
| 24210 | _ACEOF |
| 24211 | cat confdefs.h >>conftest.$ac_ext |
| 24212 | cat >>conftest.$ac_ext <<_ACEOF |
| 24213 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24214 | #include <wchar.h> |
| 24215 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24216 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24217 | int |
| 24218 | main () |
| 24219 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24220 | 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] | 24221 | test_array [0] = 0 |
| 24222 | |
| 24223 | ; |
| 24224 | return 0; |
| 24225 | } |
| 24226 | _ACEOF |
| 24227 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24228 | if { (ac_try="$ac_compile" |
| 24229 | case "(($ac_try" in |
| 24230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24231 | *) ac_try_echo=$ac_try;; |
| 24232 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24234 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24235 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24237 | rm -f conftest.er1 |
| 24238 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24240 | (exit $ac_status); } && { |
| 24241 | test -z "$ac_c_werror_flag" || |
| 24242 | test ! -s conftest.err |
| 24243 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24244 | ac_hi=$ac_mid |
| 24245 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24246 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24248 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24249 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24250 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24251 | |
| 24252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24253 | done |
| 24254 | case $ac_lo in |
| 24255 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24256 | '') if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24257 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24258 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24259 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24260 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24261 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24262 | else |
| 24263 | ac_cv_sizeof_wchar_t=0 |
| 24264 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24265 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24266 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24267 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24268 | /* confdefs.h. */ |
| 24269 | _ACEOF |
| 24270 | cat confdefs.h >>conftest.$ac_ext |
| 24271 | cat >>conftest.$ac_ext <<_ACEOF |
| 24272 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24273 | #include <wchar.h> |
| 24274 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24275 | typedef wchar_t ac__type_sizeof_; |
| 24276 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 24277 | 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] | 24278 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24279 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24280 | int |
| 24281 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24282 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24283 | |
| 24284 | FILE *f = fopen ("conftest.val", "w"); |
| 24285 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24286 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24287 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24288 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24289 | long int i = longval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24290 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24291 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24292 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24293 | } |
| 24294 | else |
| 24295 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24296 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24297 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24298 | return 1; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24299 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24300 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24301 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24302 | |
| 24303 | ; |
| 24304 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24305 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24306 | _ACEOF |
| 24307 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24308 | if { (ac_try="$ac_link" |
| 24309 | case "(($ac_try" in |
| 24310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24311 | *) ac_try_echo=$ac_try;; |
| 24312 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24314 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24315 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24317 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24318 | { (case "(($ac_try" in |
| 24319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24320 | *) ac_try_echo=$ac_try;; |
| 24321 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24323 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24324 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24326 | (exit $ac_status); }; }; then |
| 24327 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24328 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24329 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24330 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24332 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24333 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24334 | if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24335 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24336 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24337 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24338 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24339 | { (exit 77); exit 77; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24340 | else |
| 24341 | ac_cv_sizeof_wchar_t=0 |
| 24342 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24343 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24344 | 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] | 24345 | fi |
| 24346 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24347 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24348 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 24349 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24350 | |
| 24351 | |
| 24352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24353 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24354 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24355 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24356 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24357 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24358 | fi |
| 24359 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24360 | { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 24361 | 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] | 24362 | have_ucs4_tcl=no |
| 24363 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24364 | /* confdefs.h. */ |
| 24365 | _ACEOF |
| 24366 | cat confdefs.h >>conftest.$ac_ext |
| 24367 | cat >>conftest.$ac_ext <<_ACEOF |
| 24368 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24369 | |
| 24370 | #include <tcl.h> |
| 24371 | #if TCL_UTF_MAX != 6 |
| 24372 | # error "NOT UCS4_TCL" |
| 24373 | #endif |
| 24374 | int |
| 24375 | main () |
| 24376 | { |
| 24377 | |
| 24378 | ; |
| 24379 | return 0; |
| 24380 | } |
| 24381 | _ACEOF |
| 24382 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24383 | if { (ac_try="$ac_compile" |
| 24384 | case "(($ac_try" in |
| 24385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24386 | *) ac_try_echo=$ac_try;; |
| 24387 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24389 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24390 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24392 | rm -f conftest.er1 |
| 24393 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24395 | (exit $ac_status); } && { |
| 24396 | test -z "$ac_c_werror_flag" || |
| 24397 | test ! -s conftest.err |
| 24398 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24399 | |
| 24400 | |
| 24401 | cat >>confdefs.h <<\_ACEOF |
| 24402 | #define HAVE_UCS4_TCL 1 |
| 24403 | _ACEOF |
| 24404 | |
| 24405 | have_ucs4_tcl=yes |
| 24406 | |
| 24407 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24408 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24410 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24411 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24412 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24413 | |
| 24414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24415 | { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 24416 | echo "${ECHO_T}$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24417 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24418 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24419 | if test "$wchar_h" = yes |
| 24420 | then |
| 24421 | # check whether wchar_t is signed or not |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24422 | { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 24423 | 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] | 24424 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24426 | else |
| 24427 | |
| 24428 | if test "$cross_compiling" = yes; then |
| 24429 | ac_cv_wchar_t_signed=yes |
| 24430 | else |
| 24431 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24432 | /* confdefs.h. */ |
| 24433 | _ACEOF |
| 24434 | cat confdefs.h >>conftest.$ac_ext |
| 24435 | cat >>conftest.$ac_ext <<_ACEOF |
| 24436 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24437 | |
| 24438 | #include <wchar.h> |
| 24439 | int main() |
| 24440 | { |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 24441 | /* Success: exit code 0 */ |
| 24442 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24443 | } |
| 24444 | |
| 24445 | _ACEOF |
| 24446 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24447 | if { (ac_try="$ac_link" |
| 24448 | case "(($ac_try" in |
| 24449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24450 | *) ac_try_echo=$ac_try;; |
| 24451 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24453 | (eval "$ac_link") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24454 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24456 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24457 | { (case "(($ac_try" in |
| 24458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24459 | *) ac_try_echo=$ac_try;; |
| 24460 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24462 | (eval "$ac_try") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24463 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24465 | (exit $ac_status); }; }; then |
| 24466 | ac_cv_wchar_t_signed=yes |
| 24467 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24468 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24469 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24471 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24472 | ( exit $ac_status ) |
| 24473 | ac_cv_wchar_t_signed=no |
| 24474 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24475 | 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] | 24476 | fi |
| 24477 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24478 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 24479 | fi |
| 24480 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24481 | { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 24482 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24483 | fi |
| 24484 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24485 | { echo "$as_me:$LINENO: checking what type to use for str" >&5 |
| 24486 | echo $ECHO_N "checking what type to use for str... $ECHO_C" >&6; } |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 24487 | |
| 24488 | # Check whether --with-wide-unicode was given. |
| 24489 | if test "${with_wide_unicode+set}" = set; then |
| 24490 | withval=$with_wide_unicode; |
| 24491 | if test "$withval" != no |
| 24492 | then unicode_size="4" |
| 24493 | else unicode_size="2" |
| 24494 | fi |
| 24495 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24496 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24497 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 24498 | case "$have_ucs4_tcl" in |
| 24499 | yes) unicode_size="4" ;; |
| 24500 | *) unicode_size="2" ;; |
| 24501 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24502 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24503 | fi |
| 24504 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 24505 | |
| 24506 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24507 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 24508 | case "$unicode_size" in |
| 24509 | 4) cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24510 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24511 | _ACEOF |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 24512 | ;; |
| 24513 | *) cat >>confdefs.h <<\_ACEOF |
| 24514 | #define Py_UNICODE_SIZE 2 |
| 24515 | _ACEOF |
| 24516 | ;; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24517 | esac |
| 24518 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24519 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24520 | |
| 24521 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 24522 | # wchar_t is only usable if it maps to an unsigned type |
| 24523 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 24524 | -a "$ac_cv_wchar_t_signed" = "no" |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 24525 | then |
| 24526 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24527 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24528 | cat >>confdefs.h <<\_ACEOF |
| 24529 | #define HAVE_USABLE_WCHAR_T 1 |
| 24530 | _ACEOF |
| 24531 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 24532 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24533 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24534 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24535 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 24536 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 24537 | then |
| 24538 | PY_UNICODE_TYPE="unsigned short" |
| 24539 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24540 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24541 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24542 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 24543 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 24544 | then |
| 24545 | PY_UNICODE_TYPE="unsigned long" |
| 24546 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24547 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24548 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24549 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 24550 | else |
| 24551 | PY_UNICODE_TYPE="no type found" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24552 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24553 | { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 24554 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24555 | |
| 24556 | # check for endianness |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24557 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 24558 | 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] | 24559 | if test "${ac_cv_c_bigendian+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24561 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24562 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 24563 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24564 | /* confdefs.h. */ |
| 24565 | _ACEOF |
| 24566 | cat confdefs.h >>conftest.$ac_ext |
| 24567 | cat >>conftest.$ac_ext <<_ACEOF |
| 24568 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24569 | #include <sys/types.h> |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24570 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24571 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24572 | int |
| 24573 | main () |
| 24574 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24575 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 24576 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
| 24577 | bogus endian macros |
| 24578 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24579 | |
| 24580 | ; |
| 24581 | return 0; |
| 24582 | } |
| 24583 | _ACEOF |
| 24584 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24585 | if { (ac_try="$ac_compile" |
| 24586 | case "(($ac_try" in |
| 24587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24588 | *) ac_try_echo=$ac_try;; |
| 24589 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24591 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24592 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24594 | rm -f conftest.er1 |
| 24595 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24597 | (exit $ac_status); } && { |
| 24598 | test -z "$ac_c_werror_flag" || |
| 24599 | test ! -s conftest.err |
| 24600 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24601 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24602 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24603 | /* confdefs.h. */ |
| 24604 | _ACEOF |
| 24605 | cat confdefs.h >>conftest.$ac_ext |
| 24606 | cat >>conftest.$ac_ext <<_ACEOF |
| 24607 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24608 | #include <sys/types.h> |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24609 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24610 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24611 | int |
| 24612 | main () |
| 24613 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24614 | #if BYTE_ORDER != BIG_ENDIAN |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24615 | not big endian |
| 24616 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24617 | |
| 24618 | ; |
| 24619 | return 0; |
| 24620 | } |
| 24621 | _ACEOF |
| 24622 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24623 | if { (ac_try="$ac_compile" |
| 24624 | case "(($ac_try" in |
| 24625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24626 | *) ac_try_echo=$ac_try;; |
| 24627 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24629 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24630 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24631 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24632 | rm -f conftest.er1 |
| 24633 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24635 | (exit $ac_status); } && { |
| 24636 | test -z "$ac_c_werror_flag" || |
| 24637 | test ! -s conftest.err |
| 24638 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24639 | ac_cv_c_bigendian=yes |
| 24640 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24641 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24642 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24643 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24644 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24645 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24646 | |
| 24647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24648 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24649 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24651 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24652 | # It does not; compile a test program. |
| 24653 | if test "$cross_compiling" = yes; then |
| 24654 | # try to guess the endianness by grepping values into an object file |
| 24655 | ac_cv_c_bigendian=unknown |
| 24656 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24657 | /* confdefs.h. */ |
| 24658 | _ACEOF |
| 24659 | cat confdefs.h >>conftest.$ac_ext |
| 24660 | cat >>conftest.$ac_ext <<_ACEOF |
| 24661 | /* end confdefs.h. */ |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24662 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 24663 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 24664 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 24665 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 24666 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 24667 | 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] | 24668 | int |
| 24669 | main () |
| 24670 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24671 | _ascii (); _ebcdic (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24672 | ; |
| 24673 | return 0; |
| 24674 | } |
| 24675 | _ACEOF |
| 24676 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24677 | if { (ac_try="$ac_compile" |
| 24678 | case "(($ac_try" in |
| 24679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24680 | *) ac_try_echo=$ac_try;; |
| 24681 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24683 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24684 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24685 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24686 | rm -f conftest.er1 |
| 24687 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24689 | (exit $ac_status); } && { |
| 24690 | test -z "$ac_c_werror_flag" || |
| 24691 | test ! -s conftest.err |
| 24692 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24693 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24694 | ac_cv_c_bigendian=yes |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 24695 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24696 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 24697 | if test "$ac_cv_c_bigendian" = unknown; then |
| 24698 | ac_cv_c_bigendian=no |
| 24699 | else |
| 24700 | # finding both strings is unlikely to happen, but who knows? |
| 24701 | ac_cv_c_bigendian=unknown |
| 24702 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 24703 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 24704 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24705 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24707 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24708 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24709 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24710 | |
| 24711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24712 | else |
| 24713 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24714 | /* confdefs.h. */ |
| 24715 | _ACEOF |
| 24716 | cat confdefs.h >>conftest.$ac_ext |
| 24717 | cat >>conftest.$ac_ext <<_ACEOF |
| 24718 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24719 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24720 | int |
| 24721 | main () |
| 24722 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24723 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24724 | /* Are we little or big endian? From Harbison&Steele. */ |
| 24725 | union |
| 24726 | { |
| 24727 | long int l; |
| 24728 | char c[sizeof (long int)]; |
| 24729 | } u; |
| 24730 | u.l = 1; |
| 24731 | return u.c[sizeof (long int) - 1] == 1; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24732 | |
| 24733 | ; |
| 24734 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24735 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24736 | _ACEOF |
| 24737 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24738 | if { (ac_try="$ac_link" |
| 24739 | case "(($ac_try" in |
| 24740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24741 | *) ac_try_echo=$ac_try;; |
| 24742 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24744 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24745 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24747 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24748 | { (case "(($ac_try" in |
| 24749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24750 | *) ac_try_echo=$ac_try;; |
| 24751 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24753 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24754 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24756 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24757 | ac_cv_c_bigendian=no |
| 24758 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24759 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24760 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24761 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24762 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24763 | ( exit $ac_status ) |
| 24764 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24765 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24766 | 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] | 24767 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24768 | |
| 24769 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24770 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24771 | |
| 24772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24773 | fi |
| 24774 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 24775 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 24776 | case $ac_cv_c_bigendian in |
| 24777 | yes) |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 24778 | |
| 24779 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24780 | #define WORDS_BIGENDIAN 1 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 24781 | _ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24782 | ;; |
| 24783 | no) |
| 24784 | ;; |
| 24785 | *) |
| 24786 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 24787 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 24788 | echo "$as_me: error: unknown endianness |
| 24789 | 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] | 24790 | { (exit 1); exit 1; }; } ;; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24791 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24792 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24793 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24794 | # Check whether right shifting a negative integer extends the sign bit |
| 24795 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24796 | { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 24797 | 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] | 24798 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 24800 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24801 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24802 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 24803 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24804 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24805 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24806 | /* confdefs.h. */ |
| 24807 | _ACEOF |
| 24808 | cat confdefs.h >>conftest.$ac_ext |
| 24809 | cat >>conftest.$ac_ext <<_ACEOF |
| 24810 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24811 | |
| 24812 | int main() |
| 24813 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 24814 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24815 | } |
| 24816 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24817 | _ACEOF |
| 24818 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24819 | if { (ac_try="$ac_link" |
| 24820 | case "(($ac_try" in |
| 24821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24822 | *) ac_try_echo=$ac_try;; |
| 24823 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24825 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24826 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24828 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24829 | { (case "(($ac_try" in |
| 24830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24831 | *) ac_try_echo=$ac_try;; |
| 24832 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24834 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24835 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24837 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 24838 | ac_cv_rshift_extends_sign=yes |
| 24839 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24840 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24841 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24842 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24843 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24844 | ( exit $ac_status ) |
| 24845 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 24846 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24847 | 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] | 24848 | fi |
| 24849 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24850 | |
| 24851 | fi |
| 24852 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24853 | { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 24854 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 24855 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24856 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24857 | |
| 24858 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24859 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24860 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24861 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24862 | fi |
| 24863 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24864 | # check for getc_unlocked and related locking functions |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24865 | { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 24866 | 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] | 24867 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24869 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24870 | |
| 24871 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24872 | /* confdefs.h. */ |
| 24873 | _ACEOF |
| 24874 | cat confdefs.h >>conftest.$ac_ext |
| 24875 | cat >>conftest.$ac_ext <<_ACEOF |
| 24876 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24877 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24878 | int |
| 24879 | main () |
| 24880 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24881 | |
| 24882 | FILE *f = fopen("/dev/null", "r"); |
| 24883 | flockfile(f); |
| 24884 | getc_unlocked(f); |
| 24885 | funlockfile(f); |
| 24886 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24887 | ; |
| 24888 | return 0; |
| 24889 | } |
| 24890 | _ACEOF |
| 24891 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24892 | if { (ac_try="$ac_link" |
| 24893 | case "(($ac_try" in |
| 24894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24895 | *) ac_try_echo=$ac_try;; |
| 24896 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24898 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24899 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24901 | rm -f conftest.er1 |
| 24902 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24904 | (exit $ac_status); } && { |
| 24905 | test -z "$ac_c_werror_flag" || |
| 24906 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24907 | } && test -s conftest$ac_exeext && |
| 24908 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24909 | ac_cv_have_getc_unlocked=yes |
| 24910 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24911 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24912 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24913 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24914 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24915 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24916 | |
| 24917 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24918 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24919 | fi |
| 24920 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24921 | { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 24922 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24923 | if test "$ac_cv_have_getc_unlocked" = yes |
| 24924 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24925 | |
| 24926 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24927 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24928 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24929 | |
| 24930 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24931 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24932 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 24933 | # save the value of LIBS so we don't actually link Python with readline |
| 24934 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24935 | |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 24936 | # On some systems we need to link readline to a termcap compatible |
| 24937 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 24938 | # with setup.py. |
| 24939 | py_cv_lib_readline=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24940 | { echo "$as_me:$LINENO: checking how to link readline libs" >&5 |
| 24941 | echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 24942 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 24943 | if test -z "$py_libtermcap"; then |
| 24944 | READLINE_LIBS="-lreadline" |
| 24945 | else |
| 24946 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 24947 | fi |
| 24948 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
| 24949 | cat >conftest.$ac_ext <<_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24950 | /* confdefs.h. */ |
| 24951 | _ACEOF |
| 24952 | cat confdefs.h >>conftest.$ac_ext |
| 24953 | cat >>conftest.$ac_ext <<_ACEOF |
| 24954 | /* end confdefs.h. */ |
| 24955 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24956 | /* Override any GCC internal prototype to avoid an error. |
| 24957 | Use char because int might match the return type of a GCC |
| 24958 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24959 | #ifdef __cplusplus |
| 24960 | extern "C" |
| 24961 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24962 | char readline (); |
| 24963 | int |
| 24964 | main () |
| 24965 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24966 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24967 | ; |
| 24968 | return 0; |
| 24969 | } |
| 24970 | _ACEOF |
| 24971 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24972 | if { (ac_try="$ac_link" |
| 24973 | case "(($ac_try" in |
| 24974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24975 | *) ac_try_echo=$ac_try;; |
| 24976 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24978 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24979 | ac_status=$? |
| 24980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24981 | rm -f conftest.er1 |
| 24982 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24984 | (exit $ac_status); } && { |
| 24985 | test -z "$ac_c_werror_flag" || |
| 24986 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24987 | } && test -s conftest$ac_exeext && |
| 24988 | $as_test_x conftest$ac_exeext; then |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 24989 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24990 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 24991 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24993 | |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 24994 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24995 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24996 | |
| 24997 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24998 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 24999 | if test $py_cv_lib_readline = yes; then |
| 25000 | break |
| 25001 | fi |
| 25002 | done |
| 25003 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 25004 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 25005 | if test $py_cv_lib_readline = no; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25006 | { echo "$as_me:$LINENO: result: none" >&5 |
| 25007 | echo "${ECHO_T}none" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 25008 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25009 | { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5 |
| 25010 | echo "${ECHO_T}$READLINE_LIBS" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 25011 | |
| 25012 | cat >>confdefs.h <<\_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25013 | #define HAVE_LIBREADLINE 1 |
| 25014 | _ACEOF |
| 25015 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25016 | fi |
| 25017 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25018 | # check for readline 2.1 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25019 | { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 25020 | 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] | 25021 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25023 | else |
| 25024 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 25025 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25026 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25027 | /* confdefs.h. */ |
| 25028 | _ACEOF |
| 25029 | cat confdefs.h >>conftest.$ac_ext |
| 25030 | cat >>conftest.$ac_ext <<_ACEOF |
| 25031 | /* end confdefs.h. */ |
| 25032 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25033 | /* Override any GCC internal prototype to avoid an error. |
| 25034 | Use char because int might match the return type of a GCC |
| 25035 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25036 | #ifdef __cplusplus |
| 25037 | extern "C" |
| 25038 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25039 | char rl_callback_handler_install (); |
| 25040 | int |
| 25041 | main () |
| 25042 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25043 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25044 | ; |
| 25045 | return 0; |
| 25046 | } |
| 25047 | _ACEOF |
| 25048 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25049 | if { (ac_try="$ac_link" |
| 25050 | case "(($ac_try" in |
| 25051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25052 | *) ac_try_echo=$ac_try;; |
| 25053 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25055 | (eval "$ac_link") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25056 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25057 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25058 | rm -f conftest.er1 |
| 25059 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25061 | (exit $ac_status); } && { |
| 25062 | test -z "$ac_c_werror_flag" || |
| 25063 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25064 | } && test -s conftest$ac_exeext && |
| 25065 | $as_test_x conftest$ac_exeext; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25066 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 25067 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25068 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25070 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25071 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25072 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25073 | |
| 25074 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25075 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25076 | LIBS=$ac_check_lib_save_LIBS |
| 25077 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25078 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 25079 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
| 25080 | 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] | 25081 | |
| 25082 | cat >>confdefs.h <<\_ACEOF |
| 25083 | #define HAVE_RL_CALLBACK 1 |
| 25084 | _ACEOF |
| 25085 | |
| 25086 | fi |
| 25087 | |
| 25088 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25089 | # check for readline 2.2 |
| 25090 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25091 | /* confdefs.h. */ |
| 25092 | _ACEOF |
| 25093 | cat confdefs.h >>conftest.$ac_ext |
| 25094 | cat >>conftest.$ac_ext <<_ACEOF |
| 25095 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25096 | #include <readline/readline.h> |
| 25097 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25098 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 25099 | case "(($ac_try" in |
| 25100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25101 | *) ac_try_echo=$ac_try;; |
| 25102 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25104 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25105 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25106 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25107 | rm -f conftest.er1 |
| 25108 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25110 | (exit $ac_status); } >/dev/null && { |
| 25111 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 25112 | test ! -s conftest.err |
| 25113 | }; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25114 | have_readline=yes |
| 25115 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25116 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25118 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25119 | have_readline=no |
| 25120 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25121 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25122 | rm -f conftest.err conftest.$ac_ext |
| 25123 | if test $have_readline = yes |
| 25124 | then |
| 25125 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25126 | /* confdefs.h. */ |
| 25127 | _ACEOF |
| 25128 | cat confdefs.h >>conftest.$ac_ext |
| 25129 | cat >>conftest.$ac_ext <<_ACEOF |
| 25130 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25131 | #include <readline/readline.h> |
| 25132 | |
| 25133 | _ACEOF |
| 25134 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25135 | $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] | 25136 | |
| 25137 | cat >>confdefs.h <<\_ACEOF |
| 25138 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 25139 | _ACEOF |
| 25140 | |
| 25141 | fi |
| 25142 | rm -f conftest* |
| 25143 | |
| 25144 | fi |
| 25145 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25146 | # check for readline 4.0 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25147 | { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 25148 | 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] | 25149 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25151 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25152 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 25153 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25154 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25155 | /* confdefs.h. */ |
| 25156 | _ACEOF |
| 25157 | cat confdefs.h >>conftest.$ac_ext |
| 25158 | cat >>conftest.$ac_ext <<_ACEOF |
| 25159 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25160 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25161 | /* Override any GCC internal prototype to avoid an error. |
| 25162 | Use char because int might match the return type of a GCC |
| 25163 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25164 | #ifdef __cplusplus |
| 25165 | extern "C" |
| 25166 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25167 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25168 | int |
| 25169 | main () |
| 25170 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25171 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25172 | ; |
| 25173 | return 0; |
| 25174 | } |
| 25175 | _ACEOF |
| 25176 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25177 | if { (ac_try="$ac_link" |
| 25178 | case "(($ac_try" in |
| 25179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25180 | *) ac_try_echo=$ac_try;; |
| 25181 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25183 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25184 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25186 | rm -f conftest.er1 |
| 25187 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25189 | (exit $ac_status); } && { |
| 25190 | test -z "$ac_c_werror_flag" || |
| 25191 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25192 | } && test -s conftest$ac_exeext && |
| 25193 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25194 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25195 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25196 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25198 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25199 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25200 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25201 | |
| 25202 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25203 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25204 | LIBS=$ac_check_lib_save_LIBS |
| 25205 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25206 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 25207 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
| 25208 | 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] | 25209 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25210 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25211 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25212 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25213 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25214 | fi |
| 25215 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25216 | |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 25217 | # also in 4.0 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25218 | { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 25219 | echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; } |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 25220 | if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 25222 | else |
| 25223 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 25224 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 25225 | cat >conftest.$ac_ext <<_ACEOF |
| 25226 | /* confdefs.h. */ |
| 25227 | _ACEOF |
| 25228 | cat confdefs.h >>conftest.$ac_ext |
| 25229 | cat >>conftest.$ac_ext <<_ACEOF |
| 25230 | /* end confdefs.h. */ |
| 25231 | |
| 25232 | /* Override any GCC internal prototype to avoid an error. |
| 25233 | Use char because int might match the return type of a GCC |
| 25234 | builtin and then its argument prototype would still apply. */ |
| 25235 | #ifdef __cplusplus |
| 25236 | extern "C" |
| 25237 | #endif |
| 25238 | char rl_completion_display_matches_hook (); |
| 25239 | int |
| 25240 | main () |
| 25241 | { |
| 25242 | return rl_completion_display_matches_hook (); |
| 25243 | ; |
| 25244 | return 0; |
| 25245 | } |
| 25246 | _ACEOF |
| 25247 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25248 | if { (ac_try="$ac_link" |
| 25249 | case "(($ac_try" in |
| 25250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25251 | *) ac_try_echo=$ac_try;; |
| 25252 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 25254 | (eval "$ac_link") 2>conftest.er1 |
| 25255 | ac_status=$? |
| 25256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25257 | rm -f conftest.er1 |
| 25258 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 25260 | (exit $ac_status); } && { |
| 25261 | test -z "$ac_c_werror_flag" || |
| 25262 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25263 | } && test -s conftest$ac_exeext && |
| 25264 | $as_test_x conftest$ac_exeext; then |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 25265 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 25266 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25267 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 25268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25269 | |
| 25270 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
| 25271 | fi |
| 25272 | |
| 25273 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 25274 | conftest$ac_exeext conftest.$ac_ext |
| 25275 | LIBS=$ac_check_lib_save_LIBS |
| 25276 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25277 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 25278 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
| 25279 | if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 25280 | |
| 25281 | cat >>confdefs.h <<\_ACEOF |
| 25282 | #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1 |
| 25283 | _ACEOF |
| 25284 | |
| 25285 | fi |
| 25286 | |
| 25287 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25288 | # check for readline 4.2 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25289 | { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 25290 | 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] | 25291 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25293 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25294 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 25295 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25296 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25297 | /* confdefs.h. */ |
| 25298 | _ACEOF |
| 25299 | cat confdefs.h >>conftest.$ac_ext |
| 25300 | cat >>conftest.$ac_ext <<_ACEOF |
| 25301 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25302 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25303 | /* Override any GCC internal prototype to avoid an error. |
| 25304 | Use char because int might match the return type of a GCC |
| 25305 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25306 | #ifdef __cplusplus |
| 25307 | extern "C" |
| 25308 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25309 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25310 | int |
| 25311 | main () |
| 25312 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25313 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25314 | ; |
| 25315 | return 0; |
| 25316 | } |
| 25317 | _ACEOF |
| 25318 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25319 | if { (ac_try="$ac_link" |
| 25320 | case "(($ac_try" in |
| 25321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25322 | *) ac_try_echo=$ac_try;; |
| 25323 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25325 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25326 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25328 | rm -f conftest.er1 |
| 25329 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25331 | (exit $ac_status); } && { |
| 25332 | test -z "$ac_c_werror_flag" || |
| 25333 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25334 | } && test -s conftest$ac_exeext && |
| 25335 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25336 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25337 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25338 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25340 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25341 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25342 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25343 | |
| 25344 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25345 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25346 | LIBS=$ac_check_lib_save_LIBS |
| 25347 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25348 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 25349 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; } |
| 25350 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25351 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25352 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25353 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25354 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25355 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25356 | fi |
| 25357 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 25358 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25359 | # also in readline 4.2 |
| 25360 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25361 | /* confdefs.h. */ |
| 25362 | _ACEOF |
| 25363 | cat confdefs.h >>conftest.$ac_ext |
| 25364 | cat >>conftest.$ac_ext <<_ACEOF |
| 25365 | /* end confdefs.h. */ |
| 25366 | #include <readline/readline.h> |
| 25367 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25368 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 25369 | case "(($ac_try" in |
| 25370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25371 | *) ac_try_echo=$ac_try;; |
| 25372 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25374 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25375 | ac_status=$? |
| 25376 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25377 | rm -f conftest.er1 |
| 25378 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25380 | (exit $ac_status); } >/dev/null && { |
| 25381 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 25382 | test ! -s conftest.err |
| 25383 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25384 | have_readline=yes |
| 25385 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25386 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25388 | |
| 25389 | have_readline=no |
| 25390 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25391 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25392 | rm -f conftest.err conftest.$ac_ext |
| 25393 | if test $have_readline = yes |
| 25394 | then |
| 25395 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25396 | /* confdefs.h. */ |
| 25397 | _ACEOF |
| 25398 | cat confdefs.h >>conftest.$ac_ext |
| 25399 | cat >>conftest.$ac_ext <<_ACEOF |
| 25400 | /* end confdefs.h. */ |
| 25401 | #include <readline/readline.h> |
| 25402 | |
| 25403 | _ACEOF |
| 25404 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 25405 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 25406 | |
| 25407 | cat >>confdefs.h <<\_ACEOF |
| 25408 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 25409 | _ACEOF |
| 25410 | |
| 25411 | fi |
| 25412 | rm -f conftest* |
| 25413 | |
| 25414 | fi |
| 25415 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 25416 | # End of readline checks: restore LIBS |
| 25417 | LIBS=$LIBS_no_readline |
| 25418 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25419 | { echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 25420 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25421 | if test "${ac_cv_broken_nice+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25423 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25424 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25425 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 25426 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25427 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25428 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25429 | /* confdefs.h. */ |
| 25430 | _ACEOF |
| 25431 | cat confdefs.h >>conftest.$ac_ext |
| 25432 | cat >>conftest.$ac_ext <<_ACEOF |
| 25433 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25434 | |
| 25435 | int main() |
| 25436 | { |
| 25437 | int val1 = nice(1); |
| 25438 | if (val1 != -1 && val1 == nice(2)) |
| 25439 | exit(0); |
| 25440 | exit(1); |
| 25441 | } |
| 25442 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25443 | _ACEOF |
| 25444 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25445 | if { (ac_try="$ac_link" |
| 25446 | case "(($ac_try" in |
| 25447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25448 | *) ac_try_echo=$ac_try;; |
| 25449 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25451 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25452 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25454 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25455 | { (case "(($ac_try" in |
| 25456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25457 | *) ac_try_echo=$ac_try;; |
| 25458 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25460 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25461 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25463 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25464 | ac_cv_broken_nice=yes |
| 25465 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25466 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25467 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25468 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25470 | ( exit $ac_status ) |
| 25471 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25472 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25473 | 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] | 25474 | fi |
| 25475 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25476 | |
| 25477 | fi |
| 25478 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25479 | { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 25480 | echo "${ECHO_T}$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25481 | if test "$ac_cv_broken_nice" = yes |
| 25482 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25483 | |
| 25484 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25485 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25486 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 25487 | |
| 25488 | fi |
| 25489 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25490 | { echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 25491 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 25492 | if test "${ac_cv_broken_poll+set}" = set; then |
| 25493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25494 | else |
| 25495 | if test "$cross_compiling" = yes; then |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25496 | ac_cv_broken_poll=no |
| 25497 | else |
| 25498 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25499 | /* confdefs.h. */ |
| 25500 | _ACEOF |
| 25501 | cat confdefs.h >>conftest.$ac_ext |
| 25502 | cat >>conftest.$ac_ext <<_ACEOF |
| 25503 | /* end confdefs.h. */ |
| 25504 | |
| 25505 | #include <poll.h> |
| 25506 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 25507 | int main() |
| 25508 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25509 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 25510 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25511 | |
| 25512 | close (42); |
| 25513 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 25514 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25515 | if (poll_test < 0) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 25516 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25517 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 25518 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25519 | else |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 25520 | return 1; |
| 25521 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25522 | |
| 25523 | _ACEOF |
| 25524 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25525 | if { (ac_try="$ac_link" |
| 25526 | case "(($ac_try" in |
| 25527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25528 | *) ac_try_echo=$ac_try;; |
| 25529 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25531 | (eval "$ac_link") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25532 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25534 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25535 | { (case "(($ac_try" in |
| 25536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25537 | *) ac_try_echo=$ac_try;; |
| 25538 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25540 | (eval "$ac_try") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25541 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25543 | (exit $ac_status); }; }; then |
| 25544 | ac_cv_broken_poll=yes |
| 25545 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25546 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25547 | echo "$as_me: failed program was:" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25549 | |
| 25550 | ( exit $ac_status ) |
| 25551 | ac_cv_broken_poll=no |
| 25552 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25553 | 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] | 25554 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25555 | |
| 25556 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 25557 | fi |
| 25558 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25559 | { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 25560 | echo "${ECHO_T}$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25561 | if test "$ac_cv_broken_poll" = yes |
| 25562 | then |
| 25563 | |
| 25564 | cat >>confdefs.h <<\_ACEOF |
| 25565 | #define HAVE_BROKEN_POLL 1 |
| 25566 | _ACEOF |
| 25567 | |
| 25568 | fi |
| 25569 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25570 | # 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] | 25571 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 25572 | # tzname[] |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25573 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 25574 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25575 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25577 | else |
| 25578 | cat >conftest.$ac_ext <<_ACEOF |
| 25579 | /* confdefs.h. */ |
| 25580 | _ACEOF |
| 25581 | cat confdefs.h >>conftest.$ac_ext |
| 25582 | cat >>conftest.$ac_ext <<_ACEOF |
| 25583 | /* end confdefs.h. */ |
| 25584 | #include <sys/types.h> |
| 25585 | #include <$ac_cv_struct_tm> |
| 25586 | |
| 25587 | |
| 25588 | int |
| 25589 | main () |
| 25590 | { |
| 25591 | static struct tm ac_aggr; |
| 25592 | if (ac_aggr.tm_zone) |
| 25593 | return 0; |
| 25594 | ; |
| 25595 | return 0; |
| 25596 | } |
| 25597 | _ACEOF |
| 25598 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25599 | if { (ac_try="$ac_compile" |
| 25600 | case "(($ac_try" in |
| 25601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25602 | *) ac_try_echo=$ac_try;; |
| 25603 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25605 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25606 | ac_status=$? |
| 25607 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25608 | rm -f conftest.er1 |
| 25609 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25611 | (exit $ac_status); } && { |
| 25612 | test -z "$ac_c_werror_flag" || |
| 25613 | test ! -s conftest.err |
| 25614 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25615 | ac_cv_member_struct_tm_tm_zone=yes |
| 25616 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25617 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25619 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25620 | cat >conftest.$ac_ext <<_ACEOF |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25621 | /* confdefs.h. */ |
| 25622 | _ACEOF |
| 25623 | cat confdefs.h >>conftest.$ac_ext |
| 25624 | cat >>conftest.$ac_ext <<_ACEOF |
| 25625 | /* end confdefs.h. */ |
| 25626 | #include <sys/types.h> |
| 25627 | #include <$ac_cv_struct_tm> |
| 25628 | |
| 25629 | |
| 25630 | int |
| 25631 | main () |
| 25632 | { |
| 25633 | static struct tm ac_aggr; |
| 25634 | if (sizeof ac_aggr.tm_zone) |
| 25635 | return 0; |
| 25636 | ; |
| 25637 | return 0; |
| 25638 | } |
| 25639 | _ACEOF |
| 25640 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25641 | if { (ac_try="$ac_compile" |
| 25642 | case "(($ac_try" in |
| 25643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25644 | *) ac_try_echo=$ac_try;; |
| 25645 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25647 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25648 | ac_status=$? |
| 25649 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25650 | rm -f conftest.er1 |
| 25651 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25653 | (exit $ac_status); } && { |
| 25654 | test -z "$ac_c_werror_flag" || |
| 25655 | test ! -s conftest.err |
| 25656 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25657 | ac_cv_member_struct_tm_tm_zone=yes |
| 25658 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25659 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25661 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25662 | ac_cv_member_struct_tm_tm_zone=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25663 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25664 | |
| 25665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25666 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25667 | |
| 25668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25669 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25670 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 25671 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 25672 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25673 | |
| 25674 | cat >>confdefs.h <<_ACEOF |
| 25675 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 25676 | _ACEOF |
| 25677 | |
| 25678 | |
| 25679 | fi |
| 25680 | |
| 25681 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 25682 | |
| 25683 | cat >>confdefs.h <<\_ACEOF |
| 25684 | #define HAVE_TM_ZONE 1 |
| 25685 | _ACEOF |
| 25686 | |
| 25687 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25688 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 25689 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25690 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25692 | else |
| 25693 | cat >conftest.$ac_ext <<_ACEOF |
| 25694 | /* confdefs.h. */ |
| 25695 | _ACEOF |
| 25696 | cat confdefs.h >>conftest.$ac_ext |
| 25697 | cat >>conftest.$ac_ext <<_ACEOF |
| 25698 | /* end confdefs.h. */ |
| 25699 | #include <time.h> |
| 25700 | |
| 25701 | int |
| 25702 | main () |
| 25703 | { |
| 25704 | #ifndef tzname |
| 25705 | (void) tzname; |
| 25706 | #endif |
| 25707 | |
| 25708 | ; |
| 25709 | return 0; |
| 25710 | } |
| 25711 | _ACEOF |
| 25712 | rm -f conftest.$ac_objext |
| 25713 | if { (ac_try="$ac_compile" |
| 25714 | case "(($ac_try" in |
| 25715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25716 | *) ac_try_echo=$ac_try;; |
| 25717 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25719 | (eval "$ac_compile") 2>conftest.er1 |
| 25720 | ac_status=$? |
| 25721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25722 | rm -f conftest.er1 |
| 25723 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25725 | (exit $ac_status); } && { |
| 25726 | test -z "$ac_c_werror_flag" || |
| 25727 | test ! -s conftest.err |
| 25728 | } && test -s conftest.$ac_objext; then |
| 25729 | ac_cv_have_decl_tzname=yes |
| 25730 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25731 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25733 | |
| 25734 | ac_cv_have_decl_tzname=no |
| 25735 | fi |
| 25736 | |
| 25737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25738 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25739 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 25740 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 25741 | if test $ac_cv_have_decl_tzname = yes; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25742 | |
| 25743 | cat >>confdefs.h <<_ACEOF |
| 25744 | #define HAVE_DECL_TZNAME 1 |
| 25745 | _ACEOF |
| 25746 | |
| 25747 | |
| 25748 | else |
| 25749 | cat >>confdefs.h <<_ACEOF |
| 25750 | #define HAVE_DECL_TZNAME 0 |
| 25751 | _ACEOF |
| 25752 | |
| 25753 | |
| 25754 | fi |
| 25755 | |
| 25756 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25757 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 25758 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25759 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25761 | else |
| 25762 | cat >conftest.$ac_ext <<_ACEOF |
| 25763 | /* confdefs.h. */ |
| 25764 | _ACEOF |
| 25765 | cat confdefs.h >>conftest.$ac_ext |
| 25766 | cat >>conftest.$ac_ext <<_ACEOF |
| 25767 | /* end confdefs.h. */ |
| 25768 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25769 | #if !HAVE_DECL_TZNAME |
| 25770 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25771 | #endif |
| 25772 | |
| 25773 | int |
| 25774 | main () |
| 25775 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25776 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25777 | ; |
| 25778 | return 0; |
| 25779 | } |
| 25780 | _ACEOF |
| 25781 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25782 | if { (ac_try="$ac_link" |
| 25783 | case "(($ac_try" in |
| 25784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25785 | *) ac_try_echo=$ac_try;; |
| 25786 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25788 | (eval "$ac_link") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25789 | ac_status=$? |
| 25790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25791 | rm -f conftest.er1 |
| 25792 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25794 | (exit $ac_status); } && { |
| 25795 | test -z "$ac_c_werror_flag" || |
| 25796 | test ! -s conftest.err |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25797 | } && test -s conftest$ac_exeext && |
| 25798 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25799 | ac_cv_var_tzname=yes |
| 25800 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25801 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25803 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25804 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25805 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25806 | |
| 25807 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25808 | conftest$ac_exeext conftest.$ac_ext |
| 25809 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25810 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 25811 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25812 | if test $ac_cv_var_tzname = yes; then |
| 25813 | |
| 25814 | cat >>confdefs.h <<\_ACEOF |
| 25815 | #define HAVE_TZNAME 1 |
| 25816 | _ACEOF |
| 25817 | |
| 25818 | fi |
| 25819 | fi |
| 25820 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25821 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 25822 | # check tzset(3) exists and works like we expect it to |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25823 | { echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 25824 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25825 | if test "${ac_cv_working_tzset+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25827 | else |
| 25828 | |
| 25829 | if test "$cross_compiling" = yes; then |
| 25830 | ac_cv_working_tzset=no |
| 25831 | else |
| 25832 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25833 | /* confdefs.h. */ |
| 25834 | _ACEOF |
| 25835 | cat confdefs.h >>conftest.$ac_ext |
| 25836 | cat >>conftest.$ac_ext <<_ACEOF |
| 25837 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25838 | |
| 25839 | #include <stdlib.h> |
| 25840 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25841 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25842 | |
| 25843 | #if HAVE_TZNAME |
| 25844 | extern char *tzname[]; |
| 25845 | #endif |
| 25846 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25847 | int main() |
| 25848 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25849 | /* Note that we need to ensure that not only does tzset(3) |
| 25850 | do 'something' with localtime, but it works as documented |
| 25851 | 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] | 25852 | This includes making sure that tzname is set properly if |
| 25853 | tm->tm_zone does not exist since it is the alternative way |
| 25854 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25855 | |
| 25856 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 25857 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25858 | */ |
| 25859 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 25860 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25861 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 25862 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 25863 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25864 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25865 | if (localtime(&groundhogday)->tm_hour != 0) |
| 25866 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25867 | #if HAVE_TZNAME |
| 25868 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 25869 | if (strcmp(tzname[0], "UTC") || |
| 25870 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 25871 | exit(1); |
| 25872 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25873 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 25874 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25875 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25876 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25877 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25878 | #if HAVE_TZNAME |
| 25879 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 25880 | exit(1); |
| 25881 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25882 | |
| 25883 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 25884 | tzset(); |
| 25885 | if (localtime(&groundhogday)->tm_hour != 11) |
| 25886 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25887 | #if HAVE_TZNAME |
| 25888 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 25889 | exit(1); |
| 25890 | #endif |
| 25891 | |
| 25892 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25893 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 25894 | exit(1); |
| 25895 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 25896 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25897 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25898 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25899 | exit(0); |
| 25900 | } |
| 25901 | |
| 25902 | _ACEOF |
| 25903 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25904 | if { (ac_try="$ac_link" |
| 25905 | case "(($ac_try" in |
| 25906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25907 | *) ac_try_echo=$ac_try;; |
| 25908 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25910 | (eval "$ac_link") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25911 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25913 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25914 | { (case "(($ac_try" in |
| 25915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25916 | *) ac_try_echo=$ac_try;; |
| 25917 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25919 | (eval "$ac_try") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25920 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25922 | (exit $ac_status); }; }; then |
| 25923 | ac_cv_working_tzset=yes |
| 25924 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25925 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25926 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25928 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25929 | ( exit $ac_status ) |
| 25930 | ac_cv_working_tzset=no |
| 25931 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25932 | 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] | 25933 | fi |
| 25934 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25935 | |
| 25936 | fi |
| 25937 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25938 | { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 25939 | echo "${ECHO_T}$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25940 | if test "$ac_cv_working_tzset" = yes |
| 25941 | then |
| 25942 | |
| 25943 | cat >>confdefs.h <<\_ACEOF |
| 25944 | #define HAVE_WORKING_TZSET 1 |
| 25945 | _ACEOF |
| 25946 | |
| 25947 | fi |
| 25948 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25949 | # Look for subsecond timestamps in struct stat |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25950 | { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 25951 | 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] | 25952 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25954 | else |
| 25955 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25956 | /* confdefs.h. */ |
| 25957 | _ACEOF |
| 25958 | cat confdefs.h >>conftest.$ac_ext |
| 25959 | cat >>conftest.$ac_ext <<_ACEOF |
| 25960 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25961 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25962 | int |
| 25963 | main () |
| 25964 | { |
| 25965 | |
| 25966 | struct stat st; |
| 25967 | st.st_mtim.tv_nsec = 1; |
| 25968 | |
| 25969 | ; |
| 25970 | return 0; |
| 25971 | } |
| 25972 | _ACEOF |
| 25973 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25974 | if { (ac_try="$ac_compile" |
| 25975 | case "(($ac_try" in |
| 25976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25977 | *) ac_try_echo=$ac_try;; |
| 25978 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25980 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25981 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25983 | rm -f conftest.er1 |
| 25984 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25986 | (exit $ac_status); } && { |
| 25987 | test -z "$ac_c_werror_flag" || |
| 25988 | test ! -s conftest.err |
| 25989 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 25990 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25991 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 25992 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25994 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25995 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25996 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25997 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25999 | fi |
| 26000 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26001 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 26002 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26003 | if test "$ac_cv_stat_tv_nsec" = yes |
| 26004 | then |
| 26005 | |
| 26006 | cat >>confdefs.h <<\_ACEOF |
| 26007 | #define HAVE_STAT_TV_NSEC 1 |
| 26008 | _ACEOF |
| 26009 | |
| 26010 | fi |
| 26011 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26012 | # Look for BSD style subsecond timestamps in struct stat |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26013 | { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 26014 | 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] | 26015 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26017 | else |
| 26018 | cat >conftest.$ac_ext <<_ACEOF |
| 26019 | /* confdefs.h. */ |
| 26020 | _ACEOF |
| 26021 | cat confdefs.h >>conftest.$ac_ext |
| 26022 | cat >>conftest.$ac_ext <<_ACEOF |
| 26023 | /* end confdefs.h. */ |
| 26024 | #include <sys/stat.h> |
| 26025 | int |
| 26026 | main () |
| 26027 | { |
| 26028 | |
| 26029 | struct stat st; |
| 26030 | st.st_mtimespec.tv_nsec = 1; |
| 26031 | |
| 26032 | ; |
| 26033 | return 0; |
| 26034 | } |
| 26035 | _ACEOF |
| 26036 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26037 | if { (ac_try="$ac_compile" |
| 26038 | case "(($ac_try" in |
| 26039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26040 | *) ac_try_echo=$ac_try;; |
| 26041 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26043 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26044 | ac_status=$? |
| 26045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26046 | rm -f conftest.er1 |
| 26047 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26049 | (exit $ac_status); } && { |
| 26050 | test -z "$ac_c_werror_flag" || |
| 26051 | test ! -s conftest.err |
| 26052 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26053 | ac_cv_stat_tv_nsec2=yes |
| 26054 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26055 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26057 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26058 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26059 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 26060 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26062 | fi |
| 26063 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26064 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 26065 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26066 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 26067 | then |
| 26068 | |
| 26069 | cat >>confdefs.h <<\_ACEOF |
| 26070 | #define HAVE_STAT_TV_NSEC2 1 |
| 26071 | _ACEOF |
| 26072 | |
| 26073 | fi |
| 26074 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26075 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26076 | { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 26077 | 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] | 26078 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26080 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26081 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26082 | /* confdefs.h. */ |
| 26083 | _ACEOF |
| 26084 | cat confdefs.h >>conftest.$ac_ext |
| 26085 | cat >>conftest.$ac_ext <<_ACEOF |
| 26086 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26087 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26088 | int |
| 26089 | main () |
| 26090 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26091 | |
| 26092 | int rtn; |
| 26093 | rtn = mvwdelch(0,0,0); |
| 26094 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26095 | ; |
| 26096 | return 0; |
| 26097 | } |
| 26098 | _ACEOF |
| 26099 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26100 | if { (ac_try="$ac_compile" |
| 26101 | case "(($ac_try" in |
| 26102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26103 | *) ac_try_echo=$ac_try;; |
| 26104 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26106 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26107 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26109 | rm -f conftest.er1 |
| 26110 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26112 | (exit $ac_status); } && { |
| 26113 | test -z "$ac_c_werror_flag" || |
| 26114 | test ! -s conftest.err |
| 26115 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26116 | ac_cv_mvwdelch_is_expression=yes |
| 26117 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26118 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26120 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26121 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26122 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 26123 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26125 | fi |
| 26126 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26127 | { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 26128 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26129 | |
| 26130 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 26131 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26132 | |
| 26133 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26134 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26135 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26136 | |
| 26137 | fi |
| 26138 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26139 | { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 26140 | 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] | 26141 | if test "${ac_cv_window_has_flags+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26143 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26144 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26145 | /* confdefs.h. */ |
| 26146 | _ACEOF |
| 26147 | cat confdefs.h >>conftest.$ac_ext |
| 26148 | cat >>conftest.$ac_ext <<_ACEOF |
| 26149 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26150 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26151 | int |
| 26152 | main () |
| 26153 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26154 | |
| 26155 | WINDOW *w; |
| 26156 | w->_flags = 0; |
| 26157 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26158 | ; |
| 26159 | return 0; |
| 26160 | } |
| 26161 | _ACEOF |
| 26162 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26163 | if { (ac_try="$ac_compile" |
| 26164 | case "(($ac_try" in |
| 26165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26166 | *) ac_try_echo=$ac_try;; |
| 26167 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26169 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26170 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26172 | rm -f conftest.er1 |
| 26173 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26175 | (exit $ac_status); } && { |
| 26176 | test -z "$ac_c_werror_flag" || |
| 26177 | test ! -s conftest.err |
| 26178 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26179 | ac_cv_window_has_flags=yes |
| 26180 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26181 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26183 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26184 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26185 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 26186 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26188 | fi |
| 26189 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26190 | { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 26191 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26192 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26193 | |
| 26194 | if test "$ac_cv_window_has_flags" = yes |
| 26195 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26196 | |
| 26197 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26198 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26199 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26200 | |
| 26201 | fi |
| 26202 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26203 | { echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 26204 | echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 26205 | cat >conftest.$ac_ext <<_ACEOF |
| 26206 | /* confdefs.h. */ |
| 26207 | _ACEOF |
| 26208 | cat confdefs.h >>conftest.$ac_ext |
| 26209 | cat >>conftest.$ac_ext <<_ACEOF |
| 26210 | /* end confdefs.h. */ |
| 26211 | #include <curses.h> |
| 26212 | int |
| 26213 | main () |
| 26214 | { |
| 26215 | void *x=is_term_resized |
| 26216 | ; |
| 26217 | return 0; |
| 26218 | } |
| 26219 | _ACEOF |
| 26220 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26221 | if { (ac_try="$ac_compile" |
| 26222 | case "(($ac_try" in |
| 26223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26224 | *) ac_try_echo=$ac_try;; |
| 26225 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26227 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 26228 | ac_status=$? |
| 26229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26230 | rm -f conftest.er1 |
| 26231 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26233 | (exit $ac_status); } && { |
| 26234 | test -z "$ac_c_werror_flag" || |
| 26235 | test ! -s conftest.err |
| 26236 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 26237 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 26238 | cat >>confdefs.h <<\_ACEOF |
| 26239 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 26240 | _ACEOF |
| 26241 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26242 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 26243 | echo "${ECHO_T}yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 26244 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26245 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 26246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26247 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26248 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26249 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 26250 | |
| 26251 | fi |
| 26252 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26254 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26255 | { echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 26256 | echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 26257 | cat >conftest.$ac_ext <<_ACEOF |
| 26258 | /* confdefs.h. */ |
| 26259 | _ACEOF |
| 26260 | cat confdefs.h >>conftest.$ac_ext |
| 26261 | cat >>conftest.$ac_ext <<_ACEOF |
| 26262 | /* end confdefs.h. */ |
| 26263 | #include <curses.h> |
| 26264 | int |
| 26265 | main () |
| 26266 | { |
| 26267 | void *x=resize_term |
| 26268 | ; |
| 26269 | return 0; |
| 26270 | } |
| 26271 | _ACEOF |
| 26272 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26273 | if { (ac_try="$ac_compile" |
| 26274 | case "(($ac_try" in |
| 26275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26276 | *) ac_try_echo=$ac_try;; |
| 26277 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26279 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 26280 | ac_status=$? |
| 26281 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26282 | rm -f conftest.er1 |
| 26283 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26285 | (exit $ac_status); } && { |
| 26286 | test -z "$ac_c_werror_flag" || |
| 26287 | test ! -s conftest.err |
| 26288 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 26289 | |
| 26290 | cat >>confdefs.h <<\_ACEOF |
| 26291 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 26292 | _ACEOF |
| 26293 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26294 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 26295 | echo "${ECHO_T}yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 26296 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26297 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 26298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26299 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26300 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26301 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 26302 | |
| 26303 | fi |
| 26304 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26306 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26307 | { echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 26308 | echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 26309 | cat >conftest.$ac_ext <<_ACEOF |
| 26310 | /* confdefs.h. */ |
| 26311 | _ACEOF |
| 26312 | cat confdefs.h >>conftest.$ac_ext |
| 26313 | cat >>conftest.$ac_ext <<_ACEOF |
| 26314 | /* end confdefs.h. */ |
| 26315 | #include <curses.h> |
| 26316 | int |
| 26317 | main () |
| 26318 | { |
| 26319 | void *x=resizeterm |
| 26320 | ; |
| 26321 | return 0; |
| 26322 | } |
| 26323 | _ACEOF |
| 26324 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26325 | if { (ac_try="$ac_compile" |
| 26326 | case "(($ac_try" in |
| 26327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26328 | *) ac_try_echo=$ac_try;; |
| 26329 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26331 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 26332 | ac_status=$? |
| 26333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26334 | rm -f conftest.er1 |
| 26335 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26337 | (exit $ac_status); } && { |
| 26338 | test -z "$ac_c_werror_flag" || |
| 26339 | test ! -s conftest.err |
| 26340 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 26341 | |
| 26342 | cat >>confdefs.h <<\_ACEOF |
| 26343 | #define HAVE_CURSES_RESIZETERM 1 |
| 26344 | _ACEOF |
| 26345 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26346 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 26347 | echo "${ECHO_T}yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 26348 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26349 | echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 26350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26351 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26352 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26353 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 26354 | |
| 26355 | fi |
| 26356 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26358 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26359 | { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 26360 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 26361 | |
| 26362 | if test -r /dev/ptmx |
| 26363 | then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26364 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 26365 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 26366 | |
| 26367 | cat >>confdefs.h <<\_ACEOF |
| 26368 | #define HAVE_DEV_PTMX 1 |
| 26369 | _ACEOF |
| 26370 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 26371 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26372 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26373 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 26374 | fi |
| 26375 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26376 | { echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 26377 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 26378 | |
| 26379 | if test -r /dev/ptc |
| 26380 | then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26381 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 26382 | echo "${ECHO_T}yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 26383 | |
| 26384 | cat >>confdefs.h <<\_ACEOF |
| 26385 | #define HAVE_DEV_PTC 1 |
| 26386 | _ACEOF |
| 26387 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 26388 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26389 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26390 | echo "${ECHO_T}no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 26391 | fi |
| 26392 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26393 | { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 26394 | echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 26395 | if test "${ac_cv_have_size_t_format+set}" = set; then |
| 26396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26397 | else |
| 26398 | if test "$cross_compiling" = yes; then |
| 26399 | ac_cv_have_size_t_format=no |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 26400 | else |
| 26401 | cat >conftest.$ac_ext <<_ACEOF |
| 26402 | /* confdefs.h. */ |
| 26403 | _ACEOF |
| 26404 | cat confdefs.h >>conftest.$ac_ext |
| 26405 | cat >>conftest.$ac_ext <<_ACEOF |
| 26406 | /* end confdefs.h. */ |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 26407 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 26408 | #include <stdio.h> |
| 26409 | #include <stddef.h> |
| 26410 | #include <string.h> |
| 26411 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 26412 | #ifdef HAVE_SYS_TYPES_H |
| 26413 | #include <sys/types.h> |
| 26414 | #endif |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 26415 | |
| 26416 | #ifdef HAVE_SSIZE_T |
| 26417 | typedef ssize_t Py_ssize_t; |
| 26418 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 26419 | typedef long Py_ssize_t; |
| 26420 | #else |
| 26421 | typedef int Py_ssize_t; |
| 26422 | #endif |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 26423 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 26424 | int main() |
| 26425 | { |
| 26426 | char buffer[256]; |
| 26427 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 26428 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 26429 | return 1; |
| 26430 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 26431 | if (strcmp(buffer, "123")) |
| 26432 | return 1; |
| 26433 | |
| 26434 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 26435 | return 1; |
| 26436 | |
| 26437 | if (strcmp(buffer, "-123")) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 26438 | return 1; |
| 26439 | |
| 26440 | return 0; |
| 26441 | } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 26442 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 26443 | _ACEOF |
| 26444 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26445 | if { (ac_try="$ac_link" |
| 26446 | case "(($ac_try" in |
| 26447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26448 | *) ac_try_echo=$ac_try;; |
| 26449 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26451 | (eval "$ac_link") 2>&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 26452 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 26454 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26455 | { (case "(($ac_try" in |
| 26456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26457 | *) ac_try_echo=$ac_try;; |
| 26458 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26460 | (eval "$ac_try") 2>&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 26461 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 26463 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 26464 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26465 | else |
| 26466 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26467 | echo "$as_me: failed program was:" >&5 |
| 26468 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26469 | |
| 26470 | ( exit $ac_status ) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 26471 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26472 | fi |
| 26473 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 26474 | fi |
| 26475 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26476 | |
| 26477 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 26478 | fi |
| 26479 | |
| 26480 | { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5 |
| 26481 | echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; } |
| 26482 | if test $ac_cv_have_size_t_format = yes |
| 26483 | then |
| 26484 | |
| 26485 | cat >>confdefs.h <<\_ACEOF |
| 26486 | #define PY_FORMAT_SIZE_T "z" |
| 26487 | _ACEOF |
| 26488 | |
| 26489 | fi |
| 26490 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26491 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 26492 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26493 | if test "${ac_cv_type_socklen_t+set}" = set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26495 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26496 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26497 | /* confdefs.h. */ |
| 26498 | _ACEOF |
| 26499 | cat confdefs.h >>conftest.$ac_ext |
| 26500 | cat >>conftest.$ac_ext <<_ACEOF |
| 26501 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 26502 | |
| 26503 | #ifdef HAVE_SYS_TYPES_H |
| 26504 | #include <sys/types.h> |
| 26505 | #endif |
| 26506 | #ifdef HAVE_SYS_SOCKET_H |
| 26507 | #include <sys/socket.h> |
| 26508 | #endif |
| 26509 | |
| 26510 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26511 | typedef socklen_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26512 | int |
| 26513 | main () |
| 26514 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26515 | if ((ac__type_new_ *) 0) |
| 26516 | return 0; |
| 26517 | if (sizeof (ac__type_new_)) |
| 26518 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26519 | ; |
| 26520 | return 0; |
| 26521 | } |
| 26522 | _ACEOF |
| 26523 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26524 | if { (ac_try="$ac_compile" |
| 26525 | case "(($ac_try" in |
| 26526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26527 | *) ac_try_echo=$ac_try;; |
| 26528 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26530 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26531 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26533 | rm -f conftest.er1 |
| 26534 | cat conftest.err >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26536 | (exit $ac_status); } && { |
| 26537 | test -z "$ac_c_werror_flag" || |
| 26538 | test ! -s conftest.err |
| 26539 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26540 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26541 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26542 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26544 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26545 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26546 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26547 | |
| 26548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26549 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26550 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 26551 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } |
| 26552 | if test $ac_cv_type_socklen_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26553 | : |
| 26554 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26555 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 26556 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26557 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26558 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26559 | |
| 26560 | fi |
| 26561 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26562 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26563 | { echo "$as_me:$LINENO: checking for broken mbstowcs" >&5 |
| 26564 | echo $ECHO_N "checking for broken mbstowcs... $ECHO_C" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 26565 | if test "${ac_cv_broken_mbstowcs+set}" = set; then |
| 26566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26567 | else |
| 26568 | if test "$cross_compiling" = yes; then |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 26569 | ac_cv_broken_mbstowcs=no |
| 26570 | else |
| 26571 | cat >conftest.$ac_ext <<_ACEOF |
| 26572 | /* confdefs.h. */ |
| 26573 | _ACEOF |
| 26574 | cat confdefs.h >>conftest.$ac_ext |
| 26575 | cat >>conftest.$ac_ext <<_ACEOF |
| 26576 | /* end confdefs.h. */ |
| 26577 | |
| 26578 | #include<stdlib.h> |
| 26579 | int main() { |
| 26580 | size_t len = -1; |
| 26581 | const char *str = "text"; |
| 26582 | len = mbstowcs(NULL, str, 0); |
| 26583 | return (len != 4); |
| 26584 | } |
| 26585 | |
| 26586 | _ACEOF |
| 26587 | rm -f conftest$ac_exeext |
| 26588 | if { (ac_try="$ac_link" |
| 26589 | case "(($ac_try" in |
| 26590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26591 | *) ac_try_echo=$ac_try;; |
| 26592 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 26594 | (eval "$ac_link") 2>&5 |
| 26595 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 26597 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 26598 | { (case "(($ac_try" in |
| 26599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26600 | *) ac_try_echo=$ac_try;; |
| 26601 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 26603 | (eval "$ac_try") 2>&5 |
| 26604 | ac_status=$? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 26606 | (exit $ac_status); }; }; then |
| 26607 | ac_cv_broken_mbstowcs=no |
| 26608 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26609 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26610 | echo "$as_me: failed program was:" >&5 |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 26611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26612 | |
| 26613 | ( exit $ac_status ) |
| 26614 | ac_cv_broken_mbstowcs=yes |
| 26615 | fi |
| 26616 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 26617 | fi |
| 26618 | |
| 26619 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 26620 | fi |
| 26621 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26622 | { echo "$as_me:$LINENO: result: $ac_cv_broken_mbstowcs" >&5 |
| 26623 | echo "${ECHO_T}$ac_cv_broken_mbstowcs" >&6; } |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 26624 | if test "$ac_cv_broken_mbstowcs" = yes |
| 26625 | then |
| 26626 | |
| 26627 | cat >>confdefs.h <<\_ACEOF |
| 26628 | #define HAVE_BROKEN_MBSTOWCS 1 |
| 26629 | _ACEOF |
| 26630 | |
| 26631 | fi |
| 26632 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26633 | # Check for --with-computed-gotos |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26634 | { echo "$as_me:$LINENO: checking for --with-computed-gotos" >&5 |
| 26635 | echo $ECHO_N "checking for --with-computed-gotos... $ECHO_C" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26636 | |
| 26637 | # Check whether --with-computed-gotos was given. |
| 26638 | if test "${with_computed_gotos+set}" = set; then |
| 26639 | withval=$with_computed_gotos; |
| 26640 | if test "$withval" != no |
| 26641 | then |
| 26642 | |
| 26643 | cat >>confdefs.h <<\_ACEOF |
| 26644 | #define USE_COMPUTED_GOTOS 1 |
| 26645 | _ACEOF |
| 26646 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26647 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 26648 | echo "${ECHO_T}yes" >&6; } |
| 26649 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 26650 | echo "${ECHO_T}no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26651 | fi |
| 26652 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26653 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26654 | echo "${ECHO_T}no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26655 | fi |
| 26656 | |
| 26657 | |
| 26658 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26659 | |
| 26660 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 26661 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 26662 | do |
| 26663 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 26664 | done |
| 26665 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26666 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 26667 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26668 | { echo "$as_me:$LINENO: checking for build directories" >&5 |
| 26669 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 26670 | for dir in $SRCDIRS; do |
| 26671 | if test ! -d $dir; then |
| 26672 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 26673 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 26674 | done |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26675 | { echo "$as_me:$LINENO: result: done" >&5 |
| 26676 | echo "${ECHO_T}done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 26677 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 26678 | # generate output files |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26679 | 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] | 26680 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26681 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26682 | # This file is a shell script that caches the results of configure |
| 26683 | # 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] | 26684 | # scripts and configure runs, see configure's option --config-cache. |
| 26685 | # It is not useful on other systems. If it contains results you don't |
| 26686 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26687 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26688 | # config.status only pays attention to the cache file if you give it |
| 26689 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26690 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26691 | # `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] | 26692 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 26693 | # following values. |
| 26694 | |
| 26695 | _ACEOF |
| 26696 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 26697 | # The following way of writing the cache mishandles newlines in values, |
| 26698 | # but we know of no workaround that is simple, portable, and efficient. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26699 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 26700 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 26701 | # and sets the high bit in the cache file unless we assign to the vars. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26702 | ( |
| 26703 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 26704 | eval ac_val=\$$ac_var |
| 26705 | case $ac_val in #( |
| 26706 | *${as_nl}*) |
| 26707 | case $ac_var in #( |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26708 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 26709 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26710 | esac |
| 26711 | case $ac_var in #( |
| 26712 | _ | IFS | as_nl) ;; #( |
| 26713 | *) $as_unset $ac_var ;; |
| 26714 | esac ;; |
| 26715 | esac |
| 26716 | done |
| 26717 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26718 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26719 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 26720 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26721 | # `set' does not quote correctly, so add quotes (double-quote |
| 26722 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 26723 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26724 | "s/'/'\\\\''/g; |
| 26725 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26726 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26727 | *) |
| 26728 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26729 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26730 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26731 | esac | |
| 26732 | sort |
| 26733 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26734 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26735 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26736 | t clear |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26737 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26738 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 26739 | t end |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26740 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 26741 | :end' >>confcache |
| 26742 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 26743 | if test -w "$cache_file"; then |
| 26744 | test "x$cache_file" != "x/dev/null" && |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26745 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 26746 | echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26747 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 26748 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26749 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 26750 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 26751 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26752 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 26753 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 26754 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26755 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 26756 | # Let make expand exec_prefix. |
| 26757 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 26758 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26759 | DEFS=-DHAVE_CONFIG_H |
| 26760 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26761 | ac_libobjs= |
| 26762 | ac_ltlibobjs= |
| 26763 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 26764 | # 1. Remove the extension, and $U if already installed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26765 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26766 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26767 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 26768 | # will be set to the directory where LIBOBJS objects are built. |
| 26769 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 26770 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26771 | done |
| 26772 | LIBOBJS=$ac_libobjs |
| 26773 | |
| 26774 | LTLIBOBJS=$ac_ltlibobjs |
| 26775 | |
| 26776 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26777 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26778 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26779 | ac_clean_files_save=$ac_clean_files |
| 26780 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26781 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 26782 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 26783 | cat >$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26784 | #! $SHELL |
| 26785 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 26786 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26787 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26788 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 26789 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26790 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26791 | ac_cs_recheck=false |
| 26792 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26793 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 26794 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 26795 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26796 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26797 | ## --------------------- ## |
| 26798 | ## M4sh Initialization. ## |
| 26799 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 26800 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26801 | # Be more Bourne compatible |
| 26802 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26803 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 26804 | emulate sh |
| 26805 | NULLCMD=: |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26806 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26807 | # is contrary to our usage. Disable this feature. |
| 26808 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26809 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 26810 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26811 | case `(set -o) 2>/dev/null` in |
| 26812 | *posix*) set -o posix ;; |
| 26813 | esac |
| 26814 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26815 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 26816 | |
| 26817 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26818 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26819 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26820 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26821 | # Avoid depending upon Character Ranges. |
| 26822 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 26823 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 26824 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 26825 | as_cr_digits='0123456789' |
| 26826 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 26827 | |
| 26828 | # The user is always right. |
| 26829 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26830 | echo "#! /bin/sh" >conf$$.sh |
| 26831 | echo "exit 0" >>conf$$.sh |
| 26832 | chmod +x conf$$.sh |
| 26833 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 26834 | PATH_SEPARATOR=';' |
| 26835 | else |
| 26836 | PATH_SEPARATOR=: |
| 26837 | fi |
| 26838 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26839 | fi |
| 26840 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26841 | # Support unset when possible. |
| 26842 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 26843 | as_unset=unset |
| 26844 | else |
| 26845 | as_unset=false |
| 26846 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26847 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26848 | |
| 26849 | # IFS |
| 26850 | # We need space, tab and new line, in precisely that order. Quoting is |
| 26851 | # there to prevent editors from complaining about space-tab. |
| 26852 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 26853 | # splitting by setting IFS to empty value.) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26854 | as_nl=' |
| 26855 | ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26856 | IFS=" "" $as_nl" |
| 26857 | |
| 26858 | # Find who we are. Look in the path if we contain no directory separator. |
| 26859 | case $0 in |
| 26860 | *[\\/]* ) as_myself=$0 ;; |
| 26861 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26862 | for as_dir in $PATH |
| 26863 | do |
| 26864 | IFS=$as_save_IFS |
| 26865 | test -z "$as_dir" && as_dir=. |
| 26866 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 26867 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26868 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26869 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26870 | ;; |
| 26871 | esac |
| 26872 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 26873 | # in which case we are not to be found in the path. |
| 26874 | if test "x$as_myself" = x; then |
| 26875 | as_myself=$0 |
| 26876 | fi |
| 26877 | if test ! -f "$as_myself"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26878 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26879 | { (exit 1); exit 1; } |
| 26880 | fi |
| 26881 | |
| 26882 | # Work around bugs in pre-3.0 UWIN ksh. |
| 26883 | for as_var in ENV MAIL MAILPATH |
| 26884 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 26885 | done |
| 26886 | PS1='$ ' |
| 26887 | PS2='> ' |
| 26888 | PS4='+ ' |
| 26889 | |
| 26890 | # NLS nuisances. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26891 | for as_var in \ |
| 26892 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 26893 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 26894 | LC_TELEPHONE LC_TIME |
| 26895 | do |
| 26896 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 26897 | eval $as_var=C; export $as_var |
| 26898 | else |
| 26899 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 26900 | fi |
| 26901 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26902 | |
| 26903 | # Required to use basename. |
| 26904 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 26905 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 26906 | as_expr=expr |
| 26907 | else |
| 26908 | as_expr=false |
| 26909 | fi |
| 26910 | |
| 26911 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 26912 | as_basename=basename |
| 26913 | else |
| 26914 | as_basename=false |
| 26915 | fi |
| 26916 | |
| 26917 | |
| 26918 | # Name of the executable. |
| 26919 | as_me=`$as_basename -- "$0" || |
| 26920 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 26921 | X"$0" : 'X\(//\)$' \| \ |
| 26922 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26923 | echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26924 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 26925 | s//\1/ |
| 26926 | q |
| 26927 | } |
| 26928 | /^X\/\(\/\/\)$/{ |
| 26929 | s//\1/ |
| 26930 | q |
| 26931 | } |
| 26932 | /^X\/\(\/\).*/{ |
| 26933 | s//\1/ |
| 26934 | q |
| 26935 | } |
| 26936 | s/.*/./; q'` |
| 26937 | |
| 26938 | # CDPATH. |
| 26939 | $as_unset CDPATH |
| 26940 | |
| 26941 | |
| 26942 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26943 | as_lineno_1=$LINENO |
| 26944 | as_lineno_2=$LINENO |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26945 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26946 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 26947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26948 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 26949 | # uniformly replaced by the line number. The first 'sed' inserts a |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26950 | # line-number line after each line using $LINENO; the second 'sed' |
| 26951 | # does the real work. The second script uses 'N' to pair each |
| 26952 | # line-number line with the line containing $LINENO, and appends |
| 26953 | # trailing '-' during substitution so that $LINENO is not a special |
| 26954 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26955 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26956 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 26957 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 26958 | sed -n ' |
| 26959 | p |
| 26960 | /[$]LINENO/= |
| 26961 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26962 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26963 | s/[$]LINENO.*/&-/ |
| 26964 | t lineno |
| 26965 | b |
| 26966 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26967 | N |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26968 | :loop |
| 26969 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26970 | t loop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26971 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26972 | ' >$as_me.lineno && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26973 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 26974 | { 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] | 26975 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26976 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26977 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 26978 | # (the dirname of $[0] is not the place where we might find the |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26979 | # original and so on. Autoconf is especially sensitive to this). |
| 26980 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26981 | # Exit status is that of the last command. |
| 26982 | exit |
| 26983 | } |
| 26984 | |
| 26985 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26986 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 26987 | as_dirname=dirname |
| 26988 | else |
| 26989 | as_dirname=false |
| 26990 | fi |
| 26991 | |
| 26992 | ECHO_C= ECHO_N= ECHO_T= |
| 26993 | case `echo -n x` in |
| 26994 | -n*) |
| 26995 | case `echo 'x\c'` in |
| 26996 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 26997 | *) ECHO_C='\c';; |
| 26998 | esac;; |
| 26999 | *) |
| 27000 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27001 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27002 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27003 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 27004 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27005 | as_expr=expr |
| 27006 | else |
| 27007 | as_expr=false |
| 27008 | fi |
| 27009 | |
| 27010 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27011 | if test -d conf$$.dir; then |
| 27012 | rm -f conf$$.dir/conf$$.file |
| 27013 | else |
| 27014 | rm -f conf$$.dir |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27015 | mkdir conf$$.dir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27016 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27017 | echo >conf$$.file |
| 27018 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 27019 | as_ln_s='ln -s' |
| 27020 | # ... but there are two gotchas: |
| 27021 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 27022 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 27023 | # In both cases, we have to default to `cp -p'. |
| 27024 | 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] | 27025 | as_ln_s='cp -p' |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27026 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 27027 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27028 | else |
| 27029 | as_ln_s='cp -p' |
| 27030 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27031 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 27032 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27033 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27034 | if mkdir -p . 2>/dev/null; then |
| 27035 | as_mkdir_p=: |
| 27036 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27037 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27038 | as_mkdir_p=false |
| 27039 | fi |
| 27040 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27041 | if test -x / >/dev/null 2>&1; then |
| 27042 | as_test_x='test -x' |
| 27043 | else |
| 27044 | if ls -dL / >/dev/null 2>&1; then |
| 27045 | as_ls_L_option=L |
| 27046 | else |
| 27047 | as_ls_L_option= |
| 27048 | fi |
| 27049 | as_test_x=' |
| 27050 | eval sh -c '\'' |
| 27051 | if test -d "$1"; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27052 | test -d "$1/."; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27053 | else |
| 27054 | case $1 in |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27055 | -*)set "./$1";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27056 | esac; |
| 27057 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 27058 | ???[sx]*):;;*)false;;esac;fi |
| 27059 | '\'' sh |
| 27060 | ' |
| 27061 | fi |
| 27062 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27063 | |
| 27064 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27065 | 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] | 27066 | |
| 27067 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27068 | 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] | 27069 | |
| 27070 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27071 | exec 6>&1 |
| 27072 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27073 | # 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] | 27074 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27075 | # values after options handling. |
| 27076 | ac_log=" |
Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 27077 | This file was extended by python $as_me 3.2, which was |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27078 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27079 | |
| 27080 | CONFIG_FILES = $CONFIG_FILES |
| 27081 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 27082 | CONFIG_LINKS = $CONFIG_LINKS |
| 27083 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 27084 | $ $0 $@ |
| 27085 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27086 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 27087 | " |
| 27088 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27089 | _ACEOF |
| 27090 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27091 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27092 | # Files that config.status was made for. |
Martin v. Löwis | 113a085 | 2009-05-29 17:25:39 +0000 | [diff] [blame] | 27093 | config_files="$ac_config_files" |
| 27094 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27095 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27096 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27097 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27098 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27099 | ac_cs_usage="\ |
| 27100 | \`$as_me' instantiates files from templates according to the |
| 27101 | current configuration. |
| 27102 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27103 | Usage: $0 [OPTIONS] [FILE]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27104 | |
| 27105 | -h, --help print this help, then exit |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27106 | -V, --version print version number and configuration settings, then exit |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27107 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27108 | -d, --debug don't remove temporary files |
| 27109 | --recheck update $as_me by reconfiguring in the same conditions |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27110 | --file=FILE[:TEMPLATE] |
| 27111 | instantiate the configuration file FILE |
| 27112 | --header=FILE[:TEMPLATE] |
| 27113 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27114 | |
| 27115 | Configuration files: |
| 27116 | $config_files |
| 27117 | |
| 27118 | Configuration headers: |
| 27119 | $config_headers |
| 27120 | |
| 27121 | Report bugs to <bug-autoconf@gnu.org>." |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 27122 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27123 | _ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27124 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27125 | ac_cs_version="\\ |
Benjamin Peterson | 46ea4f7 | 2009-06-27 21:40:27 +0000 | [diff] [blame] | 27126 | python config.status 3.2 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27127 | configured by $0, generated by GNU Autoconf 2.61, |
| 27128 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27129 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27130 | Copyright (C) 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27131 | This config.status script is free software; the Free Software Foundation |
| 27132 | gives unlimited permission to copy, distribute and modify it." |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27133 | |
| 27134 | ac_pwd='$ac_pwd' |
| 27135 | srcdir='$srcdir' |
| 27136 | INSTALL='$INSTALL' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27137 | _ACEOF |
| 27138 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27139 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 27140 | # If no file are specified by the user, then we need to provide default |
| 27141 | # 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] | 27142 | ac_need_defaults=: |
| 27143 | while test $# != 0 |
| 27144 | do |
| 27145 | case $1 in |
| 27146 | --*=*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27147 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 27148 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27149 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27150 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27151 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27152 | ac_option=$1 |
| 27153 | ac_optarg=$2 |
| 27154 | ac_shift=shift |
| 27155 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27156 | esac |
| 27157 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27158 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27159 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27160 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 27161 | ac_cs_recheck=: ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27162 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27163 | echo "$ac_cs_version"; exit ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27164 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27165 | debug=: ;; |
| 27166 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27167 | $ac_shift |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27168 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27169 | ac_need_defaults=false;; |
| 27170 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27171 | $ac_shift |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27172 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27173 | ac_need_defaults=false;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27174 | --he | --h) |
| 27175 | # Conflict between --help and --header |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27176 | { echo "$as_me: error: ambiguous option: $1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27177 | Try \`$0 --help' for more information." >&2 |
| 27178 | { (exit 1); exit 1; }; };; |
| 27179 | --help | --hel | -h ) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27180 | echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27181 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 27182 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 27183 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27184 | |
| 27185 | # This is an error. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27186 | -*) { echo "$as_me: error: unrecognized option: $1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27187 | Try \`$0 --help' for more information." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27188 | { (exit 1); exit 1; }; } ;; |
| 27189 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27190 | *) ac_config_targets="$ac_config_targets $1" |
| 27191 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27192 | |
| 27193 | esac |
| 27194 | shift |
| 27195 | done |
| 27196 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27197 | ac_configure_extra_args= |
| 27198 | |
| 27199 | if $ac_cs_silent; then |
| 27200 | exec 6>/dev/null |
| 27201 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 27202 | fi |
| 27203 | |
| 27204 | _ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27205 | cat >>$CONFIG_STATUS <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27206 | if \$ac_cs_recheck; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27207 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 27208 | CONFIG_SHELL=$SHELL |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27209 | export CONFIG_SHELL |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27210 | 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] | 27211 | fi |
| 27212 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27213 | _ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27214 | cat >>$CONFIG_STATUS <<\_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27215 | exec 5>>config.log |
| 27216 | { |
| 27217 | echo |
| 27218 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 27219 | ## Running $as_me. ## |
| 27220 | _ASBOX |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27221 | echo "$ac_log" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27222 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27223 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27224 | _ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27225 | cat >>$CONFIG_STATUS <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27226 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27227 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27228 | cat >>$CONFIG_STATUS <<\_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27229 | |
| 27230 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27231 | for ac_config_target in $ac_config_targets |
| 27232 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27233 | case $ac_config_target in |
| 27234 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 27235 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 27236 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 27237 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 27238 | "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27239 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 27240 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27241 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27242 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27243 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 27244 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27245 | { (exit 1); exit 1; }; };; |
| 27246 | esac |
| 27247 | done |
| 27248 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27249 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27250 | # If the user did not use the arguments to specify the items to instantiate, |
| 27251 | # then the envvar interface is used. Set only those that are not. |
| 27252 | # We use the long form for the default assignment because of an extremely |
| 27253 | # bizarre bug on SunOS 4.1.3. |
| 27254 | if $ac_need_defaults; then |
| 27255 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 27256 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 27257 | fi |
| 27258 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27259 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27260 | # 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] | 27261 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27262 | # Hook for its removal unless debugging. |
| 27263 | # Note that there is a small window in which the directory will not be cleaned: |
| 27264 | # 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] | 27265 | $debug || |
| 27266 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27267 | tmp= |
| 27268 | trap 'exit_status=$? |
| 27269 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 27270 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27271 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 27272 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27273 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27274 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27275 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27276 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27277 | test -n "$tmp" && test -d "$tmp" |
| 27278 | } || |
| 27279 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27280 | tmp=./conf$$-$RANDOM |
| 27281 | (umask 077 && mkdir "$tmp") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27282 | } || |
| 27283 | { |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27284 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27285 | { (exit 1); exit 1; } |
| 27286 | } |
| 27287 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27288 | # |
| 27289 | # Set up the sed scripts for CONFIG_FILES section. |
| 27290 | # |
| 27291 | |
| 27292 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 27293 | # This happens for instance when ./config.status config.h |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27294 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27295 | |
| 27296 | _ACEOF |
| 27297 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27298 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27299 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27300 | ac_delim='%!_!# ' |
| 27301 | for ac_last_try in false false false false false :; do |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27302 | cat >conf$$subs.sed <<_ACEOF |
| 27303 | SHELL!$SHELL$ac_delim |
| 27304 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 27305 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 27306 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 27307 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 27308 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 27309 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 27310 | exec_prefix!$exec_prefix$ac_delim |
| 27311 | prefix!$prefix$ac_delim |
| 27312 | program_transform_name!$program_transform_name$ac_delim |
| 27313 | bindir!$bindir$ac_delim |
| 27314 | sbindir!$sbindir$ac_delim |
| 27315 | libexecdir!$libexecdir$ac_delim |
| 27316 | datarootdir!$datarootdir$ac_delim |
| 27317 | datadir!$datadir$ac_delim |
| 27318 | sysconfdir!$sysconfdir$ac_delim |
| 27319 | sharedstatedir!$sharedstatedir$ac_delim |
| 27320 | localstatedir!$localstatedir$ac_delim |
| 27321 | includedir!$includedir$ac_delim |
| 27322 | oldincludedir!$oldincludedir$ac_delim |
| 27323 | docdir!$docdir$ac_delim |
| 27324 | infodir!$infodir$ac_delim |
| 27325 | htmldir!$htmldir$ac_delim |
| 27326 | dvidir!$dvidir$ac_delim |
| 27327 | pdfdir!$pdfdir$ac_delim |
| 27328 | psdir!$psdir$ac_delim |
| 27329 | libdir!$libdir$ac_delim |
| 27330 | localedir!$localedir$ac_delim |
| 27331 | mandir!$mandir$ac_delim |
| 27332 | DEFS!$DEFS$ac_delim |
| 27333 | ECHO_C!$ECHO_C$ac_delim |
| 27334 | ECHO_N!$ECHO_N$ac_delim |
| 27335 | ECHO_T!$ECHO_T$ac_delim |
| 27336 | LIBS!$LIBS$ac_delim |
| 27337 | build_alias!$build_alias$ac_delim |
| 27338 | host_alias!$host_alias$ac_delim |
| 27339 | target_alias!$target_alias$ac_delim |
| 27340 | VERSION!$VERSION$ac_delim |
| 27341 | SOVERSION!$SOVERSION$ac_delim |
| 27342 | CONFIG_ARGS!$CONFIG_ARGS$ac_delim |
| 27343 | UNIVERSALSDK!$UNIVERSALSDK$ac_delim |
| 27344 | ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim |
| 27345 | PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim |
| 27346 | PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim |
| 27347 | PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim |
| 27348 | PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim |
| 27349 | PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim |
| 27350 | FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim |
| 27351 | FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim |
| 27352 | FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim |
| 27353 | FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim |
| 27354 | FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim |
| 27355 | MACHDEP!$MACHDEP$ac_delim |
| 27356 | SGI_ABI!$SGI_ABI$ac_delim |
| 27357 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 27358 | EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 27359 | CC!$CC$ac_delim |
| 27360 | CFLAGS!$CFLAGS$ac_delim |
| 27361 | LDFLAGS!$LDFLAGS$ac_delim |
| 27362 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 27363 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 27364 | EXEEXT!$EXEEXT$ac_delim |
| 27365 | OBJEXT!$OBJEXT$ac_delim |
| 27366 | CXX!$CXX$ac_delim |
| 27367 | MAINCC!$MAINCC$ac_delim |
| 27368 | CPP!$CPP$ac_delim |
| 27369 | GREP!$GREP$ac_delim |
| 27370 | EGREP!$EGREP$ac_delim |
| 27371 | BUILDEXEEXT!$BUILDEXEEXT$ac_delim |
| 27372 | LIBRARY!$LIBRARY$ac_delim |
| 27373 | LDLIBRARY!$LDLIBRARY$ac_delim |
| 27374 | DLLLIBRARY!$DLLLIBRARY$ac_delim |
| 27375 | BLDLIBRARY!$BLDLIBRARY$ac_delim |
| 27376 | LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim |
| 27377 | INSTSONAME!$INSTSONAME$ac_delim |
| 27378 | RUNSHARED!$RUNSHARED$ac_delim |
| 27379 | LINKCC!$LINKCC$ac_delim |
| 27380 | GNULD!$GNULD$ac_delim |
| 27381 | RANLIB!$RANLIB$ac_delim |
| 27382 | AR!$AR$ac_delim |
| 27383 | ARFLAGS!$ARFLAGS$ac_delim |
| 27384 | SVNVERSION!$SVNVERSION$ac_delim |
| 27385 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 27386 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 27387 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 27388 | LN!$LN$ac_delim |
| 27389 | OPT!$OPT$ac_delim |
| 27390 | BASECFLAGS!$BASECFLAGS$ac_delim |
| 27391 | UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim |
| 27392 | OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim |
| 27393 | LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim |
| 27394 | SO!$SO$ac_delim |
| 27395 | LDSHARED!$LDSHARED$ac_delim |
| 27396 | BLDSHARED!$BLDSHARED$ac_delim |
| 27397 | CCSHARED!$CCSHARED$ac_delim |
| 27398 | LINKFORSHARED!$LINKFORSHARED$ac_delim |
| 27399 | CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim |
| 27400 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27401 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27402 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27403 | break |
| 27404 | elif $ac_last_try; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27405 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 27406 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27407 | { (exit 1); exit 1; }; } |
| 27408 | else |
| 27409 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27410 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27411 | done |
| 27412 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27413 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 27414 | if test -n "$ac_eof"; then |
| 27415 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 27416 | ac_eof=`expr $ac_eof + 1` |
| 27417 | fi |
| 27418 | |
| 27419 | cat >>$CONFIG_STATUS <<_ACEOF |
| 27420 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 27421 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27422 | _ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27423 | sed ' |
| 27424 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 27425 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 27426 | :n |
| 27427 | t n |
| 27428 | s/'"$ac_delim"'$/,g/; t |
| 27429 | s/$/\\/; p |
| 27430 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 27431 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 27432 | rm -f conf$$subs.sed |
| 27433 | cat >>$CONFIG_STATUS <<_ACEOF |
| 27434 | CEOF$ac_eof |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27435 | _ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27436 | |
| 27437 | |
| 27438 | ac_delim='%!_!# ' |
| 27439 | for ac_last_try in false false false false false :; do |
| 27440 | cat >conf$$subs.sed <<_ACEOF |
| 27441 | SHLIBS!$SHLIBS$ac_delim |
| 27442 | USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim |
| 27443 | SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim |
| 27444 | USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim |
| 27445 | LDLAST!$LDLAST$ac_delim |
| 27446 | THREADOBJ!$THREADOBJ$ac_delim |
| 27447 | DLINCLDIR!$DLINCLDIR$ac_delim |
| 27448 | DYNLOADFILE!$DYNLOADFILE$ac_delim |
| 27449 | MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim |
| 27450 | TRUE!$TRUE$ac_delim |
| 27451 | LIBOBJS!$LIBOBJS$ac_delim |
| 27452 | HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim |
| 27453 | HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim |
| 27454 | HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim |
| 27455 | HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim |
| 27456 | HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim |
| 27457 | LIBM!$LIBM$ac_delim |
| 27458 | LIBC!$LIBC$ac_delim |
| 27459 | THREADHEADERS!$THREADHEADERS$ac_delim |
| 27460 | SRCDIRS!$SRCDIRS$ac_delim |
| 27461 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 27462 | _ACEOF |
| 27463 | |
| 27464 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then |
| 27465 | break |
| 27466 | elif $ac_last_try; then |
| 27467 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 27468 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27469 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27470 | else |
| 27471 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 27472 | fi |
| 27473 | done |
| 27474 | |
| 27475 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 27476 | if test -n "$ac_eof"; then |
| 27477 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 27478 | ac_eof=`expr $ac_eof + 1` |
| 27479 | fi |
| 27480 | |
| 27481 | cat >>$CONFIG_STATUS <<_ACEOF |
| 27482 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 27483 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27484 | _ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27485 | sed ' |
| 27486 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 27487 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 27488 | :n |
| 27489 | t n |
| 27490 | s/'"$ac_delim"'$/,g/; t |
| 27491 | s/$/\\/; p |
| 27492 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 27493 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 27494 | rm -f conf$$subs.sed |
| 27495 | cat >>$CONFIG_STATUS <<_ACEOF |
| 27496 | :end |
| 27497 | s/|#_!!_#|//g |
| 27498 | CEOF$ac_eof |
| 27499 | _ACEOF |
| 27500 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27501 | |
| 27502 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 27503 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 27504 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 27505 | # (actually we leave an empty line to preserve line numbers). |
| 27506 | if test "x$srcdir" = x.; then |
| 27507 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 27508 | s/:*\$(srcdir):*/:/ |
| 27509 | s/:*\${srcdir}:*/:/ |
| 27510 | s/:*@srcdir@:*/:/ |
| 27511 | s/^\([^=]*=[ ]*\):*/\1/ |
| 27512 | s/:*$// |
| 27513 | s/^[^=]*=[ ]*$// |
| 27514 | }' |
| 27515 | fi |
| 27516 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27517 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27518 | fi # test -n "$CONFIG_FILES" |
| 27519 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27520 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27521 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27522 | do |
| 27523 | case $ac_tag in |
| 27524 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 27525 | esac |
| 27526 | case $ac_mode$ac_tag in |
| 27527 | :[FHL]*:*);; |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27528 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 27529 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27530 | { (exit 1); exit 1; }; };; |
| 27531 | :[FH]-) ac_tag=-:-;; |
| 27532 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 27533 | esac |
| 27534 | ac_save_IFS=$IFS |
| 27535 | IFS=: |
| 27536 | set x $ac_tag |
| 27537 | IFS=$ac_save_IFS |
| 27538 | shift |
| 27539 | ac_file=$1 |
| 27540 | shift |
| 27541 | |
| 27542 | case $ac_mode in |
| 27543 | :L) ac_source=$1;; |
| 27544 | :[FH]) |
| 27545 | ac_file_inputs= |
| 27546 | for ac_f |
| 27547 | do |
| 27548 | case $ac_f in |
| 27549 | -) ac_f="$tmp/stdin";; |
| 27550 | *) # Look for the file first in the build tree, then in the source tree |
| 27551 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 27552 | # because $ac_f cannot contain `:'. |
| 27553 | test -f "$ac_f" || |
| 27554 | case $ac_f in |
| 27555 | [\\/$]*) false;; |
| 27556 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 27557 | esac || |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27558 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 27559 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27560 | { (exit 1); exit 1; }; };; |
| 27561 | esac |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27562 | ac_file_inputs="$ac_file_inputs $ac_f" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27563 | done |
| 27564 | |
| 27565 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 27566 | # use $as_me), people would be surprised to read: |
| 27567 | # /* config.h. Generated by config.status. */ |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27568 | configure_input="Generated from "`IFS=: |
| 27569 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27570 | if test x"$ac_file" != x-; then |
| 27571 | configure_input="$ac_file. $configure_input" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27572 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 27573 | echo "$as_me: creating $ac_file" >&6;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27574 | fi |
| 27575 | |
| 27576 | case $ac_tag in |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27577 | *:-:* | *:-) cat >"$tmp/stdin";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27578 | esac |
| 27579 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27580 | esac |
| 27581 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27582 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27583 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27584 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 27585 | X"$ac_file" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27586 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27587 | echo X"$ac_file" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27588 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 27589 | s//\1/ |
| 27590 | q |
| 27591 | } |
| 27592 | /^X\(\/\/\)[^/].*/{ |
| 27593 | s//\1/ |
| 27594 | q |
| 27595 | } |
| 27596 | /^X\(\/\/\)$/{ |
| 27597 | s//\1/ |
| 27598 | q |
| 27599 | } |
| 27600 | /^X\(\/\).*/{ |
| 27601 | s//\1/ |
| 27602 | q |
| 27603 | } |
| 27604 | s/.*/./; q'` |
| 27605 | { as_dir="$ac_dir" |
| 27606 | case $as_dir in #( |
| 27607 | -*) as_dir=./$as_dir;; |
| 27608 | esac |
| 27609 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27610 | as_dirs= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27611 | while :; do |
| 27612 | case $as_dir in #( |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27613 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27614 | *) as_qdir=$as_dir;; |
| 27615 | esac |
| 27616 | as_dirs="'$as_qdir' $as_dirs" |
| 27617 | as_dir=`$as_dirname -- "$as_dir" || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27618 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27619 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 27620 | X"$as_dir" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27621 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27622 | echo X"$as_dir" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27623 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 27624 | s//\1/ |
| 27625 | q |
| 27626 | } |
| 27627 | /^X\(\/\/\)[^/].*/{ |
| 27628 | s//\1/ |
| 27629 | q |
| 27630 | } |
| 27631 | /^X\(\/\/\)$/{ |
| 27632 | s//\1/ |
| 27633 | q |
| 27634 | } |
| 27635 | /^X\(\/\).*/{ |
| 27636 | s//\1/ |
| 27637 | q |
| 27638 | } |
| 27639 | s/.*/./; q'` |
| 27640 | test -d "$as_dir" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27641 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27642 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27643 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 27644 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27645 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27646 | ac_builddir=. |
| 27647 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27648 | case "$ac_dir" in |
| 27649 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 27650 | *) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27651 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27652 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27653 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27654 | case $ac_top_builddir_sub in |
| 27655 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 27656 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 27657 | esac ;; |
| 27658 | esac |
| 27659 | ac_abs_top_builddir=$ac_pwd |
| 27660 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 27661 | # for backward compatibility: |
| 27662 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27663 | |
| 27664 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27665 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27666 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27667 | ac_top_srcdir=$ac_top_builddir_sub |
| 27668 | ac_abs_top_srcdir=$ac_pwd ;; |
| 27669 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27670 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27671 | ac_top_srcdir=$srcdir |
| 27672 | ac_abs_top_srcdir=$srcdir ;; |
| 27673 | *) # Relative name. |
| 27674 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 27675 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 27676 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27677 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27678 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27679 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27680 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27681 | case $ac_mode in |
| 27682 | :F) |
| 27683 | # |
| 27684 | # CONFIG_FILE |
| 27685 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27686 | |
| 27687 | case $INSTALL in |
| 27688 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27689 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27690 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 27691 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27692 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27693 | cat >>$CONFIG_STATUS <<\_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27694 | # If the template does not know about datarootdir, expand it. |
| 27695 | # FIXME: This hack should be removed a few years after 2.60. |
| 27696 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 27697 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27698 | case `sed -n '/datarootdir/ { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27699 | p |
| 27700 | q |
| 27701 | } |
| 27702 | /@datadir@/p |
| 27703 | /@docdir@/p |
| 27704 | /@infodir@/p |
| 27705 | /@localedir@/p |
| 27706 | /@mandir@/p |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27707 | ' $ac_file_inputs` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27708 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 27709 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27710 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 27711 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27712 | _ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27713 | cat >>$CONFIG_STATUS <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27714 | ac_datarootdir_hack=' |
| 27715 | s&@datadir@&$datadir&g |
| 27716 | s&@docdir@&$docdir&g |
| 27717 | s&@infodir@&$infodir&g |
| 27718 | s&@localedir@&$localedir&g |
| 27719 | s&@mandir@&$mandir&g |
| 27720 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 27721 | esac |
| 27722 | _ACEOF |
| 27723 | |
| 27724 | # Neutralize VPATH when `$srcdir' = `.'. |
| 27725 | # Shell code in configure.ac might set extrasub. |
| 27726 | # FIXME: do we really want to maintain this feature? |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27727 | cat >>$CONFIG_STATUS <<_ACEOF |
| 27728 | sed "$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27729 | $extrasub |
| 27730 | _ACEOF |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27731 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27732 | :t |
| 27733 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27734 | s&@configure_input@&$configure_input&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27735 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 27736 | s&@srcdir@&$ac_srcdir&;t t |
| 27737 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 27738 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 27739 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 27740 | s&@builddir@&$ac_builddir&;t t |
| 27741 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 27742 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 27743 | s&@INSTALL@&$ac_INSTALL&;t t |
| 27744 | $ac_datarootdir_hack |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27745 | " $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] | 27746 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27747 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 27748 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 27749 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27750 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27751 | which seems to be undefined. Please make sure it is defined." >&5 |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27752 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27753 | which seems to be undefined. Please make sure it is defined." >&2;} |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 27754 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27755 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27756 | case $ac_file in |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27757 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 27758 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 27759 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27760 | ;; |
| 27761 | :H) |
| 27762 | # |
| 27763 | # CONFIG_HEADER |
| 27764 | # |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27765 | _ACEOF |
| 27766 | |
| 27767 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 27768 | # substitutes the proper values into config.h.in to produce config.h. |
| 27769 | rm -f conftest.defines conftest.tail |
| 27770 | # First, append a space to every undef/define line, to ease matching. |
| 27771 | echo 's/$/ /' >conftest.defines |
| 27772 | # Then, protect against being on the right side of a sed subst, or in |
| 27773 | # an unquoted here document, in config.status. If some macros were |
| 27774 | # called several times there might be several #defines for the same |
| 27775 | # symbol, which is useless. But do not sort them, since the last |
| 27776 | # AC_DEFINE must be honored. |
| 27777 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 27778 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 27779 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 27780 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 27781 | # just an empty string. |
| 27782 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 27783 | ac_dB='\\)[ (].*,\\1define\\2' |
| 27784 | ac_dC=' ' |
| 27785 | ac_dD=' ,' |
| 27786 | |
| 27787 | uniq confdefs.h | |
| 27788 | sed -n ' |
| 27789 | t rset |
| 27790 | :rset |
| 27791 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 27792 | t ok |
| 27793 | d |
| 27794 | :ok |
| 27795 | s/[\\&,]/\\&/g |
| 27796 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 27797 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 27798 | ' >>conftest.defines |
| 27799 | |
| 27800 | # Remove the space that was appended to ease matching. |
| 27801 | # Then replace #undef with comments. This is necessary, for |
| 27802 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 27803 | # on some systems where configure will not decide to define it. |
| 27804 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 27805 | echo 's/ $// |
| 27806 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 27807 | |
| 27808 | # Break up conftest.defines: |
| 27809 | ac_max_sed_lines=50 |
| 27810 | |
| 27811 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 27812 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 27813 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 27814 | # et cetera. |
| 27815 | ac_in='$ac_file_inputs' |
| 27816 | ac_out='"$tmp/out1"' |
| 27817 | ac_nxt='"$tmp/out2"' |
| 27818 | |
| 27819 | while : |
| 27820 | do |
| 27821 | # Write a here document: |
| 27822 | cat >>$CONFIG_STATUS <<_ACEOF |
| 27823 | # First, check the format of the line: |
| 27824 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 27825 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 27826 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 27827 | b |
| 27828 | :def |
| 27829 | _ACEOF |
| 27830 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 27831 | echo 'CEOF |
| 27832 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 27833 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 27834 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 27835 | grep . conftest.tail >/dev/null || break |
| 27836 | rm -f conftest.defines |
| 27837 | mv conftest.tail conftest.defines |
| 27838 | done |
| 27839 | rm -f conftest.defines conftest.tail |
| 27840 | |
| 27841 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 27842 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27843 | if test x"$ac_file" != x-; then |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27844 | echo "/* $configure_input */" >"$tmp/config.h" |
| 27845 | cat "$ac_result" >>"$tmp/config.h" |
| 27846 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 27847 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 27848 | echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27849 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27850 | rm -f $ac_file |
| 27851 | mv "$tmp/config.h" $ac_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27852 | fi |
| 27853 | else |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27854 | echo "/* $configure_input */" |
| 27855 | cat "$ac_result" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27856 | fi |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 27857 | rm -f "$tmp/out12" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27858 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 27859 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27860 | |
| 27861 | esac |
| 27862 | |
| 27863 | done # for ac_tag |
| 27864 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27865 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27866 | { (exit 0); exit 0; } |
| 27867 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27868 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27869 | ac_clean_files=$ac_clean_files_save |
| 27870 | |
| 27871 | |
| 27872 | # configure is writing to config.log, and then calls config.status. |
| 27873 | # config.status does its own redirection, appending to config.log. |
| 27874 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 27875 | # by configure, so config.status won't be able to write to it; its |
| 27876 | # output is simply discarded. So we exec the FD to /dev/null, |
| 27877 | # effectively closing config.log, so it can be properly (re)opened and |
| 27878 | # appended to by config.status. When coming back to configure, we |
| 27879 | # need to make the FD available again. |
| 27880 | if test "$no_create" != yes; then |
| 27881 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27882 | ac_config_status_args= |
| 27883 | test "$silent" = yes && |
| 27884 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27885 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27886 | $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] | 27887 | exec 5>>config.log |
| 27888 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 27889 | # would make configure fail if this is the last instruction. |
| 27890 | $ac_cs_success || { (exit 1); exit 1; } |
| 27891 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27892 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 27893 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 27894 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 27895 | if test ! -f Modules/Setup |
| 27896 | then |
| 27897 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 27898 | fi |
| 27899 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 27900 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 27901 | if test ! -f Modules/Setup.local |
| 27902 | then |
| 27903 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 27904 | fi |
| 27905 | |
| 27906 | echo "creating Makefile" |
| 27907 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 27908 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 27909 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 27910 | mv config.c Modules |