Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 72874 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.63 for python 3.1. |
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, |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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=: |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21 | # Pre-4.2 versions of Zsh do 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 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 43 | as_nl=' |
| 44 | ' |
| 45 | export as_nl |
| 46 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 47 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 48 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 49 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 50 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 51 | as_echo='printf %s\n' |
| 52 | as_echo_n='printf %s' |
| 53 | else |
| 54 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 55 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 56 | as_echo_n='/usr/ucb/echo -n' |
| 57 | else |
| 58 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 59 | as_echo_n_body='eval |
| 60 | arg=$1; |
| 61 | case $arg in |
| 62 | *"$as_nl"*) |
| 63 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 64 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 65 | esac; |
| 66 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 67 | ' |
| 68 | export as_echo_n_body |
| 69 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 70 | fi |
| 71 | export as_echo_body |
| 72 | as_echo='sh -c $as_echo_body as_echo' |
| 73 | fi |
| 74 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 75 | # The user is always right. |
| 76 | if test "${PATH_SEPARATOR+set}" != set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 77 | PATH_SEPARATOR=: |
| 78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 80 | PATH_SEPARATOR=';' |
| 81 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 82 | fi |
| 83 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 84 | # Support unset when possible. |
| 85 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 86 | as_unset=unset |
| 87 | else |
| 88 | as_unset=false |
| 89 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 90 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 91 | |
| 92 | # IFS |
| 93 | # We need space, tab and new line, in precisely that order. Quoting is |
| 94 | # there to prevent editors from complaining about space-tab. |
| 95 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 96 | # splitting by setting IFS to empty value.) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 97 | IFS=" "" $as_nl" |
| 98 | |
| 99 | # Find who we are. Look in the path if we contain no directory separator. |
| 100 | case $0 in |
| 101 | *[\\/]* ) as_myself=$0 ;; |
| 102 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 103 | for as_dir in $PATH |
| 104 | do |
| 105 | IFS=$as_save_IFS |
| 106 | test -z "$as_dir" && as_dir=. |
| 107 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 108 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 109 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 110 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 111 | ;; |
| 112 | esac |
| 113 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 114 | # in which case we are not to be found in the path. |
| 115 | if test "x$as_myself" = x; then |
| 116 | as_myself=$0 |
| 117 | fi |
| 118 | if test ! -f "$as_myself"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 119 | $as_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] | 120 | { (exit 1); exit 1; } |
| 121 | fi |
| 122 | |
| 123 | # Work around bugs in pre-3.0 UWIN ksh. |
| 124 | for as_var in ENV MAIL MAILPATH |
| 125 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 126 | done |
| 127 | PS1='$ ' |
| 128 | PS2='> ' |
| 129 | PS4='+ ' |
| 130 | |
| 131 | # NLS nuisances. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 132 | LC_ALL=C |
| 133 | export LC_ALL |
| 134 | LANGUAGE=C |
| 135 | export LANGUAGE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 136 | |
| 137 | # Required to use basename. |
| 138 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 139 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 140 | as_expr=expr |
| 141 | else |
| 142 | as_expr=false |
| 143 | fi |
| 144 | |
| 145 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 146 | as_basename=basename |
| 147 | else |
| 148 | as_basename=false |
| 149 | fi |
| 150 | |
| 151 | |
| 152 | # Name of the executable. |
| 153 | as_me=`$as_basename -- "$0" || |
| 154 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 155 | X"$0" : 'X\(//\)$' \| \ |
| 156 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 157 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 158 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 159 | s//\1/ |
| 160 | q |
| 161 | } |
| 162 | /^X\/\(\/\/\)$/{ |
| 163 | s//\1/ |
| 164 | q |
| 165 | } |
| 166 | /^X\/\(\/\).*/{ |
| 167 | s//\1/ |
| 168 | q |
| 169 | } |
| 170 | s/.*/./; q'` |
| 171 | |
| 172 | # CDPATH. |
| 173 | $as_unset CDPATH |
| 174 | |
| 175 | |
| 176 | if test "x$CONFIG_SHELL" = x; then |
| 177 | if (eval ":") 2>/dev/null; then |
| 178 | as_have_required=yes |
| 179 | else |
| 180 | as_have_required=no |
| 181 | fi |
| 182 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 183 | if test $as_have_required = yes && (eval ": |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 184 | (as_func_return () { |
| 185 | (exit \$1) |
| 186 | } |
| 187 | as_func_success () { |
| 188 | as_func_return 0 |
| 189 | } |
| 190 | as_func_failure () { |
| 191 | as_func_return 1 |
| 192 | } |
| 193 | as_func_ret_success () { |
| 194 | return 0 |
| 195 | } |
| 196 | as_func_ret_failure () { |
| 197 | return 1 |
| 198 | } |
| 199 | |
| 200 | exitcode=0 |
| 201 | if as_func_success; then |
| 202 | : |
| 203 | else |
| 204 | exitcode=1 |
| 205 | echo as_func_success failed. |
| 206 | fi |
| 207 | |
| 208 | if as_func_failure; then |
| 209 | exitcode=1 |
| 210 | echo as_func_failure succeeded. |
| 211 | fi |
| 212 | |
| 213 | if as_func_ret_success; then |
| 214 | : |
| 215 | else |
| 216 | exitcode=1 |
| 217 | echo as_func_ret_success failed. |
| 218 | fi |
| 219 | |
| 220 | if as_func_ret_failure; then |
| 221 | exitcode=1 |
| 222 | echo as_func_ret_failure succeeded. |
| 223 | fi |
| 224 | |
| 225 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 226 | : |
| 227 | else |
| 228 | exitcode=1 |
| 229 | echo positional parameters were not saved. |
| 230 | fi |
| 231 | |
| 232 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 233 | |
| 234 | ( |
| 235 | as_lineno_1=\$LINENO |
| 236 | as_lineno_2=\$LINENO |
| 237 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 238 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 239 | ") 2> /dev/null; then |
| 240 | : |
| 241 | else |
| 242 | as_candidate_shells= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 244 | 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] | 245 | do |
| 246 | IFS=$as_save_IFS |
| 247 | test -z "$as_dir" && as_dir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 248 | case $as_dir in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 249 | /*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 250 | for as_base in sh bash ksh sh5; do |
| 251 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 252 | done;; |
| 253 | esac |
| 254 | done |
| 255 | IFS=$as_save_IFS |
| 256 | |
| 257 | |
| 258 | for as_shell in $as_candidate_shells $SHELL; do |
| 259 | # Try only shells that exist, to save several forks. |
| 260 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 261 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 262 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 263 | emulate sh |
| 264 | NULLCMD=: |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 265 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 266 | # is contrary to our usage. Disable this feature. |
| 267 | alias -g '${1+"$@"}'='"$@"' |
| 268 | setopt NO_GLOB_SUBST |
| 269 | else |
| 270 | case `(set -o) 2>/dev/null` in |
| 271 | *posix*) set -o posix ;; |
| 272 | esac |
| 273 | |
| 274 | fi |
| 275 | |
| 276 | |
| 277 | : |
| 278 | _ASEOF |
| 279 | }; then |
| 280 | CONFIG_SHELL=$as_shell |
| 281 | as_have_required=yes |
| 282 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 283 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 284 | emulate sh |
| 285 | NULLCMD=: |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 286 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 287 | # is contrary to our usage. Disable this feature. |
| 288 | alias -g '${1+"$@"}'='"$@"' |
| 289 | setopt NO_GLOB_SUBST |
| 290 | else |
| 291 | case `(set -o) 2>/dev/null` in |
| 292 | *posix*) set -o posix ;; |
| 293 | esac |
| 294 | |
| 295 | fi |
| 296 | |
| 297 | |
| 298 | : |
| 299 | (as_func_return () { |
| 300 | (exit $1) |
| 301 | } |
| 302 | as_func_success () { |
| 303 | as_func_return 0 |
| 304 | } |
| 305 | as_func_failure () { |
| 306 | as_func_return 1 |
| 307 | } |
| 308 | as_func_ret_success () { |
| 309 | return 0 |
| 310 | } |
| 311 | as_func_ret_failure () { |
| 312 | return 1 |
| 313 | } |
| 314 | |
| 315 | exitcode=0 |
| 316 | if as_func_success; then |
| 317 | : |
| 318 | else |
| 319 | exitcode=1 |
| 320 | echo as_func_success failed. |
| 321 | fi |
| 322 | |
| 323 | if as_func_failure; then |
| 324 | exitcode=1 |
| 325 | echo as_func_failure succeeded. |
| 326 | fi |
| 327 | |
| 328 | if as_func_ret_success; then |
| 329 | : |
| 330 | else |
| 331 | exitcode=1 |
| 332 | echo as_func_ret_success failed. |
| 333 | fi |
| 334 | |
| 335 | if as_func_ret_failure; then |
| 336 | exitcode=1 |
| 337 | echo as_func_ret_failure succeeded. |
| 338 | fi |
| 339 | |
| 340 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 341 | : |
| 342 | else |
| 343 | exitcode=1 |
| 344 | echo positional parameters were not saved. |
| 345 | fi |
| 346 | |
| 347 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 348 | |
| 349 | ( |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 350 | as_lineno_1=$LINENO |
| 351 | as_lineno_2=$LINENO |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 352 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 353 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 354 | |
| 355 | _ASEOF |
| 356 | }; then |
| 357 | break |
| 358 | fi |
| 359 | |
| 360 | fi |
| 361 | |
| 362 | done |
| 363 | |
| 364 | if test "x$CONFIG_SHELL" != x; then |
| 365 | for as_var in BASH_ENV ENV |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 366 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 367 | done |
| 368 | export CONFIG_SHELL |
| 369 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 370 | fi |
| 371 | |
| 372 | |
| 373 | if test $as_have_required = no; then |
| 374 | echo This script requires a shell more modern than all the |
| 375 | echo shells that I found on your system. Please install a |
| 376 | echo modern shell, or manually run the script under such a |
| 377 | echo shell if you do have one. |
| 378 | { (exit 1); exit 1; } |
| 379 | fi |
| 380 | |
| 381 | |
| 382 | fi |
| 383 | |
| 384 | fi |
| 385 | |
| 386 | |
| 387 | |
| 388 | (eval "as_func_return () { |
| 389 | (exit \$1) |
| 390 | } |
| 391 | as_func_success () { |
| 392 | as_func_return 0 |
| 393 | } |
| 394 | as_func_failure () { |
| 395 | as_func_return 1 |
| 396 | } |
| 397 | as_func_ret_success () { |
| 398 | return 0 |
| 399 | } |
| 400 | as_func_ret_failure () { |
| 401 | return 1 |
| 402 | } |
| 403 | |
| 404 | exitcode=0 |
| 405 | if as_func_success; then |
| 406 | : |
| 407 | else |
| 408 | exitcode=1 |
| 409 | echo as_func_success failed. |
| 410 | fi |
| 411 | |
| 412 | if as_func_failure; then |
| 413 | exitcode=1 |
| 414 | echo as_func_failure succeeded. |
| 415 | fi |
| 416 | |
| 417 | if as_func_ret_success; then |
| 418 | : |
| 419 | else |
| 420 | exitcode=1 |
| 421 | echo as_func_ret_success failed. |
| 422 | fi |
| 423 | |
| 424 | if as_func_ret_failure; then |
| 425 | exitcode=1 |
| 426 | echo as_func_ret_failure succeeded. |
| 427 | fi |
| 428 | |
| 429 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 430 | : |
| 431 | else |
| 432 | exitcode=1 |
| 433 | echo positional parameters were not saved. |
| 434 | fi |
| 435 | |
| 436 | test \$exitcode = 0") || { |
| 437 | echo No shell found that supports shell functions. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 438 | echo Please tell bug-autoconf@gnu.org about your system, |
| 439 | echo including any error possibly output before this message. |
| 440 | echo This can help us improve future autoconf versions. |
| 441 | echo Configuration will now proceed without shell functions. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 442 | } |
| 443 | |
| 444 | |
| 445 | |
| 446 | as_lineno_1=$LINENO |
| 447 | as_lineno_2=$LINENO |
| 448 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 449 | 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] | 450 | |
| 451 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 452 | # uniformly replaced by the line number. The first 'sed' inserts a |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 453 | # line-number line after each line using $LINENO; the second 'sed' |
| 454 | # does the real work. The second script uses 'N' to pair each |
| 455 | # line-number line with the line containing $LINENO, and appends |
| 456 | # trailing '-' during substitution so that $LINENO is not a special |
| 457 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 458 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 459 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 460 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 461 | sed -n ' |
| 462 | p |
| 463 | /[$]LINENO/= |
| 464 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 465 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 466 | s/[$]LINENO.*/&-/ |
| 467 | t lineno |
| 468 | b |
| 469 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 470 | N |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 471 | :loop |
| 472 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 473 | t loop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 474 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 475 | ' >$as_me.lineno && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 476 | chmod +x "$as_me.lineno" || |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 477 | { $as_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] | 478 | { (exit 1); exit 1; }; } |
| 479 | |
| 480 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 481 | # (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] | 482 | # original and so on. Autoconf is especially sensitive to this). |
| 483 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 484 | # Exit status is that of the last command. |
| 485 | exit |
| 486 | } |
| 487 | |
| 488 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 489 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 490 | as_dirname=dirname |
| 491 | else |
| 492 | as_dirname=false |
| 493 | fi |
| 494 | |
| 495 | ECHO_C= ECHO_N= ECHO_T= |
| 496 | case `echo -n x` in |
| 497 | -n*) |
| 498 | case `echo 'x\c'` in |
| 499 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 500 | *) ECHO_C='\c';; |
| 501 | esac;; |
| 502 | *) |
| 503 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 504 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 505 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 506 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 507 | as_expr=expr |
| 508 | else |
| 509 | as_expr=false |
| 510 | fi |
| 511 | |
| 512 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 513 | if test -d conf$$.dir; then |
| 514 | rm -f conf$$.dir/conf$$.file |
| 515 | else |
| 516 | rm -f conf$$.dir |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 517 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 518 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 519 | if (echo >conf$$.file) 2>/dev/null; then |
| 520 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 521 | as_ln_s='ln -s' |
| 522 | # ... but there are two gotchas: |
| 523 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 524 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 525 | # In both cases, we have to default to `cp -p'. |
| 526 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 527 | as_ln_s='cp -p' |
| 528 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 529 | as_ln_s=ln |
| 530 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 531 | as_ln_s='cp -p' |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 532 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 533 | else |
| 534 | as_ln_s='cp -p' |
| 535 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 536 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 537 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 538 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 539 | if mkdir -p . 2>/dev/null; then |
| 540 | as_mkdir_p=: |
| 541 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 542 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 543 | as_mkdir_p=false |
| 544 | fi |
| 545 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 546 | if test -x / >/dev/null 2>&1; then |
| 547 | as_test_x='test -x' |
| 548 | else |
| 549 | if ls -dL / >/dev/null 2>&1; then |
| 550 | as_ls_L_option=L |
| 551 | else |
| 552 | as_ls_L_option= |
| 553 | fi |
| 554 | as_test_x=' |
| 555 | eval sh -c '\'' |
| 556 | if test -d "$1"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 557 | test -d "$1/."; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 558 | else |
| 559 | case $1 in |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 560 | -*)set "./$1";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 561 | esac; |
| 562 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 563 | ???[sx]*):;;*)false;;esac;fi |
| 564 | '\'' sh |
| 565 | ' |
| 566 | fi |
| 567 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 568 | |
| 569 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 570 | 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] | 571 | |
| 572 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 573 | 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] | 574 | |
| 575 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 576 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 577 | exec 7<&0 </dev/null 6>&1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 578 | |
| 579 | # Name of the host. |
| 580 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 581 | # so uname gets run too. |
| 582 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 583 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 584 | # |
| 585 | # Initializations. |
| 586 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 587 | ac_default_prefix=/usr/local |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 588 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 589 | ac_config_libobj_dir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 590 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 591 | cross_compiling=no |
| 592 | subdirs= |
| 593 | MFLAGS= |
| 594 | MAKEFLAGS= |
| 595 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 596 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 598 | PACKAGE_NAME='python' |
| 599 | PACKAGE_TARNAME='python' |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 600 | PACKAGE_VERSION='3.1' |
| 601 | PACKAGE_STRING='python 3.1' |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 602 | PACKAGE_BUGREPORT='http://bugs.python.org/' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | |
| 604 | ac_unique_file="Include/object.h" |
| 605 | # Factoring default headers for most tests. |
| 606 | ac_includes_default="\ |
| 607 | #include <stdio.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 608 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 609 | # include <sys/types.h> |
| 610 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 611 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 612 | # include <sys/stat.h> |
| 613 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 614 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 615 | # include <stdlib.h> |
| 616 | # include <stddef.h> |
| 617 | #else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 618 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 619 | # include <stdlib.h> |
| 620 | # endif |
| 621 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 622 | #ifdef HAVE_STRING_H |
| 623 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 624 | # include <memory.h> |
| 625 | # endif |
| 626 | # include <string.h> |
| 627 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 628 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 629 | # include <strings.h> |
| 630 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 631 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 632 | # include <inttypes.h> |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 633 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 634 | #ifdef HAVE_STDINT_H |
| 635 | # include <stdint.h> |
| 636 | #endif |
| 637 | #ifdef HAVE_UNISTD_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 638 | # include <unistd.h> |
| 639 | #endif" |
| 640 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 641 | ac_subst_vars='LTLIBOBJS |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 642 | SRCDIRS |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 643 | THREADHEADERS |
| 644 | LIBC |
| 645 | LIBM |
| 646 | HAVE_GETHOSTBYNAME |
| 647 | HAVE_GETHOSTBYNAME_R |
| 648 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 649 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 650 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 651 | LIBOBJS |
| 652 | TRUE |
| 653 | MACHDEP_OBJS |
| 654 | DYNLOADFILE |
| 655 | DLINCLDIR |
| 656 | THREADOBJ |
| 657 | LDLAST |
| 658 | USE_THREAD_MODULE |
| 659 | SIGNAL_OBJS |
| 660 | USE_SIGNAL_MODULE |
| 661 | SHLIBS |
| 662 | CFLAGSFORSHARED |
| 663 | LINKFORSHARED |
| 664 | CCSHARED |
| 665 | BLDSHARED |
| 666 | LDSHARED |
| 667 | SO |
| 668 | LIBTOOL_CRUFT |
| 669 | OTHER_LIBTOOL_OPT |
| 670 | UNIVERSAL_ARCH_FLAGS |
| 671 | BASECFLAGS |
| 672 | OPT |
| 673 | LN |
| 674 | INSTALL_DATA |
| 675 | INSTALL_SCRIPT |
| 676 | INSTALL_PROGRAM |
| 677 | SVNVERSION |
| 678 | ARFLAGS |
| 679 | AR |
| 680 | RANLIB |
| 681 | GNULD |
| 682 | LINKCC |
| 683 | RUNSHARED |
| 684 | INSTSONAME |
| 685 | LDLIBRARYDIR |
| 686 | BLDLIBRARY |
| 687 | DLLLIBRARY |
| 688 | LDLIBRARY |
| 689 | LIBRARY |
| 690 | BUILDEXEEXT |
| 691 | EGREP |
| 692 | GREP |
| 693 | CPP |
| 694 | MAINCC |
| 695 | CXX |
| 696 | OBJEXT |
| 697 | EXEEXT |
| 698 | ac_ct_CC |
| 699 | CPPFLAGS |
| 700 | LDFLAGS |
| 701 | CFLAGS |
| 702 | CC |
| 703 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 704 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 705 | SGI_ABI |
| 706 | MACHDEP |
| 707 | FRAMEWORKUNIXTOOLSPREFIX |
| 708 | FRAMEWORKALTINSTALLLAST |
| 709 | FRAMEWORKALTINSTALLFIRST |
| 710 | FRAMEWORKINSTALLLAST |
| 711 | FRAMEWORKINSTALLFIRST |
| 712 | PYTHONFRAMEWORKINSTALLDIR |
| 713 | PYTHONFRAMEWORKPREFIX |
| 714 | PYTHONFRAMEWORKDIR |
| 715 | PYTHONFRAMEWORKIDENTIFIER |
| 716 | PYTHONFRAMEWORK |
| 717 | ARCH_RUN_32BIT |
| 718 | UNIVERSALSDK |
| 719 | CONFIG_ARGS |
| 720 | SOVERSION |
| 721 | VERSION |
| 722 | target_alias |
| 723 | host_alias |
| 724 | build_alias |
| 725 | LIBS |
| 726 | ECHO_T |
| 727 | ECHO_N |
| 728 | ECHO_C |
| 729 | DEFS |
| 730 | mandir |
| 731 | localedir |
| 732 | libdir |
| 733 | psdir |
| 734 | pdfdir |
| 735 | dvidir |
| 736 | htmldir |
| 737 | infodir |
| 738 | docdir |
| 739 | oldincludedir |
| 740 | includedir |
| 741 | localstatedir |
| 742 | sharedstatedir |
| 743 | sysconfdir |
| 744 | datadir |
| 745 | datarootdir |
| 746 | libexecdir |
| 747 | sbindir |
| 748 | bindir |
| 749 | program_transform_name |
| 750 | prefix |
| 751 | exec_prefix |
| 752 | PACKAGE_BUGREPORT |
| 753 | PACKAGE_STRING |
| 754 | PACKAGE_VERSION |
| 755 | PACKAGE_TARNAME |
| 756 | PACKAGE_NAME |
| 757 | PATH_SEPARATOR |
| 758 | SHELL' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 759 | ac_subst_files='' |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 760 | ac_user_opts=' |
| 761 | enable_option_checking |
| 762 | enable_universalsdk |
| 763 | with_universal_archs |
| 764 | with_framework_name |
| 765 | enable_framework |
| 766 | with_gcc |
| 767 | with_cxx_main |
| 768 | with_suffix |
| 769 | enable_shared |
| 770 | enable_profiling |
| 771 | with_pydebug |
| 772 | with_libs |
| 773 | with_system_ffi |
| 774 | with_dbmliborder |
| 775 | with_signal_module |
| 776 | with_dec_threads |
| 777 | with_threads |
| 778 | with_thread |
| 779 | with_pth |
| 780 | enable_ipv6 |
| 781 | with_doc_strings |
| 782 | with_tsc |
| 783 | with_pymalloc |
| 784 | with_wctype_functions |
| 785 | with_fpectl |
| 786 | with_libm |
| 787 | with_libc |
| 788 | enable_big_digits |
| 789 | with_wide_unicode |
| 790 | with_computed_gotos |
| 791 | ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 792 | ac_precious_vars='build_alias |
| 793 | host_alias |
| 794 | target_alias |
| 795 | CC |
| 796 | CFLAGS |
| 797 | LDFLAGS |
| 798 | LIBS |
| 799 | CPPFLAGS |
| 800 | CPP' |
| 801 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 802 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 803 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 804 | ac_init_help= |
| 805 | ac_init_version=false |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 806 | ac_unrecognized_opts= |
| 807 | ac_unrecognized_sep= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 808 | # The variables have the same names as the options, with |
| 809 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 810 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 811 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 812 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 813 | no_recursion= |
| 814 | prefix=NONE |
| 815 | program_prefix=NONE |
| 816 | program_suffix=NONE |
| 817 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 818 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 819 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 820 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 821 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 822 | x_includes=NONE |
| 823 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 824 | |
| 825 | # Installation directory options. |
| 826 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 827 | # and all the variables that are supposed to be based on exec_prefix |
| 828 | # by default will actually change. |
| 829 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 830 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 831 | bindir='${exec_prefix}/bin' |
| 832 | sbindir='${exec_prefix}/sbin' |
| 833 | libexecdir='${exec_prefix}/libexec' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 834 | datarootdir='${prefix}/share' |
| 835 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 836 | sysconfdir='${prefix}/etc' |
| 837 | sharedstatedir='${prefix}/com' |
| 838 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 839 | includedir='${prefix}/include' |
| 840 | oldincludedir='/usr/include' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 841 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 842 | infodir='${datarootdir}/info' |
| 843 | htmldir='${docdir}' |
| 844 | dvidir='${docdir}' |
| 845 | pdfdir='${docdir}' |
| 846 | psdir='${docdir}' |
| 847 | libdir='${exec_prefix}/lib' |
| 848 | localedir='${datarootdir}/locale' |
| 849 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 850 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 851 | ac_prev= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 852 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 853 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 854 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 855 | # If the previous option needs an argument, assign it. |
| 856 | if test -n "$ac_prev"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 857 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 858 | ac_prev= |
| 859 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 860 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 861 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 862 | case $ac_option in |
| 863 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 864 | *) ac_optarg=yes ;; |
| 865 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 866 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 867 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 868 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 869 | case $ac_dashdash$ac_option in |
| 870 | --) |
| 871 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 872 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 873 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 874 | ac_prev=bindir ;; |
| 875 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 876 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 877 | |
| 878 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 879 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 880 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 881 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 882 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 883 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 884 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 885 | ac_prev=cache_file ;; |
| 886 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 887 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 888 | cache_file=$ac_optarg ;; |
| 889 | |
| 890 | --config-cache | -C) |
| 891 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 892 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 893 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 894 | ac_prev=datadir ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 895 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 896 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 897 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 898 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 899 | | --dataroo | --dataro | --datar) |
| 900 | ac_prev=datarootdir ;; |
| 901 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 902 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 903 | datarootdir=$ac_optarg ;; |
| 904 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 905 | -disable-* | --disable-*) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 906 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 907 | # Reject names that are not valid shell variable names. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 908 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 909 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 910 | { (exit 1); exit 1; }; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 911 | ac_useropt_orig=$ac_useropt |
| 912 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 913 | case $ac_user_opts in |
| 914 | *" |
| 915 | "enable_$ac_useropt" |
| 916 | "*) ;; |
| 917 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 918 | ac_unrecognized_sep=', ';; |
| 919 | esac |
| 920 | eval enable_$ac_useropt=no ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 921 | |
| 922 | -docdir | --docdir | --docdi | --doc | --do) |
| 923 | ac_prev=docdir ;; |
| 924 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 925 | docdir=$ac_optarg ;; |
| 926 | |
| 927 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 928 | ac_prev=dvidir ;; |
| 929 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 930 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 931 | |
| 932 | -enable-* | --enable-*) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 933 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 934 | # Reject names that are not valid shell variable names. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 935 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 936 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 937 | { (exit 1); exit 1; }; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 938 | ac_useropt_orig=$ac_useropt |
| 939 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 940 | case $ac_user_opts in |
| 941 | *" |
| 942 | "enable_$ac_useropt" |
| 943 | "*) ;; |
| 944 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 945 | ac_unrecognized_sep=', ';; |
| 946 | esac |
| 947 | eval enable_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 948 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 949 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 950 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 951 | | --exec | --exe | --ex) |
| 952 | ac_prev=exec_prefix ;; |
| 953 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 954 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 955 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 956 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 957 | |
| 958 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 959 | # Obsolete; use --with-gas. |
| 960 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 961 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 962 | -help | --help | --hel | --he | -h) |
| 963 | ac_init_help=long ;; |
| 964 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 965 | ac_init_help=recursive ;; |
| 966 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 967 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 968 | |
| 969 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 970 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 971 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 972 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 973 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 974 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 975 | ac_prev=htmldir ;; |
| 976 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 977 | | --ht=*) |
| 978 | htmldir=$ac_optarg ;; |
| 979 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 980 | -includedir | --includedir | --includedi | --included | --include \ |
| 981 | | --includ | --inclu | --incl | --inc) |
| 982 | ac_prev=includedir ;; |
| 983 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 984 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 985 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 986 | |
| 987 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 988 | ac_prev=infodir ;; |
| 989 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 990 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 991 | |
| 992 | -libdir | --libdir | --libdi | --libd) |
| 993 | ac_prev=libdir ;; |
| 994 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 995 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 996 | |
| 997 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 998 | | --libexe | --libex | --libe) |
| 999 | ac_prev=libexecdir ;; |
| 1000 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1001 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1002 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1003 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1004 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1005 | ac_prev=localedir ;; |
| 1006 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1007 | localedir=$ac_optarg ;; |
| 1008 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1009 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1010 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1011 | ac_prev=localstatedir ;; |
| 1012 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1013 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1014 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1015 | |
| 1016 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1017 | ac_prev=mandir ;; |
| 1018 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1019 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1020 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1021 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1022 | # Obsolete; use --without-fp. |
| 1023 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1024 | |
| 1025 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1026 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1027 | no_create=yes ;; |
| 1028 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1029 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1030 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1031 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1032 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1033 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1034 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1035 | | --oldin | --oldi | --old | --ol | --o) |
| 1036 | ac_prev=oldincludedir ;; |
| 1037 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1038 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1039 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1040 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1041 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1042 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1043 | ac_prev=prefix ;; |
| 1044 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1045 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1046 | |
| 1047 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1048 | | --program-pre | --program-pr | --program-p) |
| 1049 | ac_prev=program_prefix ;; |
| 1050 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1051 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1052 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1053 | |
| 1054 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1055 | | --program-suf | --program-su | --program-s) |
| 1056 | ac_prev=program_suffix ;; |
| 1057 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1058 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1059 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1060 | |
| 1061 | -program-transform-name | --program-transform-name \ |
| 1062 | | --program-transform-nam | --program-transform-na \ |
| 1063 | | --program-transform-n | --program-transform- \ |
| 1064 | | --program-transform | --program-transfor \ |
| 1065 | | --program-transfo | --program-transf \ |
| 1066 | | --program-trans | --program-tran \ |
| 1067 | | --progr-tra | --program-tr | --program-t) |
| 1068 | ac_prev=program_transform_name ;; |
| 1069 | -program-transform-name=* | --program-transform-name=* \ |
| 1070 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1071 | | --program-transform-n=* | --program-transform-=* \ |
| 1072 | | --program-transform=* | --program-transfor=* \ |
| 1073 | | --program-transfo=* | --program-transf=* \ |
| 1074 | | --program-trans=* | --program-tran=* \ |
| 1075 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1076 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1077 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1078 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1079 | ac_prev=pdfdir ;; |
| 1080 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1081 | pdfdir=$ac_optarg ;; |
| 1082 | |
| 1083 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1084 | ac_prev=psdir ;; |
| 1085 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1086 | psdir=$ac_optarg ;; |
| 1087 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1088 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1089 | | -silent | --silent | --silen | --sile | --sil) |
| 1090 | silent=yes ;; |
| 1091 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1092 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1093 | ac_prev=sbindir ;; |
| 1094 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1095 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1096 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1097 | |
| 1098 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1099 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1100 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1101 | | --sha | --sh) |
| 1102 | ac_prev=sharedstatedir ;; |
| 1103 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1104 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1105 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1106 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1107 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1108 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1109 | -site | --site | --sit) |
| 1110 | ac_prev=site ;; |
| 1111 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1112 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1113 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1114 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1115 | ac_prev=srcdir ;; |
| 1116 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1117 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1118 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1119 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1120 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1121 | ac_prev=sysconfdir ;; |
| 1122 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1123 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1124 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1125 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1126 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1127 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1128 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1129 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1130 | |
| 1131 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1132 | verbose=yes ;; |
| 1133 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1134 | -version | --version | --versio | --versi | --vers | -V) |
| 1135 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1136 | |
| 1137 | -with-* | --with-*) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1138 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1139 | # Reject names that are not valid shell variable names. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1140 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1141 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1142 | { (exit 1); exit 1; }; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1143 | ac_useropt_orig=$ac_useropt |
| 1144 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1145 | case $ac_user_opts in |
| 1146 | *" |
| 1147 | "with_$ac_useropt" |
| 1148 | "*) ;; |
| 1149 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1150 | ac_unrecognized_sep=', ';; |
| 1151 | esac |
| 1152 | eval with_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1153 | |
| 1154 | -without-* | --without-*) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1155 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1156 | # Reject names that are not valid shell variable names. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1157 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1158 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1159 | { (exit 1); exit 1; }; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1160 | ac_useropt_orig=$ac_useropt |
| 1161 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1162 | case $ac_user_opts in |
| 1163 | *" |
| 1164 | "with_$ac_useropt" |
| 1165 | "*) ;; |
| 1166 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1167 | ac_unrecognized_sep=', ';; |
| 1168 | esac |
| 1169 | eval with_$ac_useropt=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1170 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1171 | --x) |
| 1172 | # Obsolete; use --with-x. |
| 1173 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1174 | |
| 1175 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1176 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1177 | ac_prev=x_includes ;; |
| 1178 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1179 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1180 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1181 | |
| 1182 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1183 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1184 | ac_prev=x_libraries ;; |
| 1185 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1186 | | --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] | 1187 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1188 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1189 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1190 | Try \`$0 --help' for more information." >&2 |
| 1191 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1192 | ;; |
| 1193 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1194 | *=*) |
| 1195 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1196 | # Reject names that are not valid shell variable names. |
| 1197 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1198 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1199 | { (exit 1); exit 1; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1200 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1201 | export $ac_envvar ;; |
| 1202 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1203 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1204 | # FIXME: should be removed in autoconf 3.0. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1205 | $as_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] | 1206 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1207 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1208 | : ${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] | 1209 | ;; |
| 1210 | |
| 1211 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1212 | done |
| 1213 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1214 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1215 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1216 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1217 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1218 | fi |
| 1219 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1220 | if test -n "$ac_unrecognized_opts"; then |
| 1221 | case $enable_option_checking in |
| 1222 | no) ;; |
| 1223 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 |
| 1224 | { (exit 1); exit 1; }; } ;; |
| 1225 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1226 | esac |
| 1227 | fi |
| 1228 | |
| 1229 | # Check all directory arguments for consistency. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1230 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1231 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1232 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1233 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1234 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1235 | eval ac_val=\$$ac_var |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1236 | # Remove trailing slashes. |
| 1237 | case $ac_val in |
| 1238 | */ ) |
| 1239 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1240 | eval $ac_var=\$ac_val;; |
| 1241 | esac |
| 1242 | # Be sure to have absolute directory names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1243 | case $ac_val in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1244 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1245 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1246 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1247 | { $as_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] | 1248 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1249 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1250 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1251 | # There might be people who depend on the old broken behavior: `$host' |
| 1252 | # used to hold the argument of --host etc. |
| 1253 | # FIXME: To remove some day. |
| 1254 | build=$build_alias |
| 1255 | host=$host_alias |
| 1256 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1257 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1258 | # FIXME: To remove some day. |
| 1259 | if test "x$host_alias" != x; then |
| 1260 | if test "x$build_alias" = x; then |
| 1261 | cross_compiling=maybe |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1262 | $as_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] | 1263 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1264 | elif test "x$build_alias" != "x$host_alias"; then |
| 1265 | cross_compiling=yes |
| 1266 | fi |
| 1267 | fi |
| 1268 | |
| 1269 | ac_tool_prefix= |
| 1270 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1271 | |
| 1272 | test "$silent" = yes && exec 6>/dev/null |
| 1273 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1274 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1275 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1276 | ac_ls_di=`ls -di .` && |
| 1277 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1278 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1279 | { (exit 1); exit 1; }; } |
| 1280 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1281 | { $as_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] | 1282 | { (exit 1); exit 1; }; } |
| 1283 | |
| 1284 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1285 | # Find the source files, if location was not specified. |
| 1286 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1287 | ac_srcdir_defaulted=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1288 | # Try the directory containing this script, then the parent directory. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1289 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1290 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1291 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1292 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1293 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1294 | $as_echo X"$as_myself" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1295 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1296 | s//\1/ |
| 1297 | q |
| 1298 | } |
| 1299 | /^X\(\/\/\)[^/].*/{ |
| 1300 | s//\1/ |
| 1301 | q |
| 1302 | } |
| 1303 | /^X\(\/\/\)$/{ |
| 1304 | s//\1/ |
| 1305 | q |
| 1306 | } |
| 1307 | /^X\(\/\).*/{ |
| 1308 | s//\1/ |
| 1309 | q |
| 1310 | } |
| 1311 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1312 | srcdir=$ac_confdir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1313 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1314 | srcdir=.. |
| 1315 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1316 | else |
| 1317 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1318 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1319 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1320 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1321 | { $as_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] | 1322 | { (exit 1); exit 1; }; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1323 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1324 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1325 | ac_abs_confdir=`( |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1326 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 1327 | { (exit 1); exit 1; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1328 | pwd)` |
| 1329 | # When building in place, set srcdir=. |
| 1330 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1331 | srcdir=. |
| 1332 | fi |
| 1333 | # Remove unnecessary trailing slashes from srcdir. |
| 1334 | # Double slashes in file names in object file debugging info |
| 1335 | # mess up M-x gdb in Emacs. |
| 1336 | case $srcdir in |
| 1337 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1338 | esac |
| 1339 | for ac_var in $ac_precious_vars; do |
| 1340 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1341 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1342 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1343 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1344 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1345 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1346 | # |
| 1347 | # Report the --help message. |
| 1348 | # |
| 1349 | if test "$ac_init_help" = "long"; then |
| 1350 | # Omit some internal or obsolete options to make the list less imposing. |
| 1351 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1352 | cat <<_ACEOF |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 1353 | \`configure' configures python 3.1 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1354 | |
| 1355 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1356 | |
| 1357 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1358 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1359 | |
| 1360 | Defaults for the options are specified in brackets. |
| 1361 | |
| 1362 | Configuration: |
| 1363 | -h, --help display this help and exit |
| 1364 | --help=short display options specific to this package |
| 1365 | --help=recursive display the short help of all the included packages |
| 1366 | -V, --version display version information and exit |
| 1367 | -q, --quiet, --silent do not print \`checking...' messages |
| 1368 | --cache-file=FILE cache test results in FILE [disabled] |
| 1369 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1370 | -n, --no-create do not create output files |
| 1371 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1372 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1373 | Installation directories: |
| 1374 | --prefix=PREFIX install architecture-independent files in PREFIX |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1375 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1376 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1377 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1378 | |
| 1379 | By default, \`make install' will install all the files in |
| 1380 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1381 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1382 | for instance \`--prefix=\$HOME'. |
| 1383 | |
| 1384 | For better control, use the options below. |
| 1385 | |
| 1386 | Fine tuning of the installation directories: |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1387 | --bindir=DIR user executables [EPREFIX/bin] |
| 1388 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1389 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1390 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1391 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1392 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1393 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1394 | --includedir=DIR C header files [PREFIX/include] |
| 1395 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1396 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1397 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1398 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1399 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1400 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1401 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1402 | --htmldir=DIR html documentation [DOCDIR] |
| 1403 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1404 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1405 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1406 | _ACEOF |
| 1407 | |
| 1408 | cat <<\_ACEOF |
| 1409 | _ACEOF |
| 1410 | fi |
| 1411 | |
| 1412 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1413 | case $ac_init_help in |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 1414 | short | recursive ) echo "Configuration of python 3.1:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1415 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1416 | cat <<\_ACEOF |
| 1417 | |
| 1418 | Optional Features: |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1419 | --disable-option-checking ignore unrecognized --enable/--with options |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1420 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1421 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1422 | --enable-universalsdk[=SDKDIR] |
Christian Heimes | 292d351 | 2008-02-03 16:51:08 +0000 | [diff] [blame] | 1423 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1424 | --enable-framework[=INSTALLDIR] |
| 1425 | Build (MacOSX|Darwin) framework |
| 1426 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1427 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1428 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1429 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1430 | --enable-big-digits[=BITS] |
| 1431 | use big digits for Python longs [BITS=30] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1432 | |
| 1433 | Optional Packages: |
| 1434 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1435 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1436 | --with-universal-archs=ARCH |
| 1437 | select architectures for universal build ("32-bit", |
| 1438 | "64-bit" or "all") |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1439 | --with-framework-name=FRAMEWORK |
| 1440 | specify an alternate name of the framework built |
| 1441 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1442 | --without-gcc never use gcc |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1443 | --with-cxx-main=<compiler> |
| 1444 | compile main() and link python executable with C++ |
| 1445 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1446 | --with-suffix=.exe set executable suffix |
| 1447 | --with-pydebug build with Py_DEBUG defined |
| 1448 | --with-libs='lib1 ...' link against additional libs |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1449 | --with-system-ffi build _ctypes module using an installed ffi library |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1450 | --with-dbmliborder=db1:db2:... |
| 1451 | order to check db backends for dbm. Valid value is a |
| 1452 | colon separated string with the backend names |
| 1453 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1454 | --with-signal-module disable/enable signal module |
| 1455 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1456 | --with(out)-threads[=DIRECTORY] |
| 1457 | disable/enable thread support |
| 1458 | --with(out)-thread[=DIRECTORY] |
| 1459 | deprecated; use --with(out)-threads |
| 1460 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1461 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1462 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1463 | --with(out)-pymalloc disable/enable specialized mallocs |
| 1464 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1465 | --with-fpectl enable SIGFPE catching |
| 1466 | --with-libm=STRING math library |
| 1467 | --with-libc=STRING C library |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 1468 | --with-wide-unicode Use 4-byte Unicode characters (default is 2 bytes) |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 1469 | --with-computed-gotos Use computed gotos / threaded dispatch in evaluation |
| 1470 | loop (not available on all compilers) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1471 | |
| 1472 | Some influential environment variables: |
| 1473 | CC C compiler command |
| 1474 | CFLAGS C compiler flags |
| 1475 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1476 | nonstandard directory <lib dir> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1477 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1478 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1479 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1480 | CPP C preprocessor |
| 1481 | |
| 1482 | Use these variables to override the choices made by `configure' or to help |
| 1483 | it to find libraries and programs with nonstandard names/locations. |
| 1484 | |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 1485 | Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1486 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1487 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1488 | fi |
| 1489 | |
| 1490 | if test "$ac_init_help" = "recursive"; then |
| 1491 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1492 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1493 | test -d "$ac_dir" || |
| 1494 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1495 | continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1496 | ac_builddir=. |
| 1497 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1498 | case "$ac_dir" in |
| 1499 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1500 | *) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1501 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1502 | # A ".." for each directory in $ac_dir_suffix. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1503 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1504 | case $ac_top_builddir_sub in |
| 1505 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1506 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1507 | esac ;; |
| 1508 | esac |
| 1509 | ac_abs_top_builddir=$ac_pwd |
| 1510 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1511 | # for backward compatibility: |
| 1512 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1513 | |
| 1514 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1515 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1516 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1517 | ac_top_srcdir=$ac_top_builddir_sub |
| 1518 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1519 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1520 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1521 | ac_top_srcdir=$srcdir |
| 1522 | ac_abs_top_srcdir=$srcdir ;; |
| 1523 | *) # Relative name. |
| 1524 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1525 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1526 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1527 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1528 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1529 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1530 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1531 | # Check for guested configure. |
| 1532 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1533 | echo && |
| 1534 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1535 | elif test -f "$ac_srcdir/configure"; then |
| 1536 | echo && |
| 1537 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1538 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1539 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1540 | fi || ac_status=$? |
| 1541 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1542 | done |
| 1543 | fi |
| 1544 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1545 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1546 | if $ac_init_version; then |
| 1547 | cat <<\_ACEOF |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 1548 | python configure 3.1 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1549 | generated by GNU Autoconf 2.63 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1550 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1551 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1552 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1553 | This configure script is free software; the Free Software Foundation |
| 1554 | gives unlimited permission to copy, distribute and modify it. |
| 1555 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1556 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1557 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1558 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1559 | This file contains any messages produced by compilers while |
| 1560 | running configure, to aid debugging if configure makes a mistake. |
| 1561 | |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 1562 | It was created by python $as_me 3.1, which was |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1563 | generated by GNU Autoconf 2.63. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1564 | |
| 1565 | $ $0 $@ |
| 1566 | |
| 1567 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1568 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1569 | { |
| 1570 | cat <<_ASUNAME |
| 1571 | ## --------- ## |
| 1572 | ## Platform. ## |
| 1573 | ## --------- ## |
| 1574 | |
| 1575 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1576 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1577 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1578 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1579 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1580 | |
| 1581 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1582 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1583 | |
| 1584 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1585 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1586 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1587 | /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] | 1588 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1589 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1590 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1591 | |
| 1592 | _ASUNAME |
| 1593 | |
| 1594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1595 | for as_dir in $PATH |
| 1596 | do |
| 1597 | IFS=$as_save_IFS |
| 1598 | test -z "$as_dir" && as_dir=. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1599 | $as_echo "PATH: $as_dir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1600 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1601 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1602 | |
| 1603 | } >&5 |
| 1604 | |
| 1605 | cat >&5 <<_ACEOF |
| 1606 | |
| 1607 | |
| 1608 | ## ----------- ## |
| 1609 | ## Core tests. ## |
| 1610 | ## ----------- ## |
| 1611 | |
| 1612 | _ACEOF |
| 1613 | |
| 1614 | |
| 1615 | # Keep a trace of the command line. |
| 1616 | # 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] | 1617 | # 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] | 1618 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1619 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1620 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1621 | ac_configure_args0= |
| 1622 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1623 | ac_must_keep_next=false |
| 1624 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1625 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1626 | for ac_arg |
| 1627 | do |
| 1628 | case $ac_arg in |
| 1629 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1630 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1631 | | -silent | --silent | --silen | --sile | --sil) |
| 1632 | continue ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1633 | *\'*) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1634 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1635 | esac |
| 1636 | case $ac_pass in |
| 1637 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1638 | 2) |
| 1639 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1640 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1641 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1642 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1643 | case $ac_arg in |
| 1644 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1645 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1646 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1647 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1648 | case "$ac_configure_args0 " in |
| 1649 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1650 | esac |
| 1651 | ;; |
| 1652 | -* ) ac_must_keep_next=true ;; |
| 1653 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1654 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1655 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1656 | ;; |
| 1657 | esac |
| 1658 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1659 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1660 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1661 | $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] | 1662 | |
| 1663 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1664 | # config.log. We remove comments because anyway the quotes in there |
| 1665 | # would cause problems or look ugly. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1666 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1667 | # 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] | 1668 | trap 'exit_status=$? |
| 1669 | # Save into config.log some information that might help in debugging. |
| 1670 | { |
| 1671 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1672 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1673 | cat <<\_ASBOX |
| 1674 | ## ---------------- ## |
| 1675 | ## Cache variables. ## |
| 1676 | ## ---------------- ## |
| 1677 | _ASBOX |
| 1678 | echo |
| 1679 | # The following way of writing the cache mishandles newlines in values, |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1680 | ( |
| 1681 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1682 | eval ac_val=\$$ac_var |
| 1683 | case $ac_val in #( |
| 1684 | *${as_nl}*) |
| 1685 | case $ac_var in #( |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1686 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1687 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1688 | esac |
| 1689 | case $ac_var in #( |
| 1690 | _ | IFS | as_nl) ;; #( |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1691 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1692 | *) $as_unset $ac_var ;; |
| 1693 | esac ;; |
| 1694 | esac |
| 1695 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1696 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1697 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1698 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1699 | sed -n \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1700 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1701 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1702 | ;; #( |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 1703 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1704 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 1705 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1706 | esac | |
| 1707 | sort |
| 1708 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1709 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1710 | |
| 1711 | cat <<\_ASBOX |
| 1712 | ## ----------------- ## |
| 1713 | ## Output variables. ## |
| 1714 | ## ----------------- ## |
| 1715 | _ASBOX |
| 1716 | echo |
| 1717 | for ac_var in $ac_subst_vars |
| 1718 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1719 | eval ac_val=\$$ac_var |
| 1720 | case $ac_val in |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1721 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1722 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1723 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1724 | done | sort |
| 1725 | echo |
| 1726 | |
| 1727 | if test -n "$ac_subst_files"; then |
| 1728 | cat <<\_ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1729 | ## ------------------- ## |
| 1730 | ## File substitutions. ## |
| 1731 | ## ------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1732 | _ASBOX |
| 1733 | echo |
| 1734 | for ac_var in $ac_subst_files |
| 1735 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1736 | eval ac_val=\$$ac_var |
| 1737 | case $ac_val in |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1738 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1739 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1740 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1741 | done | sort |
| 1742 | echo |
| 1743 | fi |
| 1744 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1745 | if test -s confdefs.h; then |
| 1746 | cat <<\_ASBOX |
| 1747 | ## ----------- ## |
| 1748 | ## confdefs.h. ## |
| 1749 | ## ----------- ## |
| 1750 | _ASBOX |
| 1751 | echo |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1752 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1753 | echo |
| 1754 | fi |
| 1755 | test "$ac_signal" != 0 && |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1756 | $as_echo "$as_me: caught signal $ac_signal" |
| 1757 | $as_echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1758 | } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1759 | rm -f core *.core core.conftest.* && |
| 1760 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1761 | exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1762 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1763 | for ac_signal in 1 2 13 15; do |
| 1764 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1765 | done |
| 1766 | ac_signal=0 |
| 1767 | |
| 1768 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1769 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1770 | |
| 1771 | # Predefined preprocessor variables. |
| 1772 | |
| 1773 | cat >>confdefs.h <<_ACEOF |
| 1774 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1775 | _ACEOF |
| 1776 | |
| 1777 | |
| 1778 | cat >>confdefs.h <<_ACEOF |
| 1779 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1780 | _ACEOF |
| 1781 | |
| 1782 | |
| 1783 | cat >>confdefs.h <<_ACEOF |
| 1784 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1785 | _ACEOF |
| 1786 | |
| 1787 | |
| 1788 | cat >>confdefs.h <<_ACEOF |
| 1789 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1790 | _ACEOF |
| 1791 | |
| 1792 | |
| 1793 | cat >>confdefs.h <<_ACEOF |
| 1794 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1795 | _ACEOF |
| 1796 | |
| 1797 | |
| 1798 | # Let the site file select an alternate cache file if it wants to. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1799 | # Prefer an explicitly selected file to automatically selected ones. |
| 1800 | ac_site_file1=NONE |
| 1801 | ac_site_file2=NONE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1802 | if test -n "$CONFIG_SITE"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1803 | ac_site_file1=$CONFIG_SITE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1804 | elif test "x$prefix" != xNONE; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1805 | ac_site_file1=$prefix/share/config.site |
| 1806 | ac_site_file2=$prefix/etc/config.site |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1807 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1808 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1809 | ac_site_file2=$ac_default_prefix/etc/config.site |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1810 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1811 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1812 | do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1813 | test "x$ac_site_file" = xNONE && continue |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1814 | if test -r "$ac_site_file"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1815 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1816 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1817 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1818 | . "$ac_site_file" |
| 1819 | fi |
| 1820 | done |
| 1821 | |
| 1822 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1823 | # Some versions of bash will fail to source /dev/null (special |
| 1824 | # files actually), so we avoid doing that. |
| 1825 | if test -f "$cache_file"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1826 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1827 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1828 | case $cache_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1829 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1830 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1831 | esac |
| 1832 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1833 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1834 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1835 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1836 | >$cache_file |
| 1837 | fi |
| 1838 | |
| 1839 | # Check that the precious variables saved in the cache have kept the same |
| 1840 | # value. |
| 1841 | ac_cache_corrupted=false |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1842 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1843 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1844 | eval ac_new_set=\$ac_env_${ac_var}_set |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1845 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1846 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1847 | case $ac_old_set,$ac_new_set in |
| 1848 | set,) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1849 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1850 | $as_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] | 1851 | ac_cache_corrupted=: ;; |
| 1852 | ,set) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1853 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1854 | $as_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] | 1855 | ac_cache_corrupted=: ;; |
| 1856 | ,);; |
| 1857 | *) |
| 1858 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1859 | # differences in whitespace do not lead to failure. |
| 1860 | ac_old_val_w=`echo x $ac_old_val` |
| 1861 | ac_new_val_w=`echo x $ac_new_val` |
| 1862 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 1863 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1864 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1865 | ac_cache_corrupted=: |
| 1866 | else |
| 1867 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 1868 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1869 | eval $ac_var=\$ac_old_val |
| 1870 | fi |
| 1871 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
| 1872 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 1873 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
| 1874 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1875 | fi;; |
| 1876 | esac |
| 1877 | # Pass precious variables to config.status. |
| 1878 | if test "$ac_new_set" = set; then |
| 1879 | case $ac_new_val in |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1880 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1881 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1882 | esac |
| 1883 | case " $ac_configure_args " in |
| 1884 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1885 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1886 | esac |
| 1887 | fi |
| 1888 | done |
| 1889 | if $ac_cache_corrupted; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 1890 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 1891 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1892 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1893 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1894 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1895 | $as_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] | 1896 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1897 | fi |
| 1898 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1899 | |
| 1900 | |
| 1901 | |
| 1902 | |
| 1903 | |
| 1904 | |
| 1905 | |
| 1906 | |
| 1907 | |
| 1908 | |
| 1909 | |
| 1910 | |
| 1911 | |
| 1912 | |
| 1913 | |
| 1914 | |
| 1915 | |
| 1916 | |
| 1917 | |
| 1918 | |
| 1919 | |
| 1920 | |
| 1921 | |
| 1922 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1923 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1924 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1925 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1926 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1927 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1928 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1929 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1930 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1931 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1932 | |
| 1933 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1934 | |
Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 1935 | if test "$prefix" != "/"; then |
| 1936 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 1937 | fi |
| 1938 | |
| 1939 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1940 | |
| 1941 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1942 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1943 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1944 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1945 | # with other autoconf-based packages that include Python.h |
| 1946 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1947 | rm confdefs.h |
| 1948 | mv confdefs.h.new confdefs.h |
| 1949 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1950 | |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 1951 | VERSION=3.1 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1952 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1953 | |
| 1954 | SOVERSION=1.0 |
| 1955 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1956 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1957 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1958 | |
| 1959 | cat >>confdefs.h <<\_ACEOF |
| 1960 | #define _GNU_SOURCE 1 |
| 1961 | _ACEOF |
| 1962 | |
| 1963 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1964 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1965 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1966 | # them. |
| 1967 | |
| 1968 | cat >>confdefs.h <<\_ACEOF |
| 1969 | #define _NETBSD_SOURCE 1 |
| 1970 | _ACEOF |
| 1971 | |
| 1972 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1973 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1974 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1975 | # them. |
| 1976 | |
| 1977 | cat >>confdefs.h <<\_ACEOF |
| 1978 | #define __BSD_VISIBLE 1 |
| 1979 | _ACEOF |
| 1980 | |
| 1981 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1982 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1983 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1984 | |
| 1985 | cat >>confdefs.h <<\_ACEOF |
| 1986 | #define _BSD_TYPES 1 |
| 1987 | _ACEOF |
| 1988 | |
| 1989 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1990 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1991 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 1992 | # them. |
| 1993 | |
| 1994 | cat >>confdefs.h <<\_ACEOF |
| 1995 | #define _DARWIN_C_SOURCE 1 |
| 1996 | _ACEOF |
| 1997 | |
| 1998 | |
| 1999 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2000 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2001 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2002 | # Arguments passed to configure. |
| 2003 | |
| 2004 | CONFIG_ARGS="$ac_configure_args" |
| 2005 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2006 | # Check whether --enable-universalsdk was given. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2007 | if test "${enable_universalsdk+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2008 | enableval=$enable_universalsdk; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2009 | case $enableval in |
| 2010 | yes) |
| 2011 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 2012 | ;; |
| 2013 | esac |
| 2014 | case $enableval in |
| 2015 | no) |
| 2016 | UNIVERSALSDK= |
| 2017 | enable_universalsdk= |
| 2018 | ;; |
| 2019 | *) |
| 2020 | UNIVERSALSDK=$enableval |
| 2021 | ;; |
| 2022 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2023 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2024 | else |
| 2025 | |
| 2026 | UNIVERSALSDK= |
| 2027 | enable_universalsdk= |
| 2028 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2029 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2030 | |
| 2031 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2032 | |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 2033 | ARCH_RUN_32BIT= |
| 2034 | |
| 2035 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2036 | UNIVERSAL_ARCHS="32-bit" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2037 | { $as_echo "$as_me:$LINENO: checking for --with-universal-archs" >&5 |
| 2038 | $as_echo_n "checking for --with-universal-archs... " >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2039 | |
| 2040 | # Check whether --with-universal-archs was given. |
| 2041 | if test "${with_universal_archs+set}" = set; then |
| 2042 | withval=$with_universal_archs; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2043 | { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 2044 | $as_echo "$withval" >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2045 | UNIVERSAL_ARCHS="$withval" |
| 2046 | |
| 2047 | else |
| 2048 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2049 | { $as_echo "$as_me:$LINENO: result: 32-bit" >&5 |
| 2050 | $as_echo "32-bit" >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2051 | |
| 2052 | fi |
| 2053 | |
| 2054 | |
| 2055 | |
| 2056 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2057 | |
| 2058 | # Check whether --with-framework-name was given. |
| 2059 | if test "${with_framework_name+set}" = set; then |
| 2060 | withval=$with_framework_name; |
| 2061 | PYTHONFRAMEWORK=${withval} |
| 2062 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 2063 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 2064 | |
| 2065 | else |
| 2066 | |
| 2067 | PYTHONFRAMEWORK=Python |
| 2068 | PYTHONFRAMEWORKDIR=Python.framework |
| 2069 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 2070 | |
| 2071 | fi |
| 2072 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2073 | # Check whether --enable-framework was given. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2074 | if test "${enable_framework+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2075 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2076 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2077 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2078 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2079 | esac |
| 2080 | case $enableval in |
| 2081 | no) |
| 2082 | PYTHONFRAMEWORK= |
| 2083 | PYTHONFRAMEWORKDIR=no-framework |
| 2084 | PYTHONFRAMEWORKPREFIX= |
| 2085 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2086 | FRAMEWORKINSTALLFIRST= |
| 2087 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2088 | FRAMEWORKALTINSTALLFIRST= |
| 2089 | FRAMEWORKALTINSTALLLAST= |
| 2090 | if test "x${prefix}" = "xNONE"; then |
| 2091 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2092 | else |
| 2093 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2094 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2095 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2096 | ;; |
| 2097 | *) |
| 2098 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2099 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2100 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2101 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" |
| 2102 | if test "$UNIVERSAL_ARCHS" = "all" |
| 2103 | then |
| 2104 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way" |
Ronald Oussoren | e391835 | 2009-03-30 18:00:28 +0000 | [diff] [blame] | 2105 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way" |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2106 | else |
Ronald Oussoren | e391835 | 2009-03-30 18:00:28 +0000 | [diff] [blame] | 2107 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2108 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
| 2109 | fi |
| 2110 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2111 | if test "x${prefix}" = "xNONE" ; then |
| 2112 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2113 | else |
| 2114 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2115 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2116 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2117 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2118 | # Add files for Mac specific code to the list of output |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2119 | # files: |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2120 | ac_config_files="$ac_config_files Mac/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2121 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2122 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2123 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2124 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 2125 | |
| 2126 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 2127 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2128 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2129 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2130 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2131 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2132 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2133 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2134 | PYTHONFRAMEWORKPREFIX= |
| 2135 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2136 | FRAMEWORKINSTALLFIRST= |
| 2137 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2138 | FRAMEWORKALTINSTALLFIRST= |
| 2139 | FRAMEWORKALTINSTALLLAST= |
| 2140 | if test "x${prefix}" = "xNONE" ; then |
| 2141 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2142 | else |
| 2143 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2144 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2145 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2146 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2147 | if test "$UNIVERSAL_ARCHS" = "all" |
| 2148 | then |
| 2149 | FRAMEWORKINSTALLLAST=update4wayuniversal |
| 2150 | FRAMEWORKALTINSTALLLAST=update4wayuniversal |
| 2151 | fi |
| 2152 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2153 | fi |
| 2154 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2155 | |
| 2156 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2157 | |
| 2158 | |
| 2159 | |
| 2160 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2161 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 2162 | |
| 2163 | |
| 2164 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2165 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2166 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 2167 | ## AC_HELP_STRING(--with-dyld, |
| 2168 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2169 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2170 | # Set name for machine-dependent library files |
| 2171 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2172 | { $as_echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 2173 | $as_echo_n "checking MACHDEP... " >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2174 | if test -z "$MACHDEP" |
| 2175 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2176 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2177 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 2178 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2179 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2180 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2181 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2182 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2183 | ac_md_system=`echo $ac_sys_system | |
| 2184 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 2185 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2186 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2187 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2188 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2189 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2190 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2191 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 2192 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2193 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2194 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2195 | esac |
| 2196 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2197 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2198 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 2199 | # disable features if it is defined, without any means to access these |
| 2200 | # features as extensions. For these systems, we skip the definition of |
| 2201 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 2202 | # some feature, make sure there is no alternative way to access this |
| 2203 | # feature. Also, when using wildcards, make sure you have verified the |
| 2204 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 2205 | # wildcard, and that the wildcard does not include future systems |
| 2206 | # (which may remove their limitations). |
| 2207 | case $ac_sys_system/$ac_sys_release in |
| 2208 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 2209 | # 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] | 2210 | # 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] | 2211 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123]) |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 2212 | define_xopen_source=no |
| 2213 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2214 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2215 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2216 | |
| 2217 | cat >>confdefs.h <<\_ACEOF |
| 2218 | #define _BSD_SOURCE 1 |
| 2219 | _ACEOF |
| 2220 | |
| 2221 | ;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 2222 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 2223 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 2224 | # Marc Recht |
Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 2225 | 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] | 2226 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 2227 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 2228 | # of union __?sigval. Reported by Stuart Bishop. |
| 2229 | SunOS/5.6) |
| 2230 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2231 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 2232 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2233 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 2234 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2235 | define_xopen_source=no;; |
| 2236 | # 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] | 2237 | # 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] | 2238 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2239 | define_xopen_source=no;; |
Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 2240 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 2241 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 2242 | FreeBSD/4.*) |
| 2243 | define_xopen_source=no;; |
| 2244 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 2245 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 2246 | # identifies itself as Darwin/7.* |
| 2247 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2248 | # disables platform specific features beyond repair. |
| 2249 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2250 | # has no effect, don't bother defining them |
| 2251 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 2252 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2253 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 2254 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 2255 | # 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] | 2256 | AIX/4) |
| 2257 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2258 | AIX/5) |
| 2259 | if test `uname -r` -eq 1; then |
| 2260 | define_xopen_source=no |
| 2261 | fi |
| 2262 | ;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 2263 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 2264 | # defining NI_NUMERICHOST. |
| 2265 | QNX/6.3.2) |
| 2266 | define_xopen_source=no |
| 2267 | ;; |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2268 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2269 | esac |
| 2270 | |
| 2271 | if test $define_xopen_source = yes |
| 2272 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2273 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 2274 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2275 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 2276 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2277 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2278 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2279 | |
| 2280 | cat >>confdefs.h <<\_ACEOF |
| 2281 | #define _XOPEN_SOURCE 500 |
| 2282 | _ACEOF |
| 2283 | |
| 2284 | ;; |
| 2285 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2286 | |
| 2287 | cat >>confdefs.h <<\_ACEOF |
| 2288 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2289 | _ACEOF |
| 2290 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2291 | ;; |
| 2292 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2293 | |
| 2294 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 2295 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 2296 | # several APIs are not declared. Since this is also needed in some |
| 2297 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2298 | # except for Solaris 10, where it must not be defined, |
| 2299 | # as it implies XPG4.2 |
| 2300 | case $ac_sys_system/$ac_sys_release in |
| 2301 | SunOS/5.10) |
| 2302 | ;; |
| 2303 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2304 | |
| 2305 | cat >>confdefs.h <<\_ACEOF |
| 2306 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 2307 | _ACEOF |
| 2308 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2309 | ;; |
| 2310 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2311 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2312 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2313 | cat >>confdefs.h <<\_ACEOF |
| 2314 | #define _POSIX_C_SOURCE 200112L |
| 2315 | _ACEOF |
| 2316 | |
| 2317 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2318 | fi |
| 2319 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2320 | # |
| 2321 | # SGI compilers allow the specification of the both the ABI and the |
| 2322 | # ISA on the command line. Depending on the values of these switches, |
| 2323 | # different and often incompatable code will be generated. |
| 2324 | # |
| 2325 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 2326 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 2327 | # variable is also adjusted. |
| 2328 | # |
| 2329 | |
| 2330 | if test ! -z "$SGI_ABI" |
| 2331 | then |
| 2332 | CC="cc $SGI_ABI" |
| 2333 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 2334 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 2335 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2336 | { $as_echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 2337 | $as_echo "$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2338 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2339 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 2340 | # it may influence the way we can build extensions, so distutils |
| 2341 | # needs to check it |
| 2342 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2343 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2344 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2345 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2346 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2347 | { $as_echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5 |
| 2348 | $as_echo_n "checking machine type as reported by uname -m... " >&6; } |
Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 2349 | ac_sys_machine=`uname -m` |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2350 | { $as_echo "$as_me:$LINENO: result: $ac_sys_machine" >&5 |
| 2351 | $as_echo "$ac_sys_machine" >&6; } |
Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 2352 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2353 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2354 | |
| 2355 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 2356 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 2357 | # just to get things to compile and link. Users are free to override OPT |
| 2358 | # when running configure or make. The build should not break if they do. |
| 2359 | # BASECFLAGS should generally not be messed with, however. |
| 2360 | |
| 2361 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 2362 | # on that fiddles with OPT and BASECFLAGS? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2363 | { $as_echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 2364 | $as_echo_n "checking for --without-gcc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2365 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2366 | # Check whether --with-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2367 | if test "${with_gcc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2368 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2369 | case $withval in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 2370 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2371 | without_gcc=yes;; |
| 2372 | yes) CC=gcc |
| 2373 | without_gcc=no;; |
| 2374 | *) CC=$withval |
| 2375 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2376 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2377 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2378 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2379 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2380 | AIX*) CC=cc_r |
| 2381 | without_gcc=;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2382 | Monterey*) |
| 2383 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 2384 | without_gcc=;; |
| 2385 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 2386 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2387 | fi |
| 2388 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2389 | { $as_echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 2390 | $as_echo "$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2391 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2392 | # If the user switches compilers, we can't believe the cache |
| 2393 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 2394 | then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2395 | { { $as_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] | 2396 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2397 | $as_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] | 2398 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 2399 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2400 | fi |
| 2401 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2402 | ac_ext=c |
| 2403 | ac_cpp='$CPP $CPPFLAGS' |
| 2404 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2405 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2406 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2407 | if test -n "$ac_tool_prefix"; then |
| 2408 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2409 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2410 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2411 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2412 | if test "${ac_cv_prog_CC+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2413 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2414 | else |
| 2415 | if test -n "$CC"; then |
| 2416 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2417 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2419 | for as_dir in $PATH |
| 2420 | do |
| 2421 | IFS=$as_save_IFS |
| 2422 | test -z "$as_dir" && as_dir=. |
| 2423 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2424 | 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] | 2425 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2426 | $as_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] | 2427 | break 2 |
| 2428 | fi |
| 2429 | done |
| 2430 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2431 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2432 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2433 | fi |
| 2434 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2435 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2436 | if test -n "$CC"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2437 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2438 | $as_echo "$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2439 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2440 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2441 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2442 | fi |
| 2443 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2444 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2445 | fi |
| 2446 | if test -z "$ac_cv_prog_CC"; then |
| 2447 | ac_ct_CC=$CC |
| 2448 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2449 | set dummy gcc; ac_word=$2 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2450 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2451 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2452 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2453 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2454 | else |
| 2455 | if test -n "$ac_ct_CC"; then |
| 2456 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2457 | else |
| 2458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2459 | for as_dir in $PATH |
| 2460 | do |
| 2461 | IFS=$as_save_IFS |
| 2462 | test -z "$as_dir" && as_dir=. |
| 2463 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2464 | 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] | 2465 | ac_cv_prog_ac_ct_CC="gcc" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2466 | $as_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] | 2467 | break 2 |
| 2468 | fi |
| 2469 | done |
| 2470 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2471 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2472 | |
| 2473 | fi |
| 2474 | fi |
| 2475 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2476 | if test -n "$ac_ct_CC"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2477 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2478 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2479 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2480 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2481 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2482 | fi |
| 2483 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2484 | if test "x$ac_ct_CC" = x; then |
| 2485 | CC="" |
| 2486 | else |
| 2487 | case $cross_compiling:$ac_tool_warned in |
| 2488 | yes:) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2489 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2490 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2491 | ac_tool_warned=yes ;; |
| 2492 | esac |
| 2493 | CC=$ac_ct_CC |
| 2494 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2495 | else |
| 2496 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2497 | fi |
| 2498 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2499 | if test -z "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2500 | if test -n "$ac_tool_prefix"; then |
| 2501 | # 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] | 2502 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2503 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2504 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2505 | if test "${ac_cv_prog_CC+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2506 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2507 | else |
| 2508 | if test -n "$CC"; then |
| 2509 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2510 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2512 | for as_dir in $PATH |
| 2513 | do |
| 2514 | IFS=$as_save_IFS |
| 2515 | test -z "$as_dir" && as_dir=. |
| 2516 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2517 | 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] | 2518 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2519 | $as_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] | 2520 | break 2 |
| 2521 | fi |
| 2522 | done |
| 2523 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2524 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2525 | |
| 2526 | fi |
| 2527 | fi |
| 2528 | CC=$ac_cv_prog_CC |
| 2529 | if test -n "$CC"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2530 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2531 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2532 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2533 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2534 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2535 | fi |
| 2536 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2537 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2538 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2539 | fi |
| 2540 | if test -z "$CC"; then |
| 2541 | # Extract the first word of "cc", so it can be a program name with args. |
| 2542 | set dummy cc; ac_word=$2 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2543 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2544 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2545 | if test "${ac_cv_prog_CC+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2546 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2547 | else |
| 2548 | if test -n "$CC"; then |
| 2549 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2550 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2551 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2553 | for as_dir in $PATH |
| 2554 | do |
| 2555 | IFS=$as_save_IFS |
| 2556 | test -z "$as_dir" && as_dir=. |
| 2557 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2558 | 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] | 2559 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2560 | ac_prog_rejected=yes |
| 2561 | continue |
| 2562 | fi |
| 2563 | ac_cv_prog_CC="cc" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2564 | $as_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] | 2565 | break 2 |
| 2566 | fi |
| 2567 | done |
| 2568 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2569 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2570 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2571 | if test $ac_prog_rejected = yes; then |
| 2572 | # We found a bogon in the path, so make sure we never use it. |
| 2573 | set dummy $ac_cv_prog_CC |
| 2574 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2575 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2576 | # We chose a different compiler from the bogus one. |
| 2577 | # However, it has the same basename, so the bogon will be chosen |
| 2578 | # first if we set CC to just the basename; use the full file name. |
| 2579 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2580 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2581 | fi |
| 2582 | fi |
| 2583 | fi |
| 2584 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2585 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2586 | if test -n "$CC"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2587 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2588 | $as_echo "$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2589 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2590 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2591 | $as_echo "no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2592 | fi |
| 2593 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2594 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2595 | fi |
| 2596 | if test -z "$CC"; then |
| 2597 | if test -n "$ac_tool_prefix"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2598 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2599 | do |
| 2600 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2601 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2602 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2603 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2604 | if test "${ac_cv_prog_CC+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2605 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2606 | else |
| 2607 | if test -n "$CC"; then |
| 2608 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2609 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2611 | for as_dir in $PATH |
| 2612 | do |
| 2613 | IFS=$as_save_IFS |
| 2614 | test -z "$as_dir" && as_dir=. |
| 2615 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2616 | 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] | 2617 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2618 | $as_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] | 2619 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2620 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2621 | done |
| 2622 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2623 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2624 | |
| 2625 | fi |
| 2626 | fi |
| 2627 | CC=$ac_cv_prog_CC |
| 2628 | if test -n "$CC"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2629 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2630 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2631 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2632 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2633 | $as_echo "no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2634 | fi |
| 2635 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2636 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2637 | test -n "$CC" && break |
| 2638 | done |
| 2639 | fi |
| 2640 | if test -z "$CC"; then |
| 2641 | ac_ct_CC=$CC |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2642 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2643 | do |
| 2644 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2645 | set dummy $ac_prog; ac_word=$2 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2646 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2647 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2648 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2649 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2650 | else |
| 2651 | if test -n "$ac_ct_CC"; then |
| 2652 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2653 | else |
| 2654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2655 | for as_dir in $PATH |
| 2656 | do |
| 2657 | IFS=$as_save_IFS |
| 2658 | test -z "$as_dir" && as_dir=. |
| 2659 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2660 | 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] | 2661 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2662 | $as_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] | 2663 | break 2 |
| 2664 | fi |
| 2665 | done |
| 2666 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2667 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2668 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2669 | fi |
| 2670 | fi |
| 2671 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2672 | if test -n "$ac_ct_CC"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2673 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2674 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2675 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2676 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2677 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2678 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2679 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2680 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2681 | test -n "$ac_ct_CC" && break |
| 2682 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2683 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2684 | if test "x$ac_ct_CC" = x; then |
| 2685 | CC="" |
| 2686 | else |
| 2687 | case $cross_compiling:$ac_tool_warned in |
| 2688 | yes:) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2689 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2690 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2691 | ac_tool_warned=yes ;; |
| 2692 | esac |
| 2693 | CC=$ac_ct_CC |
| 2694 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2695 | fi |
| 2696 | |
| 2697 | fi |
| 2698 | |
| 2699 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2700 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2701 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2702 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2703 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2704 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2705 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2706 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2707 | |
| 2708 | # Provide some information about the compiler. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2709 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2710 | set X $ac_compile |
| 2711 | ac_compiler=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2712 | { (ac_try="$ac_compiler --version >&5" |
| 2713 | case "(($ac_try" in |
| 2714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2715 | *) ac_try_echo=$ac_try;; |
| 2716 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2717 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2718 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2719 | (eval "$ac_compiler --version >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2720 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2721 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2722 | (exit $ac_status); } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2723 | { (ac_try="$ac_compiler -v >&5" |
| 2724 | case "(($ac_try" in |
| 2725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2726 | *) ac_try_echo=$ac_try;; |
| 2727 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2728 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2729 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2730 | (eval "$ac_compiler -v >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2731 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2732 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2733 | (exit $ac_status); } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2734 | { (ac_try="$ac_compiler -V >&5" |
| 2735 | case "(($ac_try" in |
| 2736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2737 | *) ac_try_echo=$ac_try;; |
| 2738 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2739 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2740 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2741 | (eval "$ac_compiler -V >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2742 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2743 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2744 | (exit $ac_status); } |
| 2745 | |
| 2746 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2747 | /* confdefs.h. */ |
| 2748 | _ACEOF |
| 2749 | cat confdefs.h >>conftest.$ac_ext |
| 2750 | cat >>conftest.$ac_ext <<_ACEOF |
| 2751 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2752 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2753 | int |
| 2754 | main () |
| 2755 | { |
| 2756 | |
| 2757 | ; |
| 2758 | return 0; |
| 2759 | } |
| 2760 | _ACEOF |
| 2761 | ac_clean_files_save=$ac_clean_files |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2762 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2763 | # Try to create an executable without -o first, disregard a.out. |
| 2764 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2765 | # of exeext. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2766 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2767 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2768 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2769 | |
| 2770 | # The possible output files: |
| 2771 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2772 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2773 | ac_rmfiles= |
| 2774 | for ac_file in $ac_files |
| 2775 | do |
| 2776 | case $ac_file in |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2777 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2778 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2779 | esac |
| 2780 | done |
| 2781 | rm -f $ac_rmfiles |
| 2782 | |
| 2783 | if { (ac_try="$ac_link_default" |
| 2784 | case "(($ac_try" in |
| 2785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2786 | *) ac_try_echo=$ac_try;; |
| 2787 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2788 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2789 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2790 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2791 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2792 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2793 | (exit $ac_status); }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2794 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2795 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2796 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2797 | # so that the user can short-circuit this test for compilers unknown to |
| 2798 | # Autoconf. |
| 2799 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2800 | do |
| 2801 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2802 | case $ac_file in |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2803 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2804 | ;; |
| 2805 | [ab].out ) |
| 2806 | # We found the default executable, but exeext='' is most |
| 2807 | # certainly right. |
| 2808 | break;; |
| 2809 | *.* ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2810 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2811 | then :; else |
| 2812 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2813 | fi |
| 2814 | # We set ac_cv_exeext here because the later test for it is not |
| 2815 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2816 | # argument, so we may need to know it at that point already. |
| 2817 | # Even if this section looks crufty: it has the advantage of |
| 2818 | # actually working. |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2819 | break;; |
| 2820 | * ) |
| 2821 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2822 | esac |
| 2823 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2824 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2825 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2826 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2827 | ac_file='' |
| 2828 | fi |
| 2829 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2830 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2831 | $as_echo "$ac_file" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2832 | if test -z "$ac_file"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2833 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2835 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2836 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2837 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2838 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2839 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2840 | $as_echo "$as_me: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2841 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2842 | { (exit 77); exit 77; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2843 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2844 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2845 | ac_exeext=$ac_cv_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2846 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2847 | # 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] | 2848 | # the compiler is broken, or we cross compile. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2849 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2850 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2851 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2852 | # If not cross compiling, check that we can run a simple program. |
| 2853 | if test "$cross_compiling" != yes; then |
| 2854 | if { ac_try='./$ac_file' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2855 | { (case "(($ac_try" in |
| 2856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2857 | *) ac_try_echo=$ac_try;; |
| 2858 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2859 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2860 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2861 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2862 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2863 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2864 | (exit $ac_status); }; }; then |
| 2865 | cross_compiling=no |
| 2866 | else |
| 2867 | if test "$cross_compiling" = maybe; then |
| 2868 | cross_compiling=yes |
| 2869 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2870 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2871 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2872 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2873 | If you meant to cross compile, use \`--host'. |
| 2874 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2875 | $as_echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2876 | If you meant to cross compile, use \`--host'. |
| 2877 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2878 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2879 | fi |
| 2880 | fi |
| 2881 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2882 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 2883 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2884 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2885 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2886 | ac_clean_files=$ac_clean_files_save |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2887 | # Check that the compiler produces executables we can run. If not, either |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2888 | # the compiler is broken, or we cross compile. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2889 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2890 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2891 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2892 | $as_echo "$cross_compiling" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2893 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2894 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2895 | $as_echo_n "checking for suffix of executables... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2896 | if { (ac_try="$ac_link" |
| 2897 | case "(($ac_try" in |
| 2898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2899 | *) ac_try_echo=$ac_try;; |
| 2900 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2901 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2902 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2903 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2904 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2905 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2906 | (exit $ac_status); }; then |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2907 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2908 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2909 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2910 | # `rm'. |
| 2911 | for ac_file in conftest.exe conftest conftest.*; do |
| 2912 | test -f "$ac_file" || continue |
| 2913 | case $ac_file in |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2914 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2915 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2916 | break;; |
| 2917 | * ) break;; |
| 2918 | esac |
| 2919 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2920 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2921 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2922 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2923 | { { $as_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] | 2924 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2925 | $as_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] | 2926 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2927 | { (exit 1); exit 1; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2928 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2929 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2930 | rm -f conftest$ac_cv_exeext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2931 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2932 | $as_echo "$ac_cv_exeext" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2933 | |
| 2934 | rm -f conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2935 | EXEEXT=$ac_cv_exeext |
| 2936 | ac_exeext=$EXEEXT |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2937 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2938 | $as_echo_n "checking for suffix of object files... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2939 | if test "${ac_cv_objext+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2940 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2941 | else |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2942 | cat >conftest.$ac_ext <<_ACEOF |
| 2943 | /* confdefs.h. */ |
| 2944 | _ACEOF |
| 2945 | cat confdefs.h >>conftest.$ac_ext |
| 2946 | cat >>conftest.$ac_ext <<_ACEOF |
| 2947 | /* end confdefs.h. */ |
| 2948 | |
| 2949 | int |
| 2950 | main () |
| 2951 | { |
| 2952 | |
| 2953 | ; |
| 2954 | return 0; |
| 2955 | } |
| 2956 | _ACEOF |
| 2957 | rm -f conftest.o conftest.obj |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2958 | if { (ac_try="$ac_compile" |
| 2959 | case "(($ac_try" in |
| 2960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2961 | *) ac_try_echo=$ac_try;; |
| 2962 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2963 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2964 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2965 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2966 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2967 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2968 | (exit $ac_status); }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2969 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2970 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2971 | case $ac_file in |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2972 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2973 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2974 | break;; |
| 2975 | esac |
| 2976 | done |
| 2977 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2978 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2980 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2981 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2982 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2983 | { { $as_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] | 2984 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2985 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2986 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2987 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2988 | fi |
| 2989 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2990 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2991 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2992 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2993 | $as_echo "$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2994 | OBJEXT=$ac_cv_objext |
| 2995 | ac_objext=$OBJEXT |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2996 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2997 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2998 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 2999 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3000 | else |
| 3001 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3002 | /* confdefs.h. */ |
| 3003 | _ACEOF |
| 3004 | cat confdefs.h >>conftest.$ac_ext |
| 3005 | cat >>conftest.$ac_ext <<_ACEOF |
| 3006 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3007 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3008 | int |
| 3009 | main () |
| 3010 | { |
| 3011 | #ifndef __GNUC__ |
| 3012 | choke me |
| 3013 | #endif |
| 3014 | |
| 3015 | ; |
| 3016 | return 0; |
| 3017 | } |
| 3018 | _ACEOF |
| 3019 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3020 | if { (ac_try="$ac_compile" |
| 3021 | case "(($ac_try" in |
| 3022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3023 | *) ac_try_echo=$ac_try;; |
| 3024 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3025 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3026 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3027 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3028 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3030 | rm -f conftest.er1 |
| 3031 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3032 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3033 | (exit $ac_status); } && { |
| 3034 | test -z "$ac_c_werror_flag" || |
| 3035 | test ! -s conftest.err |
| 3036 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3037 | ac_compiler_gnu=yes |
| 3038 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3039 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3041 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3042 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3043 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3044 | |
| 3045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3046 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3047 | |
| 3048 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3049 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3050 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3051 | if test $ac_compiler_gnu = yes; then |
| 3052 | GCC=yes |
| 3053 | else |
| 3054 | GCC= |
| 3055 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3056 | ac_test_CFLAGS=${CFLAGS+set} |
| 3057 | ac_save_CFLAGS=$CFLAGS |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3058 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3059 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3060 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3061 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3062 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3063 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3064 | ac_c_werror_flag=yes |
| 3065 | ac_cv_prog_cc_g=no |
| 3066 | CFLAGS="-g" |
| 3067 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3068 | /* confdefs.h. */ |
| 3069 | _ACEOF |
| 3070 | cat confdefs.h >>conftest.$ac_ext |
| 3071 | cat >>conftest.$ac_ext <<_ACEOF |
| 3072 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3073 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3074 | int |
| 3075 | main () |
| 3076 | { |
| 3077 | |
| 3078 | ; |
| 3079 | return 0; |
| 3080 | } |
| 3081 | _ACEOF |
| 3082 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3083 | if { (ac_try="$ac_compile" |
| 3084 | case "(($ac_try" in |
| 3085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3086 | *) ac_try_echo=$ac_try;; |
| 3087 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3088 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3089 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3090 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3091 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3093 | rm -f conftest.er1 |
| 3094 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3095 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3096 | (exit $ac_status); } && { |
| 3097 | test -z "$ac_c_werror_flag" || |
| 3098 | test ! -s conftest.err |
| 3099 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3100 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3101 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3102 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3104 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3105 | CFLAGS="" |
| 3106 | cat >conftest.$ac_ext <<_ACEOF |
| 3107 | /* confdefs.h. */ |
| 3108 | _ACEOF |
| 3109 | cat confdefs.h >>conftest.$ac_ext |
| 3110 | cat >>conftest.$ac_ext <<_ACEOF |
| 3111 | /* end confdefs.h. */ |
| 3112 | |
| 3113 | int |
| 3114 | main () |
| 3115 | { |
| 3116 | |
| 3117 | ; |
| 3118 | return 0; |
| 3119 | } |
| 3120 | _ACEOF |
| 3121 | rm -f conftest.$ac_objext |
| 3122 | if { (ac_try="$ac_compile" |
| 3123 | case "(($ac_try" in |
| 3124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3125 | *) ac_try_echo=$ac_try;; |
| 3126 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3127 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3128 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3129 | (eval "$ac_compile") 2>conftest.er1 |
| 3130 | ac_status=$? |
| 3131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3132 | rm -f conftest.er1 |
| 3133 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3134 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3135 | (exit $ac_status); } && { |
| 3136 | test -z "$ac_c_werror_flag" || |
| 3137 | test ! -s conftest.err |
| 3138 | } && test -s conftest.$ac_objext; then |
| 3139 | : |
| 3140 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3141 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3143 | |
| 3144 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3145 | CFLAGS="-g" |
| 3146 | cat >conftest.$ac_ext <<_ACEOF |
| 3147 | /* confdefs.h. */ |
| 3148 | _ACEOF |
| 3149 | cat confdefs.h >>conftest.$ac_ext |
| 3150 | cat >>conftest.$ac_ext <<_ACEOF |
| 3151 | /* end confdefs.h. */ |
| 3152 | |
| 3153 | int |
| 3154 | main () |
| 3155 | { |
| 3156 | |
| 3157 | ; |
| 3158 | return 0; |
| 3159 | } |
| 3160 | _ACEOF |
| 3161 | rm -f conftest.$ac_objext |
| 3162 | if { (ac_try="$ac_compile" |
| 3163 | case "(($ac_try" in |
| 3164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3165 | *) ac_try_echo=$ac_try;; |
| 3166 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3167 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3168 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3169 | (eval "$ac_compile") 2>conftest.er1 |
| 3170 | ac_status=$? |
| 3171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3172 | rm -f conftest.er1 |
| 3173 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3174 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3175 | (exit $ac_status); } && { |
| 3176 | test -z "$ac_c_werror_flag" || |
| 3177 | test ! -s conftest.err |
| 3178 | } && test -s conftest.$ac_objext; then |
| 3179 | ac_cv_prog_cc_g=yes |
| 3180 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3181 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3183 | |
| 3184 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3185 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3186 | |
| 3187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3188 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3189 | |
| 3190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3191 | fi |
| 3192 | |
| 3193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3194 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3195 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3196 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3197 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3198 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3199 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3200 | elif test $ac_cv_prog_cc_g = yes; then |
| 3201 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3202 | CFLAGS="-g -O2" |
| 3203 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3204 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3205 | fi |
| 3206 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3207 | if test "$GCC" = yes; then |
| 3208 | CFLAGS="-O2" |
| 3209 | else |
| 3210 | CFLAGS= |
| 3211 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3212 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3213 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3214 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3215 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3216 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3217 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3218 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3219 | ac_save_CC=$CC |
| 3220 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3221 | /* confdefs.h. */ |
| 3222 | _ACEOF |
| 3223 | cat confdefs.h >>conftest.$ac_ext |
| 3224 | cat >>conftest.$ac_ext <<_ACEOF |
| 3225 | /* end confdefs.h. */ |
| 3226 | #include <stdarg.h> |
| 3227 | #include <stdio.h> |
| 3228 | #include <sys/types.h> |
| 3229 | #include <sys/stat.h> |
| 3230 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3231 | struct buf { int x; }; |
| 3232 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3233 | static char *e (p, i) |
| 3234 | char **p; |
| 3235 | int i; |
| 3236 | { |
| 3237 | return p[i]; |
| 3238 | } |
| 3239 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3240 | { |
| 3241 | char *s; |
| 3242 | va_list v; |
| 3243 | va_start (v,p); |
| 3244 | s = g (p, va_arg (v,int)); |
| 3245 | va_end (v); |
| 3246 | return s; |
| 3247 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3248 | |
| 3249 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3250 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3251 | These don't provoke an error unfortunately, instead are silently treated |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3252 | 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] | 3253 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3254 | 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] | 3255 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3256 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3257 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3258 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3259 | inside strings and character constants. */ |
| 3260 | #define FOO(x) 'x' |
| 3261 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3262 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3263 | int test (int i, double x); |
| 3264 | struct s1 {int (*f) (int a);}; |
| 3265 | struct s2 {int (*f) (double a);}; |
| 3266 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3267 | int argc; |
| 3268 | char **argv; |
| 3269 | int |
| 3270 | main () |
| 3271 | { |
| 3272 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3273 | ; |
| 3274 | return 0; |
| 3275 | } |
| 3276 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3277 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3278 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3279 | do |
| 3280 | CC="$ac_save_CC $ac_arg" |
| 3281 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3282 | if { (ac_try="$ac_compile" |
| 3283 | case "(($ac_try" in |
| 3284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3285 | *) ac_try_echo=$ac_try;; |
| 3286 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3287 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3288 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3289 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3290 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3292 | rm -f conftest.er1 |
| 3293 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3294 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3295 | (exit $ac_status); } && { |
| 3296 | test -z "$ac_c_werror_flag" || |
| 3297 | test ! -s conftest.err |
| 3298 | } && test -s conftest.$ac_objext; then |
| 3299 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3300 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3301 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3303 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3304 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3305 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3306 | |
| 3307 | rm -f core conftest.err conftest.$ac_objext |
| 3308 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3309 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3310 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3311 | CC=$ac_save_CC |
| 3312 | |
| 3313 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3314 | # AC_CACHE_VAL |
| 3315 | case "x$ac_cv_prog_cc_c89" in |
| 3316 | x) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3317 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
| 3318 | $as_echo "none needed" >&6; } ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3319 | xno) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3320 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3321 | $as_echo "unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3322 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3323 | CC="$CC $ac_cv_prog_cc_c89" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3324 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3325 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3326 | esac |
| 3327 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3328 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3329 | ac_ext=c |
| 3330 | ac_cpp='$CPP $CPPFLAGS' |
| 3331 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3332 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3333 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3334 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3335 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3336 | |
| 3337 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3338 | { $as_echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 3339 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3340 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3341 | # Check whether --with-cxx_main was given. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3342 | if test "${with_cxx_main+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3343 | withval=$with_cxx_main; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3344 | |
| 3345 | case $withval in |
| 3346 | no) with_cxx_main=no |
| 3347 | MAINCC='$(CC)';; |
| 3348 | yes) with_cxx_main=yes |
| 3349 | MAINCC='$(CXX)';; |
| 3350 | *) with_cxx_main=yes |
| 3351 | MAINCC=$withval |
| 3352 | if test -z "$CXX" |
| 3353 | then |
| 3354 | CXX=$withval |
| 3355 | fi;; |
| 3356 | esac |
| 3357 | else |
| 3358 | |
| 3359 | with_cxx_main=no |
| 3360 | MAINCC='$(CC)' |
| 3361 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3362 | fi |
| 3363 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3364 | { $as_echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 3365 | $as_echo "$with_cxx_main" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3366 | |
| 3367 | preset_cxx="$CXX" |
| 3368 | if test -z "$CXX" |
| 3369 | then |
| 3370 | case "$CC" in |
| 3371 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3372 | set dummy g++; ac_word=$2 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3373 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3374 | $as_echo_n "checking for $ac_word... " >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3375 | if test "${ac_cv_path_CXX+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3376 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3377 | else |
| 3378 | case $CXX in |
| 3379 | [\\/]* | ?:[\\/]*) |
| 3380 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3381 | ;; |
| 3382 | *) |
| 3383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3384 | for as_dir in notfound |
| 3385 | do |
| 3386 | IFS=$as_save_IFS |
| 3387 | test -z "$as_dir" && as_dir=. |
| 3388 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3389 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3390 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3391 | $as_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] | 3392 | break 2 |
| 3393 | fi |
| 3394 | done |
| 3395 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3396 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3397 | |
| 3398 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 3399 | ;; |
| 3400 | esac |
| 3401 | fi |
| 3402 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3403 | if test -n "$CXX"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3404 | { $as_echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3405 | $as_echo "$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3406 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3407 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3408 | $as_echo "no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3409 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3410 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3411 | ;; |
| 3412 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 3413 | set dummy c++; ac_word=$2 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3414 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3415 | $as_echo_n "checking for $ac_word... " >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3416 | if test "${ac_cv_path_CXX+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3417 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3418 | else |
| 3419 | case $CXX in |
| 3420 | [\\/]* | ?:[\\/]*) |
| 3421 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3422 | ;; |
| 3423 | *) |
| 3424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3425 | for as_dir in notfound |
| 3426 | do |
| 3427 | IFS=$as_save_IFS |
| 3428 | test -z "$as_dir" && as_dir=. |
| 3429 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3430 | 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] | 3431 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3432 | $as_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] | 3433 | break 2 |
| 3434 | fi |
| 3435 | done |
| 3436 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3437 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3438 | |
| 3439 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 3440 | ;; |
| 3441 | esac |
| 3442 | fi |
| 3443 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3444 | if test -n "$CXX"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3445 | { $as_echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3446 | $as_echo "$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3447 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3448 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3449 | $as_echo "no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3450 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3451 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3452 | ;; |
| 3453 | esac |
| 3454 | if test "$CXX" = "notfound" |
| 3455 | then |
| 3456 | CXX="" |
| 3457 | fi |
| 3458 | fi |
| 3459 | if test -z "$CXX" |
| 3460 | then |
| 3461 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 3462 | do |
| 3463 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3464 | set dummy $ac_prog; ac_word=$2 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3465 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3466 | $as_echo_n "checking for $ac_word... " >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3467 | if test "${ac_cv_prog_CXX+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3468 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3469 | else |
| 3470 | if test -n "$CXX"; then |
| 3471 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3472 | else |
| 3473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3474 | for as_dir in $PATH |
| 3475 | do |
| 3476 | IFS=$as_save_IFS |
| 3477 | test -z "$as_dir" && as_dir=. |
| 3478 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3479 | 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] | 3480 | ac_cv_prog_CXX="$ac_prog" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3481 | $as_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] | 3482 | break 2 |
| 3483 | fi |
| 3484 | done |
| 3485 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3486 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3487 | |
| 3488 | fi |
| 3489 | fi |
| 3490 | CXX=$ac_cv_prog_CXX |
| 3491 | if test -n "$CXX"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3492 | { $as_echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3493 | $as_echo "$CXX" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3494 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3495 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3496 | $as_echo "no" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3497 | fi |
| 3498 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3499 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3500 | test -n "$CXX" && break |
| 3501 | done |
| 3502 | test -n "$CXX" || CXX="notfound" |
| 3503 | |
| 3504 | if test "$CXX" = "notfound" |
| 3505 | then |
| 3506 | CXX="" |
| 3507 | fi |
| 3508 | fi |
| 3509 | if test "$preset_cxx" != "$CXX" |
| 3510 | then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3511 | { $as_echo "$as_me:$LINENO: WARNING: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3512 | |
| 3513 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3514 | If this is not intended, then set CXX on the configure command line. |
| 3515 | " >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3516 | $as_echo "$as_me: WARNING: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3517 | |
| 3518 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3519 | If this is not intended, then set CXX on the configure command line. |
| 3520 | " >&2;} |
| 3521 | fi |
| 3522 | |
| 3523 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3524 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3525 | |
| 3526 | ac_ext=c |
| 3527 | ac_cpp='$CPP $CPPFLAGS' |
| 3528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3531 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3532 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3533 | # On Suns, sometimes $CPP names a directory. |
| 3534 | if test -n "$CPP" && test -d "$CPP"; then |
| 3535 | CPP= |
| 3536 | fi |
| 3537 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3538 | if test "${ac_cv_prog_CPP+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3539 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3540 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3541 | # Double quotes because CPP needs to be expanded |
| 3542 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3543 | do |
| 3544 | ac_preproc_ok=false |
| 3545 | for ac_c_preproc_warn_flag in '' yes |
| 3546 | do |
| 3547 | # Use a header file that comes with gcc, so configuring glibc |
| 3548 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3549 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3550 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3551 | # 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] | 3552 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3553 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3554 | /* confdefs.h. */ |
| 3555 | _ACEOF |
| 3556 | cat confdefs.h >>conftest.$ac_ext |
| 3557 | cat >>conftest.$ac_ext <<_ACEOF |
| 3558 | /* end confdefs.h. */ |
| 3559 | #ifdef __STDC__ |
| 3560 | # include <limits.h> |
| 3561 | #else |
| 3562 | # include <assert.h> |
| 3563 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3564 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3565 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3566 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3567 | case "(($ac_try" in |
| 3568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3569 | *) ac_try_echo=$ac_try;; |
| 3570 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3571 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3572 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3573 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3574 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3575 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3576 | rm -f conftest.er1 |
| 3577 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3578 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3579 | (exit $ac_status); } >/dev/null && { |
| 3580 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3581 | test ! -s conftest.err |
| 3582 | }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3583 | : |
| 3584 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3585 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3587 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3588 | # Broken: fails on valid input. |
| 3589 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3590 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3591 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3592 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3593 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3594 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3595 | # can be detected and how. |
| 3596 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3597 | /* confdefs.h. */ |
| 3598 | _ACEOF |
| 3599 | cat confdefs.h >>conftest.$ac_ext |
| 3600 | cat >>conftest.$ac_ext <<_ACEOF |
| 3601 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3602 | #include <ac_nonexistent.h> |
| 3603 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3604 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3605 | case "(($ac_try" in |
| 3606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3607 | *) ac_try_echo=$ac_try;; |
| 3608 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3609 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3610 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3611 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3612 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3613 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3614 | rm -f conftest.er1 |
| 3615 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3616 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3617 | (exit $ac_status); } >/dev/null && { |
| 3618 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3619 | test ! -s conftest.err |
| 3620 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3621 | # Broken: success on invalid input. |
| 3622 | continue |
| 3623 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3624 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3626 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3627 | # Passes both tests. |
| 3628 | ac_preproc_ok=: |
| 3629 | break |
| 3630 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3631 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3632 | rm -f conftest.err conftest.$ac_ext |
| 3633 | |
| 3634 | done |
| 3635 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3636 | rm -f conftest.err conftest.$ac_ext |
| 3637 | if $ac_preproc_ok; then |
| 3638 | break |
| 3639 | fi |
| 3640 | |
| 3641 | done |
| 3642 | ac_cv_prog_CPP=$CPP |
| 3643 | |
| 3644 | fi |
| 3645 | CPP=$ac_cv_prog_CPP |
| 3646 | else |
| 3647 | ac_cv_prog_CPP=$CPP |
| 3648 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3649 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3650 | $as_echo "$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3651 | ac_preproc_ok=false |
| 3652 | for ac_c_preproc_warn_flag in '' yes |
| 3653 | do |
| 3654 | # Use a header file that comes with gcc, so configuring glibc |
| 3655 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3656 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3657 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3658 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3659 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3660 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3661 | /* confdefs.h. */ |
| 3662 | _ACEOF |
| 3663 | cat confdefs.h >>conftest.$ac_ext |
| 3664 | cat >>conftest.$ac_ext <<_ACEOF |
| 3665 | /* end confdefs.h. */ |
| 3666 | #ifdef __STDC__ |
| 3667 | # include <limits.h> |
| 3668 | #else |
| 3669 | # include <assert.h> |
| 3670 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3671 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3672 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3673 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3674 | case "(($ac_try" in |
| 3675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3676 | *) ac_try_echo=$ac_try;; |
| 3677 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3678 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3679 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3680 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3681 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3682 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3683 | rm -f conftest.er1 |
| 3684 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3685 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3686 | (exit $ac_status); } >/dev/null && { |
| 3687 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3688 | test ! -s conftest.err |
| 3689 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3690 | : |
| 3691 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3692 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3694 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3695 | # Broken: fails on valid input. |
| 3696 | continue |
| 3697 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3698 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3699 | rm -f conftest.err conftest.$ac_ext |
| 3700 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3701 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3702 | # can be detected and how. |
| 3703 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3704 | /* confdefs.h. */ |
| 3705 | _ACEOF |
| 3706 | cat confdefs.h >>conftest.$ac_ext |
| 3707 | cat >>conftest.$ac_ext <<_ACEOF |
| 3708 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3709 | #include <ac_nonexistent.h> |
| 3710 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3711 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3712 | case "(($ac_try" in |
| 3713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3714 | *) ac_try_echo=$ac_try;; |
| 3715 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3716 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3717 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3718 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3719 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3720 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3721 | rm -f conftest.er1 |
| 3722 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3723 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3724 | (exit $ac_status); } >/dev/null && { |
| 3725 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3726 | test ! -s conftest.err |
| 3727 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3728 | # Broken: success on invalid input. |
| 3729 | continue |
| 3730 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3731 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3733 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3734 | # Passes both tests. |
| 3735 | ac_preproc_ok=: |
| 3736 | break |
| 3737 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3738 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3739 | rm -f conftest.err conftest.$ac_ext |
| 3740 | |
| 3741 | done |
| 3742 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3743 | rm -f conftest.err conftest.$ac_ext |
| 3744 | if $ac_preproc_ok; then |
| 3745 | : |
| 3746 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3747 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 3748 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3749 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3750 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3751 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3752 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3753 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3754 | fi |
| 3755 | |
| 3756 | ac_ext=c |
| 3757 | ac_cpp='$CPP $CPPFLAGS' |
| 3758 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3759 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3760 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3761 | |
| 3762 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3763 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3764 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3765 | if test "${ac_cv_path_GREP+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3766 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3767 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3768 | if test -z "$GREP"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3769 | ac_path_GREP_found=false |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3770 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3772 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3773 | do |
| 3774 | IFS=$as_save_IFS |
| 3775 | test -z "$as_dir" && as_dir=. |
| 3776 | for ac_prog in grep ggrep; do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3777 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3778 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3779 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3780 | # 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] | 3781 | # Check for GNU $ac_path_GREP |
| 3782 | case `"$ac_path_GREP" --version 2>&1` in |
| 3783 | *GNU*) |
| 3784 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3785 | *) |
| 3786 | ac_count=0 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3787 | $as_echo_n 0123456789 >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3788 | while : |
| 3789 | do |
| 3790 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3791 | mv "conftest.tmp" "conftest.in" |
| 3792 | cp "conftest.in" "conftest.nl" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3793 | $as_echo 'GREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3794 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3795 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3796 | ac_count=`expr $ac_count + 1` |
| 3797 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3798 | # Best one so far, save it but keep looking for a better one |
| 3799 | ac_cv_path_GREP="$ac_path_GREP" |
| 3800 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3801 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3802 | # 10*(2^10) chars as input seems more than enough |
| 3803 | test $ac_count -gt 10 && break |
| 3804 | done |
| 3805 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3806 | esac |
| 3807 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3808 | $ac_path_GREP_found && break 3 |
| 3809 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3810 | done |
| 3811 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3812 | IFS=$as_save_IFS |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3813 | if test -z "$ac_cv_path_GREP"; then |
| 3814 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3815 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3816 | { (exit 1); exit 1; }; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3817 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3818 | else |
| 3819 | ac_cv_path_GREP=$GREP |
| 3820 | fi |
| 3821 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3822 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3823 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3824 | $as_echo "$ac_cv_path_GREP" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3825 | GREP="$ac_cv_path_GREP" |
| 3826 | |
| 3827 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3828 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3829 | $as_echo_n "checking for egrep... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3830 | if test "${ac_cv_path_EGREP+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3831 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3832 | else |
| 3833 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3834 | then ac_cv_path_EGREP="$GREP -E" |
| 3835 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3836 | if test -z "$EGREP"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3837 | ac_path_EGREP_found=false |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3838 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3840 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3841 | do |
| 3842 | IFS=$as_save_IFS |
| 3843 | test -z "$as_dir" && as_dir=. |
| 3844 | for ac_prog in egrep; do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3845 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3846 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3847 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3848 | # 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] | 3849 | # Check for GNU $ac_path_EGREP |
| 3850 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3851 | *GNU*) |
| 3852 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3853 | *) |
| 3854 | ac_count=0 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3855 | $as_echo_n 0123456789 >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3856 | while : |
| 3857 | do |
| 3858 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3859 | mv "conftest.tmp" "conftest.in" |
| 3860 | cp "conftest.in" "conftest.nl" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3861 | $as_echo 'EGREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3862 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3863 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3864 | ac_count=`expr $ac_count + 1` |
| 3865 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3866 | # Best one so far, save it but keep looking for a better one |
| 3867 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3868 | ac_path_EGREP_max=$ac_count |
| 3869 | fi |
| 3870 | # 10*(2^10) chars as input seems more than enough |
| 3871 | test $ac_count -gt 10 && break |
| 3872 | done |
| 3873 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3874 | esac |
| 3875 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3876 | $ac_path_EGREP_found && break 3 |
| 3877 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3878 | done |
| 3879 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3880 | IFS=$as_save_IFS |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3881 | if test -z "$ac_cv_path_EGREP"; then |
| 3882 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3883 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3884 | { (exit 1); exit 1; }; } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3885 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3886 | else |
| 3887 | ac_cv_path_EGREP=$EGREP |
| 3888 | fi |
| 3889 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3890 | fi |
| 3891 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3892 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3893 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3894 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3895 | |
| 3896 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3897 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3898 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3899 | if test "${ac_cv_header_stdc+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3900 | $as_echo_n "(cached) " >&6 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3901 | else |
| 3902 | cat >conftest.$ac_ext <<_ACEOF |
| 3903 | /* confdefs.h. */ |
| 3904 | _ACEOF |
| 3905 | cat confdefs.h >>conftest.$ac_ext |
| 3906 | cat >>conftest.$ac_ext <<_ACEOF |
| 3907 | /* end confdefs.h. */ |
| 3908 | #include <stdlib.h> |
| 3909 | #include <stdarg.h> |
| 3910 | #include <string.h> |
| 3911 | #include <float.h> |
| 3912 | |
| 3913 | int |
| 3914 | main () |
| 3915 | { |
| 3916 | |
| 3917 | ; |
| 3918 | return 0; |
| 3919 | } |
| 3920 | _ACEOF |
| 3921 | rm -f conftest.$ac_objext |
| 3922 | if { (ac_try="$ac_compile" |
| 3923 | case "(($ac_try" in |
| 3924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3925 | *) ac_try_echo=$ac_try;; |
| 3926 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3927 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3928 | $as_echo "$ac_try_echo") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3929 | (eval "$ac_compile") 2>conftest.er1 |
| 3930 | ac_status=$? |
| 3931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3932 | rm -f conftest.er1 |
| 3933 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3934 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3935 | (exit $ac_status); } && { |
| 3936 | test -z "$ac_c_werror_flag" || |
| 3937 | test ! -s conftest.err |
| 3938 | } && test -s conftest.$ac_objext; then |
| 3939 | ac_cv_header_stdc=yes |
| 3940 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 3941 | $as_echo "$as_me: failed program was:" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3943 | |
| 3944 | ac_cv_header_stdc=no |
| 3945 | fi |
| 3946 | |
| 3947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3948 | |
| 3949 | if test $ac_cv_header_stdc = yes; then |
| 3950 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3951 | cat >conftest.$ac_ext <<_ACEOF |
| 3952 | /* confdefs.h. */ |
| 3953 | _ACEOF |
| 3954 | cat confdefs.h >>conftest.$ac_ext |
| 3955 | cat >>conftest.$ac_ext <<_ACEOF |
| 3956 | /* end confdefs.h. */ |
| 3957 | #include <string.h> |
| 3958 | |
| 3959 | _ACEOF |
| 3960 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3961 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3962 | : |
| 3963 | else |
| 3964 | ac_cv_header_stdc=no |
| 3965 | fi |
| 3966 | rm -f conftest* |
| 3967 | |
| 3968 | fi |
| 3969 | |
| 3970 | if test $ac_cv_header_stdc = yes; then |
| 3971 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3972 | cat >conftest.$ac_ext <<_ACEOF |
| 3973 | /* confdefs.h. */ |
| 3974 | _ACEOF |
| 3975 | cat confdefs.h >>conftest.$ac_ext |
| 3976 | cat >>conftest.$ac_ext <<_ACEOF |
| 3977 | /* end confdefs.h. */ |
| 3978 | #include <stdlib.h> |
| 3979 | |
| 3980 | _ACEOF |
| 3981 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3982 | $EGREP "free" >/dev/null 2>&1; then |
| 3983 | : |
| 3984 | else |
| 3985 | ac_cv_header_stdc=no |
| 3986 | fi |
| 3987 | rm -f conftest* |
| 3988 | |
| 3989 | fi |
| 3990 | |
| 3991 | if test $ac_cv_header_stdc = yes; then |
| 3992 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3993 | if test "$cross_compiling" = yes; then |
| 3994 | : |
| 3995 | else |
| 3996 | cat >conftest.$ac_ext <<_ACEOF |
| 3997 | /* confdefs.h. */ |
| 3998 | _ACEOF |
| 3999 | cat confdefs.h >>conftest.$ac_ext |
| 4000 | cat >>conftest.$ac_ext <<_ACEOF |
| 4001 | /* end confdefs.h. */ |
| 4002 | #include <ctype.h> |
| 4003 | #include <stdlib.h> |
| 4004 | #if ((' ' & 0x0FF) == 0x020) |
| 4005 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4006 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4007 | #else |
| 4008 | # define ISLOWER(c) \ |
| 4009 | (('a' <= (c) && (c) <= 'i') \ |
| 4010 | || ('j' <= (c) && (c) <= 'r') \ |
| 4011 | || ('s' <= (c) && (c) <= 'z')) |
| 4012 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4013 | #endif |
| 4014 | |
| 4015 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4016 | int |
| 4017 | main () |
| 4018 | { |
| 4019 | int i; |
| 4020 | for (i = 0; i < 256; i++) |
| 4021 | if (XOR (islower (i), ISLOWER (i)) |
| 4022 | || toupper (i) != TOUPPER (i)) |
| 4023 | return 2; |
| 4024 | return 0; |
| 4025 | } |
| 4026 | _ACEOF |
| 4027 | rm -f conftest$ac_exeext |
| 4028 | if { (ac_try="$ac_link" |
| 4029 | case "(($ac_try" in |
| 4030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4031 | *) ac_try_echo=$ac_try;; |
| 4032 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4033 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4034 | $as_echo "$ac_try_echo") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4035 | (eval "$ac_link") 2>&5 |
| 4036 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4037 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4038 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4039 | { (case "(($ac_try" in |
| 4040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4041 | *) ac_try_echo=$ac_try;; |
| 4042 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4043 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4044 | $as_echo "$ac_try_echo") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4045 | (eval "$ac_try") 2>&5 |
| 4046 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4047 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4048 | (exit $ac_status); }; }; then |
| 4049 | : |
| 4050 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4051 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 4052 | $as_echo "$as_me: failed program was:" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4053 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4054 | |
| 4055 | ( exit $ac_status ) |
| 4056 | ac_cv_header_stdc=no |
| 4057 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4058 | rm -rf conftest.dSYM |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4059 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4060 | fi |
| 4061 | |
| 4062 | |
| 4063 | fi |
| 4064 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4065 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4066 | $as_echo "$ac_cv_header_stdc" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4067 | if test $ac_cv_header_stdc = yes; then |
| 4068 | |
| 4069 | cat >>confdefs.h <<\_ACEOF |
| 4070 | #define STDC_HEADERS 1 |
| 4071 | _ACEOF |
| 4072 | |
| 4073 | fi |
| 4074 | |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4075 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4076 | |
| 4077 | |
| 4078 | |
| 4079 | |
| 4080 | |
| 4081 | |
| 4082 | |
| 4083 | |
| 4084 | |
| 4085 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4086 | inttypes.h stdint.h unistd.h |
| 4087 | do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4088 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4089 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4090 | $as_echo_n "checking for $ac_header... " >&6; } |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4091 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4092 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4093 | else |
| 4094 | cat >conftest.$ac_ext <<_ACEOF |
| 4095 | /* confdefs.h. */ |
| 4096 | _ACEOF |
| 4097 | cat confdefs.h >>conftest.$ac_ext |
| 4098 | cat >>conftest.$ac_ext <<_ACEOF |
| 4099 | /* end confdefs.h. */ |
| 4100 | $ac_includes_default |
| 4101 | |
| 4102 | #include <$ac_header> |
| 4103 | _ACEOF |
| 4104 | rm -f conftest.$ac_objext |
| 4105 | if { (ac_try="$ac_compile" |
| 4106 | case "(($ac_try" in |
| 4107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4108 | *) ac_try_echo=$ac_try;; |
| 4109 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4110 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4111 | $as_echo "$ac_try_echo") >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4112 | (eval "$ac_compile") 2>conftest.er1 |
| 4113 | ac_status=$? |
| 4114 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4115 | rm -f conftest.er1 |
| 4116 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4117 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4118 | (exit $ac_status); } && { |
| 4119 | test -z "$ac_c_werror_flag" || |
| 4120 | test ! -s conftest.err |
| 4121 | } && test -s conftest.$ac_objext; then |
| 4122 | eval "$as_ac_Header=yes" |
| 4123 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4124 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4125 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4126 | |
| 4127 | eval "$as_ac_Header=no" |
| 4128 | fi |
| 4129 | |
| 4130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4131 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4132 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 4133 | $as_echo "$as_val"'` |
| 4134 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4135 | $as_echo "$ac_res" >&6; } |
| 4136 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 4137 | $as_echo "$as_val"'` |
| 4138 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4139 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4140 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 4141 | _ACEOF |
| 4142 | |
| 4143 | fi |
| 4144 | |
| 4145 | done |
| 4146 | |
| 4147 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 4148 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 4149 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 4150 | { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 4151 | $as_echo_n "checking for minix/config.h... " >&6; } |
| 4152 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 4153 | $as_echo_n "(cached) " >&6 |
| 4154 | fi |
| 4155 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 4156 | $as_echo "$ac_cv_header_minix_config_h" >&6; } |
| 4157 | else |
| 4158 | # Is the header compilable? |
| 4159 | { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 4160 | $as_echo_n "checking minix/config.h usability... " >&6; } |
| 4161 | cat >conftest.$ac_ext <<_ACEOF |
| 4162 | /* confdefs.h. */ |
| 4163 | _ACEOF |
| 4164 | cat confdefs.h >>conftest.$ac_ext |
| 4165 | cat >>conftest.$ac_ext <<_ACEOF |
| 4166 | /* end confdefs.h. */ |
| 4167 | $ac_includes_default |
| 4168 | #include <minix/config.h> |
| 4169 | _ACEOF |
| 4170 | rm -f conftest.$ac_objext |
| 4171 | if { (ac_try="$ac_compile" |
| 4172 | case "(($ac_try" in |
| 4173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4174 | *) ac_try_echo=$ac_try;; |
| 4175 | esac |
| 4176 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4177 | $as_echo "$ac_try_echo") >&5 |
| 4178 | (eval "$ac_compile") 2>conftest.er1 |
| 4179 | ac_status=$? |
| 4180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4181 | rm -f conftest.er1 |
| 4182 | cat conftest.err >&5 |
| 4183 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4184 | (exit $ac_status); } && { |
| 4185 | test -z "$ac_c_werror_flag" || |
| 4186 | test ! -s conftest.err |
| 4187 | } && test -s conftest.$ac_objext; then |
| 4188 | ac_header_compiler=yes |
| 4189 | else |
| 4190 | $as_echo "$as_me: failed program was:" >&5 |
| 4191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4192 | |
| 4193 | ac_header_compiler=no |
| 4194 | fi |
| 4195 | |
| 4196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4197 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4198 | $as_echo "$ac_header_compiler" >&6; } |
| 4199 | |
| 4200 | # Is the header present? |
| 4201 | { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 4202 | $as_echo_n "checking minix/config.h presence... " >&6; } |
| 4203 | cat >conftest.$ac_ext <<_ACEOF |
| 4204 | /* confdefs.h. */ |
| 4205 | _ACEOF |
| 4206 | cat confdefs.h >>conftest.$ac_ext |
| 4207 | cat >>conftest.$ac_ext <<_ACEOF |
| 4208 | /* end confdefs.h. */ |
| 4209 | #include <minix/config.h> |
| 4210 | _ACEOF |
| 4211 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4212 | case "(($ac_try" in |
| 4213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4214 | *) ac_try_echo=$ac_try;; |
| 4215 | esac |
| 4216 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4217 | $as_echo "$ac_try_echo") >&5 |
| 4218 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4219 | ac_status=$? |
| 4220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4221 | rm -f conftest.er1 |
| 4222 | cat conftest.err >&5 |
| 4223 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4224 | (exit $ac_status); } >/dev/null && { |
| 4225 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4226 | test ! -s conftest.err |
| 4227 | }; then |
| 4228 | ac_header_preproc=yes |
| 4229 | else |
| 4230 | $as_echo "$as_me: failed program was:" >&5 |
| 4231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4232 | |
| 4233 | ac_header_preproc=no |
| 4234 | fi |
| 4235 | |
| 4236 | rm -f conftest.err conftest.$ac_ext |
| 4237 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4238 | $as_echo "$ac_header_preproc" >&6; } |
| 4239 | |
| 4240 | # So? What about this header? |
| 4241 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4242 | yes:no: ) |
| 4243 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4244 | $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4245 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 |
| 4246 | $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} |
| 4247 | ac_header_preproc=yes |
| 4248 | ;; |
| 4249 | no:yes:* ) |
| 4250 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 4251 | $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 4252 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 4253 | $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 4254 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 |
| 4255 | $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} |
| 4256 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4257 | $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4258 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 4259 | $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} |
| 4260 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 |
| 4261 | $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} |
| 4262 | ( cat <<\_ASBOX |
| 4263 | ## -------------------------------------- ## |
| 4264 | ## Report this to http://bugs.python.org/ ## |
| 4265 | ## -------------------------------------- ## |
| 4266 | _ASBOX |
| 4267 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 4268 | ;; |
| 4269 | esac |
| 4270 | { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 4271 | $as_echo_n "checking for minix/config.h... " >&6; } |
| 4272 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 4273 | $as_echo_n "(cached) " >&6 |
| 4274 | else |
| 4275 | ac_cv_header_minix_config_h=$ac_header_preproc |
| 4276 | fi |
| 4277 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 4278 | $as_echo "$ac_cv_header_minix_config_h" >&6; } |
| 4279 | |
| 4280 | fi |
| 4281 | if test "x$ac_cv_header_minix_config_h" = x""yes; then |
| 4282 | MINIX=yes |
| 4283 | else |
| 4284 | MINIX= |
| 4285 | fi |
| 4286 | |
| 4287 | |
| 4288 | if test "$MINIX" = yes; then |
| 4289 | |
| 4290 | cat >>confdefs.h <<\_ACEOF |
| 4291 | #define _POSIX_SOURCE 1 |
| 4292 | _ACEOF |
| 4293 | |
| 4294 | |
| 4295 | cat >>confdefs.h <<\_ACEOF |
| 4296 | #define _POSIX_1_SOURCE 2 |
| 4297 | _ACEOF |
| 4298 | |
| 4299 | |
| 4300 | cat >>confdefs.h <<\_ACEOF |
| 4301 | #define _MINIX 1 |
| 4302 | _ACEOF |
| 4303 | |
| 4304 | fi |
| 4305 | |
| 4306 | |
| 4307 | |
| 4308 | { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 4309 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 4310 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then |
| 4311 | $as_echo_n "(cached) " >&6 |
| 4312 | else |
| 4313 | cat >conftest.$ac_ext <<_ACEOF |
| 4314 | /* confdefs.h. */ |
| 4315 | _ACEOF |
| 4316 | cat confdefs.h >>conftest.$ac_ext |
| 4317 | cat >>conftest.$ac_ext <<_ACEOF |
| 4318 | /* end confdefs.h. */ |
| 4319 | |
| 4320 | # define __EXTENSIONS__ 1 |
| 4321 | $ac_includes_default |
| 4322 | int |
| 4323 | main () |
| 4324 | { |
| 4325 | |
| 4326 | ; |
| 4327 | return 0; |
| 4328 | } |
| 4329 | _ACEOF |
| 4330 | rm -f conftest.$ac_objext |
| 4331 | if { (ac_try="$ac_compile" |
| 4332 | case "(($ac_try" in |
| 4333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4334 | *) ac_try_echo=$ac_try;; |
| 4335 | esac |
| 4336 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4337 | $as_echo "$ac_try_echo") >&5 |
| 4338 | (eval "$ac_compile") 2>conftest.er1 |
| 4339 | ac_status=$? |
| 4340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4341 | rm -f conftest.er1 |
| 4342 | cat conftest.err >&5 |
| 4343 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4344 | (exit $ac_status); } && { |
| 4345 | test -z "$ac_c_werror_flag" || |
| 4346 | test ! -s conftest.err |
| 4347 | } && test -s conftest.$ac_objext; then |
| 4348 | ac_cv_safe_to_define___extensions__=yes |
| 4349 | else |
| 4350 | $as_echo "$as_me: failed program was:" >&5 |
| 4351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4352 | |
| 4353 | ac_cv_safe_to_define___extensions__=no |
| 4354 | fi |
| 4355 | |
| 4356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4357 | fi |
| 4358 | { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 4359 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 4360 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 4361 | cat >>confdefs.h <<\_ACEOF |
| 4362 | #define __EXTENSIONS__ 1 |
| 4363 | _ACEOF |
| 4364 | |
| 4365 | cat >>confdefs.h <<\_ACEOF |
| 4366 | #define _ALL_SOURCE 1 |
| 4367 | _ACEOF |
| 4368 | |
| 4369 | cat >>confdefs.h <<\_ACEOF |
| 4370 | #define _GNU_SOURCE 1 |
| 4371 | _ACEOF |
| 4372 | |
| 4373 | cat >>confdefs.h <<\_ACEOF |
| 4374 | #define _POSIX_PTHREAD_SEMANTICS 1 |
| 4375 | _ACEOF |
| 4376 | |
| 4377 | cat >>confdefs.h <<\_ACEOF |
| 4378 | #define _TANDEM_SOURCE 1 |
| 4379 | _ACEOF |
| 4380 | |
| 4381 | |
| 4382 | |
| 4383 | # Check for unsupported systems |
| 4384 | case $ac_sys_system/$ac_sys_release in |
| 4385 | atheos*|Linux*/1*) |
| 4386 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 4387 | echo See README for details. |
| 4388 | exit 1;; |
| 4389 | esac |
| 4390 | |
| 4391 | |
| 4392 | { $as_echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 4393 | $as_echo_n "checking for --with-suffix... " >&6; } |
| 4394 | |
| 4395 | # Check whether --with-suffix was given. |
| 4396 | if test "${with_suffix+set}" = set; then |
| 4397 | withval=$with_suffix; |
| 4398 | case $withval in |
| 4399 | no) EXEEXT=;; |
| 4400 | yes) EXEEXT=.exe;; |
| 4401 | *) EXEEXT=$withval;; |
| 4402 | esac |
| 4403 | fi |
| 4404 | |
| 4405 | { $as_echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 4406 | $as_echo "$EXEEXT" >&6; } |
| 4407 | |
| 4408 | # Test whether we're running on a non-case-sensitive system, in which |
| 4409 | # case we give a warning if no ext is given |
| 4410 | |
| 4411 | { $as_echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 4412 | $as_echo_n "checking for case-insensitive build directory... " >&6; } |
| 4413 | if test ! -d CaseSensitiveTestDir; then |
| 4414 | mkdir CaseSensitiveTestDir |
| 4415 | fi |
| 4416 | |
| 4417 | if test -d casesensitivetestdir |
| 4418 | then |
| 4419 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4420 | $as_echo "yes" >&6; } |
| 4421 | BUILDEXEEXT=.exe |
| 4422 | else |
| 4423 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4424 | $as_echo "no" >&6; } |
| 4425 | BUILDEXEEXT=$EXEEXT |
| 4426 | fi |
| 4427 | rmdir CaseSensitiveTestDir |
| 4428 | |
| 4429 | case $MACHDEP in |
| 4430 | bsdos*) |
| 4431 | case $CC in |
| 4432 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 4433 | esac;; |
| 4434 | esac |
| 4435 | |
| 4436 | case $ac_sys_system in |
| 4437 | hp*|HP*) |
| 4438 | case $CC in |
| 4439 | cc|*/cc) CC="$CC -Ae";; |
| 4440 | esac;; |
| 4441 | Monterey*) |
| 4442 | case $CC in |
| 4443 | cc) CC="$CC -Wl,-Bexport";; |
| 4444 | esac;; |
| 4445 | SunOS*) |
| 4446 | # Some functions have a prototype only with that define, e.g. confstr |
| 4447 | |
| 4448 | cat >>confdefs.h <<\_ACEOF |
| 4449 | #define __EXTENSIONS__ 1 |
| 4450 | _ACEOF |
| 4451 | |
| 4452 | ;; |
| 4453 | esac |
| 4454 | |
| 4455 | |
| 4456 | |
| 4457 | { $as_echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 4458 | $as_echo_n "checking LIBRARY... " >&6; } |
| 4459 | if test -z "$LIBRARY" |
| 4460 | then |
| 4461 | LIBRARY='libpython$(VERSION).a' |
| 4462 | fi |
| 4463 | { $as_echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 4464 | $as_echo "$LIBRARY" >&6; } |
| 4465 | |
| 4466 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 4467 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 4468 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 4469 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 4470 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 4471 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 4472 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 4473 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 4474 | # |
| 4475 | # RUNSHARED is used to run shared python without installed libraries |
| 4476 | # |
| 4477 | # INSTSONAME is the name of the shared library that will be use to install |
| 4478 | # on the system - some systems like version suffix, others don't |
| 4479 | |
| 4480 | |
| 4481 | |
| 4482 | |
| 4483 | |
| 4484 | |
| 4485 | LDLIBRARY="$LIBRARY" |
| 4486 | BLDLIBRARY='$(LDLIBRARY)' |
| 4487 | INSTSONAME='$(LDLIBRARY)' |
| 4488 | DLLLIBRARY='' |
| 4489 | LDLIBRARYDIR='' |
| 4490 | RUNSHARED='' |
| 4491 | |
| 4492 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 4493 | # If CXX is set, and if it is needed to link a main function that was |
| 4494 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 4495 | # python might then depend on the C++ runtime |
| 4496 | # This is altered for AIX in order to build the export list before |
| 4497 | # linking. |
| 4498 | |
| 4499 | { $as_echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 4500 | $as_echo_n "checking LINKCC... " >&6; } |
| 4501 | if test -z "$LINKCC" |
| 4502 | then |
| 4503 | LINKCC='$(PURIFY) $(MAINCC)' |
| 4504 | case $ac_sys_system in |
| 4505 | AIX*) |
| 4506 | exp_extra="\"\"" |
| 4507 | if test $ac_sys_release -ge 5 -o \ |
| 4508 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 4509 | exp_extra="." |
| 4510 | fi |
| 4511 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
| 4512 | Monterey64*) |
| 4513 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
| 4514 | QNX*) |
| 4515 | # qcc must be used because the other compilers do not |
| 4516 | # support -N. |
| 4517 | LINKCC=qcc;; |
| 4518 | esac |
| 4519 | fi |
| 4520 | { $as_echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 4521 | $as_echo "$LINKCC" >&6; } |
| 4522 | |
| 4523 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 4524 | # make sure we default having it set to "no": this is used by |
| 4525 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 4526 | # to linker command lines, and failing to detect GNU ld simply results |
| 4527 | # in the same bahaviour as before. |
| 4528 | |
| 4529 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4530 | $as_echo_n "checking for GNU ld... " >&6; } |
| 4531 | ac_prog=ld |
| 4532 | if test "$GCC" = yes; then |
| 4533 | ac_prog=`$CC -print-prog-name=ld` |
| 4534 | fi |
| 4535 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 4536 | *GNU*) |
| 4537 | GNULD=yes;; |
| 4538 | *) |
| 4539 | GNULD=no;; |
| 4540 | esac |
| 4541 | { $as_echo "$as_me:$LINENO: result: $GNULD" >&5 |
| 4542 | $as_echo "$GNULD" >&6; } |
| 4543 | |
| 4544 | { $as_echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 4545 | $as_echo_n "checking for --enable-shared... " >&6; } |
| 4546 | # Check whether --enable-shared was given. |
| 4547 | if test "${enable_shared+set}" = set; then |
| 4548 | enableval=$enable_shared; |
| 4549 | fi |
| 4550 | |
| 4551 | |
| 4552 | if test -z "$enable_shared" |
| 4553 | then |
| 4554 | case $ac_sys_system in |
| 4555 | CYGWIN* | atheos*) |
| 4556 | enable_shared="yes";; |
| 4557 | *) |
| 4558 | enable_shared="no";; |
| 4559 | esac |
| 4560 | fi |
| 4561 | { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 4562 | $as_echo "$enable_shared" >&6; } |
| 4563 | |
| 4564 | { $as_echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 4565 | $as_echo_n "checking for --enable-profiling... " >&6; } |
| 4566 | # Check whether --enable-profiling was given. |
| 4567 | if test "${enable_profiling+set}" = set; then |
| 4568 | enableval=$enable_profiling; ac_save_cc="$CC" |
| 4569 | CC="$CC -pg" |
| 4570 | if test "$cross_compiling" = yes; then |
| 4571 | ac_enable_profiling="no" |
| 4572 | else |
| 4573 | cat >conftest.$ac_ext <<_ACEOF |
| 4574 | /* confdefs.h. */ |
| 4575 | _ACEOF |
| 4576 | cat confdefs.h >>conftest.$ac_ext |
| 4577 | cat >>conftest.$ac_ext <<_ACEOF |
| 4578 | /* end confdefs.h. */ |
| 4579 | int main() { return 0; } |
| 4580 | _ACEOF |
| 4581 | rm -f conftest$ac_exeext |
| 4582 | if { (ac_try="$ac_link" |
| 4583 | case "(($ac_try" in |
| 4584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4585 | *) ac_try_echo=$ac_try;; |
| 4586 | esac |
| 4587 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4588 | $as_echo "$ac_try_echo") >&5 |
| 4589 | (eval "$ac_link") 2>&5 |
| 4590 | ac_status=$? |
| 4591 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4592 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4593 | { (case "(($ac_try" in |
| 4594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4595 | *) ac_try_echo=$ac_try;; |
| 4596 | esac |
| 4597 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4598 | $as_echo "$ac_try_echo") >&5 |
| 4599 | (eval "$ac_try") 2>&5 |
| 4600 | ac_status=$? |
| 4601 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4602 | (exit $ac_status); }; }; then |
| 4603 | ac_enable_profiling="yes" |
| 4604 | else |
| 4605 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 4606 | $as_echo "$as_me: failed program was:" >&5 |
| 4607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4608 | |
| 4609 | ( exit $ac_status ) |
| 4610 | ac_enable_profiling="no" |
| 4611 | fi |
| 4612 | rm -rf conftest.dSYM |
| 4613 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4614 | fi |
| 4615 | |
| 4616 | |
| 4617 | CC="$ac_save_cc" |
| 4618 | fi |
| 4619 | |
| 4620 | { $as_echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 4621 | $as_echo "$ac_enable_profiling" >&6; } |
| 4622 | |
| 4623 | case "$ac_enable_profiling" in |
| 4624 | "yes") |
| 4625 | BASECFLAGS="-pg $BASECFLAGS" |
| 4626 | LDFLAGS="-pg $LDFLAGS" |
| 4627 | ;; |
| 4628 | esac |
| 4629 | |
| 4630 | { $as_echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 4631 | $as_echo_n "checking LDLIBRARY... " >&6; } |
| 4632 | |
| 4633 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4634 | # library that we build, but we do not want to link against it (we |
| 4635 | # will find it with a -framework option). For this reason there is an |
| 4636 | # extra variable BLDLIBRARY against which Python and the extension |
| 4637 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4638 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 4639 | if test "$enable_framework" |
| 4640 | then |
| 4641 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 4642 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 4643 | BLDLIBRARY='' |
| 4644 | else |
| 4645 | BLDLIBRARY='$(LDLIBRARY)' |
| 4646 | fi |
| 4647 | |
| 4648 | # Other platforms follow |
| 4649 | if test $enable_shared = "yes"; then |
| 4650 | |
| 4651 | cat >>confdefs.h <<\_ACEOF |
| 4652 | #define Py_ENABLE_SHARED 1 |
| 4653 | _ACEOF |
| 4654 | |
| 4655 | case $ac_sys_system in |
| 4656 | CYGWIN*) |
| 4657 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4658 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4659 | ;; |
| 4660 | SunOS*) |
| 4661 | LDLIBRARY='libpython$(VERSION).so' |
| 4662 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4663 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4664 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4665 | ;; |
| 4666 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
| 4667 | LDLIBRARY='libpython$(VERSION).so' |
| 4668 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4669 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4670 | case $ac_sys_system in |
| 4671 | FreeBSD*) |
| 4672 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4673 | ;; |
| 4674 | esac |
| 4675 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4676 | ;; |
| 4677 | hp*|HP*) |
| 4678 | case `uname -m` in |
| 4679 | ia64) |
| 4680 | LDLIBRARY='libpython$(VERSION).so' |
| 4681 | ;; |
| 4682 | *) |
| 4683 | LDLIBRARY='libpython$(VERSION).sl' |
| 4684 | ;; |
| 4685 | esac |
| 4686 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4687 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 4688 | ;; |
| 4689 | OSF*) |
| 4690 | LDLIBRARY='libpython$(VERSION).so' |
| 4691 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 4692 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4693 | ;; |
| 4694 | atheos*) |
| 4695 | LDLIBRARY='libpython$(VERSION).so' |
| 4696 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4697 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4698 | ;; |
| 4699 | Darwin*) |
| 4700 | LDLIBRARY='libpython$(VERSION).dylib' |
| 4701 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4702 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 4703 | ;; |
| 4704 | |
| 4705 | esac |
| 4706 | else # shared is disabled |
| 4707 | case $ac_sys_system in |
| 4708 | CYGWIN*) |
| 4709 | BLDLIBRARY='$(LIBRARY)' |
| 4710 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4711 | ;; |
| 4712 | esac |
| 4713 | fi |
| 4714 | |
| 4715 | { $as_echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 4716 | $as_echo "$LDLIBRARY" >&6; } |
| 4717 | |
| 4718 | if test -n "$ac_tool_prefix"; then |
| 4719 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4720 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 4721 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4722 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4723 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4724 | $as_echo_n "(cached) " >&6 |
| 4725 | else |
| 4726 | if test -n "$RANLIB"; then |
| 4727 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4728 | else |
| 4729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4730 | for as_dir in $PATH |
| 4731 | do |
| 4732 | IFS=$as_save_IFS |
| 4733 | test -z "$as_dir" && as_dir=. |
| 4734 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4735 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4736 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4737 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4738 | break 2 |
| 4739 | fi |
| 4740 | done |
| 4741 | done |
| 4742 | IFS=$as_save_IFS |
| 4743 | |
| 4744 | fi |
| 4745 | fi |
| 4746 | RANLIB=$ac_cv_prog_RANLIB |
| 4747 | if test -n "$RANLIB"; then |
| 4748 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4749 | $as_echo "$RANLIB" >&6; } |
| 4750 | else |
| 4751 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4752 | $as_echo "no" >&6; } |
| 4753 | fi |
| 4754 | |
| 4755 | |
| 4756 | fi |
| 4757 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4758 | ac_ct_RANLIB=$RANLIB |
| 4759 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4760 | set dummy ranlib; ac_word=$2 |
| 4761 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4762 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4763 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4764 | $as_echo_n "(cached) " >&6 |
| 4765 | else |
| 4766 | if test -n "$ac_ct_RANLIB"; then |
| 4767 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4768 | else |
| 4769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4770 | for as_dir in $PATH |
| 4771 | do |
| 4772 | IFS=$as_save_IFS |
| 4773 | test -z "$as_dir" && as_dir=. |
| 4774 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4775 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4776 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4777 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4778 | break 2 |
| 4779 | fi |
| 4780 | done |
| 4781 | done |
| 4782 | IFS=$as_save_IFS |
| 4783 | |
| 4784 | fi |
| 4785 | fi |
| 4786 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4787 | if test -n "$ac_ct_RANLIB"; then |
| 4788 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4789 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 4790 | else |
| 4791 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4792 | $as_echo "no" >&6; } |
| 4793 | fi |
| 4794 | |
| 4795 | if test "x$ac_ct_RANLIB" = x; then |
| 4796 | RANLIB=":" |
| 4797 | else |
| 4798 | case $cross_compiling:$ac_tool_warned in |
| 4799 | yes:) |
| 4800 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4801 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4802 | ac_tool_warned=yes ;; |
| 4803 | esac |
| 4804 | RANLIB=$ac_ct_RANLIB |
| 4805 | fi |
| 4806 | else |
| 4807 | RANLIB="$ac_cv_prog_RANLIB" |
| 4808 | fi |
| 4809 | |
| 4810 | |
| 4811 | for ac_prog in ar aal |
| 4812 | do |
| 4813 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4814 | set dummy $ac_prog; ac_word=$2 |
| 4815 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4816 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4817 | if test "${ac_cv_prog_AR+set}" = set; then |
| 4818 | $as_echo_n "(cached) " >&6 |
| 4819 | else |
| 4820 | if test -n "$AR"; then |
| 4821 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4822 | else |
| 4823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4824 | for as_dir in $PATH |
| 4825 | do |
| 4826 | IFS=$as_save_IFS |
| 4827 | test -z "$as_dir" && as_dir=. |
| 4828 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4829 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4830 | ac_cv_prog_AR="$ac_prog" |
| 4831 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4832 | break 2 |
| 4833 | fi |
| 4834 | done |
| 4835 | done |
| 4836 | IFS=$as_save_IFS |
| 4837 | |
| 4838 | fi |
| 4839 | fi |
| 4840 | AR=$ac_cv_prog_AR |
| 4841 | if test -n "$AR"; then |
| 4842 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 |
| 4843 | $as_echo "$AR" >&6; } |
| 4844 | else |
| 4845 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4846 | $as_echo "no" >&6; } |
| 4847 | fi |
| 4848 | |
| 4849 | |
| 4850 | test -n "$AR" && break |
| 4851 | done |
| 4852 | test -n "$AR" || AR="ar" |
| 4853 | |
| 4854 | |
| 4855 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 4856 | |
| 4857 | if test -z "$ARFLAGS" |
| 4858 | then |
| 4859 | ARFLAGS="rc" |
| 4860 | fi |
| 4861 | |
| 4862 | |
| 4863 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 4864 | set dummy svnversion; ac_word=$2 |
| 4865 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4866 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4867 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
| 4868 | $as_echo_n "(cached) " >&6 |
| 4869 | else |
| 4870 | if test -n "$SVNVERSION"; then |
| 4871 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 4872 | else |
| 4873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4874 | for as_dir in $PATH |
| 4875 | do |
| 4876 | IFS=$as_save_IFS |
| 4877 | test -z "$as_dir" && as_dir=. |
| 4878 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4879 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4880 | ac_cv_prog_SVNVERSION="found" |
| 4881 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4882 | break 2 |
| 4883 | fi |
| 4884 | done |
| 4885 | done |
| 4886 | IFS=$as_save_IFS |
| 4887 | |
| 4888 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| 4889 | fi |
| 4890 | fi |
| 4891 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 4892 | if test -n "$SVNVERSION"; then |
| 4893 | { $as_echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 4894 | $as_echo "$SVNVERSION" >&6; } |
| 4895 | else |
| 4896 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4897 | $as_echo "no" >&6; } |
| 4898 | fi |
| 4899 | |
| 4900 | |
| 4901 | if test $SVNVERSION = found |
| 4902 | then |
| 4903 | SVNVERSION="svnversion \$(srcdir)" |
| 4904 | else |
| 4905 | SVNVERSION="echo Unversioned directory" |
| 4906 | fi |
| 4907 | |
| 4908 | case $MACHDEP in |
| 4909 | bsdos*|hp*|HP*) |
| 4910 | # install -d does not work on BSDI or HP-UX |
| 4911 | if test -z "$INSTALL" |
| 4912 | then |
| 4913 | INSTALL="${srcdir}/install-sh -c" |
| 4914 | fi |
| 4915 | esac |
| 4916 | ac_aux_dir= |
| 4917 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 4918 | if test -f "$ac_dir/install-sh"; then |
| 4919 | ac_aux_dir=$ac_dir |
| 4920 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4921 | break |
| 4922 | elif test -f "$ac_dir/install.sh"; then |
| 4923 | ac_aux_dir=$ac_dir |
| 4924 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4925 | break |
| 4926 | elif test -f "$ac_dir/shtool"; then |
| 4927 | ac_aux_dir=$ac_dir |
| 4928 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4929 | break |
| 4930 | fi |
| 4931 | done |
| 4932 | if test -z "$ac_aux_dir"; then |
| 4933 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 4934 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
| 4935 | { (exit 1); exit 1; }; } |
| 4936 | fi |
| 4937 | |
| 4938 | # These three variables are undocumented and unsupported, |
| 4939 | # and are intended to be withdrawn in a future Autoconf release. |
| 4940 | # They can cause serious problems if a builder's source tree is in a directory |
| 4941 | # whose full name contains unusual characters. |
| 4942 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 4943 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 4944 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 4945 | |
| 4946 | |
| 4947 | # Find a good install program. We prefer a C program (faster), |
| 4948 | # so one script is as good as another. But avoid the broken or |
| 4949 | # incompatible versions: |
| 4950 | # SysV /etc/install, /usr/sbin/install |
| 4951 | # SunOS /usr/etc/install |
| 4952 | # IRIX /sbin/install |
| 4953 | # AIX /bin/install |
| 4954 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4955 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4956 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4957 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4958 | # OS/2's system install, which has a completely different semantic |
| 4959 | # ./install, which can be erroneously created by make from ./install.sh. |
| 4960 | # Reject install programs that cannot install multiple files. |
| 4961 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4962 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 4963 | if test -z "$INSTALL"; then |
| 4964 | if test "${ac_cv_path_install+set}" = set; then |
| 4965 | $as_echo_n "(cached) " >&6 |
| 4966 | else |
| 4967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4968 | for as_dir in $PATH |
| 4969 | do |
| 4970 | IFS=$as_save_IFS |
| 4971 | test -z "$as_dir" && as_dir=. |
| 4972 | # Account for people who put trailing slashes in PATH elements. |
| 4973 | case $as_dir/ in |
| 4974 | ./ | .// | /cC/* | \ |
| 4975 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4976 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4977 | /usr/ucb/* ) ;; |
| 4978 | *) |
| 4979 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4980 | # Don't use installbsd from OSF since it installs stuff as root |
| 4981 | # by default. |
| 4982 | for ac_prog in ginstall scoinst install; do |
| 4983 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4984 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 4985 | if test $ac_prog = install && |
| 4986 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4987 | # AIX install. It has an incompatible calling convention. |
| 4988 | : |
| 4989 | elif test $ac_prog = install && |
| 4990 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4991 | # program-specific install script used by HP pwplus--don't use. |
| 4992 | : |
| 4993 | else |
| 4994 | rm -rf conftest.one conftest.two conftest.dir |
| 4995 | echo one > conftest.one |
| 4996 | echo two > conftest.two |
| 4997 | mkdir conftest.dir |
| 4998 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 4999 | test -s conftest.one && test -s conftest.two && |
| 5000 | test -s conftest.dir/conftest.one && |
| 5001 | test -s conftest.dir/conftest.two |
| 5002 | then |
| 5003 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5004 | break 3 |
| 5005 | fi |
| 5006 | fi |
| 5007 | fi |
| 5008 | done |
| 5009 | done |
| 5010 | ;; |
| 5011 | esac |
| 5012 | |
| 5013 | done |
| 5014 | IFS=$as_save_IFS |
| 5015 | |
| 5016 | rm -rf conftest.one conftest.two conftest.dir |
| 5017 | |
| 5018 | fi |
| 5019 | if test "${ac_cv_path_install+set}" = set; then |
| 5020 | INSTALL=$ac_cv_path_install |
| 5021 | else |
| 5022 | # As a last resort, use the slow shell script. Don't cache a |
| 5023 | # value for INSTALL within a source directory, because that will |
| 5024 | # break other packages using the cache if that directory is |
| 5025 | # removed, or if the value is a relative name. |
| 5026 | INSTALL=$ac_install_sh |
| 5027 | fi |
| 5028 | fi |
| 5029 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 5030 | $as_echo "$INSTALL" >&6; } |
| 5031 | |
| 5032 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5033 | # It thinks the first close brace ends the variable substitution. |
| 5034 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5035 | |
| 5036 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5037 | |
| 5038 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5039 | |
| 5040 | |
| 5041 | # Not every filesystem supports hard links |
| 5042 | |
| 5043 | if test -z "$LN" ; then |
| 5044 | case $ac_sys_system in |
| 5045 | CYGWIN*) LN="ln -s";; |
| 5046 | atheos*) LN="ln -s";; |
| 5047 | *) LN=ln;; |
| 5048 | esac |
| 5049 | fi |
| 5050 | |
| 5051 | # Check for --with-pydebug |
| 5052 | { $as_echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 5053 | $as_echo_n "checking for --with-pydebug... " >&6; } |
| 5054 | |
| 5055 | # Check whether --with-pydebug was given. |
| 5056 | if test "${with_pydebug+set}" = set; then |
| 5057 | withval=$with_pydebug; |
| 5058 | if test "$withval" != no |
| 5059 | then |
| 5060 | |
| 5061 | cat >>confdefs.h <<\_ACEOF |
| 5062 | #define Py_DEBUG 1 |
| 5063 | _ACEOF |
| 5064 | |
| 5065 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 5066 | $as_echo "yes" >&6; }; |
| 5067 | Py_DEBUG='true' |
| 5068 | else { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5069 | $as_echo "no" >&6; }; Py_DEBUG='false' |
| 5070 | fi |
| 5071 | else |
| 5072 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5073 | $as_echo "no" >&6; } |
| 5074 | fi |
| 5075 | |
| 5076 | |
| 5077 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 5078 | # merged with this chunk of code? |
| 5079 | |
| 5080 | # Optimizer/debugger flags |
| 5081 | # ------------------------ |
| 5082 | # (The following bit of code is complicated enough - please keep things |
| 5083 | # indented properly. Just pretend you're editing Python code. ;-) |
| 5084 | |
| 5085 | # There are two parallel sets of case statements below, one that checks to |
| 5086 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 5087 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 5088 | # user set OPT. |
| 5089 | |
| 5090 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 5091 | # it on the command line |
| 5092 | |
| 5093 | if test -z "$OPT" |
| 5094 | then |
| 5095 | case $GCC in |
| 5096 | yes) |
| 5097 | if test "$CC" != 'g++' ; then |
| 5098 | STRICT_PROTO="-Wstrict-prototypes" |
| 5099 | fi |
| 5100 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 5101 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 5102 | WRAP="-fwrapv" |
| 5103 | fi |
| 5104 | case $ac_cv_prog_cc_g in |
| 5105 | yes) |
| 5106 | if test "$Py_DEBUG" = 'true' ; then |
| 5107 | # Optimization messes up debuggers, so turn it off for |
| 5108 | # debug builds. |
| 5109 | OPT="-g -Wall $STRICT_PROTO" |
| 5110 | else |
| 5111 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 5112 | fi |
| 5113 | ;; |
| 5114 | *) |
| 5115 | OPT="-O3 -Wall $STRICT_PROTO" |
| 5116 | ;; |
| 5117 | esac |
| 5118 | case $ac_sys_system in |
| 5119 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 5120 | ;; |
| 5121 | esac |
| 5122 | ;; |
| 5123 | |
| 5124 | *) |
| 5125 | OPT="-O" |
| 5126 | ;; |
| 5127 | esac |
| 5128 | |
| 5129 | # The current (beta) Monterey compiler dies with optimizations |
| 5130 | # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this? |
| 5131 | case $ac_sys_system in |
| 5132 | Monterey*) |
| 5133 | OPT="" |
| 5134 | ;; |
| 5135 | esac |
| 5136 | |
| 5137 | fi |
| 5138 | |
| 5139 | |
| 5140 | |
| 5141 | # The -arch flags for universal builds on OSX |
| 5142 | UNIVERSAL_ARCH_FLAGS= |
| 5143 | |
| 5144 | |
| 5145 | # tweak BASECFLAGS based on compiler and platform |
| 5146 | case $GCC in |
| 5147 | yes) |
| 5148 | # Python violates C99 rules, by casting between incompatible |
| 5149 | # pointer types. GCC may generate bad code as a result of that, |
| 5150 | # so use -fno-strict-aliasing if supported. |
| 5151 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 5152 | $as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; } |
| 5153 | ac_save_cc="$CC" |
| 5154 | CC="$CC -fno-strict-aliasing" |
| 5155 | if test "$cross_compiling" = yes; then |
| 5156 | ac_cv_no_strict_aliasing_ok=no |
| 5157 | else |
| 5158 | cat >conftest.$ac_ext <<_ACEOF |
| 5159 | /* confdefs.h. */ |
| 5160 | _ACEOF |
| 5161 | cat confdefs.h >>conftest.$ac_ext |
| 5162 | cat >>conftest.$ac_ext <<_ACEOF |
| 5163 | /* end confdefs.h. */ |
| 5164 | int main() { return 0; } |
| 5165 | _ACEOF |
| 5166 | rm -f conftest$ac_exeext |
| 5167 | if { (ac_try="$ac_link" |
| 5168 | case "(($ac_try" in |
| 5169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5170 | *) ac_try_echo=$ac_try;; |
| 5171 | esac |
| 5172 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5173 | $as_echo "$ac_try_echo") >&5 |
| 5174 | (eval "$ac_link") 2>&5 |
| 5175 | ac_status=$? |
| 5176 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5177 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5178 | { (case "(($ac_try" in |
| 5179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5180 | *) ac_try_echo=$ac_try;; |
| 5181 | esac |
| 5182 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5183 | $as_echo "$ac_try_echo") >&5 |
| 5184 | (eval "$ac_try") 2>&5 |
| 5185 | ac_status=$? |
| 5186 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5187 | (exit $ac_status); }; }; then |
| 5188 | ac_cv_no_strict_aliasing_ok=yes |
| 5189 | else |
| 5190 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 5191 | $as_echo "$as_me: failed program was:" >&5 |
| 5192 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5193 | |
| 5194 | ( exit $ac_status ) |
| 5195 | ac_cv_no_strict_aliasing_ok=no |
| 5196 | fi |
| 5197 | rm -rf conftest.dSYM |
| 5198 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5199 | fi |
| 5200 | |
| 5201 | |
| 5202 | CC="$ac_save_cc" |
| 5203 | { $as_echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 5204 | $as_echo "$ac_cv_no_strict_aliasing_ok" >&6; } |
| 5205 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 5206 | then |
| 5207 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 5208 | fi |
| 5209 | |
| 5210 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 5211 | # support. Without this, treatment of subnormals doesn't follow |
| 5212 | # the standard. |
| 5213 | case $ac_sys_machine in |
| 5214 | alpha*) |
| 5215 | BASECFLAGS="$BASECFLAGS -mieee" |
| 5216 | ;; |
| 5217 | esac |
| 5218 | |
| 5219 | case $ac_sys_system in |
| 5220 | SCO_SV*) |
| 5221 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 5222 | ;; |
| 5223 | # is there any other compiler on Darwin besides gcc? |
| 5224 | Darwin*) |
| 5225 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 5226 | # used to be here, but non-Apple gcc doesn't accept them. |
| 5227 | |
| 5228 | |
| 5229 | if test "${enable_universalsdk}"; then |
| 5230 | UNIVERSAL_ARCH_FLAGS="" |
| 5231 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
| 5232 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 5233 | ARCH_RUN_32BIT="" |
| 5234 | |
| 5235 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
| 5236 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 5237 | |
| 5238 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
| 5239 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 5240 | ARCH_RUN_32BIT="arch -i386 -ppc" |
| 5241 | |
| 5242 | else |
| 5243 | { { $as_echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5 |
| 5244 | $as_echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;} |
| 5245 | { (exit 1); exit 1; }; } |
| 5246 | |
| 5247 | fi |
| 5248 | |
| 5249 | |
| 5250 | BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" |
| 5251 | tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 5252 | if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then |
| 5253 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 5254 | fi |
| 5255 | fi |
| 5256 | |
| 5257 | # Calculate the right deployment target for this build. |
| 5258 | # |
| 5259 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 5260 | if test ${cur_target} '>' 10.2; then |
| 5261 | cur_target=10.3 |
| 5262 | fi |
| 5263 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 5264 | # Ensure that the default platform for a 4-way |
| 5265 | # universal build is OSX 10.5, that's the first |
| 5266 | # OS release where 4-way builds make sense. |
| 5267 | cur_target='10.5' |
| 5268 | fi |
| 5269 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 5270 | |
| 5271 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 5272 | # environment with a value that is the same as what we'll use |
| 5273 | # in the Makefile to ensure that we'll get the same compiler |
| 5274 | # environment during configure and build time. |
| 5275 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 5276 | export MACOSX_DEPLOYMENT_TARGET |
| 5277 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 5278 | |
| 5279 | ;; |
| 5280 | OSF*) |
| 5281 | BASECFLAGS="$BASECFLAGS -mieee" |
| 5282 | ;; |
| 5283 | esac |
| 5284 | ;; |
| 5285 | |
| 5286 | *) |
| 5287 | case $ac_sys_system in |
| 5288 | OpenUNIX*|UnixWare*) |
| 5289 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 5290 | ;; |
| 5291 | OSF*) |
| 5292 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 5293 | ;; |
| 5294 | SCO_SV*) |
| 5295 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 5296 | ;; |
| 5297 | esac |
| 5298 | ;; |
| 5299 | esac |
| 5300 | |
| 5301 | if test "$Py_DEBUG" = 'true'; then |
| 5302 | : |
| 5303 | else |
| 5304 | OPT="-DNDEBUG $OPT" |
| 5305 | fi |
| 5306 | |
| 5307 | if test "$ac_arch_flags" |
| 5308 | then |
| 5309 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 5310 | fi |
| 5311 | |
| 5312 | # disable check for icc since it seems to pass, but generates a warning |
| 5313 | if test "$CC" = icc |
| 5314 | then |
| 5315 | ac_cv_opt_olimit_ok=no |
| 5316 | fi |
| 5317 | |
| 5318 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 5319 | $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; } |
| 5320 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 5321 | $as_echo_n "(cached) " >&6 |
| 5322 | else |
| 5323 | ac_save_cc="$CC" |
| 5324 | CC="$CC -OPT:Olimit=0" |
| 5325 | if test "$cross_compiling" = yes; then |
| 5326 | ac_cv_opt_olimit_ok=no |
| 5327 | else |
| 5328 | cat >conftest.$ac_ext <<_ACEOF |
| 5329 | /* confdefs.h. */ |
| 5330 | _ACEOF |
| 5331 | cat confdefs.h >>conftest.$ac_ext |
| 5332 | cat >>conftest.$ac_ext <<_ACEOF |
| 5333 | /* end confdefs.h. */ |
| 5334 | int main() { return 0; } |
| 5335 | _ACEOF |
| 5336 | rm -f conftest$ac_exeext |
| 5337 | if { (ac_try="$ac_link" |
| 5338 | case "(($ac_try" in |
| 5339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5340 | *) ac_try_echo=$ac_try;; |
| 5341 | esac |
| 5342 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5343 | $as_echo "$ac_try_echo") >&5 |
| 5344 | (eval "$ac_link") 2>&5 |
| 5345 | ac_status=$? |
| 5346 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5347 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5348 | { (case "(($ac_try" in |
| 5349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5350 | *) ac_try_echo=$ac_try;; |
| 5351 | esac |
| 5352 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5353 | $as_echo "$ac_try_echo") >&5 |
| 5354 | (eval "$ac_try") 2>&5 |
| 5355 | ac_status=$? |
| 5356 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5357 | (exit $ac_status); }; }; then |
| 5358 | ac_cv_opt_olimit_ok=yes |
| 5359 | else |
| 5360 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 5361 | $as_echo "$as_me: failed program was:" >&5 |
| 5362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5363 | |
| 5364 | ( exit $ac_status ) |
| 5365 | ac_cv_opt_olimit_ok=no |
| 5366 | fi |
| 5367 | rm -rf conftest.dSYM |
| 5368 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5369 | fi |
| 5370 | |
| 5371 | |
| 5372 | CC="$ac_save_cc" |
| 5373 | fi |
| 5374 | |
| 5375 | { $as_echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 5376 | $as_echo "$ac_cv_opt_olimit_ok" >&6; } |
| 5377 | if test $ac_cv_opt_olimit_ok = yes; then |
| 5378 | case $ac_sys_system in |
| 5379 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 5380 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 5381 | # environment? |
| 5382 | Darwin*) |
| 5383 | ;; |
| 5384 | *) |
| 5385 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 5386 | ;; |
| 5387 | esac |
| 5388 | else |
| 5389 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 5390 | $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; } |
| 5391 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 5392 | $as_echo_n "(cached) " >&6 |
| 5393 | else |
| 5394 | ac_save_cc="$CC" |
| 5395 | CC="$CC -Olimit 1500" |
| 5396 | if test "$cross_compiling" = yes; then |
| 5397 | ac_cv_olimit_ok=no |
| 5398 | else |
| 5399 | cat >conftest.$ac_ext <<_ACEOF |
| 5400 | /* confdefs.h. */ |
| 5401 | _ACEOF |
| 5402 | cat confdefs.h >>conftest.$ac_ext |
| 5403 | cat >>conftest.$ac_ext <<_ACEOF |
| 5404 | /* end confdefs.h. */ |
| 5405 | int main() { return 0; } |
| 5406 | _ACEOF |
| 5407 | rm -f conftest$ac_exeext |
| 5408 | if { (ac_try="$ac_link" |
| 5409 | case "(($ac_try" in |
| 5410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5411 | *) ac_try_echo=$ac_try;; |
| 5412 | esac |
| 5413 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5414 | $as_echo "$ac_try_echo") >&5 |
| 5415 | (eval "$ac_link") 2>&5 |
| 5416 | ac_status=$? |
| 5417 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5418 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5419 | { (case "(($ac_try" in |
| 5420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5421 | *) ac_try_echo=$ac_try;; |
| 5422 | esac |
| 5423 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5424 | $as_echo "$ac_try_echo") >&5 |
| 5425 | (eval "$ac_try") 2>&5 |
| 5426 | ac_status=$? |
| 5427 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5428 | (exit $ac_status); }; }; then |
| 5429 | ac_cv_olimit_ok=yes |
| 5430 | else |
| 5431 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 5432 | $as_echo "$as_me: failed program was:" >&5 |
| 5433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5434 | |
| 5435 | ( exit $ac_status ) |
| 5436 | ac_cv_olimit_ok=no |
| 5437 | fi |
| 5438 | rm -rf conftest.dSYM |
| 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 | CC="$ac_save_cc" |
| 5444 | fi |
| 5445 | |
| 5446 | { $as_echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 5447 | $as_echo "$ac_cv_olimit_ok" >&6; } |
| 5448 | if test $ac_cv_olimit_ok = yes; then |
| 5449 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
| 5450 | fi |
| 5451 | fi |
| 5452 | |
| 5453 | # Check whether GCC supports PyArg_ParseTuple format |
| 5454 | if test "$GCC" = "yes" |
| 5455 | then |
| 5456 | { $as_echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 5457 | $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } |
| 5458 | save_CFLAGS=$CFLAGS |
| 5459 | CFLAGS="$CFLAGS -Werror" |
| 5460 | cat >conftest.$ac_ext <<_ACEOF |
| 5461 | /* confdefs.h. */ |
| 5462 | _ACEOF |
| 5463 | cat confdefs.h >>conftest.$ac_ext |
| 5464 | cat >>conftest.$ac_ext <<_ACEOF |
| 5465 | /* end confdefs.h. */ |
| 5466 | |
| 5467 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 5468 | |
| 5469 | int |
| 5470 | main () |
| 5471 | { |
| 5472 | |
| 5473 | ; |
| 5474 | return 0; |
| 5475 | } |
| 5476 | _ACEOF |
| 5477 | rm -f conftest.$ac_objext |
| 5478 | if { (ac_try="$ac_compile" |
| 5479 | case "(($ac_try" in |
| 5480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5481 | *) ac_try_echo=$ac_try;; |
| 5482 | esac |
| 5483 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5484 | $as_echo "$ac_try_echo") >&5 |
| 5485 | (eval "$ac_compile") 2>conftest.er1 |
| 5486 | ac_status=$? |
| 5487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5488 | rm -f conftest.er1 |
| 5489 | cat conftest.err >&5 |
| 5490 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5491 | (exit $ac_status); } && { |
| 5492 | test -z "$ac_c_werror_flag" || |
| 5493 | test ! -s conftest.err |
| 5494 | } && test -s conftest.$ac_objext; then |
| 5495 | |
| 5496 | cat >>confdefs.h <<\_ACEOF |
| 5497 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 5498 | _ACEOF |
| 5499 | |
| 5500 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 5501 | $as_echo "yes" >&6; } |
| 5502 | else |
| 5503 | $as_echo "$as_me: failed program was:" >&5 |
| 5504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5505 | |
| 5506 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5507 | $as_echo "no" >&6; } |
| 5508 | |
| 5509 | fi |
| 5510 | |
| 5511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5512 | CFLAGS=$save_CFLAGS |
| 5513 | fi |
| 5514 | |
| 5515 | # On some compilers, pthreads are available without further options |
| 5516 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 5517 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 5518 | # So we have to see first whether pthreads are available without |
| 5519 | # options before we can check whether -Kpthread improves anything. |
| 5520 | { $as_echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 5521 | $as_echo_n "checking whether pthreads are available without options... " >&6; } |
| 5522 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 5523 | $as_echo_n "(cached) " >&6 |
| 5524 | else |
| 5525 | if test "$cross_compiling" = yes; then |
| 5526 | ac_cv_pthread_is_default=no |
| 5527 | else |
| 5528 | cat >conftest.$ac_ext <<_ACEOF |
| 5529 | /* confdefs.h. */ |
| 5530 | _ACEOF |
| 5531 | cat confdefs.h >>conftest.$ac_ext |
| 5532 | cat >>conftest.$ac_ext <<_ACEOF |
| 5533 | /* end confdefs.h. */ |
| 5534 | |
| 5535 | #include <pthread.h> |
| 5536 | |
| 5537 | void* routine(void* p){return NULL;} |
| 5538 | |
| 5539 | int main(){ |
| 5540 | pthread_t p; |
| 5541 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5542 | return 1; |
| 5543 | (void)pthread_detach(p); |
| 5544 | return 0; |
| 5545 | } |
| 5546 | |
| 5547 | _ACEOF |
| 5548 | rm -f conftest$ac_exeext |
| 5549 | if { (ac_try="$ac_link" |
| 5550 | case "(($ac_try" in |
| 5551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5552 | *) ac_try_echo=$ac_try;; |
| 5553 | esac |
| 5554 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5555 | $as_echo "$ac_try_echo") >&5 |
| 5556 | (eval "$ac_link") 2>&5 |
| 5557 | ac_status=$? |
| 5558 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5559 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5560 | { (case "(($ac_try" in |
| 5561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5562 | *) ac_try_echo=$ac_try;; |
| 5563 | esac |
| 5564 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5565 | $as_echo "$ac_try_echo") >&5 |
| 5566 | (eval "$ac_try") 2>&5 |
| 5567 | ac_status=$? |
| 5568 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5569 | (exit $ac_status); }; }; then |
| 5570 | |
| 5571 | ac_cv_pthread_is_default=yes |
| 5572 | ac_cv_kthread=no |
| 5573 | ac_cv_pthread=no |
| 5574 | |
| 5575 | else |
| 5576 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 5577 | $as_echo "$as_me: failed program was:" >&5 |
| 5578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5579 | |
| 5580 | ( exit $ac_status ) |
| 5581 | ac_cv_pthread_is_default=no |
| 5582 | fi |
| 5583 | rm -rf conftest.dSYM |
| 5584 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5585 | fi |
| 5586 | |
| 5587 | |
| 5588 | |
| 5589 | fi |
| 5590 | |
| 5591 | { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 5592 | $as_echo "$ac_cv_pthread_is_default" >&6; } |
| 5593 | |
| 5594 | |
| 5595 | if test $ac_cv_pthread_is_default = yes |
| 5596 | then |
| 5597 | ac_cv_kpthread=no |
| 5598 | else |
| 5599 | # -Kpthread, if available, provides the right #defines |
| 5600 | # and linker options to make pthread_create available |
| 5601 | # Some compilers won't report that they do not support -Kpthread, |
| 5602 | # so we need to run a program to see whether it really made the |
| 5603 | # function available. |
| 5604 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 5605 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } |
| 5606 | if test "${ac_cv_kpthread+set}" = set; then |
| 5607 | $as_echo_n "(cached) " >&6 |
| 5608 | else |
| 5609 | ac_save_cc="$CC" |
| 5610 | CC="$CC -Kpthread" |
| 5611 | if test "$cross_compiling" = yes; then |
| 5612 | ac_cv_kpthread=no |
| 5613 | else |
| 5614 | cat >conftest.$ac_ext <<_ACEOF |
| 5615 | /* confdefs.h. */ |
| 5616 | _ACEOF |
| 5617 | cat confdefs.h >>conftest.$ac_ext |
| 5618 | cat >>conftest.$ac_ext <<_ACEOF |
| 5619 | /* end confdefs.h. */ |
| 5620 | |
| 5621 | #include <pthread.h> |
| 5622 | |
| 5623 | void* routine(void* p){return NULL;} |
| 5624 | |
| 5625 | int main(){ |
| 5626 | pthread_t p; |
| 5627 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5628 | return 1; |
| 5629 | (void)pthread_detach(p); |
| 5630 | return 0; |
| 5631 | } |
| 5632 | |
| 5633 | _ACEOF |
| 5634 | rm -f conftest$ac_exeext |
| 5635 | if { (ac_try="$ac_link" |
| 5636 | case "(($ac_try" in |
| 5637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5638 | *) ac_try_echo=$ac_try;; |
| 5639 | esac |
| 5640 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5641 | $as_echo "$ac_try_echo") >&5 |
| 5642 | (eval "$ac_link") 2>&5 |
| 5643 | ac_status=$? |
| 5644 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5645 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5646 | { (case "(($ac_try" in |
| 5647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5648 | *) ac_try_echo=$ac_try;; |
| 5649 | esac |
| 5650 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5651 | $as_echo "$ac_try_echo") >&5 |
| 5652 | (eval "$ac_try") 2>&5 |
| 5653 | ac_status=$? |
| 5654 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5655 | (exit $ac_status); }; }; then |
| 5656 | ac_cv_kpthread=yes |
| 5657 | else |
| 5658 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 5659 | $as_echo "$as_me: failed program was:" >&5 |
| 5660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5661 | |
| 5662 | ( exit $ac_status ) |
| 5663 | ac_cv_kpthread=no |
| 5664 | fi |
| 5665 | rm -rf conftest.dSYM |
| 5666 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5667 | fi |
| 5668 | |
| 5669 | |
| 5670 | CC="$ac_save_cc" |
| 5671 | fi |
| 5672 | |
| 5673 | { $as_echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 5674 | $as_echo "$ac_cv_kpthread" >&6; } |
| 5675 | fi |
| 5676 | |
| 5677 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 5678 | then |
| 5679 | # -Kthread, if available, provides the right #defines |
| 5680 | # and linker options to make pthread_create available |
| 5681 | # Some compilers won't report that they do not support -Kthread, |
| 5682 | # so we need to run a program to see whether it really made the |
| 5683 | # function available. |
| 5684 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 5685 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } |
| 5686 | if test "${ac_cv_kthread+set}" = set; then |
| 5687 | $as_echo_n "(cached) " >&6 |
| 5688 | else |
| 5689 | ac_save_cc="$CC" |
| 5690 | CC="$CC -Kthread" |
| 5691 | if test "$cross_compiling" = yes; then |
| 5692 | ac_cv_kthread=no |
| 5693 | else |
| 5694 | cat >conftest.$ac_ext <<_ACEOF |
| 5695 | /* confdefs.h. */ |
| 5696 | _ACEOF |
| 5697 | cat confdefs.h >>conftest.$ac_ext |
| 5698 | cat >>conftest.$ac_ext <<_ACEOF |
| 5699 | /* end confdefs.h. */ |
| 5700 | |
| 5701 | #include <pthread.h> |
| 5702 | |
| 5703 | void* routine(void* p){return NULL;} |
| 5704 | |
| 5705 | int main(){ |
| 5706 | pthread_t p; |
| 5707 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5708 | return 1; |
| 5709 | (void)pthread_detach(p); |
| 5710 | return 0; |
| 5711 | } |
| 5712 | |
| 5713 | _ACEOF |
| 5714 | rm -f conftest$ac_exeext |
| 5715 | if { (ac_try="$ac_link" |
| 5716 | case "(($ac_try" in |
| 5717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5718 | *) ac_try_echo=$ac_try;; |
| 5719 | esac |
| 5720 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5721 | $as_echo "$ac_try_echo") >&5 |
| 5722 | (eval "$ac_link") 2>&5 |
| 5723 | ac_status=$? |
| 5724 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5725 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5726 | { (case "(($ac_try" in |
| 5727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5728 | *) ac_try_echo=$ac_try;; |
| 5729 | esac |
| 5730 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5731 | $as_echo "$ac_try_echo") >&5 |
| 5732 | (eval "$ac_try") 2>&5 |
| 5733 | ac_status=$? |
| 5734 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5735 | (exit $ac_status); }; }; then |
| 5736 | ac_cv_kthread=yes |
| 5737 | else |
| 5738 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 5739 | $as_echo "$as_me: failed program was:" >&5 |
| 5740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5741 | |
| 5742 | ( exit $ac_status ) |
| 5743 | ac_cv_kthread=no |
| 5744 | fi |
| 5745 | rm -rf conftest.dSYM |
| 5746 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5747 | fi |
| 5748 | |
| 5749 | |
| 5750 | CC="$ac_save_cc" |
| 5751 | fi |
| 5752 | |
| 5753 | { $as_echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 5754 | $as_echo "$ac_cv_kthread" >&6; } |
| 5755 | fi |
| 5756 | |
| 5757 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 5758 | then |
| 5759 | # -pthread, if available, provides the right #defines |
| 5760 | # and linker options to make pthread_create available |
| 5761 | # Some compilers won't report that they do not support -pthread, |
| 5762 | # so we need to run a program to see whether it really made the |
| 5763 | # function available. |
| 5764 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 5765 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } |
| 5766 | if test "${ac_cv_thread+set}" = set; then |
| 5767 | $as_echo_n "(cached) " >&6 |
| 5768 | else |
| 5769 | ac_save_cc="$CC" |
| 5770 | CC="$CC -pthread" |
| 5771 | if test "$cross_compiling" = yes; then |
| 5772 | ac_cv_pthread=no |
| 5773 | else |
| 5774 | cat >conftest.$ac_ext <<_ACEOF |
| 5775 | /* confdefs.h. */ |
| 5776 | _ACEOF |
| 5777 | cat confdefs.h >>conftest.$ac_ext |
| 5778 | cat >>conftest.$ac_ext <<_ACEOF |
| 5779 | /* end confdefs.h. */ |
| 5780 | |
| 5781 | #include <pthread.h> |
| 5782 | |
| 5783 | void* routine(void* p){return NULL;} |
| 5784 | |
| 5785 | int main(){ |
| 5786 | pthread_t p; |
| 5787 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5788 | return 1; |
| 5789 | (void)pthread_detach(p); |
| 5790 | return 0; |
| 5791 | } |
| 5792 | |
| 5793 | _ACEOF |
| 5794 | rm -f conftest$ac_exeext |
| 5795 | if { (ac_try="$ac_link" |
| 5796 | case "(($ac_try" in |
| 5797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5798 | *) ac_try_echo=$ac_try;; |
| 5799 | esac |
| 5800 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5801 | $as_echo "$ac_try_echo") >&5 |
| 5802 | (eval "$ac_link") 2>&5 |
| 5803 | ac_status=$? |
| 5804 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5805 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5806 | { (case "(($ac_try" in |
| 5807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5808 | *) ac_try_echo=$ac_try;; |
| 5809 | esac |
| 5810 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5811 | $as_echo "$ac_try_echo") >&5 |
| 5812 | (eval "$ac_try") 2>&5 |
| 5813 | ac_status=$? |
| 5814 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5815 | (exit $ac_status); }; }; then |
| 5816 | ac_cv_pthread=yes |
| 5817 | else |
| 5818 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 5819 | $as_echo "$as_me: failed program was:" >&5 |
| 5820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5821 | |
| 5822 | ( exit $ac_status ) |
| 5823 | ac_cv_pthread=no |
| 5824 | fi |
| 5825 | rm -rf conftest.dSYM |
| 5826 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5827 | fi |
| 5828 | |
| 5829 | |
| 5830 | CC="$ac_save_cc" |
| 5831 | fi |
| 5832 | |
| 5833 | { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 5834 | $as_echo "$ac_cv_pthread" >&6; } |
| 5835 | fi |
| 5836 | |
| 5837 | # If we have set a CC compiler flag for thread support then |
| 5838 | # check if it works for CXX, too. |
| 5839 | ac_cv_cxx_thread=no |
| 5840 | if test ! -z "$CXX" |
| 5841 | then |
| 5842 | { $as_echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 5843 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } |
| 5844 | ac_save_cxx="$CXX" |
| 5845 | |
| 5846 | if test "$ac_cv_kpthread" = "yes" |
| 5847 | then |
| 5848 | CXX="$CXX -Kpthread" |
| 5849 | ac_cv_cxx_thread=yes |
| 5850 | elif test "$ac_cv_kthread" = "yes" |
| 5851 | then |
| 5852 | CXX="$CXX -Kthread" |
| 5853 | ac_cv_cxx_thread=yes |
| 5854 | elif test "$ac_cv_pthread" = "yes" |
| 5855 | then |
| 5856 | CXX="$CXX -pthread" |
| 5857 | ac_cv_cxx_thread=yes |
| 5858 | fi |
| 5859 | |
| 5860 | if test $ac_cv_cxx_thread = yes |
| 5861 | then |
| 5862 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5863 | $CXX -c conftest.$ac_ext 2>&5 |
| 5864 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5865 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5866 | then |
| 5867 | ac_cv_cxx_thread=yes |
| 5868 | else |
| 5869 | ac_cv_cxx_thread=no |
| 5870 | fi |
| 5871 | rm -fr conftest* |
| 5872 | fi |
| 5873 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 5874 | $as_echo "$ac_cv_cxx_thread" >&6; } |
| 5875 | fi |
| 5876 | CXX="$ac_save_cxx" |
| 5877 | |
| 5878 | |
| 5879 | # checks for header files |
| 5880 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5881 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 5882 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5883 | $as_echo_n "(cached) " >&6 |
| 5884 | else |
| 5885 | cat >conftest.$ac_ext <<_ACEOF |
| 5886 | /* confdefs.h. */ |
| 5887 | _ACEOF |
| 5888 | cat confdefs.h >>conftest.$ac_ext |
| 5889 | cat >>conftest.$ac_ext <<_ACEOF |
| 5890 | /* end confdefs.h. */ |
| 5891 | #include <stdlib.h> |
| 5892 | #include <stdarg.h> |
| 5893 | #include <string.h> |
| 5894 | #include <float.h> |
| 5895 | |
| 5896 | int |
| 5897 | main () |
| 5898 | { |
| 5899 | |
| 5900 | ; |
| 5901 | return 0; |
| 5902 | } |
| 5903 | _ACEOF |
| 5904 | rm -f conftest.$ac_objext |
| 5905 | if { (ac_try="$ac_compile" |
| 5906 | case "(($ac_try" in |
| 5907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5908 | *) ac_try_echo=$ac_try;; |
| 5909 | esac |
| 5910 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5911 | $as_echo "$ac_try_echo") >&5 |
| 5912 | (eval "$ac_compile") 2>conftest.er1 |
| 5913 | ac_status=$? |
| 5914 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5915 | rm -f conftest.er1 |
| 5916 | cat conftest.err >&5 |
| 5917 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5918 | (exit $ac_status); } && { |
| 5919 | test -z "$ac_c_werror_flag" || |
| 5920 | test ! -s conftest.err |
| 5921 | } && test -s conftest.$ac_objext; then |
| 5922 | ac_cv_header_stdc=yes |
| 5923 | else |
| 5924 | $as_echo "$as_me: failed program was:" >&5 |
| 5925 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5926 | |
| 5927 | ac_cv_header_stdc=no |
| 5928 | fi |
| 5929 | |
| 5930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5931 | |
| 5932 | if test $ac_cv_header_stdc = yes; then |
| 5933 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5934 | cat >conftest.$ac_ext <<_ACEOF |
| 5935 | /* confdefs.h. */ |
| 5936 | _ACEOF |
| 5937 | cat confdefs.h >>conftest.$ac_ext |
| 5938 | cat >>conftest.$ac_ext <<_ACEOF |
| 5939 | /* end confdefs.h. */ |
| 5940 | #include <string.h> |
| 5941 | |
| 5942 | _ACEOF |
| 5943 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5944 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5945 | : |
| 5946 | else |
| 5947 | ac_cv_header_stdc=no |
| 5948 | fi |
| 5949 | rm -f conftest* |
| 5950 | |
| 5951 | fi |
| 5952 | |
| 5953 | if test $ac_cv_header_stdc = yes; then |
| 5954 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5955 | cat >conftest.$ac_ext <<_ACEOF |
| 5956 | /* confdefs.h. */ |
| 5957 | _ACEOF |
| 5958 | cat confdefs.h >>conftest.$ac_ext |
| 5959 | cat >>conftest.$ac_ext <<_ACEOF |
| 5960 | /* end confdefs.h. */ |
| 5961 | #include <stdlib.h> |
| 5962 | |
| 5963 | _ACEOF |
| 5964 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5965 | $EGREP "free" >/dev/null 2>&1; then |
| 5966 | : |
| 5967 | else |
| 5968 | ac_cv_header_stdc=no |
| 5969 | fi |
| 5970 | rm -f conftest* |
| 5971 | |
| 5972 | fi |
| 5973 | |
| 5974 | if test $ac_cv_header_stdc = yes; then |
| 5975 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5976 | if test "$cross_compiling" = yes; then |
| 5977 | : |
| 5978 | else |
| 5979 | cat >conftest.$ac_ext <<_ACEOF |
| 5980 | /* confdefs.h. */ |
| 5981 | _ACEOF |
| 5982 | cat confdefs.h >>conftest.$ac_ext |
| 5983 | cat >>conftest.$ac_ext <<_ACEOF |
| 5984 | /* end confdefs.h. */ |
| 5985 | #include <ctype.h> |
| 5986 | #include <stdlib.h> |
| 5987 | #if ((' ' & 0x0FF) == 0x020) |
| 5988 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5989 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5990 | #else |
| 5991 | # define ISLOWER(c) \ |
| 5992 | (('a' <= (c) && (c) <= 'i') \ |
| 5993 | || ('j' <= (c) && (c) <= 'r') \ |
| 5994 | || ('s' <= (c) && (c) <= 'z')) |
| 5995 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5996 | #endif |
| 5997 | |
| 5998 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5999 | int |
| 6000 | main () |
| 6001 | { |
| 6002 | int i; |
| 6003 | for (i = 0; i < 256; i++) |
| 6004 | if (XOR (islower (i), ISLOWER (i)) |
| 6005 | || toupper (i) != TOUPPER (i)) |
| 6006 | return 2; |
| 6007 | return 0; |
| 6008 | } |
| 6009 | _ACEOF |
| 6010 | rm -f conftest$ac_exeext |
| 6011 | if { (ac_try="$ac_link" |
| 6012 | case "(($ac_try" in |
| 6013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6014 | *) ac_try_echo=$ac_try;; |
| 6015 | esac |
| 6016 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6017 | $as_echo "$ac_try_echo") >&5 |
| 6018 | (eval "$ac_link") 2>&5 |
| 6019 | ac_status=$? |
| 6020 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6021 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6022 | { (case "(($ac_try" in |
| 6023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6024 | *) ac_try_echo=$ac_try;; |
| 6025 | esac |
| 6026 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6027 | $as_echo "$ac_try_echo") >&5 |
| 6028 | (eval "$ac_try") 2>&5 |
| 6029 | ac_status=$? |
| 6030 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6031 | (exit $ac_status); }; }; then |
| 6032 | : |
| 6033 | else |
| 6034 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 6035 | $as_echo "$as_me: failed program was:" >&5 |
| 6036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6037 | |
| 6038 | ( exit $ac_status ) |
| 6039 | ac_cv_header_stdc=no |
| 6040 | fi |
| 6041 | rm -rf conftest.dSYM |
| 6042 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6043 | fi |
| 6044 | |
| 6045 | |
| 6046 | fi |
| 6047 | fi |
| 6048 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 6049 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 6050 | if test $ac_cv_header_stdc = yes; then |
| 6051 | |
| 6052 | cat >>confdefs.h <<\_ACEOF |
| 6053 | #define STDC_HEADERS 1 |
| 6054 | _ACEOF |
| 6055 | |
| 6056 | fi |
| 6057 | |
| 6058 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6059 | |
| 6060 | |
| 6061 | |
| 6062 | |
| 6063 | |
| 6064 | |
| 6065 | |
| 6066 | |
| 6067 | |
| 6068 | |
| 6069 | |
| 6070 | |
| 6071 | |
| 6072 | |
| 6073 | |
| 6074 | |
| 6075 | |
| 6076 | |
| 6077 | |
| 6078 | |
| 6079 | |
| 6080 | |
| 6081 | |
| 6082 | |
| 6083 | |
| 6084 | |
| 6085 | |
| 6086 | |
| 6087 | |
| 6088 | |
| 6089 | |
| 6090 | |
| 6091 | |
| 6092 | |
| 6093 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 6094 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 6095 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6096 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6097 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6098 | |
| 6099 | |
| 6100 | |
| 6101 | |
| 6102 | |
| 6103 | |
| 6104 | |
| 6105 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6106 | |
Christian Heimes | 043d6f6 | 2008-01-07 17:19:16 +0000 | [diff] [blame] | 6107 | |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 6108 | |
| 6109 | |
Christian Heimes | bbe741d | 2008-03-28 10:53:29 +0000 | [diff] [blame] | 6110 | |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 6111 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6112 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 6113 | fcntl.h grp.h \ |
Christian Heimes | bbe741d | 2008-03-28 10:53:29 +0000 | [diff] [blame] | 6114 | 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] | 6115 | 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] | 6116 | unistd.h utime.h \ |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 6117 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 6118 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6119 | 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] | 6120 | sys/termio.h sys/time.h \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6121 | 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] | 6122 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Christian Heimes | 043d6f6 | 2008-01-07 17:19:16 +0000 | [diff] [blame] | 6123 | bluetooth/bluetooth.h linux/tipc.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6124 | do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6125 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6126 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6127 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6128 | $as_echo_n "checking for $ac_header... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6129 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6130 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6131 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6132 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 6133 | $as_echo "$as_val"'` |
| 6134 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6135 | $as_echo "$ac_res" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6136 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6137 | # Is the header compilable? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6138 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6139 | $as_echo_n "checking $ac_header usability... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6140 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6141 | /* confdefs.h. */ |
| 6142 | _ACEOF |
| 6143 | cat confdefs.h >>conftest.$ac_ext |
| 6144 | cat >>conftest.$ac_ext <<_ACEOF |
| 6145 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6146 | $ac_includes_default |
| 6147 | #include <$ac_header> |
| 6148 | _ACEOF |
| 6149 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6150 | if { (ac_try="$ac_compile" |
| 6151 | case "(($ac_try" in |
| 6152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6153 | *) ac_try_echo=$ac_try;; |
| 6154 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6155 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6156 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6157 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6158 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6160 | rm -f conftest.er1 |
| 6161 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6162 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6163 | (exit $ac_status); } && { |
| 6164 | test -z "$ac_c_werror_flag" || |
| 6165 | test ! -s conftest.err |
| 6166 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6167 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6168 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6169 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6171 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6172 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6173 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6174 | |
| 6175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6176 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6177 | $as_echo "$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6178 | |
| 6179 | # Is the header present? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6180 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6181 | $as_echo_n "checking $ac_header presence... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6182 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6183 | /* confdefs.h. */ |
| 6184 | _ACEOF |
| 6185 | cat confdefs.h >>conftest.$ac_ext |
| 6186 | cat >>conftest.$ac_ext <<_ACEOF |
| 6187 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6188 | #include <$ac_header> |
| 6189 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6190 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6191 | case "(($ac_try" in |
| 6192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6193 | *) ac_try_echo=$ac_try;; |
| 6194 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6195 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6196 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6197 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6198 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6199 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6200 | rm -f conftest.er1 |
| 6201 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6202 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6203 | (exit $ac_status); } >/dev/null && { |
| 6204 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6205 | test ! -s conftest.err |
| 6206 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6207 | ac_header_preproc=yes |
| 6208 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6209 | $as_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 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6212 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6213 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6214 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6215 | rm -f conftest.err conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6216 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6217 | $as_echo "$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6218 | |
| 6219 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6220 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6221 | yes:no: ) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6222 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6223 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6224 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6225 | $as_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] | 6226 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6227 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6228 | no:yes:* ) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6229 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6230 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6231 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6232 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6233 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6234 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6235 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6236 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6237 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6238 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6239 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6240 | $as_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] | 6241 | ( cat <<\_ASBOX |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 6242 | ## -------------------------------------- ## |
| 6243 | ## Report this to http://bugs.python.org/ ## |
| 6244 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6245 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6246 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6247 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6248 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6249 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6250 | $as_echo_n "checking for $ac_header... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6251 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6252 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6253 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6254 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6255 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6256 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 6257 | $as_echo "$as_val"'` |
| 6258 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6259 | $as_echo "$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6260 | |
| 6261 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6262 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 6263 | $as_echo "$as_val"'` |
| 6264 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6265 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6266 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6267 | _ACEOF |
| 6268 | |
| 6269 | fi |
| 6270 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6271 | done |
| 6272 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6273 | |
| 6274 | |
| 6275 | |
| 6276 | |
| 6277 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6278 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6279 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6280 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 6281 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 6282 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6283 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6284 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6285 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6286 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6287 | /* confdefs.h. */ |
| 6288 | _ACEOF |
| 6289 | cat confdefs.h >>conftest.$ac_ext |
| 6290 | cat >>conftest.$ac_ext <<_ACEOF |
| 6291 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6292 | #include <sys/types.h> |
| 6293 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6294 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6295 | int |
| 6296 | main () |
| 6297 | { |
| 6298 | if ((DIR *) 0) |
| 6299 | return 0; |
| 6300 | ; |
| 6301 | return 0; |
| 6302 | } |
| 6303 | _ACEOF |
| 6304 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6305 | if { (ac_try="$ac_compile" |
| 6306 | case "(($ac_try" in |
| 6307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6308 | *) ac_try_echo=$ac_try;; |
| 6309 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6310 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6311 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6312 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6313 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6315 | rm -f conftest.er1 |
| 6316 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6317 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6318 | (exit $ac_status); } && { |
| 6319 | test -z "$ac_c_werror_flag" || |
| 6320 | test ! -s conftest.err |
| 6321 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6322 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6323 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6324 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6326 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6327 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6328 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6329 | |
| 6330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6331 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6332 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 6333 | $as_echo "$as_val"'` |
| 6334 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6335 | $as_echo "$ac_res" >&6; } |
| 6336 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 6337 | $as_echo "$as_val"'` |
| 6338 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6339 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6340 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6341 | _ACEOF |
| 6342 | |
| 6343 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6344 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6345 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6346 | done |
| 6347 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 6348 | if test $ac_header_dirent = dirent.h; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6349 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 6350 | $as_echo_n "checking for library containing opendir... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6351 | if test "${ac_cv_search_opendir+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6352 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6353 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6354 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6355 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6356 | /* confdefs.h. */ |
| 6357 | _ACEOF |
| 6358 | cat confdefs.h >>conftest.$ac_ext |
| 6359 | cat >>conftest.$ac_ext <<_ACEOF |
| 6360 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6361 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6362 | /* Override any GCC internal prototype to avoid an error. |
| 6363 | Use char because int might match the return type of a GCC |
| 6364 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6365 | #ifdef __cplusplus |
| 6366 | extern "C" |
| 6367 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6368 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6369 | int |
| 6370 | main () |
| 6371 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6372 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6373 | ; |
| 6374 | return 0; |
| 6375 | } |
| 6376 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6377 | for ac_lib in '' dir; do |
| 6378 | if test -z "$ac_lib"; then |
| 6379 | ac_res="none required" |
| 6380 | else |
| 6381 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6382 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6383 | fi |
| 6384 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6385 | if { (ac_try="$ac_link" |
| 6386 | case "(($ac_try" in |
| 6387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6388 | *) ac_try_echo=$ac_try;; |
| 6389 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6390 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6391 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6392 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6393 | ac_status=$? |
| 6394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6395 | rm -f conftest.er1 |
| 6396 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6397 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6398 | (exit $ac_status); } && { |
| 6399 | test -z "$ac_c_werror_flag" || |
| 6400 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6401 | } && test -s conftest$ac_exeext && { |
| 6402 | test "$cross_compiling" = yes || |
| 6403 | $as_test_x conftest$ac_exeext |
| 6404 | }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6405 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6406 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6407 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6408 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6409 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6410 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6411 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6412 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6413 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6414 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6415 | conftest$ac_exeext |
| 6416 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6417 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6418 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6419 | done |
| 6420 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6421 | : |
| 6422 | else |
| 6423 | ac_cv_search_opendir=no |
| 6424 | fi |
| 6425 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6426 | LIBS=$ac_func_search_save_LIBS |
| 6427 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6428 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6429 | $as_echo "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6430 | ac_res=$ac_cv_search_opendir |
| 6431 | if test "$ac_res" != no; then |
| 6432 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6433 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6434 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6435 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6436 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6437 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 6438 | $as_echo_n "checking for library containing opendir... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6439 | if test "${ac_cv_search_opendir+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6440 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6441 | else |
| 6442 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6443 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6444 | /* confdefs.h. */ |
| 6445 | _ACEOF |
| 6446 | cat confdefs.h >>conftest.$ac_ext |
| 6447 | cat >>conftest.$ac_ext <<_ACEOF |
| 6448 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6449 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6450 | /* Override any GCC internal prototype to avoid an error. |
| 6451 | Use char because int might match the return type of a GCC |
| 6452 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6453 | #ifdef __cplusplus |
| 6454 | extern "C" |
| 6455 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6456 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6457 | int |
| 6458 | main () |
| 6459 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6460 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6461 | ; |
| 6462 | return 0; |
| 6463 | } |
| 6464 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6465 | for ac_lib in '' x; do |
| 6466 | if test -z "$ac_lib"; then |
| 6467 | ac_res="none required" |
| 6468 | else |
| 6469 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6470 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6471 | fi |
| 6472 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6473 | if { (ac_try="$ac_link" |
| 6474 | case "(($ac_try" in |
| 6475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6476 | *) ac_try_echo=$ac_try;; |
| 6477 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6478 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6479 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6480 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6481 | ac_status=$? |
| 6482 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6483 | rm -f conftest.er1 |
| 6484 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6485 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6486 | (exit $ac_status); } && { |
| 6487 | test -z "$ac_c_werror_flag" || |
| 6488 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6489 | } && test -s conftest$ac_exeext && { |
| 6490 | test "$cross_compiling" = yes || |
| 6491 | $as_test_x conftest$ac_exeext |
| 6492 | }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6493 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6494 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6495 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6496 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6497 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6498 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6499 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6500 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6501 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6502 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6503 | conftest$ac_exeext |
| 6504 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6505 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 6506 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6507 | done |
| 6508 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6509 | : |
| 6510 | else |
| 6511 | ac_cv_search_opendir=no |
| 6512 | fi |
| 6513 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6514 | LIBS=$ac_func_search_save_LIBS |
| 6515 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6516 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6517 | $as_echo "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6518 | ac_res=$ac_cv_search_opendir |
| 6519 | if test "$ac_res" != no; then |
| 6520 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6521 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6522 | fi |
| 6523 | |
| 6524 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6525 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6526 | { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 6527 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6528 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6529 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6530 | else |
| 6531 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6532 | /* confdefs.h. */ |
| 6533 | _ACEOF |
| 6534 | cat confdefs.h >>conftest.$ac_ext |
| 6535 | cat >>conftest.$ac_ext <<_ACEOF |
| 6536 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6537 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6538 | int |
| 6539 | main () |
| 6540 | { |
| 6541 | return makedev(0, 0); |
| 6542 | ; |
| 6543 | return 0; |
| 6544 | } |
| 6545 | _ACEOF |
| 6546 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6547 | if { (ac_try="$ac_link" |
| 6548 | case "(($ac_try" in |
| 6549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6550 | *) ac_try_echo=$ac_try;; |
| 6551 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6552 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6553 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6554 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6555 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6556 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6557 | rm -f conftest.er1 |
| 6558 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6559 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6560 | (exit $ac_status); } && { |
| 6561 | test -z "$ac_c_werror_flag" || |
| 6562 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6563 | } && test -s conftest$ac_exeext && { |
| 6564 | test "$cross_compiling" = yes || |
| 6565 | $as_test_x conftest$ac_exeext |
| 6566 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6567 | ac_cv_header_sys_types_h_makedev=yes |
| 6568 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6569 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6571 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6572 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6573 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6574 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6575 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6576 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6577 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6578 | |
| 6579 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6580 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 6581 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6582 | |
| 6583 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 6584 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6585 | { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6586 | $as_echo_n "checking for sys/mkdev.h... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6587 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6588 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6589 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6590 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6591 | $as_echo "$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6592 | else |
| 6593 | # Is the header compilable? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6594 | { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 6595 | $as_echo_n "checking sys/mkdev.h usability... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6596 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6597 | /* confdefs.h. */ |
| 6598 | _ACEOF |
| 6599 | cat confdefs.h >>conftest.$ac_ext |
| 6600 | cat >>conftest.$ac_ext <<_ACEOF |
| 6601 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6602 | $ac_includes_default |
| 6603 | #include <sys/mkdev.h> |
| 6604 | _ACEOF |
| 6605 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6606 | if { (ac_try="$ac_compile" |
| 6607 | case "(($ac_try" in |
| 6608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6609 | *) ac_try_echo=$ac_try;; |
| 6610 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6611 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6612 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6613 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6614 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6615 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6616 | rm -f conftest.er1 |
| 6617 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6618 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6619 | (exit $ac_status); } && { |
| 6620 | test -z "$ac_c_werror_flag" || |
| 6621 | test ! -s conftest.err |
| 6622 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6623 | ac_header_compiler=yes |
| 6624 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6625 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6626 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6627 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6628 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6629 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6630 | |
| 6631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6632 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6633 | $as_echo "$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6634 | |
| 6635 | # Is the header present? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6636 | { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 6637 | $as_echo_n "checking sys/mkdev.h presence... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6638 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6639 | /* confdefs.h. */ |
| 6640 | _ACEOF |
| 6641 | cat confdefs.h >>conftest.$ac_ext |
| 6642 | cat >>conftest.$ac_ext <<_ACEOF |
| 6643 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6644 | #include <sys/mkdev.h> |
| 6645 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6646 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6647 | case "(($ac_try" in |
| 6648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6649 | *) ac_try_echo=$ac_try;; |
| 6650 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6651 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6652 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6653 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6654 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6655 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6656 | rm -f conftest.er1 |
| 6657 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6658 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6659 | (exit $ac_status); } >/dev/null && { |
| 6660 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6661 | test ! -s conftest.err |
| 6662 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6663 | ac_header_preproc=yes |
| 6664 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6665 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6667 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6668 | ac_header_preproc=no |
| 6669 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6670 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6671 | rm -f conftest.err conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6672 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6673 | $as_echo "$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6674 | |
| 6675 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6676 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6677 | yes:no: ) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6678 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6679 | $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6680 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 6681 | $as_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] | 6682 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6683 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6684 | no:yes:* ) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6685 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 6686 | $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 6687 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 6688 | $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 6689 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 6690 | $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 6691 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6692 | $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6693 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 6694 | $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 6695 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 6696 | $as_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] | 6697 | ( cat <<\_ASBOX |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 6698 | ## -------------------------------------- ## |
| 6699 | ## Report this to http://bugs.python.org/ ## |
| 6700 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6701 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6702 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6703 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6704 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6705 | { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6706 | $as_echo_n "checking for sys/mkdev.h... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6707 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6708 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6709 | else |
| 6710 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 6711 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6712 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6713 | $as_echo "$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6714 | |
| 6715 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6716 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6717 | |
| 6718 | cat >>confdefs.h <<\_ACEOF |
| 6719 | #define MAJOR_IN_MKDEV 1 |
| 6720 | _ACEOF |
| 6721 | |
| 6722 | fi |
| 6723 | |
| 6724 | |
| 6725 | |
| 6726 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 6727 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6728 | { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6729 | $as_echo_n "checking for sys/sysmacros.h... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6730 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6731 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6732 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6733 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6734 | $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6735 | else |
| 6736 | # Is the header compilable? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6737 | { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 6738 | $as_echo_n "checking sys/sysmacros.h usability... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6739 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6740 | /* confdefs.h. */ |
| 6741 | _ACEOF |
| 6742 | cat confdefs.h >>conftest.$ac_ext |
| 6743 | cat >>conftest.$ac_ext <<_ACEOF |
| 6744 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6745 | $ac_includes_default |
| 6746 | #include <sys/sysmacros.h> |
| 6747 | _ACEOF |
| 6748 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6749 | if { (ac_try="$ac_compile" |
| 6750 | case "(($ac_try" in |
| 6751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6752 | *) ac_try_echo=$ac_try;; |
| 6753 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6754 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6755 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6756 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6757 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6759 | rm -f conftest.er1 |
| 6760 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6761 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6762 | (exit $ac_status); } && { |
| 6763 | test -z "$ac_c_werror_flag" || |
| 6764 | test ! -s conftest.err |
| 6765 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6766 | ac_header_compiler=yes |
| 6767 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6768 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6770 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6771 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6772 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6773 | |
| 6774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6775 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6776 | $as_echo "$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6777 | |
| 6778 | # Is the header present? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6779 | { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 6780 | $as_echo_n "checking sys/sysmacros.h presence... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6781 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6782 | /* confdefs.h. */ |
| 6783 | _ACEOF |
| 6784 | cat confdefs.h >>conftest.$ac_ext |
| 6785 | cat >>conftest.$ac_ext <<_ACEOF |
| 6786 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6787 | #include <sys/sysmacros.h> |
| 6788 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6789 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6790 | case "(($ac_try" in |
| 6791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6792 | *) ac_try_echo=$ac_try;; |
| 6793 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6794 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6795 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6796 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6797 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6798 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6799 | rm -f conftest.er1 |
| 6800 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6801 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6802 | (exit $ac_status); } >/dev/null && { |
| 6803 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6804 | test ! -s conftest.err |
| 6805 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6806 | ac_header_preproc=yes |
| 6807 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6808 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6810 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6811 | ac_header_preproc=no |
| 6812 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6813 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6814 | rm -f conftest.err conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6815 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6816 | $as_echo "$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6817 | |
| 6818 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6819 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6820 | yes:no: ) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6821 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6822 | $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6823 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 6824 | $as_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] | 6825 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6826 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6827 | no:yes:* ) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6828 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 6829 | $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 6830 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 6831 | $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 6832 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 6833 | $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 6834 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6835 | $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6836 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 6837 | $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 6838 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 6839 | $as_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] | 6840 | ( cat <<\_ASBOX |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 6841 | ## -------------------------------------- ## |
| 6842 | ## Report this to http://bugs.python.org/ ## |
| 6843 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6844 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6845 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6846 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6847 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6848 | { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6849 | $as_echo_n "checking for sys/sysmacros.h... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6850 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6851 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6852 | else |
| 6853 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 6854 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6855 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6856 | $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6857 | |
| 6858 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6859 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6860 | |
| 6861 | cat >>confdefs.h <<\_ACEOF |
| 6862 | #define MAJOR_IN_SYSMACROS 1 |
| 6863 | _ACEOF |
| 6864 | |
| 6865 | fi |
| 6866 | |
| 6867 | |
| 6868 | fi |
| 6869 | fi |
| 6870 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6871 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6872 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6873 | |
| 6874 | for ac_header in term.h |
| 6875 | do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6876 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6877 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6878 | $as_echo_n "checking for $ac_header... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6879 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6880 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6881 | else |
| 6882 | cat >conftest.$ac_ext <<_ACEOF |
| 6883 | /* confdefs.h. */ |
| 6884 | _ACEOF |
| 6885 | cat confdefs.h >>conftest.$ac_ext |
| 6886 | cat >>conftest.$ac_ext <<_ACEOF |
| 6887 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6888 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6889 | #ifdef HAVE_CURSES_H |
| 6890 | #include <curses.h> |
| 6891 | #endif |
| 6892 | |
| 6893 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6894 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6895 | _ACEOF |
| 6896 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6897 | if { (ac_try="$ac_compile" |
| 6898 | case "(($ac_try" in |
| 6899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6900 | *) ac_try_echo=$ac_try;; |
| 6901 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6902 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6903 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6904 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6905 | ac_status=$? |
| 6906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6907 | rm -f conftest.er1 |
| 6908 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6909 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6910 | (exit $ac_status); } && { |
| 6911 | test -z "$ac_c_werror_flag" || |
| 6912 | test ! -s conftest.err |
| 6913 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6914 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6915 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6916 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6918 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6919 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6920 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6921 | |
| 6922 | 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] | 6923 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6924 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 6925 | $as_echo "$as_val"'` |
| 6926 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6927 | $as_echo "$ac_res" >&6; } |
| 6928 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 6929 | $as_echo "$as_val"'` |
| 6930 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6931 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6932 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6933 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6934 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6935 | fi |
| 6936 | |
| 6937 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6938 | |
| 6939 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6940 | # On Linux, netlink.h requires asm/types.h |
| 6941 | |
| 6942 | for ac_header in linux/netlink.h |
| 6943 | do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6944 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6945 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6946 | $as_echo_n "checking for $ac_header... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6947 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6948 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6949 | else |
| 6950 | cat >conftest.$ac_ext <<_ACEOF |
| 6951 | /* confdefs.h. */ |
| 6952 | _ACEOF |
| 6953 | cat confdefs.h >>conftest.$ac_ext |
| 6954 | cat >>conftest.$ac_ext <<_ACEOF |
| 6955 | /* end confdefs.h. */ |
| 6956 | |
| 6957 | #ifdef HAVE_ASM_TYPES_H |
| 6958 | #include <asm/types.h> |
| 6959 | #endif |
| 6960 | #ifdef HAVE_SYS_SOCKET_H |
| 6961 | #include <sys/socket.h> |
| 6962 | #endif |
| 6963 | |
| 6964 | |
| 6965 | #include <$ac_header> |
| 6966 | _ACEOF |
| 6967 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6968 | if { (ac_try="$ac_compile" |
| 6969 | case "(($ac_try" in |
| 6970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6971 | *) ac_try_echo=$ac_try;; |
| 6972 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6973 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6974 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6975 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6976 | ac_status=$? |
| 6977 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6978 | rm -f conftest.er1 |
| 6979 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6980 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6981 | (exit $ac_status); } && { |
| 6982 | test -z "$ac_c_werror_flag" || |
| 6983 | test ! -s conftest.err |
| 6984 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6985 | eval "$as_ac_Header=yes" |
| 6986 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6987 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6989 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6990 | eval "$as_ac_Header=no" |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6991 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6992 | |
| 6993 | 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] | 6994 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 6995 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 6996 | $as_echo "$as_val"'` |
| 6997 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6998 | $as_echo "$ac_res" >&6; } |
| 6999 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 7000 | $as_echo "$as_val"'` |
| 7001 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7002 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7003 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7004 | _ACEOF |
| 7005 | |
| 7006 | fi |
| 7007 | |
| 7008 | done |
| 7009 | |
| 7010 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7011 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7012 | was_it_defined=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7013 | { $as_echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 7014 | $as_echo_n "checking for clock_t in time.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7015 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7016 | /* confdefs.h. */ |
| 7017 | _ACEOF |
| 7018 | cat confdefs.h >>conftest.$ac_ext |
| 7019 | cat >>conftest.$ac_ext <<_ACEOF |
| 7020 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7021 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7022 | |
| 7023 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7024 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7025 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7026 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7027 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7028 | |
| 7029 | |
| 7030 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7031 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7032 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7033 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7034 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7035 | fi |
| 7036 | rm -f conftest* |
| 7037 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7038 | { $as_echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 7039 | $as_echo "$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7040 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7041 | # Check whether using makedev requires defining _OSF_SOURCE |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7042 | { $as_echo "$as_me:$LINENO: checking for makedev" >&5 |
| 7043 | $as_echo_n "checking for makedev... " >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7044 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7045 | /* confdefs.h. */ |
| 7046 | _ACEOF |
| 7047 | cat confdefs.h >>conftest.$ac_ext |
| 7048 | cat >>conftest.$ac_ext <<_ACEOF |
| 7049 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 7050 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7051 | int |
| 7052 | main () |
| 7053 | { |
| 7054 | makedev(0, 0) |
| 7055 | ; |
| 7056 | return 0; |
| 7057 | } |
| 7058 | _ACEOF |
| 7059 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7060 | if { (ac_try="$ac_link" |
| 7061 | case "(($ac_try" in |
| 7062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7063 | *) ac_try_echo=$ac_try;; |
| 7064 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7065 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7066 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7067 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7068 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7070 | rm -f conftest.er1 |
| 7071 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7072 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7073 | (exit $ac_status); } && { |
| 7074 | test -z "$ac_c_werror_flag" || |
| 7075 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7076 | } && test -s conftest$ac_exeext && { |
| 7077 | test "$cross_compiling" = yes || |
| 7078 | $as_test_x conftest$ac_exeext |
| 7079 | }; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7080 | ac_cv_has_makedev=yes |
| 7081 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7082 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7084 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7085 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7086 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7087 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7088 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7089 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7090 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7091 | if test "$ac_cv_has_makedev" = "no"; then |
| 7092 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 7093 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7094 | /* confdefs.h. */ |
| 7095 | _ACEOF |
| 7096 | cat confdefs.h >>conftest.$ac_ext |
| 7097 | cat >>conftest.$ac_ext <<_ACEOF |
| 7098 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7099 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 7100 | #define _OSF_SOURCE 1 |
| 7101 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7102 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7103 | int |
| 7104 | main () |
| 7105 | { |
| 7106 | makedev(0, 0) |
| 7107 | ; |
| 7108 | return 0; |
| 7109 | } |
| 7110 | _ACEOF |
| 7111 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7112 | if { (ac_try="$ac_link" |
| 7113 | case "(($ac_try" in |
| 7114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7115 | *) ac_try_echo=$ac_try;; |
| 7116 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7117 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7118 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7119 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7120 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7122 | rm -f conftest.er1 |
| 7123 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7124 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7125 | (exit $ac_status); } && { |
| 7126 | test -z "$ac_c_werror_flag" || |
| 7127 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7128 | } && test -s conftest$ac_exeext && { |
| 7129 | test "$cross_compiling" = yes || |
| 7130 | $as_test_x conftest$ac_exeext |
| 7131 | }; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7132 | ac_cv_has_makedev=yes |
| 7133 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7134 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7136 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7137 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7138 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7139 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7140 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7141 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7142 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7143 | if test "$ac_cv_has_makedev" = "yes"; then |
| 7144 | |
| 7145 | cat >>confdefs.h <<\_ACEOF |
| 7146 | #define _OSF_SOURCE 1 |
| 7147 | _ACEOF |
| 7148 | |
| 7149 | fi |
| 7150 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7151 | { $as_echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 7152 | $as_echo "$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7153 | if test "$ac_cv_has_makedev" = "yes"; then |
| 7154 | |
| 7155 | cat >>confdefs.h <<\_ACEOF |
| 7156 | #define HAVE_MAKEDEV 1 |
| 7157 | _ACEOF |
| 7158 | |
| 7159 | fi |
| 7160 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7161 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 7162 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 7163 | # defined, but the compiler does not support pragma redefine_extname, |
| 7164 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 7165 | # structures (such as rlimit64) without declaring them. As a |
| 7166 | # work-around, disable LFS on such configurations |
| 7167 | |
| 7168 | use_lfs=yes |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7169 | { $as_echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 7170 | $as_echo_n "checking Solaris LFS bug... " >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7171 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7172 | /* confdefs.h. */ |
| 7173 | _ACEOF |
| 7174 | cat confdefs.h >>conftest.$ac_ext |
| 7175 | cat >>conftest.$ac_ext <<_ACEOF |
| 7176 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7177 | |
| 7178 | #define _LARGEFILE_SOURCE 1 |
| 7179 | #define _FILE_OFFSET_BITS 64 |
| 7180 | #include <sys/resource.h> |
| 7181 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7182 | int |
| 7183 | main () |
| 7184 | { |
| 7185 | struct rlimit foo; |
| 7186 | ; |
| 7187 | return 0; |
| 7188 | } |
| 7189 | _ACEOF |
| 7190 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7191 | if { (ac_try="$ac_compile" |
| 7192 | case "(($ac_try" in |
| 7193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7194 | *) ac_try_echo=$ac_try;; |
| 7195 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7196 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7197 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7198 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7199 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7200 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7201 | rm -f conftest.er1 |
| 7202 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7203 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7204 | (exit $ac_status); } && { |
| 7205 | test -z "$ac_c_werror_flag" || |
| 7206 | test ! -s conftest.err |
| 7207 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7208 | sol_lfs_bug=no |
| 7209 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7210 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7212 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7213 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7214 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7215 | |
| 7216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7217 | { $as_echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 7218 | $as_echo "$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7219 | if test "$sol_lfs_bug" = "yes"; then |
| 7220 | use_lfs=no |
| 7221 | fi |
| 7222 | |
| 7223 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7224 | # Two defines needed to enable largefile support on various platforms |
| 7225 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7226 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7227 | cat >>confdefs.h <<\_ACEOF |
| 7228 | #define _LARGEFILE_SOURCE 1 |
| 7229 | _ACEOF |
| 7230 | |
| 7231 | |
| 7232 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7233 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7234 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7235 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7236 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7237 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 7238 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 7239 | cat >> confdefs.h <<\EOF |
| 7240 | #if defined(SCO_DS) |
| 7241 | #undef _OFF_T |
| 7242 | #endif |
| 7243 | EOF |
| 7244 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7245 | # Type availability checks |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7246 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 7247 | $as_echo_n "checking for mode_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7248 | if test "${ac_cv_type_mode_t+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7249 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7250 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7251 | ac_cv_type_mode_t=no |
| 7252 | cat >conftest.$ac_ext <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7253 | /* confdefs.h. */ |
| 7254 | _ACEOF |
| 7255 | cat confdefs.h >>conftest.$ac_ext |
| 7256 | cat >>conftest.$ac_ext <<_ACEOF |
| 7257 | /* end confdefs.h. */ |
| 7258 | $ac_includes_default |
| 7259 | int |
| 7260 | main () |
| 7261 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7262 | if (sizeof (mode_t)) |
| 7263 | return 0; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7264 | ; |
| 7265 | return 0; |
| 7266 | } |
| 7267 | _ACEOF |
| 7268 | rm -f conftest.$ac_objext |
| 7269 | if { (ac_try="$ac_compile" |
| 7270 | case "(($ac_try" in |
| 7271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7272 | *) ac_try_echo=$ac_try;; |
| 7273 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7274 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7275 | $as_echo "$ac_try_echo") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7276 | (eval "$ac_compile") 2>conftest.er1 |
| 7277 | ac_status=$? |
| 7278 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7279 | rm -f conftest.er1 |
| 7280 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7281 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7282 | (exit $ac_status); } && { |
| 7283 | test -z "$ac_c_werror_flag" || |
| 7284 | test ! -s conftest.err |
| 7285 | } && test -s conftest.$ac_objext; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7286 | cat >conftest.$ac_ext <<_ACEOF |
| 7287 | /* confdefs.h. */ |
| 7288 | _ACEOF |
| 7289 | cat confdefs.h >>conftest.$ac_ext |
| 7290 | cat >>conftest.$ac_ext <<_ACEOF |
| 7291 | /* end confdefs.h. */ |
| 7292 | $ac_includes_default |
| 7293 | int |
| 7294 | main () |
| 7295 | { |
| 7296 | if (sizeof ((mode_t))) |
| 7297 | return 0; |
| 7298 | ; |
| 7299 | return 0; |
| 7300 | } |
| 7301 | _ACEOF |
| 7302 | rm -f conftest.$ac_objext |
| 7303 | if { (ac_try="$ac_compile" |
| 7304 | case "(($ac_try" in |
| 7305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7306 | *) ac_try_echo=$ac_try;; |
| 7307 | esac |
| 7308 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7309 | $as_echo "$ac_try_echo") >&5 |
| 7310 | (eval "$ac_compile") 2>conftest.er1 |
| 7311 | ac_status=$? |
| 7312 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7313 | rm -f conftest.er1 |
| 7314 | cat conftest.err >&5 |
| 7315 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7316 | (exit $ac_status); } && { |
| 7317 | test -z "$ac_c_werror_flag" || |
| 7318 | test ! -s conftest.err |
| 7319 | } && test -s conftest.$ac_objext; then |
| 7320 | : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7321 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7322 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7324 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7325 | ac_cv_type_mode_t=yes |
| 7326 | fi |
| 7327 | |
| 7328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7329 | else |
| 7330 | $as_echo "$as_me: failed program was:" >&5 |
| 7331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7332 | |
| 7333 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7334 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7335 | |
| 7336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7337 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7338 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 7339 | $as_echo "$ac_cv_type_mode_t" >&6; } |
| 7340 | if test "x$ac_cv_type_mode_t" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7341 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7342 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7343 | |
| 7344 | cat >>confdefs.h <<_ACEOF |
| 7345 | #define mode_t int |
| 7346 | _ACEOF |
| 7347 | |
| 7348 | fi |
| 7349 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7350 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 |
| 7351 | $as_echo_n "checking for off_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7352 | if test "${ac_cv_type_off_t+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7353 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7354 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7355 | ac_cv_type_off_t=no |
| 7356 | cat >conftest.$ac_ext <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7357 | /* confdefs.h. */ |
| 7358 | _ACEOF |
| 7359 | cat confdefs.h >>conftest.$ac_ext |
| 7360 | cat >>conftest.$ac_ext <<_ACEOF |
| 7361 | /* end confdefs.h. */ |
| 7362 | $ac_includes_default |
| 7363 | int |
| 7364 | main () |
| 7365 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7366 | if (sizeof (off_t)) |
| 7367 | return 0; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7368 | ; |
| 7369 | return 0; |
| 7370 | } |
| 7371 | _ACEOF |
| 7372 | rm -f conftest.$ac_objext |
| 7373 | if { (ac_try="$ac_compile" |
| 7374 | case "(($ac_try" in |
| 7375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7376 | *) ac_try_echo=$ac_try;; |
| 7377 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7378 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7379 | $as_echo "$ac_try_echo") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7380 | (eval "$ac_compile") 2>conftest.er1 |
| 7381 | ac_status=$? |
| 7382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7383 | rm -f conftest.er1 |
| 7384 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7385 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7386 | (exit $ac_status); } && { |
| 7387 | test -z "$ac_c_werror_flag" || |
| 7388 | test ! -s conftest.err |
| 7389 | } && test -s conftest.$ac_objext; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7390 | cat >conftest.$ac_ext <<_ACEOF |
| 7391 | /* confdefs.h. */ |
| 7392 | _ACEOF |
| 7393 | cat confdefs.h >>conftest.$ac_ext |
| 7394 | cat >>conftest.$ac_ext <<_ACEOF |
| 7395 | /* end confdefs.h. */ |
| 7396 | $ac_includes_default |
| 7397 | int |
| 7398 | main () |
| 7399 | { |
| 7400 | if (sizeof ((off_t))) |
| 7401 | return 0; |
| 7402 | ; |
| 7403 | return 0; |
| 7404 | } |
| 7405 | _ACEOF |
| 7406 | rm -f conftest.$ac_objext |
| 7407 | if { (ac_try="$ac_compile" |
| 7408 | case "(($ac_try" in |
| 7409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7410 | *) ac_try_echo=$ac_try;; |
| 7411 | esac |
| 7412 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7413 | $as_echo "$ac_try_echo") >&5 |
| 7414 | (eval "$ac_compile") 2>conftest.er1 |
| 7415 | ac_status=$? |
| 7416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7417 | rm -f conftest.er1 |
| 7418 | cat conftest.err >&5 |
| 7419 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7420 | (exit $ac_status); } && { |
| 7421 | test -z "$ac_c_werror_flag" || |
| 7422 | test ! -s conftest.err |
| 7423 | } && test -s conftest.$ac_objext; then |
| 7424 | : |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7425 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7426 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7428 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7429 | ac_cv_type_off_t=yes |
| 7430 | fi |
| 7431 | |
| 7432 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7433 | else |
| 7434 | $as_echo "$as_me: failed program was:" >&5 |
| 7435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7436 | |
| 7437 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7438 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7439 | |
| 7440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7441 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7442 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 7443 | $as_echo "$ac_cv_type_off_t" >&6; } |
| 7444 | if test "x$ac_cv_type_off_t" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7445 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7446 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7447 | |
| 7448 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7449 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7450 | _ACEOF |
| 7451 | |
| 7452 | fi |
| 7453 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7454 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 7455 | $as_echo_n "checking for pid_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7456 | if test "${ac_cv_type_pid_t+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7457 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7458 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7459 | ac_cv_type_pid_t=no |
| 7460 | cat >conftest.$ac_ext <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7461 | /* confdefs.h. */ |
| 7462 | _ACEOF |
| 7463 | cat confdefs.h >>conftest.$ac_ext |
| 7464 | cat >>conftest.$ac_ext <<_ACEOF |
| 7465 | /* end confdefs.h. */ |
| 7466 | $ac_includes_default |
| 7467 | int |
| 7468 | main () |
| 7469 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7470 | if (sizeof (pid_t)) |
| 7471 | return 0; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7472 | ; |
| 7473 | return 0; |
| 7474 | } |
| 7475 | _ACEOF |
| 7476 | rm -f conftest.$ac_objext |
| 7477 | if { (ac_try="$ac_compile" |
| 7478 | case "(($ac_try" in |
| 7479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7480 | *) ac_try_echo=$ac_try;; |
| 7481 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7482 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7483 | $as_echo "$ac_try_echo") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7484 | (eval "$ac_compile") 2>conftest.er1 |
| 7485 | ac_status=$? |
| 7486 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7487 | rm -f conftest.er1 |
| 7488 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7489 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7490 | (exit $ac_status); } && { |
| 7491 | test -z "$ac_c_werror_flag" || |
| 7492 | test ! -s conftest.err |
| 7493 | } && test -s conftest.$ac_objext; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7494 | cat >conftest.$ac_ext <<_ACEOF |
| 7495 | /* confdefs.h. */ |
| 7496 | _ACEOF |
| 7497 | cat confdefs.h >>conftest.$ac_ext |
| 7498 | cat >>conftest.$ac_ext <<_ACEOF |
| 7499 | /* end confdefs.h. */ |
| 7500 | $ac_includes_default |
| 7501 | int |
| 7502 | main () |
| 7503 | { |
| 7504 | if (sizeof ((pid_t))) |
| 7505 | return 0; |
| 7506 | ; |
| 7507 | return 0; |
| 7508 | } |
| 7509 | _ACEOF |
| 7510 | rm -f conftest.$ac_objext |
| 7511 | if { (ac_try="$ac_compile" |
| 7512 | case "(($ac_try" in |
| 7513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7514 | *) ac_try_echo=$ac_try;; |
| 7515 | esac |
| 7516 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7517 | $as_echo "$ac_try_echo") >&5 |
| 7518 | (eval "$ac_compile") 2>conftest.er1 |
| 7519 | ac_status=$? |
| 7520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7521 | rm -f conftest.er1 |
| 7522 | cat conftest.err >&5 |
| 7523 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7524 | (exit $ac_status); } && { |
| 7525 | test -z "$ac_c_werror_flag" || |
| 7526 | test ! -s conftest.err |
| 7527 | } && test -s conftest.$ac_objext; then |
| 7528 | : |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7529 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7530 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7532 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7533 | ac_cv_type_pid_t=yes |
| 7534 | fi |
| 7535 | |
| 7536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7537 | else |
| 7538 | $as_echo "$as_me: failed program was:" >&5 |
| 7539 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7540 | |
| 7541 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7542 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7543 | |
| 7544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7545 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7546 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 7547 | $as_echo "$ac_cv_type_pid_t" >&6; } |
| 7548 | if test "x$ac_cv_type_pid_t" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7549 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7550 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7551 | |
| 7552 | cat >>confdefs.h <<_ACEOF |
| 7553 | #define pid_t int |
| 7554 | _ACEOF |
| 7555 | |
| 7556 | fi |
| 7557 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7558 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 7559 | $as_echo_n "checking return type of signal handlers... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7560 | if test "${ac_cv_type_signal+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7561 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7562 | else |
| 7563 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7564 | /* confdefs.h. */ |
| 7565 | _ACEOF |
| 7566 | cat confdefs.h >>conftest.$ac_ext |
| 7567 | cat >>conftest.$ac_ext <<_ACEOF |
| 7568 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7569 | #include <sys/types.h> |
| 7570 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7571 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7572 | int |
| 7573 | main () |
| 7574 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7575 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7586 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7587 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7588 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7589 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7591 | rm -f conftest.er1 |
| 7592 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7593 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7594 | (exit $ac_status); } && { |
| 7595 | test -z "$ac_c_werror_flag" || |
| 7596 | test ! -s conftest.err |
| 7597 | } && test -s conftest.$ac_objext; then |
| 7598 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7599 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7600 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7602 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7603 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7604 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7605 | |
| 7606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7607 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7608 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 7609 | $as_echo "$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7610 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7611 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7612 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7613 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7614 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7615 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7616 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
| 7617 | $as_echo_n "checking for size_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7618 | if test "${ac_cv_type_size_t+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7619 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7620 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7621 | ac_cv_type_size_t=no |
| 7622 | cat >conftest.$ac_ext <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7623 | /* confdefs.h. */ |
| 7624 | _ACEOF |
| 7625 | cat confdefs.h >>conftest.$ac_ext |
| 7626 | cat >>conftest.$ac_ext <<_ACEOF |
| 7627 | /* end confdefs.h. */ |
| 7628 | $ac_includes_default |
| 7629 | int |
| 7630 | main () |
| 7631 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7632 | if (sizeof (size_t)) |
| 7633 | return 0; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7634 | ; |
| 7635 | return 0; |
| 7636 | } |
| 7637 | _ACEOF |
| 7638 | rm -f conftest.$ac_objext |
| 7639 | if { (ac_try="$ac_compile" |
| 7640 | case "(($ac_try" in |
| 7641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7642 | *) ac_try_echo=$ac_try;; |
| 7643 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7644 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7645 | $as_echo "$ac_try_echo") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7646 | (eval "$ac_compile") 2>conftest.er1 |
| 7647 | ac_status=$? |
| 7648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7649 | rm -f conftest.er1 |
| 7650 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7651 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 7652 | (exit $ac_status); } && { |
| 7653 | test -z "$ac_c_werror_flag" || |
| 7654 | test ! -s conftest.err |
| 7655 | } && test -s conftest.$ac_objext; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7656 | cat >conftest.$ac_ext <<_ACEOF |
| 7657 | /* confdefs.h. */ |
| 7658 | _ACEOF |
| 7659 | cat confdefs.h >>conftest.$ac_ext |
| 7660 | cat >>conftest.$ac_ext <<_ACEOF |
| 7661 | /* end confdefs.h. */ |
| 7662 | $ac_includes_default |
| 7663 | int |
| 7664 | main () |
| 7665 | { |
| 7666 | if (sizeof ((size_t))) |
| 7667 | return 0; |
| 7668 | ; |
| 7669 | return 0; |
| 7670 | } |
| 7671 | _ACEOF |
| 7672 | rm -f conftest.$ac_objext |
| 7673 | if { (ac_try="$ac_compile" |
| 7674 | case "(($ac_try" in |
| 7675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7676 | *) ac_try_echo=$ac_try;; |
| 7677 | esac |
| 7678 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7679 | $as_echo "$ac_try_echo") >&5 |
| 7680 | (eval "$ac_compile") 2>conftest.er1 |
| 7681 | ac_status=$? |
| 7682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7683 | rm -f conftest.er1 |
| 7684 | cat conftest.err >&5 |
| 7685 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7686 | (exit $ac_status); } && { |
| 7687 | test -z "$ac_c_werror_flag" || |
| 7688 | test ! -s conftest.err |
| 7689 | } && test -s conftest.$ac_objext; then |
| 7690 | : |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7691 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7692 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7694 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7695 | ac_cv_type_size_t=yes |
| 7696 | fi |
| 7697 | |
| 7698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7699 | else |
| 7700 | $as_echo "$as_me: failed program was:" >&5 |
| 7701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7702 | |
| 7703 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7704 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7705 | |
| 7706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7707 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7708 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 7709 | $as_echo "$ac_cv_type_size_t" >&6; } |
| 7710 | if test "x$ac_cv_type_size_t" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7711 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7712 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7713 | |
| 7714 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7715 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7716 | _ACEOF |
| 7717 | |
| 7718 | fi |
| 7719 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7720 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 7721 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7722 | if test "${ac_cv_type_uid_t+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7723 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7724 | else |
| 7725 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7726 | /* confdefs.h. */ |
| 7727 | _ACEOF |
| 7728 | cat confdefs.h >>conftest.$ac_ext |
| 7729 | cat >>conftest.$ac_ext <<_ACEOF |
| 7730 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7731 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7732 | |
| 7733 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7734 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7735 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7736 | ac_cv_type_uid_t=yes |
| 7737 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7738 | ac_cv_type_uid_t=no |
| 7739 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7740 | rm -f conftest* |
| 7741 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7742 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7743 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 7744 | $as_echo "$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7745 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7746 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7747 | cat >>confdefs.h <<\_ACEOF |
| 7748 | #define uid_t int |
| 7749 | _ACEOF |
| 7750 | |
| 7751 | |
| 7752 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7753 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7754 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7755 | |
| 7756 | fi |
| 7757 | |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7758 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7759 | { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 7760 | $as_echo_n "checking for uint32_t... " >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7761 | if test "${ac_cv_c_uint32_t+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7762 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7763 | else |
| 7764 | ac_cv_c_uint32_t=no |
| 7765 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
| 7766 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7767 | cat >conftest.$ac_ext <<_ACEOF |
| 7768 | /* confdefs.h. */ |
| 7769 | _ACEOF |
| 7770 | cat confdefs.h >>conftest.$ac_ext |
| 7771 | cat >>conftest.$ac_ext <<_ACEOF |
| 7772 | /* end confdefs.h. */ |
| 7773 | $ac_includes_default |
| 7774 | int |
| 7775 | main () |
| 7776 | { |
| 7777 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
| 7778 | test_array [0] = 0 |
| 7779 | |
| 7780 | ; |
| 7781 | return 0; |
| 7782 | } |
| 7783 | _ACEOF |
| 7784 | rm -f conftest.$ac_objext |
| 7785 | if { (ac_try="$ac_compile" |
| 7786 | case "(($ac_try" in |
| 7787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7788 | *) ac_try_echo=$ac_try;; |
| 7789 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7790 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7791 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7792 | (eval "$ac_compile") 2>conftest.er1 |
| 7793 | ac_status=$? |
| 7794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7795 | rm -f conftest.er1 |
| 7796 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7797 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7798 | (exit $ac_status); } && { |
| 7799 | test -z "$ac_c_werror_flag" || |
| 7800 | test ! -s conftest.err |
| 7801 | } && test -s conftest.$ac_objext; then |
| 7802 | case $ac_type in |
| 7803 | uint32_t) ac_cv_c_uint32_t=yes ;; |
| 7804 | *) ac_cv_c_uint32_t=$ac_type ;; |
| 7805 | esac |
| 7806 | |
| 7807 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7808 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7810 | |
| 7811 | |
| 7812 | fi |
| 7813 | |
| 7814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7815 | test "$ac_cv_c_uint32_t" != no && break |
| 7816 | done |
| 7817 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7818 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
| 7819 | $as_echo "$ac_cv_c_uint32_t" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7820 | case $ac_cv_c_uint32_t in #( |
| 7821 | no|yes) ;; #( |
| 7822 | *) |
| 7823 | |
| 7824 | cat >>confdefs.h <<\_ACEOF |
| 7825 | #define _UINT32_T 1 |
| 7826 | _ACEOF |
| 7827 | |
| 7828 | |
| 7829 | cat >>confdefs.h <<_ACEOF |
| 7830 | #define uint32_t $ac_cv_c_uint32_t |
| 7831 | _ACEOF |
| 7832 | ;; |
| 7833 | esac |
| 7834 | |
| 7835 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7836 | { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 7837 | $as_echo_n "checking for uint64_t... " >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7838 | if test "${ac_cv_c_uint64_t+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7839 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7840 | else |
| 7841 | ac_cv_c_uint64_t=no |
| 7842 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ |
| 7843 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7844 | cat >conftest.$ac_ext <<_ACEOF |
| 7845 | /* confdefs.h. */ |
| 7846 | _ACEOF |
| 7847 | cat confdefs.h >>conftest.$ac_ext |
| 7848 | cat >>conftest.$ac_ext <<_ACEOF |
| 7849 | /* end confdefs.h. */ |
| 7850 | $ac_includes_default |
| 7851 | int |
| 7852 | main () |
| 7853 | { |
| 7854 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
| 7855 | test_array [0] = 0 |
| 7856 | |
| 7857 | ; |
| 7858 | return 0; |
| 7859 | } |
| 7860 | _ACEOF |
| 7861 | rm -f conftest.$ac_objext |
| 7862 | if { (ac_try="$ac_compile" |
| 7863 | case "(($ac_try" in |
| 7864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7865 | *) ac_try_echo=$ac_try;; |
| 7866 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7867 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7868 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7869 | (eval "$ac_compile") 2>conftest.er1 |
| 7870 | ac_status=$? |
| 7871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7872 | rm -f conftest.er1 |
| 7873 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7874 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7875 | (exit $ac_status); } && { |
| 7876 | test -z "$ac_c_werror_flag" || |
| 7877 | test ! -s conftest.err |
| 7878 | } && test -s conftest.$ac_objext; then |
| 7879 | case $ac_type in |
| 7880 | uint64_t) ac_cv_c_uint64_t=yes ;; |
| 7881 | *) ac_cv_c_uint64_t=$ac_type ;; |
| 7882 | esac |
| 7883 | |
| 7884 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7885 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7887 | |
| 7888 | |
| 7889 | fi |
| 7890 | |
| 7891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7892 | test "$ac_cv_c_uint64_t" != no && break |
| 7893 | done |
| 7894 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7895 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
| 7896 | $as_echo "$ac_cv_c_uint64_t" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7897 | case $ac_cv_c_uint64_t in #( |
| 7898 | no|yes) ;; #( |
| 7899 | *) |
| 7900 | |
| 7901 | cat >>confdefs.h <<\_ACEOF |
| 7902 | #define _UINT64_T 1 |
| 7903 | _ACEOF |
| 7904 | |
| 7905 | |
| 7906 | cat >>confdefs.h <<_ACEOF |
| 7907 | #define uint64_t $ac_cv_c_uint64_t |
| 7908 | _ACEOF |
| 7909 | ;; |
| 7910 | esac |
| 7911 | |
| 7912 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7913 | { $as_echo "$as_me:$LINENO: checking for int32_t" >&5 |
| 7914 | $as_echo_n "checking for int32_t... " >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7915 | if test "${ac_cv_c_int32_t+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7916 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7917 | else |
| 7918 | ac_cv_c_int32_t=no |
| 7919 | for ac_type in 'int32_t' 'int' 'long int' \ |
| 7920 | 'long long int' 'short int' 'signed char'; do |
| 7921 | cat >conftest.$ac_ext <<_ACEOF |
| 7922 | /* confdefs.h. */ |
| 7923 | _ACEOF |
| 7924 | cat confdefs.h >>conftest.$ac_ext |
| 7925 | cat >>conftest.$ac_ext <<_ACEOF |
| 7926 | /* end confdefs.h. */ |
| 7927 | $ac_includes_default |
| 7928 | int |
| 7929 | main () |
| 7930 | { |
| 7931 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
| 7932 | test_array [0] = 0 |
| 7933 | |
| 7934 | ; |
| 7935 | return 0; |
| 7936 | } |
| 7937 | _ACEOF |
| 7938 | rm -f conftest.$ac_objext |
| 7939 | if { (ac_try="$ac_compile" |
| 7940 | case "(($ac_try" in |
| 7941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7942 | *) ac_try_echo=$ac_try;; |
| 7943 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7944 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7945 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7946 | (eval "$ac_compile") 2>conftest.er1 |
| 7947 | ac_status=$? |
| 7948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7949 | rm -f conftest.er1 |
| 7950 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7951 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7952 | (exit $ac_status); } && { |
| 7953 | test -z "$ac_c_werror_flag" || |
| 7954 | test ! -s conftest.err |
| 7955 | } && test -s conftest.$ac_objext; then |
| 7956 | cat >conftest.$ac_ext <<_ACEOF |
| 7957 | /* confdefs.h. */ |
| 7958 | _ACEOF |
| 7959 | cat confdefs.h >>conftest.$ac_ext |
| 7960 | cat >>conftest.$ac_ext <<_ACEOF |
| 7961 | /* end confdefs.h. */ |
| 7962 | $ac_includes_default |
| 7963 | int |
| 7964 | main () |
| 7965 | { |
| 7966 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7967 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7968 | test_array [0] = 0 |
| 7969 | |
| 7970 | ; |
| 7971 | return 0; |
| 7972 | } |
| 7973 | _ACEOF |
| 7974 | rm -f conftest.$ac_objext |
| 7975 | if { (ac_try="$ac_compile" |
| 7976 | case "(($ac_try" in |
| 7977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7978 | *) ac_try_echo=$ac_try;; |
| 7979 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7980 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7981 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7982 | (eval "$ac_compile") 2>conftest.er1 |
| 7983 | ac_status=$? |
| 7984 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7985 | rm -f conftest.er1 |
| 7986 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7987 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7988 | (exit $ac_status); } && { |
| 7989 | test -z "$ac_c_werror_flag" || |
| 7990 | test ! -s conftest.err |
| 7991 | } && test -s conftest.$ac_objext; then |
| 7992 | : |
| 7993 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 7994 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 7995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7996 | |
| 7997 | case $ac_type in |
| 7998 | int32_t) ac_cv_c_int32_t=yes ;; |
| 7999 | *) ac_cv_c_int32_t=$ac_type ;; |
| 8000 | esac |
| 8001 | |
| 8002 | fi |
| 8003 | |
| 8004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8005 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8006 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8008 | |
| 8009 | |
| 8010 | fi |
| 8011 | |
| 8012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8013 | test "$ac_cv_c_int32_t" != no && break |
| 8014 | done |
| 8015 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8016 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
| 8017 | $as_echo "$ac_cv_c_int32_t" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8018 | case $ac_cv_c_int32_t in #( |
| 8019 | no|yes) ;; #( |
| 8020 | *) |
| 8021 | |
| 8022 | cat >>confdefs.h <<_ACEOF |
| 8023 | #define int32_t $ac_cv_c_int32_t |
| 8024 | _ACEOF |
| 8025 | ;; |
| 8026 | esac |
| 8027 | |
| 8028 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8029 | { $as_echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 8030 | $as_echo_n "checking for int64_t... " >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8031 | if test "${ac_cv_c_int64_t+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8032 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8033 | else |
| 8034 | ac_cv_c_int64_t=no |
| 8035 | for ac_type in 'int64_t' 'int' 'long int' \ |
| 8036 | 'long long int' 'short int' 'signed char'; do |
| 8037 | cat >conftest.$ac_ext <<_ACEOF |
| 8038 | /* confdefs.h. */ |
| 8039 | _ACEOF |
| 8040 | cat confdefs.h >>conftest.$ac_ext |
| 8041 | cat >>conftest.$ac_ext <<_ACEOF |
| 8042 | /* end confdefs.h. */ |
| 8043 | $ac_includes_default |
| 8044 | int |
| 8045 | main () |
| 8046 | { |
| 8047 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
| 8048 | test_array [0] = 0 |
| 8049 | |
| 8050 | ; |
| 8051 | return 0; |
| 8052 | } |
| 8053 | _ACEOF |
| 8054 | rm -f conftest.$ac_objext |
| 8055 | if { (ac_try="$ac_compile" |
| 8056 | case "(($ac_try" in |
| 8057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8058 | *) ac_try_echo=$ac_try;; |
| 8059 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8060 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8061 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8062 | (eval "$ac_compile") 2>conftest.er1 |
| 8063 | ac_status=$? |
| 8064 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8065 | rm -f conftest.er1 |
| 8066 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8067 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8068 | (exit $ac_status); } && { |
| 8069 | test -z "$ac_c_werror_flag" || |
| 8070 | test ! -s conftest.err |
| 8071 | } && test -s conftest.$ac_objext; then |
| 8072 | cat >conftest.$ac_ext <<_ACEOF |
| 8073 | /* confdefs.h. */ |
| 8074 | _ACEOF |
| 8075 | cat confdefs.h >>conftest.$ac_ext |
| 8076 | cat >>conftest.$ac_ext <<_ACEOF |
| 8077 | /* end confdefs.h. */ |
| 8078 | $ac_includes_default |
| 8079 | int |
| 8080 | main () |
| 8081 | { |
| 8082 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8083 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8084 | test_array [0] = 0 |
| 8085 | |
| 8086 | ; |
| 8087 | return 0; |
| 8088 | } |
| 8089 | _ACEOF |
| 8090 | rm -f conftest.$ac_objext |
| 8091 | if { (ac_try="$ac_compile" |
| 8092 | case "(($ac_try" in |
| 8093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8094 | *) ac_try_echo=$ac_try;; |
| 8095 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8096 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8097 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8098 | (eval "$ac_compile") 2>conftest.er1 |
| 8099 | ac_status=$? |
| 8100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8101 | rm -f conftest.er1 |
| 8102 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8103 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8104 | (exit $ac_status); } && { |
| 8105 | test -z "$ac_c_werror_flag" || |
| 8106 | test ! -s conftest.err |
| 8107 | } && test -s conftest.$ac_objext; then |
| 8108 | : |
| 8109 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8110 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8112 | |
| 8113 | case $ac_type in |
| 8114 | int64_t) ac_cv_c_int64_t=yes ;; |
| 8115 | *) ac_cv_c_int64_t=$ac_type ;; |
| 8116 | esac |
| 8117 | |
| 8118 | fi |
| 8119 | |
| 8120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8121 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8122 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8123 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8124 | |
| 8125 | |
| 8126 | fi |
| 8127 | |
| 8128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8129 | test "$ac_cv_c_int64_t" != no && break |
| 8130 | done |
| 8131 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8132 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
| 8133 | $as_echo "$ac_cv_c_int64_t" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8134 | case $ac_cv_c_int64_t in #( |
| 8135 | no|yes) ;; #( |
| 8136 | *) |
| 8137 | |
| 8138 | cat >>confdefs.h <<_ACEOF |
| 8139 | #define int64_t $ac_cv_c_int64_t |
| 8140 | _ACEOF |
| 8141 | ;; |
| 8142 | esac |
| 8143 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8144 | { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 8145 | $as_echo_n "checking for ssize_t... " >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8146 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8147 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8148 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8149 | ac_cv_type_ssize_t=no |
| 8150 | cat >conftest.$ac_ext <<_ACEOF |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8151 | /* confdefs.h. */ |
| 8152 | _ACEOF |
| 8153 | cat confdefs.h >>conftest.$ac_ext |
| 8154 | cat >>conftest.$ac_ext <<_ACEOF |
| 8155 | /* end confdefs.h. */ |
| 8156 | $ac_includes_default |
| 8157 | int |
| 8158 | main () |
| 8159 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8160 | if (sizeof (ssize_t)) |
| 8161 | return 0; |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8162 | ; |
| 8163 | return 0; |
| 8164 | } |
| 8165 | _ACEOF |
| 8166 | rm -f conftest.$ac_objext |
| 8167 | if { (ac_try="$ac_compile" |
| 8168 | case "(($ac_try" in |
| 8169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8170 | *) ac_try_echo=$ac_try;; |
| 8171 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8172 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8173 | $as_echo "$ac_try_echo") >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8174 | (eval "$ac_compile") 2>conftest.er1 |
| 8175 | ac_status=$? |
| 8176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8177 | rm -f conftest.er1 |
| 8178 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8179 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 8180 | (exit $ac_status); } && { |
| 8181 | test -z "$ac_c_werror_flag" || |
| 8182 | test ! -s conftest.err |
| 8183 | } && test -s conftest.$ac_objext; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8184 | cat >conftest.$ac_ext <<_ACEOF |
| 8185 | /* confdefs.h. */ |
| 8186 | _ACEOF |
| 8187 | cat confdefs.h >>conftest.$ac_ext |
| 8188 | cat >>conftest.$ac_ext <<_ACEOF |
| 8189 | /* end confdefs.h. */ |
| 8190 | $ac_includes_default |
| 8191 | int |
| 8192 | main () |
| 8193 | { |
| 8194 | if (sizeof ((ssize_t))) |
| 8195 | return 0; |
| 8196 | ; |
| 8197 | return 0; |
| 8198 | } |
| 8199 | _ACEOF |
| 8200 | rm -f conftest.$ac_objext |
| 8201 | if { (ac_try="$ac_compile" |
| 8202 | case "(($ac_try" in |
| 8203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8204 | *) ac_try_echo=$ac_try;; |
| 8205 | esac |
| 8206 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8207 | $as_echo "$ac_try_echo") >&5 |
| 8208 | (eval "$ac_compile") 2>conftest.er1 |
| 8209 | ac_status=$? |
| 8210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8211 | rm -f conftest.er1 |
| 8212 | cat conftest.err >&5 |
| 8213 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8214 | (exit $ac_status); } && { |
| 8215 | test -z "$ac_c_werror_flag" || |
| 8216 | test ! -s conftest.err |
| 8217 | } && test -s conftest.$ac_objext; then |
| 8218 | : |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8219 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8220 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8222 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8223 | ac_cv_type_ssize_t=yes |
| 8224 | fi |
| 8225 | |
| 8226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8227 | else |
| 8228 | $as_echo "$as_me: failed program was:" >&5 |
| 8229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8230 | |
| 8231 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8232 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8233 | |
| 8234 | 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] | 8235 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8236 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 8237 | $as_echo "$ac_cv_type_ssize_t" >&6; } |
| 8238 | if test "x$ac_cv_type_ssize_t" = x""yes; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8239 | |
| 8240 | cat >>confdefs.h <<\_ACEOF |
| 8241 | #define HAVE_SSIZE_T 1 |
| 8242 | _ACEOF |
| 8243 | |
| 8244 | fi |
| 8245 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8246 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8247 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 8248 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8249 | # The cast to long int works around a bug in the HP C Compiler |
| 8250 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8251 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8252 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8253 | { $as_echo "$as_me:$LINENO: checking size of int" >&5 |
| 8254 | $as_echo_n "checking size of int... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8255 | if test "${ac_cv_sizeof_int+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8256 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8257 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8258 | if test "$cross_compiling" = yes; then |
| 8259 | # Depending upon the size, compute the lo and hi bounds. |
| 8260 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8261 | /* confdefs.h. */ |
| 8262 | _ACEOF |
| 8263 | cat confdefs.h >>conftest.$ac_ext |
| 8264 | cat >>conftest.$ac_ext <<_ACEOF |
| 8265 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8266 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8267 | int |
| 8268 | main () |
| 8269 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8270 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8271 | test_array [0] = 0 |
| 8272 | |
| 8273 | ; |
| 8274 | return 0; |
| 8275 | } |
| 8276 | _ACEOF |
| 8277 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8278 | if { (ac_try="$ac_compile" |
| 8279 | case "(($ac_try" in |
| 8280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8281 | *) ac_try_echo=$ac_try;; |
| 8282 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8283 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8284 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8285 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8286 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8288 | rm -f conftest.er1 |
| 8289 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8290 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8291 | (exit $ac_status); } && { |
| 8292 | test -z "$ac_c_werror_flag" || |
| 8293 | test ! -s conftest.err |
| 8294 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8295 | ac_lo=0 ac_mid=0 |
| 8296 | while :; do |
| 8297 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8298 | /* confdefs.h. */ |
| 8299 | _ACEOF |
| 8300 | cat confdefs.h >>conftest.$ac_ext |
| 8301 | cat >>conftest.$ac_ext <<_ACEOF |
| 8302 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8303 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8304 | int |
| 8305 | main () |
| 8306 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8307 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8308 | test_array [0] = 0 |
| 8309 | |
| 8310 | ; |
| 8311 | return 0; |
| 8312 | } |
| 8313 | _ACEOF |
| 8314 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8315 | if { (ac_try="$ac_compile" |
| 8316 | case "(($ac_try" in |
| 8317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8318 | *) ac_try_echo=$ac_try;; |
| 8319 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8320 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8321 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8322 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8323 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8324 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8325 | rm -f conftest.er1 |
| 8326 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8327 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8328 | (exit $ac_status); } && { |
| 8329 | test -z "$ac_c_werror_flag" || |
| 8330 | test ! -s conftest.err |
| 8331 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8332 | ac_hi=$ac_mid; break |
| 8333 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8334 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8336 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8337 | ac_lo=`expr $ac_mid + 1` |
| 8338 | if test $ac_lo -le $ac_mid; then |
| 8339 | ac_lo= ac_hi= |
| 8340 | break |
| 8341 | fi |
| 8342 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8343 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8344 | |
| 8345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8346 | done |
| 8347 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8348 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8350 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8351 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8352 | /* confdefs.h. */ |
| 8353 | _ACEOF |
| 8354 | cat confdefs.h >>conftest.$ac_ext |
| 8355 | cat >>conftest.$ac_ext <<_ACEOF |
| 8356 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8357 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8358 | int |
| 8359 | main () |
| 8360 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8361 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8362 | test_array [0] = 0 |
| 8363 | |
| 8364 | ; |
| 8365 | return 0; |
| 8366 | } |
| 8367 | _ACEOF |
| 8368 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8369 | if { (ac_try="$ac_compile" |
| 8370 | case "(($ac_try" in |
| 8371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8372 | *) ac_try_echo=$ac_try;; |
| 8373 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8374 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8375 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8376 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8377 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8379 | rm -f conftest.er1 |
| 8380 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8381 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8382 | (exit $ac_status); } && { |
| 8383 | test -z "$ac_c_werror_flag" || |
| 8384 | test ! -s conftest.err |
| 8385 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8386 | ac_hi=-1 ac_mid=-1 |
| 8387 | while :; do |
| 8388 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8389 | /* confdefs.h. */ |
| 8390 | _ACEOF |
| 8391 | cat confdefs.h >>conftest.$ac_ext |
| 8392 | cat >>conftest.$ac_ext <<_ACEOF |
| 8393 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8394 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8395 | int |
| 8396 | main () |
| 8397 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8398 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8399 | test_array [0] = 0 |
| 8400 | |
| 8401 | ; |
| 8402 | return 0; |
| 8403 | } |
| 8404 | _ACEOF |
| 8405 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8406 | if { (ac_try="$ac_compile" |
| 8407 | case "(($ac_try" in |
| 8408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8409 | *) ac_try_echo=$ac_try;; |
| 8410 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8411 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8412 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8413 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8414 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8415 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8416 | rm -f conftest.er1 |
| 8417 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8418 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8419 | (exit $ac_status); } && { |
| 8420 | test -z "$ac_c_werror_flag" || |
| 8421 | test ! -s conftest.err |
| 8422 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8423 | ac_lo=$ac_mid; break |
| 8424 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8425 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8427 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8428 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8429 | if test $ac_mid -le $ac_hi; then |
| 8430 | ac_lo= ac_hi= |
| 8431 | break |
| 8432 | fi |
| 8433 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8434 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8435 | |
| 8436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8437 | done |
| 8438 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8439 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8441 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8442 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8443 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8444 | |
| 8445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8446 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8447 | |
| 8448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8449 | # Binary search between lo and hi bounds. |
| 8450 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8451 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8452 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8453 | /* confdefs.h. */ |
| 8454 | _ACEOF |
| 8455 | cat confdefs.h >>conftest.$ac_ext |
| 8456 | cat >>conftest.$ac_ext <<_ACEOF |
| 8457 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8458 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8459 | int |
| 8460 | main () |
| 8461 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8462 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8463 | test_array [0] = 0 |
| 8464 | |
| 8465 | ; |
| 8466 | return 0; |
| 8467 | } |
| 8468 | _ACEOF |
| 8469 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8470 | if { (ac_try="$ac_compile" |
| 8471 | case "(($ac_try" in |
| 8472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8473 | *) ac_try_echo=$ac_try;; |
| 8474 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8475 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8476 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8477 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8478 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8480 | rm -f conftest.er1 |
| 8481 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8482 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8483 | (exit $ac_status); } && { |
| 8484 | test -z "$ac_c_werror_flag" || |
| 8485 | test ! -s conftest.err |
| 8486 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8487 | ac_hi=$ac_mid |
| 8488 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8489 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8491 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8492 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8493 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8494 | |
| 8495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8496 | done |
| 8497 | case $ac_lo in |
| 8498 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8499 | '') if test "$ac_cv_type_int" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8500 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 8501 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8502 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8503 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8504 | $as_echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8505 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8506 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8507 | else |
| 8508 | ac_cv_sizeof_int=0 |
| 8509 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8510 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8511 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8512 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8513 | /* confdefs.h. */ |
| 8514 | _ACEOF |
| 8515 | cat confdefs.h >>conftest.$ac_ext |
| 8516 | cat >>conftest.$ac_ext <<_ACEOF |
| 8517 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8518 | $ac_includes_default |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8519 | static long int longval () { return (long int) (sizeof (int)); } |
| 8520 | static unsigned long int ulongval () { return (long int) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8521 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8522 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8523 | int |
| 8524 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8525 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8526 | |
| 8527 | FILE *f = fopen ("conftest.val", "w"); |
| 8528 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8529 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8530 | if (((long int) (sizeof (int))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8531 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8532 | long int i = longval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8533 | if (i != ((long int) (sizeof (int)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8534 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8535 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8536 | } |
| 8537 | else |
| 8538 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8539 | unsigned long int i = ulongval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8540 | if (i != ((long int) (sizeof (int)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8541 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8542 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8543 | } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8544 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 8545 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8546 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8547 | |
| 8548 | ; |
| 8549 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8550 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8551 | _ACEOF |
| 8552 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8553 | if { (ac_try="$ac_link" |
| 8554 | case "(($ac_try" in |
| 8555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8556 | *) ac_try_echo=$ac_try;; |
| 8557 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8558 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8559 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8560 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8561 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8562 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8563 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8564 | { (case "(($ac_try" in |
| 8565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8566 | *) ac_try_echo=$ac_try;; |
| 8567 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8568 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8569 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8570 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8571 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8572 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8573 | (exit $ac_status); }; }; then |
| 8574 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8575 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8576 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8577 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8579 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8580 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8581 | if test "$ac_cv_type_int" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8582 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 8583 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8584 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8585 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8586 | $as_echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8587 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8588 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8589 | else |
| 8590 | ac_cv_sizeof_int=0 |
| 8591 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8592 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8593 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8594 | 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] | 8595 | fi |
| 8596 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8597 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8598 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 8599 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8600 | |
| 8601 | |
| 8602 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8603 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8604 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8605 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8606 | |
| 8607 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8608 | # The cast to long int works around a bug in the HP C Compiler |
| 8609 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8610 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8611 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8612 | { $as_echo "$as_me:$LINENO: checking size of long" >&5 |
| 8613 | $as_echo_n "checking size of long... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8614 | if test "${ac_cv_sizeof_long+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8615 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8616 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8617 | if test "$cross_compiling" = yes; then |
| 8618 | # Depending upon the size, compute the lo and hi bounds. |
| 8619 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8620 | /* confdefs.h. */ |
| 8621 | _ACEOF |
| 8622 | cat confdefs.h >>conftest.$ac_ext |
| 8623 | cat >>conftest.$ac_ext <<_ACEOF |
| 8624 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8625 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8626 | int |
| 8627 | main () |
| 8628 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8629 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8630 | test_array [0] = 0 |
| 8631 | |
| 8632 | ; |
| 8633 | return 0; |
| 8634 | } |
| 8635 | _ACEOF |
| 8636 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8637 | if { (ac_try="$ac_compile" |
| 8638 | case "(($ac_try" in |
| 8639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8640 | *) ac_try_echo=$ac_try;; |
| 8641 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8642 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8643 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8644 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8645 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8646 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8647 | rm -f conftest.er1 |
| 8648 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8649 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8650 | (exit $ac_status); } && { |
| 8651 | test -z "$ac_c_werror_flag" || |
| 8652 | test ! -s conftest.err |
| 8653 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8654 | ac_lo=0 ac_mid=0 |
| 8655 | while :; do |
| 8656 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8657 | /* confdefs.h. */ |
| 8658 | _ACEOF |
| 8659 | cat confdefs.h >>conftest.$ac_ext |
| 8660 | cat >>conftest.$ac_ext <<_ACEOF |
| 8661 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8662 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8663 | int |
| 8664 | main () |
| 8665 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8666 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8667 | test_array [0] = 0 |
| 8668 | |
| 8669 | ; |
| 8670 | return 0; |
| 8671 | } |
| 8672 | _ACEOF |
| 8673 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8674 | if { (ac_try="$ac_compile" |
| 8675 | case "(($ac_try" in |
| 8676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8677 | *) ac_try_echo=$ac_try;; |
| 8678 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8679 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8680 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8681 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8682 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8683 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8684 | rm -f conftest.er1 |
| 8685 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8686 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8687 | (exit $ac_status); } && { |
| 8688 | test -z "$ac_c_werror_flag" || |
| 8689 | test ! -s conftest.err |
| 8690 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8691 | ac_hi=$ac_mid; break |
| 8692 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8693 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8695 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8696 | ac_lo=`expr $ac_mid + 1` |
| 8697 | if test $ac_lo -le $ac_mid; then |
| 8698 | ac_lo= ac_hi= |
| 8699 | break |
| 8700 | fi |
| 8701 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8702 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8703 | |
| 8704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8705 | done |
| 8706 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8707 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8708 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8709 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8710 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8711 | /* confdefs.h. */ |
| 8712 | _ACEOF |
| 8713 | cat confdefs.h >>conftest.$ac_ext |
| 8714 | cat >>conftest.$ac_ext <<_ACEOF |
| 8715 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8716 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8717 | int |
| 8718 | main () |
| 8719 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8720 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8721 | test_array [0] = 0 |
| 8722 | |
| 8723 | ; |
| 8724 | return 0; |
| 8725 | } |
| 8726 | _ACEOF |
| 8727 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8728 | if { (ac_try="$ac_compile" |
| 8729 | case "(($ac_try" in |
| 8730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8731 | *) ac_try_echo=$ac_try;; |
| 8732 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8733 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8734 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8735 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8736 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8737 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8738 | rm -f conftest.er1 |
| 8739 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8740 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8741 | (exit $ac_status); } && { |
| 8742 | test -z "$ac_c_werror_flag" || |
| 8743 | test ! -s conftest.err |
| 8744 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8745 | ac_hi=-1 ac_mid=-1 |
| 8746 | while :; do |
| 8747 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8748 | /* confdefs.h. */ |
| 8749 | _ACEOF |
| 8750 | cat confdefs.h >>conftest.$ac_ext |
| 8751 | cat >>conftest.$ac_ext <<_ACEOF |
| 8752 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8753 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8754 | int |
| 8755 | main () |
| 8756 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8757 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8758 | test_array [0] = 0 |
| 8759 | |
| 8760 | ; |
| 8761 | return 0; |
| 8762 | } |
| 8763 | _ACEOF |
| 8764 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8765 | if { (ac_try="$ac_compile" |
| 8766 | case "(($ac_try" in |
| 8767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8768 | *) ac_try_echo=$ac_try;; |
| 8769 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8770 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8771 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8772 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8773 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8774 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8775 | rm -f conftest.er1 |
| 8776 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8777 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8778 | (exit $ac_status); } && { |
| 8779 | test -z "$ac_c_werror_flag" || |
| 8780 | test ! -s conftest.err |
| 8781 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8782 | ac_lo=$ac_mid; break |
| 8783 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8784 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8786 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8787 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8788 | if test $ac_mid -le $ac_hi; then |
| 8789 | ac_lo= ac_hi= |
| 8790 | break |
| 8791 | fi |
| 8792 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8793 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8794 | |
| 8795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8796 | done |
| 8797 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8798 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8800 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8801 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8802 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8803 | |
| 8804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8805 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8806 | |
| 8807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8808 | # Binary search between lo and hi bounds. |
| 8809 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8810 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8811 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8812 | /* confdefs.h. */ |
| 8813 | _ACEOF |
| 8814 | cat confdefs.h >>conftest.$ac_ext |
| 8815 | cat >>conftest.$ac_ext <<_ACEOF |
| 8816 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8817 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8818 | int |
| 8819 | main () |
| 8820 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8821 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8822 | test_array [0] = 0 |
| 8823 | |
| 8824 | ; |
| 8825 | return 0; |
| 8826 | } |
| 8827 | _ACEOF |
| 8828 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8829 | if { (ac_try="$ac_compile" |
| 8830 | case "(($ac_try" in |
| 8831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8832 | *) ac_try_echo=$ac_try;; |
| 8833 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8834 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8835 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8836 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8837 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8838 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8839 | rm -f conftest.er1 |
| 8840 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8841 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8842 | (exit $ac_status); } && { |
| 8843 | test -z "$ac_c_werror_flag" || |
| 8844 | test ! -s conftest.err |
| 8845 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8846 | ac_hi=$ac_mid |
| 8847 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8848 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8850 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8851 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8852 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8853 | |
| 8854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8855 | done |
| 8856 | case $ac_lo in |
| 8857 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8858 | '') if test "$ac_cv_type_long" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8859 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 8860 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8861 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8862 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8863 | $as_echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8864 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8865 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8866 | else |
| 8867 | ac_cv_sizeof_long=0 |
| 8868 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8869 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8870 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8871 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8872 | /* confdefs.h. */ |
| 8873 | _ACEOF |
| 8874 | cat confdefs.h >>conftest.$ac_ext |
| 8875 | cat >>conftest.$ac_ext <<_ACEOF |
| 8876 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8877 | $ac_includes_default |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8878 | static long int longval () { return (long int) (sizeof (long)); } |
| 8879 | static unsigned long int ulongval () { return (long int) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8880 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8881 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8882 | int |
| 8883 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8884 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8885 | |
| 8886 | FILE *f = fopen ("conftest.val", "w"); |
| 8887 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8888 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8889 | if (((long int) (sizeof (long))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8890 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8891 | long int i = longval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8892 | if (i != ((long int) (sizeof (long)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8893 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8894 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8895 | } |
| 8896 | else |
| 8897 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8898 | unsigned long int i = ulongval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8899 | if (i != ((long int) (sizeof (long)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8900 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8901 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8902 | } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8903 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 8904 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8905 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8906 | |
| 8907 | ; |
| 8908 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8909 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8910 | _ACEOF |
| 8911 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8912 | if { (ac_try="$ac_link" |
| 8913 | case "(($ac_try" in |
| 8914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8915 | *) ac_try_echo=$ac_try;; |
| 8916 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8917 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8918 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8919 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8920 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8921 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8922 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8923 | { (case "(($ac_try" in |
| 8924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8925 | *) ac_try_echo=$ac_try;; |
| 8926 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8927 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8928 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8929 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8930 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8931 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8932 | (exit $ac_status); }; }; then |
| 8933 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8934 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8935 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8936 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8937 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8938 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8939 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8940 | if test "$ac_cv_type_long" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8941 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 8942 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8943 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8944 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8945 | $as_echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8946 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8947 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8948 | else |
| 8949 | ac_cv_sizeof_long=0 |
| 8950 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8951 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8952 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8953 | 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] | 8954 | fi |
| 8955 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8956 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8957 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 8958 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8959 | |
| 8960 | |
| 8961 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8962 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8963 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8964 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8965 | |
| 8966 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8967 | # The cast to long int works around a bug in the HP C Compiler |
| 8968 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8969 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8970 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8971 | { $as_echo "$as_me:$LINENO: checking size of void *" >&5 |
| 8972 | $as_echo_n "checking size of void *... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8973 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8974 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8975 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8976 | if test "$cross_compiling" = yes; then |
| 8977 | # Depending upon the size, compute the lo and hi bounds. |
| 8978 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8979 | /* confdefs.h. */ |
| 8980 | _ACEOF |
| 8981 | cat confdefs.h >>conftest.$ac_ext |
| 8982 | cat >>conftest.$ac_ext <<_ACEOF |
| 8983 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8984 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8985 | int |
| 8986 | main () |
| 8987 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 8988 | static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8989 | test_array [0] = 0 |
| 8990 | |
| 8991 | ; |
| 8992 | return 0; |
| 8993 | } |
| 8994 | _ACEOF |
| 8995 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8996 | if { (ac_try="$ac_compile" |
| 8997 | case "(($ac_try" in |
| 8998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8999 | *) ac_try_echo=$ac_try;; |
| 9000 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9001 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9002 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9003 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9004 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9006 | rm -f conftest.er1 |
| 9007 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9008 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9009 | (exit $ac_status); } && { |
| 9010 | test -z "$ac_c_werror_flag" || |
| 9011 | test ! -s conftest.err |
| 9012 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9013 | ac_lo=0 ac_mid=0 |
| 9014 | while :; do |
| 9015 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9016 | /* confdefs.h. */ |
| 9017 | _ACEOF |
| 9018 | cat confdefs.h >>conftest.$ac_ext |
| 9019 | cat >>conftest.$ac_ext <<_ACEOF |
| 9020 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9021 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9022 | int |
| 9023 | main () |
| 9024 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9025 | static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9026 | test_array [0] = 0 |
| 9027 | |
| 9028 | ; |
| 9029 | return 0; |
| 9030 | } |
| 9031 | _ACEOF |
| 9032 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9033 | if { (ac_try="$ac_compile" |
| 9034 | case "(($ac_try" in |
| 9035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9036 | *) ac_try_echo=$ac_try;; |
| 9037 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9038 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9039 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9040 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9041 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9043 | rm -f conftest.er1 |
| 9044 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9045 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9046 | (exit $ac_status); } && { |
| 9047 | test -z "$ac_c_werror_flag" || |
| 9048 | test ! -s conftest.err |
| 9049 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9050 | ac_hi=$ac_mid; break |
| 9051 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9052 | $as_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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9055 | ac_lo=`expr $ac_mid + 1` |
| 9056 | if test $ac_lo -le $ac_mid; then |
| 9057 | ac_lo= ac_hi= |
| 9058 | break |
| 9059 | fi |
| 9060 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9061 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9062 | |
| 9063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9064 | done |
| 9065 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9066 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9068 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9069 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9070 | /* confdefs.h. */ |
| 9071 | _ACEOF |
| 9072 | cat confdefs.h >>conftest.$ac_ext |
| 9073 | cat >>conftest.$ac_ext <<_ACEOF |
| 9074 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9075 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9076 | int |
| 9077 | main () |
| 9078 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9079 | static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9080 | test_array [0] = 0 |
| 9081 | |
| 9082 | ; |
| 9083 | return 0; |
| 9084 | } |
| 9085 | _ACEOF |
| 9086 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9087 | if { (ac_try="$ac_compile" |
| 9088 | case "(($ac_try" in |
| 9089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9090 | *) ac_try_echo=$ac_try;; |
| 9091 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9092 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9093 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9094 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9095 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9097 | rm -f conftest.er1 |
| 9098 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9099 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9100 | (exit $ac_status); } && { |
| 9101 | test -z "$ac_c_werror_flag" || |
| 9102 | test ! -s conftest.err |
| 9103 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9104 | ac_hi=-1 ac_mid=-1 |
| 9105 | while :; do |
| 9106 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9107 | /* confdefs.h. */ |
| 9108 | _ACEOF |
| 9109 | cat confdefs.h >>conftest.$ac_ext |
| 9110 | cat >>conftest.$ac_ext <<_ACEOF |
| 9111 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9112 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9113 | int |
| 9114 | main () |
| 9115 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9116 | static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9117 | test_array [0] = 0 |
| 9118 | |
| 9119 | ; |
| 9120 | return 0; |
| 9121 | } |
| 9122 | _ACEOF |
| 9123 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9124 | if { (ac_try="$ac_compile" |
| 9125 | case "(($ac_try" in |
| 9126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9127 | *) ac_try_echo=$ac_try;; |
| 9128 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9129 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9130 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9131 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9132 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9133 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9134 | rm -f conftest.er1 |
| 9135 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9136 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9137 | (exit $ac_status); } && { |
| 9138 | test -z "$ac_c_werror_flag" || |
| 9139 | test ! -s conftest.err |
| 9140 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9141 | ac_lo=$ac_mid; break |
| 9142 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9143 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9145 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9146 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9147 | if test $ac_mid -le $ac_hi; then |
| 9148 | ac_lo= ac_hi= |
| 9149 | break |
| 9150 | fi |
| 9151 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9152 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9153 | |
| 9154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9155 | done |
| 9156 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9157 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9159 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9160 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9161 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9162 | |
| 9163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9164 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9165 | |
| 9166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9167 | # Binary search between lo and hi bounds. |
| 9168 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9169 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9170 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9171 | /* confdefs.h. */ |
| 9172 | _ACEOF |
| 9173 | cat confdefs.h >>conftest.$ac_ext |
| 9174 | cat >>conftest.$ac_ext <<_ACEOF |
| 9175 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9176 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9177 | int |
| 9178 | main () |
| 9179 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9180 | static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9181 | test_array [0] = 0 |
| 9182 | |
| 9183 | ; |
| 9184 | return 0; |
| 9185 | } |
| 9186 | _ACEOF |
| 9187 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9188 | if { (ac_try="$ac_compile" |
| 9189 | case "(($ac_try" in |
| 9190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9191 | *) ac_try_echo=$ac_try;; |
| 9192 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9193 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9194 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9195 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9196 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9198 | rm -f conftest.er1 |
| 9199 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9200 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9201 | (exit $ac_status); } && { |
| 9202 | test -z "$ac_c_werror_flag" || |
| 9203 | test ! -s conftest.err |
| 9204 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9205 | ac_hi=$ac_mid |
| 9206 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9207 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9209 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9210 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9211 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9212 | |
| 9213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9214 | done |
| 9215 | case $ac_lo in |
| 9216 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9217 | '') if test "$ac_cv_type_void_p" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9218 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 9219 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 9220 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9221 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9222 | $as_echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9223 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9224 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9225 | else |
| 9226 | ac_cv_sizeof_void_p=0 |
| 9227 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9228 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9229 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9230 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9231 | /* confdefs.h. */ |
| 9232 | _ACEOF |
| 9233 | cat confdefs.h >>conftest.$ac_ext |
| 9234 | cat >>conftest.$ac_ext <<_ACEOF |
| 9235 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9236 | $ac_includes_default |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9237 | static long int longval () { return (long int) (sizeof (void *)); } |
| 9238 | static unsigned long int ulongval () { return (long int) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9239 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9240 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9241 | int |
| 9242 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9243 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9244 | |
| 9245 | FILE *f = fopen ("conftest.val", "w"); |
| 9246 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9247 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9248 | if (((long int) (sizeof (void *))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9249 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9250 | long int i = longval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9251 | if (i != ((long int) (sizeof (void *)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9252 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9253 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9254 | } |
| 9255 | else |
| 9256 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9257 | unsigned long int i = ulongval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9258 | if (i != ((long int) (sizeof (void *)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9259 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9260 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9261 | } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9262 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 9263 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9264 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9265 | |
| 9266 | ; |
| 9267 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9268 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9269 | _ACEOF |
| 9270 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9271 | if { (ac_try="$ac_link" |
| 9272 | case "(($ac_try" in |
| 9273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9274 | *) ac_try_echo=$ac_try;; |
| 9275 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9276 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9277 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9278 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9279 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9280 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9281 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9282 | { (case "(($ac_try" in |
| 9283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9284 | *) ac_try_echo=$ac_try;; |
| 9285 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9286 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9287 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9288 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9289 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9290 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9291 | (exit $ac_status); }; }; then |
| 9292 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9293 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9294 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 9295 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9297 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9298 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9299 | if test "$ac_cv_type_void_p" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9300 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 9301 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 9302 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9303 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9304 | $as_echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9305 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9306 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9307 | else |
| 9308 | ac_cv_sizeof_void_p=0 |
| 9309 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9310 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9311 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9312 | 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] | 9313 | fi |
| 9314 | rm -f conftest.val |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9315 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9316 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 9317 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9318 | |
| 9319 | |
| 9320 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9321 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9322 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9323 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9324 | |
| 9325 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9326 | # The cast to long int works around a bug in the HP C Compiler |
| 9327 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9328 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9329 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9330 | { $as_echo "$as_me:$LINENO: checking size of short" >&5 |
| 9331 | $as_echo_n "checking size of short... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9332 | if test "${ac_cv_sizeof_short+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9333 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9334 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9335 | if test "$cross_compiling" = yes; then |
| 9336 | # Depending upon the size, compute the lo and hi bounds. |
| 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 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9344 | int |
| 9345 | main () |
| 9346 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9347 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9348 | test_array [0] = 0 |
| 9349 | |
| 9350 | ; |
| 9351 | return 0; |
| 9352 | } |
| 9353 | _ACEOF |
| 9354 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9355 | if { (ac_try="$ac_compile" |
| 9356 | case "(($ac_try" in |
| 9357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9358 | *) ac_try_echo=$ac_try;; |
| 9359 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9360 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9361 | $as_echo "$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 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9367 | $as_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_lo=0 ac_mid=0 |
| 9373 | while :; do |
| 9374 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9375 | /* confdefs.h. */ |
| 9376 | _ACEOF |
| 9377 | cat confdefs.h >>conftest.$ac_ext |
| 9378 | cat >>conftest.$ac_ext <<_ACEOF |
| 9379 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9380 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9381 | int |
| 9382 | main () |
| 9383 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9384 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9385 | test_array [0] = 0 |
| 9386 | |
| 9387 | ; |
| 9388 | return 0; |
| 9389 | } |
| 9390 | _ACEOF |
| 9391 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9392 | if { (ac_try="$ac_compile" |
| 9393 | case "(($ac_try" in |
| 9394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9395 | *) ac_try_echo=$ac_try;; |
| 9396 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9397 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9398 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9399 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9400 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9402 | rm -f conftest.er1 |
| 9403 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9404 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9405 | (exit $ac_status); } && { |
| 9406 | test -z "$ac_c_werror_flag" || |
| 9407 | test ! -s conftest.err |
| 9408 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9409 | ac_hi=$ac_mid; break |
| 9410 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9411 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9413 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9414 | ac_lo=`expr $ac_mid + 1` |
| 9415 | if test $ac_lo -le $ac_mid; then |
| 9416 | ac_lo= ac_hi= |
| 9417 | break |
| 9418 | fi |
| 9419 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9420 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9421 | |
| 9422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9423 | done |
| 9424 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9425 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9427 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9428 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9429 | /* confdefs.h. */ |
| 9430 | _ACEOF |
| 9431 | cat confdefs.h >>conftest.$ac_ext |
| 9432 | cat >>conftest.$ac_ext <<_ACEOF |
| 9433 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9434 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9435 | int |
| 9436 | main () |
| 9437 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9438 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9439 | test_array [0] = 0 |
| 9440 | |
| 9441 | ; |
| 9442 | return 0; |
| 9443 | } |
| 9444 | _ACEOF |
| 9445 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9446 | if { (ac_try="$ac_compile" |
| 9447 | case "(($ac_try" in |
| 9448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9449 | *) ac_try_echo=$ac_try;; |
| 9450 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9451 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9452 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9453 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9454 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9455 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9456 | rm -f conftest.er1 |
| 9457 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9458 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9459 | (exit $ac_status); } && { |
| 9460 | test -z "$ac_c_werror_flag" || |
| 9461 | test ! -s conftest.err |
| 9462 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9463 | ac_hi=-1 ac_mid=-1 |
| 9464 | while :; do |
| 9465 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9466 | /* confdefs.h. */ |
| 9467 | _ACEOF |
| 9468 | cat confdefs.h >>conftest.$ac_ext |
| 9469 | cat >>conftest.$ac_ext <<_ACEOF |
| 9470 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9471 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9472 | int |
| 9473 | main () |
| 9474 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9475 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9476 | test_array [0] = 0 |
| 9477 | |
| 9478 | ; |
| 9479 | return 0; |
| 9480 | } |
| 9481 | _ACEOF |
| 9482 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9483 | if { (ac_try="$ac_compile" |
| 9484 | case "(($ac_try" in |
| 9485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9486 | *) ac_try_echo=$ac_try;; |
| 9487 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9488 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9489 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9490 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9491 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9493 | rm -f conftest.er1 |
| 9494 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9495 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9496 | (exit $ac_status); } && { |
| 9497 | test -z "$ac_c_werror_flag" || |
| 9498 | test ! -s conftest.err |
| 9499 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9500 | ac_lo=$ac_mid; break |
| 9501 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9502 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9504 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9505 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9506 | if test $ac_mid -le $ac_hi; then |
| 9507 | ac_lo= ac_hi= |
| 9508 | break |
| 9509 | fi |
| 9510 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9511 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9512 | |
| 9513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9514 | done |
| 9515 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9516 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9518 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9519 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9520 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9521 | |
| 9522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9523 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9524 | |
| 9525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9526 | # Binary search between lo and hi bounds. |
| 9527 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9528 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9529 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9530 | /* confdefs.h. */ |
| 9531 | _ACEOF |
| 9532 | cat confdefs.h >>conftest.$ac_ext |
| 9533 | cat >>conftest.$ac_ext <<_ACEOF |
| 9534 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9535 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9536 | int |
| 9537 | main () |
| 9538 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9539 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9540 | test_array [0] = 0 |
| 9541 | |
| 9542 | ; |
| 9543 | return 0; |
| 9544 | } |
| 9545 | _ACEOF |
| 9546 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9547 | if { (ac_try="$ac_compile" |
| 9548 | case "(($ac_try" in |
| 9549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9550 | *) ac_try_echo=$ac_try;; |
| 9551 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9552 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9553 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9554 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9555 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9556 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9557 | rm -f conftest.er1 |
| 9558 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9559 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9560 | (exit $ac_status); } && { |
| 9561 | test -z "$ac_c_werror_flag" || |
| 9562 | test ! -s conftest.err |
| 9563 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9564 | ac_hi=$ac_mid |
| 9565 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9566 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9568 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9569 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9570 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9571 | |
| 9572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9573 | done |
| 9574 | case $ac_lo in |
| 9575 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9576 | '') if test "$ac_cv_type_short" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9577 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 9578 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 9579 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9580 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9581 | $as_echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9582 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9583 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9584 | else |
| 9585 | ac_cv_sizeof_short=0 |
| 9586 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9587 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9588 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9589 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9590 | /* confdefs.h. */ |
| 9591 | _ACEOF |
| 9592 | cat confdefs.h >>conftest.$ac_ext |
| 9593 | cat >>conftest.$ac_ext <<_ACEOF |
| 9594 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9595 | $ac_includes_default |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9596 | static long int longval () { return (long int) (sizeof (short)); } |
| 9597 | static unsigned long int ulongval () { return (long int) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9598 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9599 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9600 | int |
| 9601 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9602 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9603 | |
| 9604 | FILE *f = fopen ("conftest.val", "w"); |
| 9605 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9606 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9607 | if (((long int) (sizeof (short))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9608 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9609 | long int i = longval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9610 | if (i != ((long int) (sizeof (short)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9611 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9612 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9613 | } |
| 9614 | else |
| 9615 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9616 | unsigned long int i = ulongval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9617 | if (i != ((long int) (sizeof (short)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9618 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9619 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9620 | } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9621 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 9622 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9623 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9624 | |
| 9625 | ; |
| 9626 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9627 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9628 | _ACEOF |
| 9629 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9630 | if { (ac_try="$ac_link" |
| 9631 | case "(($ac_try" in |
| 9632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9633 | *) ac_try_echo=$ac_try;; |
| 9634 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9635 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9636 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9637 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9638 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9639 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9640 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9641 | { (case "(($ac_try" in |
| 9642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9643 | *) ac_try_echo=$ac_try;; |
| 9644 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9645 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9646 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9647 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9648 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9649 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9650 | (exit $ac_status); }; }; then |
| 9651 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9652 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9653 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 9654 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9656 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9657 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9658 | if test "$ac_cv_type_short" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9659 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 9660 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 9661 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9662 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9663 | $as_echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9664 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9665 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9666 | else |
| 9667 | ac_cv_sizeof_short=0 |
| 9668 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9669 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9670 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9671 | 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] | 9672 | fi |
| 9673 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9674 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9675 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 9676 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9677 | |
| 9678 | |
| 9679 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9680 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9681 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9682 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9683 | |
| 9684 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9685 | # The cast to long int works around a bug in the HP C Compiler |
| 9686 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9687 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9688 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9689 | { $as_echo "$as_me:$LINENO: checking size of float" >&5 |
| 9690 | $as_echo_n "checking size of float... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9691 | if test "${ac_cv_sizeof_float+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9692 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9693 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9694 | if test "$cross_compiling" = yes; then |
| 9695 | # Depending upon the size, compute the lo and hi bounds. |
| 9696 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9697 | /* confdefs.h. */ |
| 9698 | _ACEOF |
| 9699 | cat confdefs.h >>conftest.$ac_ext |
| 9700 | cat >>conftest.$ac_ext <<_ACEOF |
| 9701 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9702 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9703 | int |
| 9704 | main () |
| 9705 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9706 | static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9707 | test_array [0] = 0 |
| 9708 | |
| 9709 | ; |
| 9710 | return 0; |
| 9711 | } |
| 9712 | _ACEOF |
| 9713 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9714 | if { (ac_try="$ac_compile" |
| 9715 | case "(($ac_try" in |
| 9716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9717 | *) ac_try_echo=$ac_try;; |
| 9718 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9719 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9720 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9721 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9722 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9724 | rm -f conftest.er1 |
| 9725 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9726 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9727 | (exit $ac_status); } && { |
| 9728 | test -z "$ac_c_werror_flag" || |
| 9729 | test ! -s conftest.err |
| 9730 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9731 | ac_lo=0 ac_mid=0 |
| 9732 | while :; do |
| 9733 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9734 | /* confdefs.h. */ |
| 9735 | _ACEOF |
| 9736 | cat confdefs.h >>conftest.$ac_ext |
| 9737 | cat >>conftest.$ac_ext <<_ACEOF |
| 9738 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9739 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9740 | int |
| 9741 | main () |
| 9742 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9743 | static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9744 | test_array [0] = 0 |
| 9745 | |
| 9746 | ; |
| 9747 | return 0; |
| 9748 | } |
| 9749 | _ACEOF |
| 9750 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9751 | if { (ac_try="$ac_compile" |
| 9752 | case "(($ac_try" in |
| 9753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9754 | *) ac_try_echo=$ac_try;; |
| 9755 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9756 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9757 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9758 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9759 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9760 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9761 | rm -f conftest.er1 |
| 9762 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9763 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9764 | (exit $ac_status); } && { |
| 9765 | test -z "$ac_c_werror_flag" || |
| 9766 | test ! -s conftest.err |
| 9767 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9768 | ac_hi=$ac_mid; break |
| 9769 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9770 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9772 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9773 | ac_lo=`expr $ac_mid + 1` |
| 9774 | if test $ac_lo -le $ac_mid; then |
| 9775 | ac_lo= ac_hi= |
| 9776 | break |
| 9777 | fi |
| 9778 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9779 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9780 | |
| 9781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9782 | done |
| 9783 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9784 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9786 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9787 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9788 | /* confdefs.h. */ |
| 9789 | _ACEOF |
| 9790 | cat confdefs.h >>conftest.$ac_ext |
| 9791 | cat >>conftest.$ac_ext <<_ACEOF |
| 9792 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9793 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9794 | int |
| 9795 | main () |
| 9796 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9797 | static int test_array [1 - 2 * !(((long int) (sizeof (float))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9798 | test_array [0] = 0 |
| 9799 | |
| 9800 | ; |
| 9801 | return 0; |
| 9802 | } |
| 9803 | _ACEOF |
| 9804 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9805 | if { (ac_try="$ac_compile" |
| 9806 | case "(($ac_try" in |
| 9807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9808 | *) ac_try_echo=$ac_try;; |
| 9809 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9810 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9811 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9812 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9813 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9814 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9815 | rm -f conftest.er1 |
| 9816 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9817 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9818 | (exit $ac_status); } && { |
| 9819 | test -z "$ac_c_werror_flag" || |
| 9820 | test ! -s conftest.err |
| 9821 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9822 | ac_hi=-1 ac_mid=-1 |
| 9823 | while :; do |
| 9824 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9825 | /* confdefs.h. */ |
| 9826 | _ACEOF |
| 9827 | cat confdefs.h >>conftest.$ac_ext |
| 9828 | cat >>conftest.$ac_ext <<_ACEOF |
| 9829 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9830 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9831 | int |
| 9832 | main () |
| 9833 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9834 | static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9835 | test_array [0] = 0 |
| 9836 | |
| 9837 | ; |
| 9838 | return 0; |
| 9839 | } |
| 9840 | _ACEOF |
| 9841 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9842 | if { (ac_try="$ac_compile" |
| 9843 | case "(($ac_try" in |
| 9844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9845 | *) ac_try_echo=$ac_try;; |
| 9846 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9847 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9848 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9849 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9850 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9851 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9852 | rm -f conftest.er1 |
| 9853 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9854 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9855 | (exit $ac_status); } && { |
| 9856 | test -z "$ac_c_werror_flag" || |
| 9857 | test ! -s conftest.err |
| 9858 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9859 | ac_lo=$ac_mid; break |
| 9860 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9861 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9863 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9864 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9865 | if test $ac_mid -le $ac_hi; then |
| 9866 | ac_lo= ac_hi= |
| 9867 | break |
| 9868 | fi |
| 9869 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9870 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9871 | |
| 9872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9873 | done |
| 9874 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9875 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9877 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9878 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9879 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9880 | |
| 9881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9882 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9883 | |
| 9884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9885 | # Binary search between lo and hi bounds. |
| 9886 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9887 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9888 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9889 | /* confdefs.h. */ |
| 9890 | _ACEOF |
| 9891 | cat confdefs.h >>conftest.$ac_ext |
| 9892 | cat >>conftest.$ac_ext <<_ACEOF |
| 9893 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9894 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9895 | int |
| 9896 | main () |
| 9897 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9898 | static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9899 | test_array [0] = 0 |
| 9900 | |
| 9901 | ; |
| 9902 | return 0; |
| 9903 | } |
| 9904 | _ACEOF |
| 9905 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9906 | if { (ac_try="$ac_compile" |
| 9907 | case "(($ac_try" in |
| 9908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9909 | *) ac_try_echo=$ac_try;; |
| 9910 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9911 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9912 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9913 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9914 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9916 | rm -f conftest.er1 |
| 9917 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9918 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9919 | (exit $ac_status); } && { |
| 9920 | test -z "$ac_c_werror_flag" || |
| 9921 | test ! -s conftest.err |
| 9922 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9923 | ac_hi=$ac_mid |
| 9924 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9925 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9926 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9927 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9928 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9929 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9930 | |
| 9931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9932 | done |
| 9933 | case $ac_lo in |
| 9934 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9935 | '') if test "$ac_cv_type_float" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9936 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 9937 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 9938 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9939 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9940 | $as_echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9941 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9942 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9943 | else |
| 9944 | ac_cv_sizeof_float=0 |
| 9945 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9946 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9947 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9948 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9949 | /* confdefs.h. */ |
| 9950 | _ACEOF |
| 9951 | cat confdefs.h >>conftest.$ac_ext |
| 9952 | cat >>conftest.$ac_ext <<_ACEOF |
| 9953 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9954 | $ac_includes_default |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9955 | static long int longval () { return (long int) (sizeof (float)); } |
| 9956 | static unsigned long int ulongval () { return (long int) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9957 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9958 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9959 | int |
| 9960 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9961 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9962 | |
| 9963 | FILE *f = fopen ("conftest.val", "w"); |
| 9964 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9965 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9966 | if (((long int) (sizeof (float))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9967 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9968 | long int i = longval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9969 | if (i != ((long int) (sizeof (float)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9970 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9971 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9972 | } |
| 9973 | else |
| 9974 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9975 | unsigned long int i = ulongval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9976 | if (i != ((long int) (sizeof (float)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9977 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9978 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9979 | } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9980 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 9981 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9982 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9983 | |
| 9984 | ; |
| 9985 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9986 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9987 | _ACEOF |
| 9988 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9989 | if { (ac_try="$ac_link" |
| 9990 | case "(($ac_try" in |
| 9991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9992 | *) ac_try_echo=$ac_try;; |
| 9993 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9994 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9995 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9996 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9997 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 9998 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9999 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10000 | { (case "(($ac_try" in |
| 10001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10002 | *) ac_try_echo=$ac_try;; |
| 10003 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10004 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10005 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10006 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10007 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10008 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10009 | (exit $ac_status); }; }; then |
| 10010 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10011 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10012 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 10013 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10015 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10016 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10017 | if test "$ac_cv_type_float" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10018 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 10019 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 10020 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10021 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10022 | $as_echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10023 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10024 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10025 | else |
| 10026 | ac_cv_sizeof_float=0 |
| 10027 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10028 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10029 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10030 | 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] | 10031 | fi |
| 10032 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10033 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10034 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 10035 | $as_echo "$ac_cv_sizeof_float" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10036 | |
| 10037 | |
| 10038 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10039 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10040 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10041 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10042 | |
| 10043 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10044 | # The cast to long int works around a bug in the HP C Compiler |
| 10045 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10046 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10047 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10048 | { $as_echo "$as_me:$LINENO: checking size of double" >&5 |
| 10049 | $as_echo_n "checking size of double... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10050 | if test "${ac_cv_sizeof_double+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10051 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10052 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10053 | if test "$cross_compiling" = yes; then |
| 10054 | # Depending upon the size, compute the lo and hi bounds. |
| 10055 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10056 | /* confdefs.h. */ |
| 10057 | _ACEOF |
| 10058 | cat confdefs.h >>conftest.$ac_ext |
| 10059 | cat >>conftest.$ac_ext <<_ACEOF |
| 10060 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10061 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10062 | int |
| 10063 | main () |
| 10064 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10065 | static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10066 | test_array [0] = 0 |
| 10067 | |
| 10068 | ; |
| 10069 | return 0; |
| 10070 | } |
| 10071 | _ACEOF |
| 10072 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10073 | if { (ac_try="$ac_compile" |
| 10074 | case "(($ac_try" in |
| 10075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10076 | *) ac_try_echo=$ac_try;; |
| 10077 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10078 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10079 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10080 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10081 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10083 | rm -f conftest.er1 |
| 10084 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10085 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10086 | (exit $ac_status); } && { |
| 10087 | test -z "$ac_c_werror_flag" || |
| 10088 | test ! -s conftest.err |
| 10089 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10090 | ac_lo=0 ac_mid=0 |
| 10091 | while :; do |
| 10092 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10093 | /* confdefs.h. */ |
| 10094 | _ACEOF |
| 10095 | cat confdefs.h >>conftest.$ac_ext |
| 10096 | cat >>conftest.$ac_ext <<_ACEOF |
| 10097 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10098 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10099 | int |
| 10100 | main () |
| 10101 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10102 | static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10103 | test_array [0] = 0 |
| 10104 | |
| 10105 | ; |
| 10106 | return 0; |
| 10107 | } |
| 10108 | _ACEOF |
| 10109 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10110 | if { (ac_try="$ac_compile" |
| 10111 | case "(($ac_try" in |
| 10112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10113 | *) ac_try_echo=$ac_try;; |
| 10114 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10115 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10116 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10117 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10118 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10120 | rm -f conftest.er1 |
| 10121 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10122 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10123 | (exit $ac_status); } && { |
| 10124 | test -z "$ac_c_werror_flag" || |
| 10125 | test ! -s conftest.err |
| 10126 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10127 | ac_hi=$ac_mid; break |
| 10128 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10129 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10130 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10131 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10132 | ac_lo=`expr $ac_mid + 1` |
| 10133 | if test $ac_lo -le $ac_mid; then |
| 10134 | ac_lo= ac_hi= |
| 10135 | break |
| 10136 | fi |
| 10137 | ac_mid=`expr 2 '*' $ac_mid + 1` |
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 | done |
| 10142 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10143 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10145 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10146 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10147 | /* confdefs.h. */ |
| 10148 | _ACEOF |
| 10149 | cat confdefs.h >>conftest.$ac_ext |
| 10150 | cat >>conftest.$ac_ext <<_ACEOF |
| 10151 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10152 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10153 | int |
| 10154 | main () |
| 10155 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10156 | static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10157 | test_array [0] = 0 |
| 10158 | |
| 10159 | ; |
| 10160 | return 0; |
| 10161 | } |
| 10162 | _ACEOF |
| 10163 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10164 | if { (ac_try="$ac_compile" |
| 10165 | case "(($ac_try" in |
| 10166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10167 | *) ac_try_echo=$ac_try;; |
| 10168 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10169 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10170 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10171 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10172 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10173 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10174 | rm -f conftest.er1 |
| 10175 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10176 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10177 | (exit $ac_status); } && { |
| 10178 | test -z "$ac_c_werror_flag" || |
| 10179 | test ! -s conftest.err |
| 10180 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10181 | ac_hi=-1 ac_mid=-1 |
| 10182 | while :; do |
| 10183 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10184 | /* confdefs.h. */ |
| 10185 | _ACEOF |
| 10186 | cat confdefs.h >>conftest.$ac_ext |
| 10187 | cat >>conftest.$ac_ext <<_ACEOF |
| 10188 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10189 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10190 | int |
| 10191 | main () |
| 10192 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10193 | static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10194 | test_array [0] = 0 |
| 10195 | |
| 10196 | ; |
| 10197 | return 0; |
| 10198 | } |
| 10199 | _ACEOF |
| 10200 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10201 | if { (ac_try="$ac_compile" |
| 10202 | case "(($ac_try" in |
| 10203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10204 | *) ac_try_echo=$ac_try;; |
| 10205 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10206 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10207 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10208 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10209 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10211 | rm -f conftest.er1 |
| 10212 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10213 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10214 | (exit $ac_status); } && { |
| 10215 | test -z "$ac_c_werror_flag" || |
| 10216 | test ! -s conftest.err |
| 10217 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10218 | ac_lo=$ac_mid; break |
| 10219 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10220 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10222 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10223 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10224 | if test $ac_mid -le $ac_hi; then |
| 10225 | ac_lo= ac_hi= |
| 10226 | break |
| 10227 | fi |
| 10228 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10229 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10230 | |
| 10231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10232 | done |
| 10233 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10234 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10236 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10237 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10238 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10239 | |
| 10240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10241 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10242 | |
| 10243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10244 | # Binary search between lo and hi bounds. |
| 10245 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10246 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10247 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10248 | /* confdefs.h. */ |
| 10249 | _ACEOF |
| 10250 | cat confdefs.h >>conftest.$ac_ext |
| 10251 | cat >>conftest.$ac_ext <<_ACEOF |
| 10252 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10253 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10254 | int |
| 10255 | main () |
| 10256 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10257 | static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10258 | test_array [0] = 0 |
| 10259 | |
| 10260 | ; |
| 10261 | return 0; |
| 10262 | } |
| 10263 | _ACEOF |
| 10264 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10265 | if { (ac_try="$ac_compile" |
| 10266 | case "(($ac_try" in |
| 10267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10268 | *) ac_try_echo=$ac_try;; |
| 10269 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10270 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10271 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10272 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10273 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10275 | rm -f conftest.er1 |
| 10276 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10277 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10278 | (exit $ac_status); } && { |
| 10279 | test -z "$ac_c_werror_flag" || |
| 10280 | test ! -s conftest.err |
| 10281 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10282 | ac_hi=$ac_mid |
| 10283 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10284 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10286 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10287 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10288 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10289 | |
| 10290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10291 | done |
| 10292 | case $ac_lo in |
| 10293 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10294 | '') if test "$ac_cv_type_double" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10295 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 10296 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 10297 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10298 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10299 | $as_echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10300 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10301 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10302 | else |
| 10303 | ac_cv_sizeof_double=0 |
| 10304 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10305 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10306 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10307 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10308 | /* confdefs.h. */ |
| 10309 | _ACEOF |
| 10310 | cat confdefs.h >>conftest.$ac_ext |
| 10311 | cat >>conftest.$ac_ext <<_ACEOF |
| 10312 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10313 | $ac_includes_default |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10314 | static long int longval () { return (long int) (sizeof (double)); } |
| 10315 | static unsigned long int ulongval () { return (long int) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10316 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10317 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10318 | int |
| 10319 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10320 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10321 | |
| 10322 | FILE *f = fopen ("conftest.val", "w"); |
| 10323 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10324 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10325 | if (((long int) (sizeof (double))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10326 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10327 | long int i = longval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10328 | if (i != ((long int) (sizeof (double)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10329 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10330 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10331 | } |
| 10332 | else |
| 10333 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10334 | unsigned long int i = ulongval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10335 | if (i != ((long int) (sizeof (double)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10336 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10337 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10338 | } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10339 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 10340 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10341 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10342 | |
| 10343 | ; |
| 10344 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10345 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10346 | _ACEOF |
| 10347 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10348 | if { (ac_try="$ac_link" |
| 10349 | case "(($ac_try" in |
| 10350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10351 | *) ac_try_echo=$ac_try;; |
| 10352 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10353 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10354 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10355 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10356 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10357 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10358 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10359 | { (case "(($ac_try" in |
| 10360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10361 | *) ac_try_echo=$ac_try;; |
| 10362 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10363 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10364 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10365 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10366 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10367 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10368 | (exit $ac_status); }; }; then |
| 10369 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10370 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10371 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 10372 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10374 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10375 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10376 | if test "$ac_cv_type_double" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10377 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 10378 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 10379 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10380 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10381 | $as_echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10382 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10383 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10384 | else |
| 10385 | ac_cv_sizeof_double=0 |
| 10386 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10387 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10388 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10389 | 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] | 10390 | fi |
| 10391 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10392 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10393 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 10394 | $as_echo "$ac_cv_sizeof_double" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10395 | |
| 10396 | |
| 10397 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10398 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10399 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10400 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10401 | |
| 10402 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10403 | # The cast to long int works around a bug in the HP C Compiler |
| 10404 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10405 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10406 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10407 | { $as_echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 10408 | $as_echo_n "checking size of fpos_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10409 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10410 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10411 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10412 | if test "$cross_compiling" = yes; then |
| 10413 | # Depending upon the size, compute the lo and hi bounds. |
| 10414 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10415 | /* confdefs.h. */ |
| 10416 | _ACEOF |
| 10417 | cat confdefs.h >>conftest.$ac_ext |
| 10418 | cat >>conftest.$ac_ext <<_ACEOF |
| 10419 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10420 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10421 | int |
| 10422 | main () |
| 10423 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10424 | static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10425 | test_array [0] = 0 |
| 10426 | |
| 10427 | ; |
| 10428 | return 0; |
| 10429 | } |
| 10430 | _ACEOF |
| 10431 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10432 | if { (ac_try="$ac_compile" |
| 10433 | case "(($ac_try" in |
| 10434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10435 | *) ac_try_echo=$ac_try;; |
| 10436 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10437 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10438 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10439 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10440 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10442 | rm -f conftest.er1 |
| 10443 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10444 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10445 | (exit $ac_status); } && { |
| 10446 | test -z "$ac_c_werror_flag" || |
| 10447 | test ! -s conftest.err |
| 10448 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10449 | ac_lo=0 ac_mid=0 |
| 10450 | while :; do |
| 10451 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +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. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10457 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10458 | int |
| 10459 | main () |
| 10460 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10461 | static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10462 | test_array [0] = 0 |
| 10463 | |
| 10464 | ; |
| 10465 | return 0; |
| 10466 | } |
| 10467 | _ACEOF |
| 10468 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10469 | if { (ac_try="$ac_compile" |
| 10470 | case "(($ac_try" in |
| 10471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10472 | *) ac_try_echo=$ac_try;; |
| 10473 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10474 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10475 | $as_echo "$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 | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10477 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10479 | rm -f conftest.er1 |
| 10480 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10481 | $as_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 | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10486 | ac_hi=$ac_mid; break |
| 10487 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10488 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10490 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10491 | ac_lo=`expr $ac_mid + 1` |
| 10492 | if test $ac_lo -le $ac_mid; then |
| 10493 | ac_lo= ac_hi= |
| 10494 | break |
| 10495 | fi |
| 10496 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10497 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10498 | |
| 10499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10500 | done |
| 10501 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10502 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10504 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10505 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10506 | /* confdefs.h. */ |
| 10507 | _ACEOF |
| 10508 | cat confdefs.h >>conftest.$ac_ext |
| 10509 | cat >>conftest.$ac_ext <<_ACEOF |
| 10510 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10511 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10512 | int |
| 10513 | main () |
| 10514 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10515 | static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10516 | test_array [0] = 0 |
| 10517 | |
| 10518 | ; |
| 10519 | return 0; |
| 10520 | } |
| 10521 | _ACEOF |
| 10522 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10523 | if { (ac_try="$ac_compile" |
| 10524 | case "(($ac_try" in |
| 10525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10526 | *) ac_try_echo=$ac_try;; |
| 10527 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10528 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10529 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10530 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10531 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10533 | rm -f conftest.er1 |
| 10534 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10535 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10536 | (exit $ac_status); } && { |
| 10537 | test -z "$ac_c_werror_flag" || |
| 10538 | test ! -s conftest.err |
| 10539 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10540 | ac_hi=-1 ac_mid=-1 |
| 10541 | while :; do |
| 10542 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10543 | /* confdefs.h. */ |
| 10544 | _ACEOF |
| 10545 | cat confdefs.h >>conftest.$ac_ext |
| 10546 | cat >>conftest.$ac_ext <<_ACEOF |
| 10547 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10548 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10549 | int |
| 10550 | main () |
| 10551 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10552 | static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10553 | test_array [0] = 0 |
| 10554 | |
| 10555 | ; |
| 10556 | return 0; |
| 10557 | } |
| 10558 | _ACEOF |
| 10559 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10560 | if { (ac_try="$ac_compile" |
| 10561 | case "(($ac_try" in |
| 10562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10563 | *) ac_try_echo=$ac_try;; |
| 10564 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10565 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10566 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10567 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10568 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10569 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10570 | rm -f conftest.er1 |
| 10571 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10572 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10573 | (exit $ac_status); } && { |
| 10574 | test -z "$ac_c_werror_flag" || |
| 10575 | test ! -s conftest.err |
| 10576 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10577 | ac_lo=$ac_mid; break |
| 10578 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10579 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10580 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10581 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10582 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10583 | if test $ac_mid -le $ac_hi; then |
| 10584 | ac_lo= ac_hi= |
| 10585 | break |
| 10586 | fi |
| 10587 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10588 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10589 | |
| 10590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10591 | done |
| 10592 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10593 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10595 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10596 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10597 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10598 | |
| 10599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10600 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10601 | |
| 10602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10603 | # Binary search between lo and hi bounds. |
| 10604 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10605 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10606 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10607 | /* confdefs.h. */ |
| 10608 | _ACEOF |
| 10609 | cat confdefs.h >>conftest.$ac_ext |
| 10610 | cat >>conftest.$ac_ext <<_ACEOF |
| 10611 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10612 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10613 | int |
| 10614 | main () |
| 10615 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10616 | static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10617 | test_array [0] = 0 |
| 10618 | |
| 10619 | ; |
| 10620 | return 0; |
| 10621 | } |
| 10622 | _ACEOF |
| 10623 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10624 | if { (ac_try="$ac_compile" |
| 10625 | case "(($ac_try" in |
| 10626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10627 | *) ac_try_echo=$ac_try;; |
| 10628 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10629 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10630 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10631 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10632 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10634 | rm -f conftest.er1 |
| 10635 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10636 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10637 | (exit $ac_status); } && { |
| 10638 | test -z "$ac_c_werror_flag" || |
| 10639 | test ! -s conftest.err |
| 10640 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10641 | ac_hi=$ac_mid |
| 10642 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10643 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10645 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10646 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10647 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10648 | |
| 10649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10650 | done |
| 10651 | case $ac_lo in |
| 10652 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10653 | '') if test "$ac_cv_type_fpos_t" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10654 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 10655 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 10656 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10657 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10658 | $as_echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10659 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10660 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10661 | else |
| 10662 | ac_cv_sizeof_fpos_t=0 |
| 10663 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10664 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10665 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10666 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10667 | /* confdefs.h. */ |
| 10668 | _ACEOF |
| 10669 | cat confdefs.h >>conftest.$ac_ext |
| 10670 | cat >>conftest.$ac_ext <<_ACEOF |
| 10671 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10672 | $ac_includes_default |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10673 | static long int longval () { return (long int) (sizeof (fpos_t)); } |
| 10674 | static unsigned long int ulongval () { return (long int) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10675 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10676 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10677 | int |
| 10678 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10679 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10680 | |
| 10681 | FILE *f = fopen ("conftest.val", "w"); |
| 10682 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10683 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10684 | if (((long int) (sizeof (fpos_t))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10685 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10686 | long int i = longval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10687 | if (i != ((long int) (sizeof (fpos_t)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10688 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10689 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10690 | } |
| 10691 | else |
| 10692 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10693 | unsigned long int i = ulongval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10694 | if (i != ((long int) (sizeof (fpos_t)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10695 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10696 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10697 | } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10698 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 10699 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10700 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10701 | |
| 10702 | ; |
| 10703 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10704 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10705 | _ACEOF |
| 10706 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10707 | if { (ac_try="$ac_link" |
| 10708 | case "(($ac_try" in |
| 10709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10710 | *) ac_try_echo=$ac_try;; |
| 10711 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10712 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10713 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10714 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10715 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10716 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10717 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10718 | { (case "(($ac_try" in |
| 10719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10720 | *) ac_try_echo=$ac_try;; |
| 10721 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10722 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10723 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10724 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10725 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10726 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10727 | (exit $ac_status); }; }; then |
| 10728 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10729 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10730 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 10731 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10733 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10734 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10735 | if test "$ac_cv_type_fpos_t" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10736 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 10737 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 10738 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10739 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10740 | $as_echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10741 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10742 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10743 | else |
| 10744 | ac_cv_sizeof_fpos_t=0 |
| 10745 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10746 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10747 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10748 | 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] | 10749 | fi |
| 10750 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10751 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10752 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 10753 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10754 | |
| 10755 | |
| 10756 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10757 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10758 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10759 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10760 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10761 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10762 | # The cast to long int works around a bug in the HP C Compiler |
| 10763 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10764 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10765 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10766 | { $as_echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 10767 | $as_echo_n "checking size of size_t... " >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10768 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10769 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10770 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10771 | if test "$cross_compiling" = yes; then |
| 10772 | # Depending upon the size, compute the lo and hi bounds. |
| 10773 | cat >conftest.$ac_ext <<_ACEOF |
| 10774 | /* confdefs.h. */ |
| 10775 | _ACEOF |
| 10776 | cat confdefs.h >>conftest.$ac_ext |
| 10777 | cat >>conftest.$ac_ext <<_ACEOF |
| 10778 | /* end confdefs.h. */ |
| 10779 | $ac_includes_default |
| 10780 | int |
| 10781 | main () |
| 10782 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10783 | static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)]; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10784 | test_array [0] = 0 |
| 10785 | |
| 10786 | ; |
| 10787 | return 0; |
| 10788 | } |
| 10789 | _ACEOF |
| 10790 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10791 | if { (ac_try="$ac_compile" |
| 10792 | case "(($ac_try" in |
| 10793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10794 | *) ac_try_echo=$ac_try;; |
| 10795 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10796 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10797 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10798 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10799 | ac_status=$? |
| 10800 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10801 | rm -f conftest.er1 |
| 10802 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10803 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10804 | (exit $ac_status); } && { |
| 10805 | test -z "$ac_c_werror_flag" || |
| 10806 | test ! -s conftest.err |
| 10807 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10808 | ac_lo=0 ac_mid=0 |
| 10809 | while :; do |
| 10810 | cat >conftest.$ac_ext <<_ACEOF |
| 10811 | /* confdefs.h. */ |
| 10812 | _ACEOF |
| 10813 | cat confdefs.h >>conftest.$ac_ext |
| 10814 | cat >>conftest.$ac_ext <<_ACEOF |
| 10815 | /* end confdefs.h. */ |
| 10816 | $ac_includes_default |
| 10817 | int |
| 10818 | main () |
| 10819 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10820 | static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)]; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10821 | test_array [0] = 0 |
| 10822 | |
| 10823 | ; |
| 10824 | return 0; |
| 10825 | } |
| 10826 | _ACEOF |
| 10827 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10828 | if { (ac_try="$ac_compile" |
| 10829 | case "(($ac_try" in |
| 10830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10831 | *) ac_try_echo=$ac_try;; |
| 10832 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10833 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10834 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10835 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10836 | ac_status=$? |
| 10837 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10838 | rm -f conftest.er1 |
| 10839 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10840 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10841 | (exit $ac_status); } && { |
| 10842 | test -z "$ac_c_werror_flag" || |
| 10843 | test ! -s conftest.err |
| 10844 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10845 | ac_hi=$ac_mid; break |
| 10846 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10847 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10848 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10849 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10850 | ac_lo=`expr $ac_mid + 1` |
| 10851 | if test $ac_lo -le $ac_mid; then |
| 10852 | ac_lo= ac_hi= |
| 10853 | break |
| 10854 | fi |
| 10855 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10856 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10857 | |
| 10858 | 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] | 10859 | done |
| 10860 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10861 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10863 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10864 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10865 | /* confdefs.h. */ |
| 10866 | _ACEOF |
| 10867 | cat confdefs.h >>conftest.$ac_ext |
| 10868 | cat >>conftest.$ac_ext <<_ACEOF |
| 10869 | /* end confdefs.h. */ |
| 10870 | $ac_includes_default |
| 10871 | int |
| 10872 | main () |
| 10873 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10874 | static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)]; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10875 | test_array [0] = 0 |
| 10876 | |
| 10877 | ; |
| 10878 | return 0; |
| 10879 | } |
| 10880 | _ACEOF |
| 10881 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10882 | if { (ac_try="$ac_compile" |
| 10883 | case "(($ac_try" in |
| 10884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10885 | *) ac_try_echo=$ac_try;; |
| 10886 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10887 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10888 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10889 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10890 | ac_status=$? |
| 10891 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10892 | rm -f conftest.er1 |
| 10893 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10894 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10895 | (exit $ac_status); } && { |
| 10896 | test -z "$ac_c_werror_flag" || |
| 10897 | test ! -s conftest.err |
| 10898 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10899 | ac_hi=-1 ac_mid=-1 |
| 10900 | while :; do |
| 10901 | cat >conftest.$ac_ext <<_ACEOF |
| 10902 | /* confdefs.h. */ |
| 10903 | _ACEOF |
| 10904 | cat confdefs.h >>conftest.$ac_ext |
| 10905 | cat >>conftest.$ac_ext <<_ACEOF |
| 10906 | /* end confdefs.h. */ |
| 10907 | $ac_includes_default |
| 10908 | int |
| 10909 | main () |
| 10910 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10911 | static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)]; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10912 | test_array [0] = 0 |
| 10913 | |
| 10914 | ; |
| 10915 | return 0; |
| 10916 | } |
| 10917 | _ACEOF |
| 10918 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10919 | if { (ac_try="$ac_compile" |
| 10920 | case "(($ac_try" in |
| 10921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10922 | *) ac_try_echo=$ac_try;; |
| 10923 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10924 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10925 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10926 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10927 | ac_status=$? |
| 10928 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10929 | rm -f conftest.er1 |
| 10930 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10931 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10932 | (exit $ac_status); } && { |
| 10933 | test -z "$ac_c_werror_flag" || |
| 10934 | test ! -s conftest.err |
| 10935 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10936 | ac_lo=$ac_mid; break |
| 10937 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10938 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10940 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10941 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10942 | if test $ac_mid -le $ac_hi; then |
| 10943 | ac_lo= ac_hi= |
| 10944 | break |
| 10945 | fi |
| 10946 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10947 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10948 | |
| 10949 | 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] | 10950 | done |
| 10951 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10952 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10954 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10955 | ac_lo= ac_hi= |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10956 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10957 | |
| 10958 | 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] | 10959 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10960 | |
| 10961 | 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] | 10962 | # Binary search between lo and hi bounds. |
| 10963 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10964 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10965 | cat >conftest.$ac_ext <<_ACEOF |
| 10966 | /* confdefs.h. */ |
| 10967 | _ACEOF |
| 10968 | cat confdefs.h >>conftest.$ac_ext |
| 10969 | cat >>conftest.$ac_ext <<_ACEOF |
| 10970 | /* end confdefs.h. */ |
| 10971 | $ac_includes_default |
| 10972 | int |
| 10973 | main () |
| 10974 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10975 | static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)]; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10976 | test_array [0] = 0 |
| 10977 | |
| 10978 | ; |
| 10979 | return 0; |
| 10980 | } |
| 10981 | _ACEOF |
| 10982 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10983 | if { (ac_try="$ac_compile" |
| 10984 | case "(($ac_try" in |
| 10985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10986 | *) ac_try_echo=$ac_try;; |
| 10987 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10988 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10989 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10990 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10991 | ac_status=$? |
| 10992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10993 | rm -f conftest.er1 |
| 10994 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 10995 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10996 | (exit $ac_status); } && { |
| 10997 | test -z "$ac_c_werror_flag" || |
| 10998 | test ! -s conftest.err |
| 10999 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11000 | ac_hi=$ac_mid |
| 11001 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11002 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11003 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11004 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11005 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11006 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11007 | |
| 11008 | 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] | 11009 | done |
| 11010 | case $ac_lo in |
| 11011 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11012 | '') if test "$ac_cv_type_size_t" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11013 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 11014 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11015 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11016 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11017 | $as_echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11018 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11019 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11020 | else |
| 11021 | ac_cv_sizeof_size_t=0 |
| 11022 | fi ;; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11023 | esac |
| 11024 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11025 | cat >conftest.$ac_ext <<_ACEOF |
| 11026 | /* confdefs.h. */ |
| 11027 | _ACEOF |
| 11028 | cat confdefs.h >>conftest.$ac_ext |
| 11029 | cat >>conftest.$ac_ext <<_ACEOF |
| 11030 | /* end confdefs.h. */ |
| 11031 | $ac_includes_default |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11032 | static long int longval () { return (long int) (sizeof (size_t)); } |
| 11033 | static unsigned long int ulongval () { return (long int) (sizeof (size_t)); } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11034 | #include <stdio.h> |
| 11035 | #include <stdlib.h> |
| 11036 | int |
| 11037 | main () |
| 11038 | { |
| 11039 | |
| 11040 | FILE *f = fopen ("conftest.val", "w"); |
| 11041 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11042 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11043 | if (((long int) (sizeof (size_t))) < 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11044 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11045 | long int i = longval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11046 | if (i != ((long int) (sizeof (size_t)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11047 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11048 | fprintf (f, "%ld", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11049 | } |
| 11050 | else |
| 11051 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11052 | unsigned long int i = ulongval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11053 | if (i != ((long int) (sizeof (size_t)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11054 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11055 | fprintf (f, "%lu", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11056 | } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11057 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 11058 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11059 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11060 | |
| 11061 | ; |
| 11062 | return 0; |
| 11063 | } |
| 11064 | _ACEOF |
| 11065 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11066 | if { (ac_try="$ac_link" |
| 11067 | case "(($ac_try" in |
| 11068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11069 | *) ac_try_echo=$ac_try;; |
| 11070 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11071 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11072 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11073 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11074 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11075 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11076 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11077 | { (case "(($ac_try" in |
| 11078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11079 | *) ac_try_echo=$ac_try;; |
| 11080 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11081 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11082 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11083 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11084 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11085 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11086 | (exit $ac_status); }; }; then |
| 11087 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 11088 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11089 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 11090 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11092 | |
| 11093 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11094 | if test "$ac_cv_type_size_t" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11095 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 11096 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11097 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11098 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11099 | $as_echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11100 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11101 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11102 | else |
| 11103 | ac_cv_sizeof_size_t=0 |
| 11104 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11105 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11106 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11107 | 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] | 11108 | fi |
| 11109 | rm -f conftest.val |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11110 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11111 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 11112 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11113 | |
| 11114 | |
| 11115 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 11116 | cat >>confdefs.h <<_ACEOF |
| 11117 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 11118 | _ACEOF |
| 11119 | |
| 11120 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11121 | # The cast to long int works around a bug in the HP C Compiler |
| 11122 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11123 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11124 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11125 | { $as_echo "$as_me:$LINENO: checking size of pid_t" >&5 |
| 11126 | $as_echo_n "checking size of pid_t... " >&6; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11127 | if test "${ac_cv_sizeof_pid_t+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11128 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11129 | else |
| 11130 | if test "$cross_compiling" = yes; then |
| 11131 | # Depending upon the size, compute the lo and hi bounds. |
| 11132 | cat >conftest.$ac_ext <<_ACEOF |
| 11133 | /* confdefs.h. */ |
| 11134 | _ACEOF |
| 11135 | cat confdefs.h >>conftest.$ac_ext |
| 11136 | cat >>conftest.$ac_ext <<_ACEOF |
| 11137 | /* end confdefs.h. */ |
| 11138 | $ac_includes_default |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11139 | int |
| 11140 | main () |
| 11141 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11142 | static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) >= 0)]; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11143 | test_array [0] = 0 |
| 11144 | |
| 11145 | ; |
| 11146 | return 0; |
| 11147 | } |
| 11148 | _ACEOF |
| 11149 | rm -f conftest.$ac_objext |
| 11150 | if { (ac_try="$ac_compile" |
| 11151 | case "(($ac_try" in |
| 11152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11153 | *) ac_try_echo=$ac_try;; |
| 11154 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11155 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11156 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11157 | (eval "$ac_compile") 2>conftest.er1 |
| 11158 | ac_status=$? |
| 11159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11160 | rm -f conftest.er1 |
| 11161 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11162 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11163 | (exit $ac_status); } && { |
| 11164 | test -z "$ac_c_werror_flag" || |
| 11165 | test ! -s conftest.err |
| 11166 | } && test -s conftest.$ac_objext; then |
| 11167 | ac_lo=0 ac_mid=0 |
| 11168 | while :; do |
| 11169 | cat >conftest.$ac_ext <<_ACEOF |
| 11170 | /* confdefs.h. */ |
| 11171 | _ACEOF |
| 11172 | cat confdefs.h >>conftest.$ac_ext |
| 11173 | cat >>conftest.$ac_ext <<_ACEOF |
| 11174 | /* end confdefs.h. */ |
| 11175 | $ac_includes_default |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11176 | int |
| 11177 | main () |
| 11178 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11179 | static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) <= $ac_mid)]; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11180 | test_array [0] = 0 |
| 11181 | |
| 11182 | ; |
| 11183 | return 0; |
| 11184 | } |
| 11185 | _ACEOF |
| 11186 | rm -f conftest.$ac_objext |
| 11187 | if { (ac_try="$ac_compile" |
| 11188 | case "(($ac_try" in |
| 11189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11190 | *) ac_try_echo=$ac_try;; |
| 11191 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11192 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11193 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11194 | (eval "$ac_compile") 2>conftest.er1 |
| 11195 | ac_status=$? |
| 11196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11197 | rm -f conftest.er1 |
| 11198 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11199 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11200 | (exit $ac_status); } && { |
| 11201 | test -z "$ac_c_werror_flag" || |
| 11202 | test ! -s conftest.err |
| 11203 | } && test -s conftest.$ac_objext; then |
| 11204 | ac_hi=$ac_mid; break |
| 11205 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11206 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11208 | |
| 11209 | ac_lo=`expr $ac_mid + 1` |
| 11210 | if test $ac_lo -le $ac_mid; then |
| 11211 | ac_lo= ac_hi= |
| 11212 | break |
| 11213 | fi |
| 11214 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11215 | fi |
| 11216 | |
| 11217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11218 | done |
| 11219 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11220 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11222 | |
| 11223 | cat >conftest.$ac_ext <<_ACEOF |
| 11224 | /* confdefs.h. */ |
| 11225 | _ACEOF |
| 11226 | cat confdefs.h >>conftest.$ac_ext |
| 11227 | cat >>conftest.$ac_ext <<_ACEOF |
| 11228 | /* end confdefs.h. */ |
| 11229 | $ac_includes_default |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11230 | int |
| 11231 | main () |
| 11232 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11233 | static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) < 0)]; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11234 | test_array [0] = 0 |
| 11235 | |
| 11236 | ; |
| 11237 | return 0; |
| 11238 | } |
| 11239 | _ACEOF |
| 11240 | rm -f conftest.$ac_objext |
| 11241 | if { (ac_try="$ac_compile" |
| 11242 | case "(($ac_try" in |
| 11243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11244 | *) ac_try_echo=$ac_try;; |
| 11245 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11246 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11247 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11248 | (eval "$ac_compile") 2>conftest.er1 |
| 11249 | ac_status=$? |
| 11250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11251 | rm -f conftest.er1 |
| 11252 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11253 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11254 | (exit $ac_status); } && { |
| 11255 | test -z "$ac_c_werror_flag" || |
| 11256 | test ! -s conftest.err |
| 11257 | } && test -s conftest.$ac_objext; then |
| 11258 | ac_hi=-1 ac_mid=-1 |
| 11259 | while :; do |
| 11260 | cat >conftest.$ac_ext <<_ACEOF |
| 11261 | /* confdefs.h. */ |
| 11262 | _ACEOF |
| 11263 | cat confdefs.h >>conftest.$ac_ext |
| 11264 | cat >>conftest.$ac_ext <<_ACEOF |
| 11265 | /* end confdefs.h. */ |
| 11266 | $ac_includes_default |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11267 | int |
| 11268 | main () |
| 11269 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11270 | static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) >= $ac_mid)]; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11271 | test_array [0] = 0 |
| 11272 | |
| 11273 | ; |
| 11274 | return 0; |
| 11275 | } |
| 11276 | _ACEOF |
| 11277 | rm -f conftest.$ac_objext |
| 11278 | if { (ac_try="$ac_compile" |
| 11279 | case "(($ac_try" in |
| 11280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11281 | *) ac_try_echo=$ac_try;; |
| 11282 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11283 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11284 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11285 | (eval "$ac_compile") 2>conftest.er1 |
| 11286 | ac_status=$? |
| 11287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11288 | rm -f conftest.er1 |
| 11289 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11290 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11291 | (exit $ac_status); } && { |
| 11292 | test -z "$ac_c_werror_flag" || |
| 11293 | test ! -s conftest.err |
| 11294 | } && test -s conftest.$ac_objext; then |
| 11295 | ac_lo=$ac_mid; break |
| 11296 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11297 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11299 | |
| 11300 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11301 | if test $ac_mid -le $ac_hi; then |
| 11302 | ac_lo= ac_hi= |
| 11303 | break |
| 11304 | fi |
| 11305 | ac_mid=`expr 2 '*' $ac_mid` |
| 11306 | fi |
| 11307 | |
| 11308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11309 | done |
| 11310 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11311 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11313 | |
| 11314 | ac_lo= ac_hi= |
| 11315 | fi |
| 11316 | |
| 11317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11318 | fi |
| 11319 | |
| 11320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11321 | # Binary search between lo and hi bounds. |
| 11322 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11323 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11324 | cat >conftest.$ac_ext <<_ACEOF |
| 11325 | /* confdefs.h. */ |
| 11326 | _ACEOF |
| 11327 | cat confdefs.h >>conftest.$ac_ext |
| 11328 | cat >>conftest.$ac_ext <<_ACEOF |
| 11329 | /* end confdefs.h. */ |
| 11330 | $ac_includes_default |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11331 | int |
| 11332 | main () |
| 11333 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11334 | static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) <= $ac_mid)]; |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11335 | test_array [0] = 0 |
| 11336 | |
| 11337 | ; |
| 11338 | return 0; |
| 11339 | } |
| 11340 | _ACEOF |
| 11341 | rm -f conftest.$ac_objext |
| 11342 | if { (ac_try="$ac_compile" |
| 11343 | case "(($ac_try" in |
| 11344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11345 | *) ac_try_echo=$ac_try;; |
| 11346 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11347 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11348 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11349 | (eval "$ac_compile") 2>conftest.er1 |
| 11350 | ac_status=$? |
| 11351 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11352 | rm -f conftest.er1 |
| 11353 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11354 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11355 | (exit $ac_status); } && { |
| 11356 | test -z "$ac_c_werror_flag" || |
| 11357 | test ! -s conftest.err |
| 11358 | } && test -s conftest.$ac_objext; then |
| 11359 | ac_hi=$ac_mid |
| 11360 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11361 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11363 | |
| 11364 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11365 | fi |
| 11366 | |
| 11367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11368 | done |
| 11369 | case $ac_lo in |
| 11370 | ?*) ac_cv_sizeof_pid_t=$ac_lo;; |
| 11371 | '') if test "$ac_cv_type_pid_t" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11372 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 11373 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11374 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11375 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11376 | $as_echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11377 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11378 | { (exit 77); exit 77; }; }; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11379 | else |
| 11380 | ac_cv_sizeof_pid_t=0 |
| 11381 | fi ;; |
| 11382 | esac |
| 11383 | else |
| 11384 | cat >conftest.$ac_ext <<_ACEOF |
| 11385 | /* confdefs.h. */ |
| 11386 | _ACEOF |
| 11387 | cat confdefs.h >>conftest.$ac_ext |
| 11388 | cat >>conftest.$ac_ext <<_ACEOF |
| 11389 | /* end confdefs.h. */ |
| 11390 | $ac_includes_default |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11391 | static long int longval () { return (long int) (sizeof (pid_t)); } |
| 11392 | static unsigned long int ulongval () { return (long int) (sizeof (pid_t)); } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11393 | #include <stdio.h> |
| 11394 | #include <stdlib.h> |
| 11395 | int |
| 11396 | main () |
| 11397 | { |
| 11398 | |
| 11399 | FILE *f = fopen ("conftest.val", "w"); |
| 11400 | if (! f) |
| 11401 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11402 | if (((long int) (sizeof (pid_t))) < 0) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11403 | { |
| 11404 | long int i = longval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11405 | if (i != ((long int) (sizeof (pid_t)))) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11406 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11407 | fprintf (f, "%ld", i); |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11408 | } |
| 11409 | else |
| 11410 | { |
| 11411 | unsigned long int i = ulongval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11412 | if (i != ((long int) (sizeof (pid_t)))) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11413 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11414 | fprintf (f, "%lu", i); |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11415 | } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11416 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 11417 | on some platforms. */ |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11418 | return ferror (f) || fclose (f) != 0; |
| 11419 | |
| 11420 | ; |
| 11421 | return 0; |
| 11422 | } |
| 11423 | _ACEOF |
| 11424 | rm -f conftest$ac_exeext |
| 11425 | if { (ac_try="$ac_link" |
| 11426 | case "(($ac_try" in |
| 11427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11428 | *) ac_try_echo=$ac_try;; |
| 11429 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11430 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11431 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11432 | (eval "$ac_link") 2>&5 |
| 11433 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11434 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11435 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11436 | { (case "(($ac_try" in |
| 11437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11438 | *) ac_try_echo=$ac_try;; |
| 11439 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11440 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11441 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11442 | (eval "$ac_try") 2>&5 |
| 11443 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11444 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11445 | (exit $ac_status); }; }; then |
| 11446 | ac_cv_sizeof_pid_t=`cat conftest.val` |
| 11447 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11448 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 11449 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11451 | |
| 11452 | ( exit $ac_status ) |
| 11453 | if test "$ac_cv_type_pid_t" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11454 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 11455 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11456 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11457 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11458 | $as_echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11459 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11460 | { (exit 77); exit 77; }; }; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11461 | else |
| 11462 | ac_cv_sizeof_pid_t=0 |
| 11463 | fi |
| 11464 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11465 | rm -rf conftest.dSYM |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11466 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11467 | fi |
| 11468 | rm -f conftest.val |
| 11469 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11470 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5 |
| 11471 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 11472 | |
| 11473 | |
| 11474 | |
| 11475 | cat >>confdefs.h <<_ACEOF |
| 11476 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 11477 | _ACEOF |
| 11478 | |
| 11479 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11480 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11481 | { $as_echo "$as_me:$LINENO: checking for long long support" >&5 |
| 11482 | $as_echo_n "checking for long long support... " >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11483 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11484 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11485 | /* confdefs.h. */ |
| 11486 | _ACEOF |
| 11487 | cat confdefs.h >>conftest.$ac_ext |
| 11488 | cat >>conftest.$ac_ext <<_ACEOF |
| 11489 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11490 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11491 | int |
| 11492 | main () |
| 11493 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11494 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11495 | ; |
| 11496 | return 0; |
| 11497 | } |
| 11498 | _ACEOF |
| 11499 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11500 | if { (ac_try="$ac_compile" |
| 11501 | case "(($ac_try" in |
| 11502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11503 | *) ac_try_echo=$ac_try;; |
| 11504 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11505 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11506 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11507 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11508 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11509 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11510 | rm -f conftest.er1 |
| 11511 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11512 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11513 | (exit $ac_status); } && { |
| 11514 | test -z "$ac_c_werror_flag" || |
| 11515 | test ! -s conftest.err |
| 11516 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11517 | |
| 11518 | |
| 11519 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11520 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11521 | _ACEOF |
| 11522 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11523 | have_long_long=yes |
| 11524 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11525 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11526 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11528 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11529 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11530 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11531 | |
| 11532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11533 | { $as_echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 11534 | $as_echo "$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 11535 | if test "$have_long_long" = yes ; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11536 | # The cast to long int works around a bug in the HP C Compiler |
| 11537 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11538 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11539 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11540 | { $as_echo "$as_me:$LINENO: checking size of long long" >&5 |
| 11541 | $as_echo_n "checking size of long long... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11542 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11543 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11544 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11545 | if test "$cross_compiling" = yes; then |
| 11546 | # Depending upon the size, compute the lo and hi bounds. |
| 11547 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11548 | /* confdefs.h. */ |
| 11549 | _ACEOF |
| 11550 | cat confdefs.h >>conftest.$ac_ext |
| 11551 | cat >>conftest.$ac_ext <<_ACEOF |
| 11552 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11553 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11554 | int |
| 11555 | main () |
| 11556 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11557 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11558 | test_array [0] = 0 |
| 11559 | |
| 11560 | ; |
| 11561 | return 0; |
| 11562 | } |
| 11563 | _ACEOF |
| 11564 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11565 | if { (ac_try="$ac_compile" |
| 11566 | case "(($ac_try" in |
| 11567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11568 | *) ac_try_echo=$ac_try;; |
| 11569 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11570 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11571 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11572 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11573 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11574 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11575 | rm -f conftest.er1 |
| 11576 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11577 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11578 | (exit $ac_status); } && { |
| 11579 | test -z "$ac_c_werror_flag" || |
| 11580 | test ! -s conftest.err |
| 11581 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11582 | ac_lo=0 ac_mid=0 |
| 11583 | while :; do |
| 11584 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11585 | /* confdefs.h. */ |
| 11586 | _ACEOF |
| 11587 | cat confdefs.h >>conftest.$ac_ext |
| 11588 | cat >>conftest.$ac_ext <<_ACEOF |
| 11589 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11590 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11591 | int |
| 11592 | main () |
| 11593 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11594 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11595 | test_array [0] = 0 |
| 11596 | |
| 11597 | ; |
| 11598 | return 0; |
| 11599 | } |
| 11600 | _ACEOF |
| 11601 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11602 | if { (ac_try="$ac_compile" |
| 11603 | case "(($ac_try" in |
| 11604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11605 | *) ac_try_echo=$ac_try;; |
| 11606 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11607 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11608 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11609 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11610 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11612 | rm -f conftest.er1 |
| 11613 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11614 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11615 | (exit $ac_status); } && { |
| 11616 | test -z "$ac_c_werror_flag" || |
| 11617 | test ! -s conftest.err |
| 11618 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11619 | ac_hi=$ac_mid; break |
| 11620 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11621 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11623 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11624 | ac_lo=`expr $ac_mid + 1` |
| 11625 | if test $ac_lo -le $ac_mid; then |
| 11626 | ac_lo= ac_hi= |
| 11627 | break |
| 11628 | fi |
| 11629 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11630 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11631 | |
| 11632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11633 | done |
| 11634 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11635 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11637 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11638 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11639 | /* confdefs.h. */ |
| 11640 | _ACEOF |
| 11641 | cat confdefs.h >>conftest.$ac_ext |
| 11642 | cat >>conftest.$ac_ext <<_ACEOF |
| 11643 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11644 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11645 | int |
| 11646 | main () |
| 11647 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11648 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11649 | test_array [0] = 0 |
| 11650 | |
| 11651 | ; |
| 11652 | return 0; |
| 11653 | } |
| 11654 | _ACEOF |
| 11655 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11656 | if { (ac_try="$ac_compile" |
| 11657 | case "(($ac_try" in |
| 11658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11659 | *) ac_try_echo=$ac_try;; |
| 11660 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11661 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11662 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11663 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11664 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11665 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11666 | rm -f conftest.er1 |
| 11667 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11668 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11669 | (exit $ac_status); } && { |
| 11670 | test -z "$ac_c_werror_flag" || |
| 11671 | test ! -s conftest.err |
| 11672 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11673 | ac_hi=-1 ac_mid=-1 |
| 11674 | while :; do |
| 11675 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11676 | /* confdefs.h. */ |
| 11677 | _ACEOF |
| 11678 | cat confdefs.h >>conftest.$ac_ext |
| 11679 | cat >>conftest.$ac_ext <<_ACEOF |
| 11680 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11681 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11682 | int |
| 11683 | main () |
| 11684 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11685 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11686 | test_array [0] = 0 |
| 11687 | |
| 11688 | ; |
| 11689 | return 0; |
| 11690 | } |
| 11691 | _ACEOF |
| 11692 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11693 | if { (ac_try="$ac_compile" |
| 11694 | case "(($ac_try" in |
| 11695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11696 | *) ac_try_echo=$ac_try;; |
| 11697 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11698 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11699 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11700 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11701 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11703 | rm -f conftest.er1 |
| 11704 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11705 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11706 | (exit $ac_status); } && { |
| 11707 | test -z "$ac_c_werror_flag" || |
| 11708 | test ! -s conftest.err |
| 11709 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11710 | ac_lo=$ac_mid; break |
| 11711 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11712 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11714 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11715 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11716 | if test $ac_mid -le $ac_hi; then |
| 11717 | ac_lo= ac_hi= |
| 11718 | break |
| 11719 | fi |
| 11720 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11721 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11722 | |
| 11723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11724 | done |
| 11725 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11726 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11728 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11729 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11730 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11731 | |
| 11732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11733 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11734 | |
| 11735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11736 | # Binary search between lo and hi bounds. |
| 11737 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11738 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11739 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11740 | /* confdefs.h. */ |
| 11741 | _ACEOF |
| 11742 | cat confdefs.h >>conftest.$ac_ext |
| 11743 | cat >>conftest.$ac_ext <<_ACEOF |
| 11744 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11745 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11746 | int |
| 11747 | main () |
| 11748 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11749 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11750 | test_array [0] = 0 |
| 11751 | |
| 11752 | ; |
| 11753 | return 0; |
| 11754 | } |
| 11755 | _ACEOF |
| 11756 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11757 | if { (ac_try="$ac_compile" |
| 11758 | case "(($ac_try" in |
| 11759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11760 | *) ac_try_echo=$ac_try;; |
| 11761 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11762 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11763 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11764 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11765 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11766 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11767 | rm -f conftest.er1 |
| 11768 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11769 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11770 | (exit $ac_status); } && { |
| 11771 | test -z "$ac_c_werror_flag" || |
| 11772 | test ! -s conftest.err |
| 11773 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11774 | ac_hi=$ac_mid |
| 11775 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11776 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11778 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11779 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11780 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11781 | |
| 11782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11783 | done |
| 11784 | case $ac_lo in |
| 11785 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11786 | '') if test "$ac_cv_type_long_long" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11787 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 11788 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11789 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11790 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11791 | $as_echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11792 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11793 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11794 | else |
| 11795 | ac_cv_sizeof_long_long=0 |
| 11796 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11797 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11798 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11799 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11800 | /* confdefs.h. */ |
| 11801 | _ACEOF |
| 11802 | cat confdefs.h >>conftest.$ac_ext |
| 11803 | cat >>conftest.$ac_ext <<_ACEOF |
| 11804 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11805 | $ac_includes_default |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11806 | static long int longval () { return (long int) (sizeof (long long)); } |
| 11807 | static unsigned long int ulongval () { return (long int) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11808 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11809 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11810 | int |
| 11811 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11812 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11813 | |
| 11814 | FILE *f = fopen ("conftest.val", "w"); |
| 11815 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11816 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11817 | if (((long int) (sizeof (long long))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11818 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11819 | long int i = longval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11820 | if (i != ((long int) (sizeof (long long)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11821 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11822 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11823 | } |
| 11824 | else |
| 11825 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11826 | unsigned long int i = ulongval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11827 | if (i != ((long int) (sizeof (long long)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11828 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11829 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11830 | } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11831 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 11832 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11833 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11834 | |
| 11835 | ; |
| 11836 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11837 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11838 | _ACEOF |
| 11839 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11840 | if { (ac_try="$ac_link" |
| 11841 | case "(($ac_try" in |
| 11842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11843 | *) ac_try_echo=$ac_try;; |
| 11844 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11845 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11846 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11847 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11848 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11849 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11850 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11851 | { (case "(($ac_try" in |
| 11852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11853 | *) ac_try_echo=$ac_try;; |
| 11854 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11855 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11856 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11857 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11858 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11859 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11860 | (exit $ac_status); }; }; then |
| 11861 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11862 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11863 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 11864 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11866 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11867 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11868 | if test "$ac_cv_type_long_long" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11869 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 11870 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11871 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11872 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11873 | $as_echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11874 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11875 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11876 | else |
| 11877 | ac_cv_sizeof_long_long=0 |
| 11878 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11879 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11880 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11881 | 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] | 11882 | fi |
| 11883 | rm -f conftest.val |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11884 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11885 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 11886 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11887 | |
| 11888 | |
| 11889 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11890 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11891 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11892 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11893 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11894 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11895 | fi |
| 11896 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11897 | { $as_echo "$as_me:$LINENO: checking for long double support" >&5 |
| 11898 | $as_echo_n "checking for long double support... " >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11899 | have_long_double=no |
| 11900 | cat >conftest.$ac_ext <<_ACEOF |
| 11901 | /* confdefs.h. */ |
| 11902 | _ACEOF |
| 11903 | cat confdefs.h >>conftest.$ac_ext |
| 11904 | cat >>conftest.$ac_ext <<_ACEOF |
| 11905 | /* end confdefs.h. */ |
| 11906 | |
| 11907 | int |
| 11908 | main () |
| 11909 | { |
| 11910 | long double x; x = (long double)0; |
| 11911 | ; |
| 11912 | return 0; |
| 11913 | } |
| 11914 | _ACEOF |
| 11915 | rm -f conftest.$ac_objext |
| 11916 | if { (ac_try="$ac_compile" |
| 11917 | case "(($ac_try" in |
| 11918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11919 | *) ac_try_echo=$ac_try;; |
| 11920 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11921 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11922 | $as_echo "$ac_try_echo") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11923 | (eval "$ac_compile") 2>conftest.er1 |
| 11924 | ac_status=$? |
| 11925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11926 | rm -f conftest.er1 |
| 11927 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11928 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11929 | (exit $ac_status); } && { |
| 11930 | test -z "$ac_c_werror_flag" || |
| 11931 | test ! -s conftest.err |
| 11932 | } && test -s conftest.$ac_objext; then |
| 11933 | |
| 11934 | |
| 11935 | cat >>confdefs.h <<\_ACEOF |
| 11936 | #define HAVE_LONG_DOUBLE 1 |
| 11937 | _ACEOF |
| 11938 | |
| 11939 | have_long_double=yes |
| 11940 | |
| 11941 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11942 | $as_echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11944 | |
| 11945 | |
| 11946 | fi |
| 11947 | |
| 11948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11949 | { $as_echo "$as_me:$LINENO: result: $have_long_double" >&5 |
| 11950 | $as_echo "$have_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11951 | if test "$have_long_double" = yes ; then |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11952 | # The cast to long int works around a bug in the HP C Compiler |
| 11953 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11954 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11955 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11956 | { $as_echo "$as_me:$LINENO: checking size of long double" >&5 |
| 11957 | $as_echo_n "checking size of long double... " >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11958 | if test "${ac_cv_sizeof_long_double+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11959 | $as_echo_n "(cached) " >&6 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11960 | else |
| 11961 | if test "$cross_compiling" = yes; then |
| 11962 | # Depending upon the size, compute the lo and hi bounds. |
| 11963 | cat >conftest.$ac_ext <<_ACEOF |
| 11964 | /* confdefs.h. */ |
| 11965 | _ACEOF |
| 11966 | cat confdefs.h >>conftest.$ac_ext |
| 11967 | cat >>conftest.$ac_ext <<_ACEOF |
| 11968 | /* end confdefs.h. */ |
| 11969 | $ac_includes_default |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11970 | int |
| 11971 | main () |
| 11972 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11973 | static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)]; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11974 | test_array [0] = 0 |
| 11975 | |
| 11976 | ; |
| 11977 | return 0; |
| 11978 | } |
| 11979 | _ACEOF |
| 11980 | rm -f conftest.$ac_objext |
| 11981 | if { (ac_try="$ac_compile" |
| 11982 | case "(($ac_try" in |
| 11983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11984 | *) ac_try_echo=$ac_try;; |
| 11985 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11986 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11987 | $as_echo "$ac_try_echo") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11988 | (eval "$ac_compile") 2>conftest.er1 |
| 11989 | ac_status=$? |
| 11990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11991 | rm -f conftest.er1 |
| 11992 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 11993 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11994 | (exit $ac_status); } && { |
| 11995 | test -z "$ac_c_werror_flag" || |
| 11996 | test ! -s conftest.err |
| 11997 | } && test -s conftest.$ac_objext; then |
| 11998 | ac_lo=0 ac_mid=0 |
| 11999 | while :; do |
| 12000 | cat >conftest.$ac_ext <<_ACEOF |
| 12001 | /* confdefs.h. */ |
| 12002 | _ACEOF |
| 12003 | cat confdefs.h >>conftest.$ac_ext |
| 12004 | cat >>conftest.$ac_ext <<_ACEOF |
| 12005 | /* end confdefs.h. */ |
| 12006 | $ac_includes_default |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12007 | int |
| 12008 | main () |
| 12009 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12010 | static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)]; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12011 | test_array [0] = 0 |
| 12012 | |
| 12013 | ; |
| 12014 | return 0; |
| 12015 | } |
| 12016 | _ACEOF |
| 12017 | rm -f conftest.$ac_objext |
| 12018 | if { (ac_try="$ac_compile" |
| 12019 | case "(($ac_try" in |
| 12020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12021 | *) ac_try_echo=$ac_try;; |
| 12022 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12023 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12024 | $as_echo "$ac_try_echo") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12025 | (eval "$ac_compile") 2>conftest.er1 |
| 12026 | ac_status=$? |
| 12027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12028 | rm -f conftest.er1 |
| 12029 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12030 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12031 | (exit $ac_status); } && { |
| 12032 | test -z "$ac_c_werror_flag" || |
| 12033 | test ! -s conftest.err |
| 12034 | } && test -s conftest.$ac_objext; then |
| 12035 | ac_hi=$ac_mid; break |
| 12036 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12037 | $as_echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12039 | |
| 12040 | ac_lo=`expr $ac_mid + 1` |
| 12041 | if test $ac_lo -le $ac_mid; then |
| 12042 | ac_lo= ac_hi= |
| 12043 | break |
| 12044 | fi |
| 12045 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 12046 | fi |
| 12047 | |
| 12048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12049 | done |
| 12050 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12051 | $as_echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12053 | |
| 12054 | cat >conftest.$ac_ext <<_ACEOF |
| 12055 | /* confdefs.h. */ |
| 12056 | _ACEOF |
| 12057 | cat confdefs.h >>conftest.$ac_ext |
| 12058 | cat >>conftest.$ac_ext <<_ACEOF |
| 12059 | /* end confdefs.h. */ |
| 12060 | $ac_includes_default |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12061 | int |
| 12062 | main () |
| 12063 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12064 | static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)]; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12065 | test_array [0] = 0 |
| 12066 | |
| 12067 | ; |
| 12068 | return 0; |
| 12069 | } |
| 12070 | _ACEOF |
| 12071 | rm -f conftest.$ac_objext |
| 12072 | if { (ac_try="$ac_compile" |
| 12073 | case "(($ac_try" in |
| 12074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12075 | *) ac_try_echo=$ac_try;; |
| 12076 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12077 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12078 | $as_echo "$ac_try_echo") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12079 | (eval "$ac_compile") 2>conftest.er1 |
| 12080 | ac_status=$? |
| 12081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12082 | rm -f conftest.er1 |
| 12083 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12084 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12085 | (exit $ac_status); } && { |
| 12086 | test -z "$ac_c_werror_flag" || |
| 12087 | test ! -s conftest.err |
| 12088 | } && test -s conftest.$ac_objext; then |
| 12089 | ac_hi=-1 ac_mid=-1 |
| 12090 | while :; do |
| 12091 | cat >conftest.$ac_ext <<_ACEOF |
| 12092 | /* confdefs.h. */ |
| 12093 | _ACEOF |
| 12094 | cat confdefs.h >>conftest.$ac_ext |
| 12095 | cat >>conftest.$ac_ext <<_ACEOF |
| 12096 | /* end confdefs.h. */ |
| 12097 | $ac_includes_default |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12098 | int |
| 12099 | main () |
| 12100 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12101 | static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)]; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12102 | test_array [0] = 0 |
| 12103 | |
| 12104 | ; |
| 12105 | return 0; |
| 12106 | } |
| 12107 | _ACEOF |
| 12108 | rm -f conftest.$ac_objext |
| 12109 | if { (ac_try="$ac_compile" |
| 12110 | case "(($ac_try" in |
| 12111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12112 | *) ac_try_echo=$ac_try;; |
| 12113 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12114 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12115 | $as_echo "$ac_try_echo") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12116 | (eval "$ac_compile") 2>conftest.er1 |
| 12117 | ac_status=$? |
| 12118 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12119 | rm -f conftest.er1 |
| 12120 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12121 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12122 | (exit $ac_status); } && { |
| 12123 | test -z "$ac_c_werror_flag" || |
| 12124 | test ! -s conftest.err |
| 12125 | } && test -s conftest.$ac_objext; then |
| 12126 | ac_lo=$ac_mid; break |
| 12127 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12128 | $as_echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12129 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12130 | |
| 12131 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12132 | if test $ac_mid -le $ac_hi; then |
| 12133 | ac_lo= ac_hi= |
| 12134 | break |
| 12135 | fi |
| 12136 | ac_mid=`expr 2 '*' $ac_mid` |
| 12137 | fi |
| 12138 | |
| 12139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12140 | done |
| 12141 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12142 | $as_echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12144 | |
| 12145 | ac_lo= ac_hi= |
| 12146 | fi |
| 12147 | |
| 12148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12149 | fi |
| 12150 | |
| 12151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12152 | # Binary search between lo and hi bounds. |
| 12153 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12154 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12155 | cat >conftest.$ac_ext <<_ACEOF |
| 12156 | /* confdefs.h. */ |
| 12157 | _ACEOF |
| 12158 | cat confdefs.h >>conftest.$ac_ext |
| 12159 | cat >>conftest.$ac_ext <<_ACEOF |
| 12160 | /* end confdefs.h. */ |
| 12161 | $ac_includes_default |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12162 | int |
| 12163 | main () |
| 12164 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12165 | static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)]; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12166 | test_array [0] = 0 |
| 12167 | |
| 12168 | ; |
| 12169 | return 0; |
| 12170 | } |
| 12171 | _ACEOF |
| 12172 | rm -f conftest.$ac_objext |
| 12173 | if { (ac_try="$ac_compile" |
| 12174 | case "(($ac_try" in |
| 12175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12176 | *) ac_try_echo=$ac_try;; |
| 12177 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12178 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12179 | $as_echo "$ac_try_echo") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12180 | (eval "$ac_compile") 2>conftest.er1 |
| 12181 | ac_status=$? |
| 12182 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12183 | rm -f conftest.er1 |
| 12184 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12185 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12186 | (exit $ac_status); } && { |
| 12187 | test -z "$ac_c_werror_flag" || |
| 12188 | test ! -s conftest.err |
| 12189 | } && test -s conftest.$ac_objext; then |
| 12190 | ac_hi=$ac_mid |
| 12191 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12192 | $as_echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12194 | |
| 12195 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 12196 | fi |
| 12197 | |
| 12198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12199 | done |
| 12200 | case $ac_lo in |
| 12201 | ?*) ac_cv_sizeof_long_double=$ac_lo;; |
| 12202 | '') if test "$ac_cv_type_long_double" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12203 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 12204 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12205 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12206 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12207 | $as_echo "$as_me: error: cannot compute sizeof (long double) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12208 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12209 | { (exit 77); exit 77; }; }; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12210 | else |
| 12211 | ac_cv_sizeof_long_double=0 |
| 12212 | fi ;; |
| 12213 | esac |
| 12214 | else |
| 12215 | cat >conftest.$ac_ext <<_ACEOF |
| 12216 | /* confdefs.h. */ |
| 12217 | _ACEOF |
| 12218 | cat confdefs.h >>conftest.$ac_ext |
| 12219 | cat >>conftest.$ac_ext <<_ACEOF |
| 12220 | /* end confdefs.h. */ |
| 12221 | $ac_includes_default |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12222 | static long int longval () { return (long int) (sizeof (long double)); } |
| 12223 | static unsigned long int ulongval () { return (long int) (sizeof (long double)); } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12224 | #include <stdio.h> |
| 12225 | #include <stdlib.h> |
| 12226 | int |
| 12227 | main () |
| 12228 | { |
| 12229 | |
| 12230 | FILE *f = fopen ("conftest.val", "w"); |
| 12231 | if (! f) |
| 12232 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12233 | if (((long int) (sizeof (long double))) < 0) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12234 | { |
| 12235 | long int i = longval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12236 | if (i != ((long int) (sizeof (long double)))) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12237 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12238 | fprintf (f, "%ld", i); |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12239 | } |
| 12240 | else |
| 12241 | { |
| 12242 | unsigned long int i = ulongval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12243 | if (i != ((long int) (sizeof (long double)))) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12244 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12245 | fprintf (f, "%lu", i); |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12246 | } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12247 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 12248 | on some platforms. */ |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12249 | return ferror (f) || fclose (f) != 0; |
| 12250 | |
| 12251 | ; |
| 12252 | return 0; |
| 12253 | } |
| 12254 | _ACEOF |
| 12255 | rm -f conftest$ac_exeext |
| 12256 | if { (ac_try="$ac_link" |
| 12257 | case "(($ac_try" in |
| 12258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12259 | *) ac_try_echo=$ac_try;; |
| 12260 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12261 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12262 | $as_echo "$ac_try_echo") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12263 | (eval "$ac_link") 2>&5 |
| 12264 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12265 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12266 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12267 | { (case "(($ac_try" in |
| 12268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12269 | *) ac_try_echo=$ac_try;; |
| 12270 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12271 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12272 | $as_echo "$ac_try_echo") >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12273 | (eval "$ac_try") 2>&5 |
| 12274 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12275 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12276 | (exit $ac_status); }; }; then |
| 12277 | ac_cv_sizeof_long_double=`cat conftest.val` |
| 12278 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12279 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 12280 | $as_echo "$as_me: failed program was:" >&5 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12282 | |
| 12283 | ( exit $ac_status ) |
| 12284 | if test "$ac_cv_type_long_double" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12285 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 12286 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12287 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12288 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12289 | $as_echo "$as_me: error: cannot compute sizeof (long double) |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12290 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12291 | { (exit 77); exit 77; }; }; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12292 | else |
| 12293 | ac_cv_sizeof_long_double=0 |
| 12294 | fi |
| 12295 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12296 | rm -rf conftest.dSYM |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12297 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12298 | fi |
| 12299 | rm -f conftest.val |
| 12300 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12301 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 |
| 12302 | $as_echo "$ac_cv_sizeof_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 12303 | |
| 12304 | |
| 12305 | |
| 12306 | cat >>confdefs.h <<_ACEOF |
| 12307 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 12308 | _ACEOF |
| 12309 | |
| 12310 | |
| 12311 | fi |
| 12312 | |
| 12313 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12314 | { $as_echo "$as_me:$LINENO: checking for _Bool support" >&5 |
| 12315 | $as_echo_n "checking for _Bool support... " >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12316 | have_c99_bool=no |
| 12317 | cat >conftest.$ac_ext <<_ACEOF |
| 12318 | /* confdefs.h. */ |
| 12319 | _ACEOF |
| 12320 | cat confdefs.h >>conftest.$ac_ext |
| 12321 | cat >>conftest.$ac_ext <<_ACEOF |
| 12322 | /* end confdefs.h. */ |
| 12323 | |
| 12324 | int |
| 12325 | main () |
| 12326 | { |
| 12327 | _Bool x; x = (_Bool)0; |
| 12328 | ; |
| 12329 | return 0; |
| 12330 | } |
| 12331 | _ACEOF |
| 12332 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12333 | if { (ac_try="$ac_compile" |
| 12334 | case "(($ac_try" in |
| 12335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12336 | *) ac_try_echo=$ac_try;; |
| 12337 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12338 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12339 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12340 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12341 | ac_status=$? |
| 12342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12343 | rm -f conftest.er1 |
| 12344 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12345 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12346 | (exit $ac_status); } && { |
| 12347 | test -z "$ac_c_werror_flag" || |
| 12348 | test ! -s conftest.err |
| 12349 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12350 | |
| 12351 | |
| 12352 | cat >>confdefs.h <<\_ACEOF |
| 12353 | #define HAVE_C99_BOOL 1 |
| 12354 | _ACEOF |
| 12355 | |
| 12356 | have_c99_bool=yes |
| 12357 | |
| 12358 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12359 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12361 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12362 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12363 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12364 | |
| 12365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12366 | { $as_echo "$as_me:$LINENO: result: $have_c99_bool" >&5 |
| 12367 | $as_echo "$have_c99_bool" >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12368 | if test "$have_c99_bool" = yes ; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12369 | # The cast to long int works around a bug in the HP C Compiler |
| 12370 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12371 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12372 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12373 | { $as_echo "$as_me:$LINENO: checking size of _Bool" >&5 |
| 12374 | $as_echo_n "checking size of _Bool... " >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12375 | if test "${ac_cv_sizeof__Bool+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12376 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12377 | else |
| 12378 | if test "$cross_compiling" = yes; then |
| 12379 | # Depending upon the size, compute the lo and hi bounds. |
| 12380 | cat >conftest.$ac_ext <<_ACEOF |
| 12381 | /* confdefs.h. */ |
| 12382 | _ACEOF |
| 12383 | cat confdefs.h >>conftest.$ac_ext |
| 12384 | cat >>conftest.$ac_ext <<_ACEOF |
| 12385 | /* end confdefs.h. */ |
| 12386 | $ac_includes_default |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12387 | int |
| 12388 | main () |
| 12389 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12390 | static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) >= 0)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12391 | test_array [0] = 0 |
| 12392 | |
| 12393 | ; |
| 12394 | return 0; |
| 12395 | } |
| 12396 | _ACEOF |
| 12397 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12398 | if { (ac_try="$ac_compile" |
| 12399 | case "(($ac_try" in |
| 12400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12401 | *) ac_try_echo=$ac_try;; |
| 12402 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12403 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12404 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12405 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12406 | ac_status=$? |
| 12407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12408 | rm -f conftest.er1 |
| 12409 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12410 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12411 | (exit $ac_status); } && { |
| 12412 | test -z "$ac_c_werror_flag" || |
| 12413 | test ! -s conftest.err |
| 12414 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12415 | ac_lo=0 ac_mid=0 |
| 12416 | while :; do |
| 12417 | cat >conftest.$ac_ext <<_ACEOF |
| 12418 | /* confdefs.h. */ |
| 12419 | _ACEOF |
| 12420 | cat confdefs.h >>conftest.$ac_ext |
| 12421 | cat >>conftest.$ac_ext <<_ACEOF |
| 12422 | /* end confdefs.h. */ |
| 12423 | $ac_includes_default |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12424 | int |
| 12425 | main () |
| 12426 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12427 | static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) <= $ac_mid)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12428 | test_array [0] = 0 |
| 12429 | |
| 12430 | ; |
| 12431 | return 0; |
| 12432 | } |
| 12433 | _ACEOF |
| 12434 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12435 | if { (ac_try="$ac_compile" |
| 12436 | case "(($ac_try" in |
| 12437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12438 | *) ac_try_echo=$ac_try;; |
| 12439 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12440 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12441 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12442 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12443 | ac_status=$? |
| 12444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12445 | rm -f conftest.er1 |
| 12446 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12447 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12448 | (exit $ac_status); } && { |
| 12449 | test -z "$ac_c_werror_flag" || |
| 12450 | test ! -s conftest.err |
| 12451 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12452 | ac_hi=$ac_mid; break |
| 12453 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12454 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12456 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12457 | ac_lo=`expr $ac_mid + 1` |
| 12458 | if test $ac_lo -le $ac_mid; then |
| 12459 | ac_lo= ac_hi= |
| 12460 | break |
| 12461 | fi |
| 12462 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12463 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12464 | |
| 12465 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12466 | done |
| 12467 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12468 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12470 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12471 | cat >conftest.$ac_ext <<_ACEOF |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12472 | /* confdefs.h. */ |
| 12473 | _ACEOF |
| 12474 | cat confdefs.h >>conftest.$ac_ext |
| 12475 | cat >>conftest.$ac_ext <<_ACEOF |
| 12476 | /* end confdefs.h. */ |
| 12477 | $ac_includes_default |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12478 | int |
| 12479 | main () |
| 12480 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12481 | static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) < 0)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12482 | test_array [0] = 0 |
| 12483 | |
| 12484 | ; |
| 12485 | return 0; |
| 12486 | } |
| 12487 | _ACEOF |
| 12488 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12489 | if { (ac_try="$ac_compile" |
| 12490 | case "(($ac_try" in |
| 12491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12492 | *) ac_try_echo=$ac_try;; |
| 12493 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12494 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12495 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12496 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12497 | ac_status=$? |
| 12498 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12499 | rm -f conftest.er1 |
| 12500 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12501 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12502 | (exit $ac_status); } && { |
| 12503 | test -z "$ac_c_werror_flag" || |
| 12504 | test ! -s conftest.err |
| 12505 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12506 | ac_hi=-1 ac_mid=-1 |
| 12507 | while :; do |
| 12508 | cat >conftest.$ac_ext <<_ACEOF |
| 12509 | /* confdefs.h. */ |
| 12510 | _ACEOF |
| 12511 | cat confdefs.h >>conftest.$ac_ext |
| 12512 | cat >>conftest.$ac_ext <<_ACEOF |
| 12513 | /* end confdefs.h. */ |
| 12514 | $ac_includes_default |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12515 | int |
| 12516 | main () |
| 12517 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12518 | static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) >= $ac_mid)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12519 | test_array [0] = 0 |
| 12520 | |
| 12521 | ; |
| 12522 | return 0; |
| 12523 | } |
| 12524 | _ACEOF |
| 12525 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12526 | if { (ac_try="$ac_compile" |
| 12527 | case "(($ac_try" in |
| 12528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12529 | *) ac_try_echo=$ac_try;; |
| 12530 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12531 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12532 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12533 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12534 | ac_status=$? |
| 12535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12536 | rm -f conftest.er1 |
| 12537 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12538 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12539 | (exit $ac_status); } && { |
| 12540 | test -z "$ac_c_werror_flag" || |
| 12541 | test ! -s conftest.err |
| 12542 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12543 | ac_lo=$ac_mid; break |
| 12544 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12545 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12547 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12548 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12549 | if test $ac_mid -le $ac_hi; then |
| 12550 | ac_lo= ac_hi= |
| 12551 | break |
| 12552 | fi |
| 12553 | ac_mid=`expr 2 '*' $ac_mid` |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12554 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12555 | |
| 12556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12557 | done |
| 12558 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12559 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12561 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12562 | ac_lo= ac_hi= |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12563 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12564 | |
| 12565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12566 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12567 | |
| 12568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12569 | # Binary search between lo and hi bounds. |
| 12570 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12571 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12572 | cat >conftest.$ac_ext <<_ACEOF |
| 12573 | /* confdefs.h. */ |
| 12574 | _ACEOF |
| 12575 | cat confdefs.h >>conftest.$ac_ext |
| 12576 | cat >>conftest.$ac_ext <<_ACEOF |
| 12577 | /* end confdefs.h. */ |
| 12578 | $ac_includes_default |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12579 | int |
| 12580 | main () |
| 12581 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12582 | static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) <= $ac_mid)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12583 | test_array [0] = 0 |
| 12584 | |
| 12585 | ; |
| 12586 | return 0; |
| 12587 | } |
| 12588 | _ACEOF |
| 12589 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12590 | if { (ac_try="$ac_compile" |
| 12591 | case "(($ac_try" in |
| 12592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12593 | *) ac_try_echo=$ac_try;; |
| 12594 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12595 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12596 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12597 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12598 | ac_status=$? |
| 12599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12600 | rm -f conftest.er1 |
| 12601 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12602 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12603 | (exit $ac_status); } && { |
| 12604 | test -z "$ac_c_werror_flag" || |
| 12605 | test ! -s conftest.err |
| 12606 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12607 | ac_hi=$ac_mid |
| 12608 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12609 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12611 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12612 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12613 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12614 | |
| 12615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12616 | done |
| 12617 | case $ac_lo in |
| 12618 | ?*) ac_cv_sizeof__Bool=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12619 | '') if test "$ac_cv_type__Bool" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12620 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 12621 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12622 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12623 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12624 | $as_echo "$as_me: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12625 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12626 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12627 | else |
| 12628 | ac_cv_sizeof__Bool=0 |
| 12629 | fi ;; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12630 | esac |
| 12631 | else |
| 12632 | cat >conftest.$ac_ext <<_ACEOF |
| 12633 | /* confdefs.h. */ |
| 12634 | _ACEOF |
| 12635 | cat confdefs.h >>conftest.$ac_ext |
| 12636 | cat >>conftest.$ac_ext <<_ACEOF |
| 12637 | /* end confdefs.h. */ |
| 12638 | $ac_includes_default |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12639 | static long int longval () { return (long int) (sizeof (_Bool)); } |
| 12640 | static unsigned long int ulongval () { return (long int) (sizeof (_Bool)); } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12641 | #include <stdio.h> |
| 12642 | #include <stdlib.h> |
| 12643 | int |
| 12644 | main () |
| 12645 | { |
| 12646 | |
| 12647 | FILE *f = fopen ("conftest.val", "w"); |
| 12648 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12649 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12650 | if (((long int) (sizeof (_Bool))) < 0) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12651 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12652 | long int i = longval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12653 | if (i != ((long int) (sizeof (_Bool)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12654 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12655 | fprintf (f, "%ld", i); |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12656 | } |
| 12657 | else |
| 12658 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12659 | unsigned long int i = ulongval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12660 | if (i != ((long int) (sizeof (_Bool)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12661 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12662 | fprintf (f, "%lu", i); |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12663 | } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12664 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 12665 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12666 | return ferror (f) || fclose (f) != 0; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12667 | |
| 12668 | ; |
| 12669 | return 0; |
| 12670 | } |
| 12671 | _ACEOF |
| 12672 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12673 | if { (ac_try="$ac_link" |
| 12674 | case "(($ac_try" in |
| 12675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12676 | *) ac_try_echo=$ac_try;; |
| 12677 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12678 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12679 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12680 | (eval "$ac_link") 2>&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12681 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12682 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12683 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12684 | { (case "(($ac_try" in |
| 12685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12686 | *) ac_try_echo=$ac_try;; |
| 12687 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12688 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12689 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12690 | (eval "$ac_try") 2>&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12691 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12692 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12693 | (exit $ac_status); }; }; then |
| 12694 | ac_cv_sizeof__Bool=`cat conftest.val` |
| 12695 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12696 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 12697 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12699 | |
| 12700 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12701 | if test "$ac_cv_type__Bool" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12702 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 12703 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12704 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12705 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12706 | $as_echo "$as_me: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12707 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12708 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12709 | else |
| 12710 | ac_cv_sizeof__Bool=0 |
| 12711 | fi |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12712 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12713 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12714 | 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] | 12715 | fi |
| 12716 | rm -f conftest.val |
| 12717 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12718 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5 |
| 12719 | $as_echo "$ac_cv_sizeof__Bool" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12720 | |
| 12721 | |
| 12722 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 12723 | cat >>confdefs.h <<_ACEOF |
| 12724 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 12725 | _ACEOF |
| 12726 | |
| 12727 | |
| 12728 | fi |
| 12729 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12730 | { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12731 | $as_echo_n "checking for uintptr_t... " >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12732 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12733 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12734 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12735 | ac_cv_type_uintptr_t=no |
| 12736 | cat >conftest.$ac_ext <<_ACEOF |
| 12737 | /* confdefs.h. */ |
| 12738 | _ACEOF |
| 12739 | cat confdefs.h >>conftest.$ac_ext |
| 12740 | cat >>conftest.$ac_ext <<_ACEOF |
| 12741 | /* end confdefs.h. */ |
| 12742 | #ifdef HAVE_STDINT_H |
| 12743 | #include <stdint.h> |
| 12744 | #endif |
| 12745 | |
| 12746 | int |
| 12747 | main () |
| 12748 | { |
| 12749 | if (sizeof (uintptr_t)) |
| 12750 | return 0; |
| 12751 | ; |
| 12752 | return 0; |
| 12753 | } |
| 12754 | _ACEOF |
| 12755 | rm -f conftest.$ac_objext |
| 12756 | if { (ac_try="$ac_compile" |
| 12757 | case "(($ac_try" in |
| 12758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12759 | *) ac_try_echo=$ac_try;; |
| 12760 | esac |
| 12761 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12762 | $as_echo "$ac_try_echo") >&5 |
| 12763 | (eval "$ac_compile") 2>conftest.er1 |
| 12764 | ac_status=$? |
| 12765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12766 | rm -f conftest.er1 |
| 12767 | cat conftest.err >&5 |
| 12768 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12769 | (exit $ac_status); } && { |
| 12770 | test -z "$ac_c_werror_flag" || |
| 12771 | test ! -s conftest.err |
| 12772 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12773 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12774 | /* confdefs.h. */ |
| 12775 | _ACEOF |
| 12776 | cat confdefs.h >>conftest.$ac_ext |
| 12777 | cat >>conftest.$ac_ext <<_ACEOF |
| 12778 | /* end confdefs.h. */ |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12779 | #ifdef HAVE_STDINT_H |
| 12780 | #include <stdint.h> |
| 12781 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12782 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12783 | int |
| 12784 | main () |
| 12785 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12786 | if (sizeof ((uintptr_t))) |
| 12787 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12788 | ; |
| 12789 | return 0; |
| 12790 | } |
| 12791 | _ACEOF |
| 12792 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12793 | if { (ac_try="$ac_compile" |
| 12794 | case "(($ac_try" in |
| 12795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12796 | *) ac_try_echo=$ac_try;; |
| 12797 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12798 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12799 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12800 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12801 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12803 | rm -f conftest.er1 |
| 12804 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12805 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12806 | (exit $ac_status); } && { |
| 12807 | test -z "$ac_c_werror_flag" || |
| 12808 | test ! -s conftest.err |
| 12809 | } && test -s conftest.$ac_objext; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12810 | : |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12811 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12812 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12813 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12814 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12815 | ac_cv_type_uintptr_t=yes |
| 12816 | fi |
| 12817 | |
| 12818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12819 | else |
| 12820 | $as_echo "$as_me: failed program was:" >&5 |
| 12821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12822 | |
| 12823 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12824 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12825 | |
| 12826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12827 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12828 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12829 | $as_echo "$ac_cv_type_uintptr_t" >&6; } |
| 12830 | if test "x$ac_cv_type_uintptr_t" = x""yes; then |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12831 | |
| 12832 | cat >>confdefs.h <<_ACEOF |
| 12833 | #define HAVE_UINTPTR_T 1 |
| 12834 | _ACEOF |
| 12835 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12836 | # The cast to long int works around a bug in the HP C Compiler |
| 12837 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12838 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12839 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12840 | { $as_echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 12841 | $as_echo_n "checking size of uintptr_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12842 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12843 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12844 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12845 | if test "$cross_compiling" = yes; then |
| 12846 | # Depending upon the size, compute the lo and hi bounds. |
| 12847 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12848 | /* confdefs.h. */ |
| 12849 | _ACEOF |
| 12850 | cat confdefs.h >>conftest.$ac_ext |
| 12851 | cat >>conftest.$ac_ext <<_ACEOF |
| 12852 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12853 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12854 | int |
| 12855 | main () |
| 12856 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12857 | static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12858 | test_array [0] = 0 |
| 12859 | |
| 12860 | ; |
| 12861 | return 0; |
| 12862 | } |
| 12863 | _ACEOF |
| 12864 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12865 | if { (ac_try="$ac_compile" |
| 12866 | case "(($ac_try" in |
| 12867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12868 | *) ac_try_echo=$ac_try;; |
| 12869 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12870 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12871 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12872 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12873 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12874 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12875 | rm -f conftest.er1 |
| 12876 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12877 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12878 | (exit $ac_status); } && { |
| 12879 | test -z "$ac_c_werror_flag" || |
| 12880 | test ! -s conftest.err |
| 12881 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12882 | ac_lo=0 ac_mid=0 |
| 12883 | while :; do |
| 12884 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12885 | /* confdefs.h. */ |
| 12886 | _ACEOF |
| 12887 | cat confdefs.h >>conftest.$ac_ext |
| 12888 | cat >>conftest.$ac_ext <<_ACEOF |
| 12889 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12890 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12891 | int |
| 12892 | main () |
| 12893 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12894 | static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12895 | test_array [0] = 0 |
| 12896 | |
| 12897 | ; |
| 12898 | return 0; |
| 12899 | } |
| 12900 | _ACEOF |
| 12901 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12902 | if { (ac_try="$ac_compile" |
| 12903 | case "(($ac_try" in |
| 12904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12905 | *) ac_try_echo=$ac_try;; |
| 12906 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12907 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12908 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12909 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12910 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12912 | rm -f conftest.er1 |
| 12913 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12914 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12915 | (exit $ac_status); } && { |
| 12916 | test -z "$ac_c_werror_flag" || |
| 12917 | test ! -s conftest.err |
| 12918 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12919 | ac_hi=$ac_mid; break |
| 12920 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12921 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12923 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12924 | ac_lo=`expr $ac_mid + 1` |
| 12925 | if test $ac_lo -le $ac_mid; then |
| 12926 | ac_lo= ac_hi= |
| 12927 | break |
| 12928 | fi |
| 12929 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12930 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12931 | |
| 12932 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12933 | done |
| 12934 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12935 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12937 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12938 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12939 | /* confdefs.h. */ |
| 12940 | _ACEOF |
| 12941 | cat confdefs.h >>conftest.$ac_ext |
| 12942 | cat >>conftest.$ac_ext <<_ACEOF |
| 12943 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12944 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12945 | int |
| 12946 | main () |
| 12947 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12948 | static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12949 | test_array [0] = 0 |
| 12950 | |
| 12951 | ; |
| 12952 | return 0; |
| 12953 | } |
| 12954 | _ACEOF |
| 12955 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12956 | if { (ac_try="$ac_compile" |
| 12957 | case "(($ac_try" in |
| 12958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12959 | *) ac_try_echo=$ac_try;; |
| 12960 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12961 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12962 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12963 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12964 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12965 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12966 | rm -f conftest.er1 |
| 12967 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12968 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12969 | (exit $ac_status); } && { |
| 12970 | test -z "$ac_c_werror_flag" || |
| 12971 | test ! -s conftest.err |
| 12972 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12973 | ac_hi=-1 ac_mid=-1 |
| 12974 | while :; do |
| 12975 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12976 | /* confdefs.h. */ |
| 12977 | _ACEOF |
| 12978 | cat confdefs.h >>conftest.$ac_ext |
| 12979 | cat >>conftest.$ac_ext <<_ACEOF |
| 12980 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12981 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12982 | int |
| 12983 | main () |
| 12984 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12985 | static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12986 | test_array [0] = 0 |
| 12987 | |
| 12988 | ; |
| 12989 | return 0; |
| 12990 | } |
| 12991 | _ACEOF |
| 12992 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12993 | if { (ac_try="$ac_compile" |
| 12994 | case "(($ac_try" in |
| 12995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12996 | *) ac_try_echo=$ac_try;; |
| 12997 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 12998 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12999 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13000 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13001 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13003 | rm -f conftest.er1 |
| 13004 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13005 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13006 | (exit $ac_status); } && { |
| 13007 | test -z "$ac_c_werror_flag" || |
| 13008 | test ! -s conftest.err |
| 13009 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13010 | ac_lo=$ac_mid; break |
| 13011 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13012 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13014 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13015 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13016 | if test $ac_mid -le $ac_hi; then |
| 13017 | ac_lo= ac_hi= |
| 13018 | break |
| 13019 | fi |
| 13020 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13021 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13022 | |
| 13023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13024 | done |
| 13025 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13026 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13028 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13029 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13030 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13031 | |
| 13032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13033 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13034 | |
| 13035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13036 | # Binary search between lo and hi bounds. |
| 13037 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13038 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13039 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13040 | /* confdefs.h. */ |
| 13041 | _ACEOF |
| 13042 | cat confdefs.h >>conftest.$ac_ext |
| 13043 | cat >>conftest.$ac_ext <<_ACEOF |
| 13044 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13045 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13046 | int |
| 13047 | main () |
| 13048 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13049 | static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13050 | test_array [0] = 0 |
| 13051 | |
| 13052 | ; |
| 13053 | return 0; |
| 13054 | } |
| 13055 | _ACEOF |
| 13056 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13057 | if { (ac_try="$ac_compile" |
| 13058 | case "(($ac_try" in |
| 13059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13060 | *) ac_try_echo=$ac_try;; |
| 13061 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13062 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13063 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13064 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13065 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13066 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13067 | rm -f conftest.er1 |
| 13068 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13069 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13070 | (exit $ac_status); } && { |
| 13071 | test -z "$ac_c_werror_flag" || |
| 13072 | test ! -s conftest.err |
| 13073 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13074 | ac_hi=$ac_mid |
| 13075 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13076 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13077 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13078 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13079 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13080 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13081 | |
| 13082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13083 | done |
| 13084 | case $ac_lo in |
| 13085 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13086 | '') if test "$ac_cv_type_uintptr_t" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13087 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 13088 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13089 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13090 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13091 | $as_echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13092 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13093 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13094 | else |
| 13095 | ac_cv_sizeof_uintptr_t=0 |
| 13096 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13097 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13098 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13099 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13100 | /* confdefs.h. */ |
| 13101 | _ACEOF |
| 13102 | cat confdefs.h >>conftest.$ac_ext |
| 13103 | cat >>conftest.$ac_ext <<_ACEOF |
| 13104 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13105 | $ac_includes_default |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13106 | static long int longval () { return (long int) (sizeof (uintptr_t)); } |
| 13107 | static unsigned long int ulongval () { return (long int) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13108 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13109 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13110 | int |
| 13111 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13112 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13113 | |
| 13114 | FILE *f = fopen ("conftest.val", "w"); |
| 13115 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13116 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13117 | if (((long int) (sizeof (uintptr_t))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13118 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13119 | long int i = longval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13120 | if (i != ((long int) (sizeof (uintptr_t)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13121 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13122 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13123 | } |
| 13124 | else |
| 13125 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13126 | unsigned long int i = ulongval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13127 | if (i != ((long int) (sizeof (uintptr_t)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13128 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13129 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13130 | } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13131 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 13132 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13133 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13134 | |
| 13135 | ; |
| 13136 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13137 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13138 | _ACEOF |
| 13139 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13140 | if { (ac_try="$ac_link" |
| 13141 | case "(($ac_try" in |
| 13142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13143 | *) ac_try_echo=$ac_try;; |
| 13144 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13145 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13146 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13147 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13148 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13149 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13150 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13151 | { (case "(($ac_try" in |
| 13152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13153 | *) ac_try_echo=$ac_try;; |
| 13154 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13155 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13156 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13157 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13158 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13159 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13160 | (exit $ac_status); }; }; then |
| 13161 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13162 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13163 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13164 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13166 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13167 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13168 | if test "$ac_cv_type_uintptr_t" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13169 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 13170 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13171 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13172 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13173 | $as_echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13174 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13175 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13176 | else |
| 13177 | ac_cv_sizeof_uintptr_t=0 |
| 13178 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13179 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13180 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13181 | 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] | 13182 | fi |
| 13183 | rm -f conftest.val |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13184 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13185 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 13186 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13187 | |
| 13188 | |
| 13189 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13190 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13191 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13192 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13193 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13194 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13195 | fi |
| 13196 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13197 | |
| 13198 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13199 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13200 | { $as_echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 13201 | $as_echo_n "checking size of off_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13202 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13203 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13204 | else |
| 13205 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13206 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13207 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13208 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13209 | /* confdefs.h. */ |
| 13210 | _ACEOF |
| 13211 | cat confdefs.h >>conftest.$ac_ext |
| 13212 | cat >>conftest.$ac_ext <<_ACEOF |
| 13213 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13214 | #include <stdio.h> |
| 13215 | #include <sys/types.h> |
| 13216 | main() |
| 13217 | { |
| 13218 | FILE *f=fopen("conftestval", "w"); |
| 13219 | if (!f) exit(1); |
| 13220 | fprintf(f, "%d\n", sizeof(off_t)); |
| 13221 | exit(0); |
| 13222 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13223 | _ACEOF |
| 13224 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13225 | if { (ac_try="$ac_link" |
| 13226 | case "(($ac_try" in |
| 13227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13228 | *) ac_try_echo=$ac_try;; |
| 13229 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13230 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13231 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13232 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13233 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13234 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13235 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13236 | { (case "(($ac_try" in |
| 13237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13238 | *) ac_try_echo=$ac_try;; |
| 13239 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13240 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13241 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13242 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13243 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13244 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13245 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13246 | ac_cv_sizeof_off_t=`cat conftestval` |
| 13247 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13248 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13249 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13251 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13252 | ( exit $ac_status ) |
| 13253 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13254 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13255 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13256 | 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] | 13257 | fi |
| 13258 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13259 | |
| 13260 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13261 | fi |
| 13262 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13263 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 13264 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13265 | |
| 13266 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13267 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13268 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13269 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13270 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13271 | { $as_echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 13272 | $as_echo_n "checking whether to enable large file support... " >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 13273 | if test "$have_long_long" = yes -a \ |
| 13274 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 13275 | "$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] | 13276 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13277 | cat >>confdefs.h <<\_ACEOF |
| 13278 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 13279 | _ACEOF |
| 13280 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13281 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13282 | $as_echo "yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13283 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13284 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13285 | $as_echo "no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13286 | fi |
| 13287 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13288 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13289 | { $as_echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 13290 | $as_echo_n "checking size of time_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13291 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13292 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13293 | else |
| 13294 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13295 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13296 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13297 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13298 | /* confdefs.h. */ |
| 13299 | _ACEOF |
| 13300 | cat confdefs.h >>conftest.$ac_ext |
| 13301 | cat >>conftest.$ac_ext <<_ACEOF |
| 13302 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13303 | #include <stdio.h> |
| 13304 | #include <time.h> |
| 13305 | main() |
| 13306 | { |
| 13307 | FILE *f=fopen("conftestval", "w"); |
| 13308 | if (!f) exit(1); |
| 13309 | fprintf(f, "%d\n", sizeof(time_t)); |
| 13310 | exit(0); |
| 13311 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13312 | _ACEOF |
| 13313 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13314 | if { (ac_try="$ac_link" |
| 13315 | case "(($ac_try" in |
| 13316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13317 | *) ac_try_echo=$ac_try;; |
| 13318 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13319 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13320 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13321 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13322 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13323 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13324 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13325 | { (case "(($ac_try" in |
| 13326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13327 | *) ac_try_echo=$ac_try;; |
| 13328 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13329 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13330 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13331 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13332 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13333 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13334 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13335 | ac_cv_sizeof_time_t=`cat conftestval` |
| 13336 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13337 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13338 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13340 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13341 | ( exit $ac_status ) |
| 13342 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13343 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13344 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13345 | 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] | 13346 | fi |
| 13347 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13348 | |
| 13349 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13350 | fi |
| 13351 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13352 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 13353 | $as_echo "$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13354 | |
| 13355 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13356 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13357 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13358 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13359 | |
| 13360 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13361 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13362 | ac_save_cc="$CC" |
| 13363 | if test "$ac_cv_kpthread" = "yes" |
| 13364 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 13365 | elif test "$ac_cv_kthread" = "yes" |
| 13366 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13367 | elif test "$ac_cv_pthread" = "yes" |
| 13368 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13369 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13370 | { $as_echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 13371 | $as_echo_n "checking for pthread_t... " >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13372 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13373 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13374 | /* confdefs.h. */ |
| 13375 | _ACEOF |
| 13376 | cat confdefs.h >>conftest.$ac_ext |
| 13377 | cat >>conftest.$ac_ext <<_ACEOF |
| 13378 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13379 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13380 | int |
| 13381 | main () |
| 13382 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 13383 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13384 | ; |
| 13385 | return 0; |
| 13386 | } |
| 13387 | _ACEOF |
| 13388 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13389 | if { (ac_try="$ac_compile" |
| 13390 | case "(($ac_try" in |
| 13391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13392 | *) ac_try_echo=$ac_try;; |
| 13393 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13394 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13395 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13396 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13397 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13399 | rm -f conftest.er1 |
| 13400 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13401 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13402 | (exit $ac_status); } && { |
| 13403 | test -z "$ac_c_werror_flag" || |
| 13404 | test ! -s conftest.err |
| 13405 | } && test -s conftest.$ac_objext; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13406 | have_pthread_t=yes |
| 13407 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13408 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13410 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13411 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13412 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13413 | |
| 13414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13415 | { $as_echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 13416 | $as_echo "$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13417 | if test "$have_pthread_t" = yes ; then |
| 13418 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13419 | { $as_echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 13420 | $as_echo_n "checking size of pthread_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13421 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13422 | $as_echo_n "(cached) " >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13423 | else |
| 13424 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13425 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13426 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13427 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13428 | /* confdefs.h. */ |
| 13429 | _ACEOF |
| 13430 | cat confdefs.h >>conftest.$ac_ext |
| 13431 | cat >>conftest.$ac_ext <<_ACEOF |
| 13432 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13433 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 13434 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13435 | main() |
| 13436 | { |
| 13437 | FILE *f=fopen("conftestval", "w"); |
| 13438 | if (!f) exit(1); |
| 13439 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 13440 | exit(0); |
| 13441 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13442 | _ACEOF |
| 13443 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13444 | if { (ac_try="$ac_link" |
| 13445 | case "(($ac_try" in |
| 13446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13447 | *) ac_try_echo=$ac_try;; |
| 13448 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13449 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13450 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13451 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13452 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13453 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13454 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13455 | { (case "(($ac_try" in |
| 13456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13457 | *) ac_try_echo=$ac_try;; |
| 13458 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13459 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13460 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13461 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13462 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13463 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13464 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13465 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 13466 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13467 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13468 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13470 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13471 | ( exit $ac_status ) |
| 13472 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13473 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13474 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13475 | 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] | 13476 | fi |
| 13477 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13478 | |
| 13479 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13480 | fi |
| 13481 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13482 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 13483 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13484 | |
| 13485 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13486 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13487 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13488 | |
| 13489 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13490 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13491 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13492 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13493 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 13494 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13495 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13496 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 13497 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 13498 | ;; |
| 13499 | Darwin/*) |
| 13500 | OTHER_LIBTOOL_OPT="" |
| 13501 | ;; |
| 13502 | esac |
| 13503 | |
| 13504 | |
| 13505 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13506 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13507 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 13508 | if test "${enable_universalsdk}"; then |
| 13509 | : |
| 13510 | else |
| 13511 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`" |
| 13512 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 13513 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 13514 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 13515 | Darwin/*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 13516 | gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| 13517 | if test ${gcc_version} '<' 4.0 |
| 13518 | then |
| 13519 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 13520 | else |
| 13521 | LIBTOOL_CRUFT="" |
| 13522 | fi |
Jack Jansen | 39fd231 | 2006-02-23 15:12:19 +0000 | [diff] [blame] | 13523 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 13524 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13525 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13526 | esac |
| 13527 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13528 | { $as_echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 13529 | $as_echo_n "checking for --enable-framework... " >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13530 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13531 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13532 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13533 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13534 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13535 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13536 | cat >>confdefs.h <<\_ACEOF |
| 13537 | #define WITH_NEXT_FRAMEWORK 1 |
| 13538 | _ACEOF |
| 13539 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13540 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13541 | $as_echo "yes" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13542 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13543 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13544 | $as_echo "no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13545 | fi |
| 13546 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13547 | { $as_echo "$as_me:$LINENO: checking for dyld" >&5 |
| 13548 | $as_echo_n "checking for dyld... " >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13549 | case $ac_sys_system/$ac_sys_release in |
| 13550 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13551 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13552 | cat >>confdefs.h <<\_ACEOF |
| 13553 | #define WITH_DYLD 1 |
| 13554 | _ACEOF |
| 13555 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13556 | { $as_echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 13557 | $as_echo "always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13558 | ;; |
| 13559 | *) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13560 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13561 | $as_echo "no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13562 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13563 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13564 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13565 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13566 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13567 | |
| 13568 | |
| 13569 | |
| 13570 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13571 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 13572 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13573 | { $as_echo "$as_me:$LINENO: checking SO" >&5 |
| 13574 | $as_echo_n "checking SO... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13575 | if test -z "$SO" |
| 13576 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13577 | case $ac_sys_system in |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13578 | hp*|HP*) |
| 13579 | case `uname -m` in |
| 13580 | ia64) SO=.so;; |
| 13581 | *) SO=.sl;; |
| 13582 | esac |
| 13583 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 13584 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13585 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13586 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 13587 | else |
| 13588 | # this might also be a termcap variable, see #610332 |
| 13589 | echo |
| 13590 | echo '=====================================================================' |
| 13591 | echo '+ +' |
| 13592 | echo '+ WARNING: You have set SO in your environment. +' |
| 13593 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 13594 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 13595 | echo '+ +' |
| 13596 | echo '=====================================================================' |
| 13597 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13598 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13599 | { $as_echo "$as_me:$LINENO: result: $SO" >&5 |
| 13600 | $as_echo "$SO" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13601 | |
Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 13602 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13603 | cat >>confdefs.h <<_ACEOF |
| 13604 | #define SHLIB_EXT "$SO" |
| 13605 | _ACEOF |
| 13606 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13607 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 13608 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13609 | # (Shared libraries in this instance are shared modules to be loaded into |
| 13610 | # Python, as opposed to building Python itself as a shared library.) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13611 | { $as_echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 13612 | $as_echo_n "checking LDSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13613 | if test -z "$LDSHARED" |
| 13614 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13615 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13616 | AIX*) |
| 13617 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 13618 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13619 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 13620 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 13621 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13622 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 13623 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 13624 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 13625 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 13626 | fi ;; |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 13627 | hp*|HP*) |
| 13628 | if test "$GCC" = "yes" |
| 13629 | then LDSHARED='$(CC) -shared' |
| 13630 | else LDSHARED='ld -b'; |
| 13631 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13632 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 13633 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 13634 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 13635 | if test "$enable_framework" ; then |
| 13636 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 13637 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 13638 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 13639 | else |
| 13640 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 13641 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 13642 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13643 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13644 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 13645 | if test "$enable_framework" ; then |
| 13646 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 13647 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 13648 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13649 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 13650 | # No framework, use the Python app as bundle-loader |
| 13651 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 13652 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13653 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13654 | Darwin/*) |
| 13655 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 13656 | # This allows an extension to be used in any Python |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 13657 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 13658 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13659 | then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13660 | if test "${enable_universalsdk}"; then |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 13661 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13662 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13663 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 13664 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13665 | else |
| 13666 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 13667 | if test "$enable_framework" ; then |
| 13668 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 13669 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 13670 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13671 | else |
| 13672 | # No framework, use the Python app as bundle-loader |
| 13673 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 13674 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 13675 | fi |
| 13676 | fi |
| 13677 | ;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 13678 | Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 13679 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 13680 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 13681 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 13682 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 13683 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 13684 | else |
| 13685 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 13686 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 13687 | OpenBSD*) |
| 13688 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 13689 | then |
| 13690 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 13691 | else |
| 13692 | case `uname -r` in |
| 13693 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 13694 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 13695 | ;; |
| 13696 | *) |
| 13697 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 13698 | ;; |
| 13699 | esac |
| 13700 | fi;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 13701 | NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 13702 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 13703 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 13704 | then LDSHARED='$(CC) -shared' |
| 13705 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 13706 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 13707 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13708 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 13709 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13710 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13711 | *) LDSHARED="ld";; |
| 13712 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13713 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13714 | { $as_echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 13715 | $as_echo "$LDSHARED" >&6; } |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13716 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13717 | # 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] | 13718 | # library (module) -- this is only needed for a few systems |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13719 | { $as_echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 13720 | $as_echo_n "checking CCSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13721 | if test -z "$CCSHARED" |
| 13722 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 13723 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 13724 | SunOS*) if test "$GCC" = yes; |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 13725 | then CCSHARED="-fPIC"; |
| 13726 | elif test `uname -p` = sparc; |
| 13727 | then CCSHARED="-xcode=pic32"; |
| 13728 | else CCSHARED="-Kpic"; |
| 13729 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 13730 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 13731 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 13732 | else CCSHARED="+z"; |
| 13733 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13734 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 13735 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 13736 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 13737 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 13738 | if test "$GCC" = "yes" |
| 13739 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13740 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 13741 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 13742 | SCO_SV*) |
| 13743 | if test "$GCC" = "yes" |
| 13744 | then CCSHARED="-fPIC" |
| 13745 | else CCSHARED="-Kpic -belf" |
| 13746 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13747 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13748 | IRIX*/6*) case $CC in |
| 13749 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 13750 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13751 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13752 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13753 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13754 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13755 | { $as_echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 13756 | $as_echo "$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13757 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13758 | # the python executable -- this is only needed for a few systems |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13759 | { $as_echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 13760 | $as_echo_n "checking LINKFORSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13761 | if test -z "$LINKFORSHARED" |
| 13762 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 13763 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13764 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 13765 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13766 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 13767 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 13768 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13769 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13770 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13771 | Darwin/*) |
Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 13772 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13773 | if test "$enable_framework" |
| 13774 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 13775 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13776 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 13777 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 13778 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 13779 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 13780 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 13781 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 13782 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 13783 | then |
| 13784 | LINKFORSHARED="-Wl,--export-dynamic" |
| 13785 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13786 | SunOS/5*) case $CC in |
| 13787 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 13788 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 13789 | then |
| 13790 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13791 | fi;; |
| 13792 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 13793 | CYGWIN*) |
| 13794 | if test $enable_shared = "no" |
| 13795 | then |
| 13796 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 13797 | fi;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 13798 | QNX*) |
| 13799 | # -Wl,-E causes the symbols to be added to the dynamic |
| 13800 | # symbol table so that they can be found when a module |
| 13801 | # is loaded. -N 2048K causes the stack size to be set |
| 13802 | # to 2048 kilobytes so that the stack doesn't overflow |
| 13803 | # when running test_compile.py. |
| 13804 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13805 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13806 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13807 | { $as_echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 13808 | $as_echo "$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13809 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13810 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 13811 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13812 | { $as_echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 13813 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 13814 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 13815 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 13816 | case $ac_sys_system in |
| 13817 | CYGWIN*) |
| 13818 | # Cygwin needs CCSHARED when building extension DLLs |
| 13819 | # but not when building the interpreter DLL. |
| 13820 | CFLAGSFORSHARED='';; |
| 13821 | *) |
| 13822 | CFLAGSFORSHARED='$(CCSHARED)' |
| 13823 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 13824 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13825 | { $as_echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 13826 | $as_echo "$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 13827 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13828 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 13829 | # library (with --enable-shared). |
| 13830 | # 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] | 13831 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 13832 | # if it is not required, since it creates a dependency of the shared library |
| 13833 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 13834 | # don't need to link LIBS explicitly. The default should be only changed |
| 13835 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13836 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13837 | { $as_echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 13838 | $as_echo_n "checking SHLIBS... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13839 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13840 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 13841 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13842 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13843 | { $as_echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 13844 | $as_echo "$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13845 | |
| 13846 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13847 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13848 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13849 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 13850 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13851 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13852 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13853 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13854 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13855 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13856 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13857 | /* confdefs.h. */ |
| 13858 | _ACEOF |
| 13859 | cat confdefs.h >>conftest.$ac_ext |
| 13860 | cat >>conftest.$ac_ext <<_ACEOF |
| 13861 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13862 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13863 | /* Override any GCC internal prototype to avoid an error. |
| 13864 | Use char because int might match the return type of a GCC |
| 13865 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13866 | #ifdef __cplusplus |
| 13867 | extern "C" |
| 13868 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13869 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13870 | int |
| 13871 | main () |
| 13872 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13873 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13874 | ; |
| 13875 | return 0; |
| 13876 | } |
| 13877 | _ACEOF |
| 13878 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13879 | if { (ac_try="$ac_link" |
| 13880 | case "(($ac_try" in |
| 13881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13882 | *) ac_try_echo=$ac_try;; |
| 13883 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13884 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13885 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13886 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13887 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13889 | rm -f conftest.er1 |
| 13890 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13891 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13892 | (exit $ac_status); } && { |
| 13893 | test -z "$ac_c_werror_flag" || |
| 13894 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13895 | } && test -s conftest$ac_exeext && { |
| 13896 | test "$cross_compiling" = yes || |
| 13897 | $as_test_x conftest$ac_exeext |
| 13898 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13899 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13900 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13901 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13903 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13904 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13905 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13906 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13907 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13908 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13909 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13910 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13911 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13912 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13913 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 13914 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13915 | cat >>confdefs.h <<_ACEOF |
| 13916 | #define HAVE_LIBDL 1 |
| 13917 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13918 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13919 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13920 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13921 | fi |
| 13922 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13923 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13924 | { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 13925 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13926 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13927 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13928 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13929 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13930 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13931 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13932 | /* confdefs.h. */ |
| 13933 | _ACEOF |
| 13934 | cat confdefs.h >>conftest.$ac_ext |
| 13935 | cat >>conftest.$ac_ext <<_ACEOF |
| 13936 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13937 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13938 | /* Override any GCC internal prototype to avoid an error. |
| 13939 | Use char because int might match the return type of a GCC |
| 13940 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13941 | #ifdef __cplusplus |
| 13942 | extern "C" |
| 13943 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13944 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13945 | int |
| 13946 | main () |
| 13947 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13948 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13949 | ; |
| 13950 | return 0; |
| 13951 | } |
| 13952 | _ACEOF |
| 13953 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13954 | if { (ac_try="$ac_link" |
| 13955 | case "(($ac_try" in |
| 13956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13957 | *) ac_try_echo=$ac_try;; |
| 13958 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13959 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13960 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13961 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13962 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13964 | rm -f conftest.er1 |
| 13965 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13966 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13967 | (exit $ac_status); } && { |
| 13968 | test -z "$ac_c_werror_flag" || |
| 13969 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13970 | } && test -s conftest$ac_exeext && { |
| 13971 | test "$cross_compiling" = yes || |
| 13972 | $as_test_x conftest$ac_exeext |
| 13973 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13974 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13975 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13976 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13978 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13979 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13980 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13981 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13982 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13983 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13984 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13985 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13986 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 13987 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 13988 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 13989 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13990 | cat >>confdefs.h <<_ACEOF |
| 13991 | #define HAVE_LIBDLD 1 |
| 13992 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13993 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13994 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13995 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13996 | fi |
| 13997 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13998 | |
Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 13999 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 14000 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14001 | { $as_echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 14002 | $as_echo_n "checking for library containing sem_init... " >&6; } |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 14003 | if test "${ac_cv_search_sem_init+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14004 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 14005 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 14006 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14007 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14008 | /* confdefs.h. */ |
| 14009 | _ACEOF |
| 14010 | cat confdefs.h >>conftest.$ac_ext |
| 14011 | cat >>conftest.$ac_ext <<_ACEOF |
| 14012 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14013 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14014 | /* Override any GCC internal prototype to avoid an error. |
| 14015 | Use char because int might match the return type of a GCC |
| 14016 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14017 | #ifdef __cplusplus |
| 14018 | extern "C" |
| 14019 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14020 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14021 | int |
| 14022 | main () |
| 14023 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14024 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14025 | ; |
| 14026 | return 0; |
| 14027 | } |
| 14028 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14029 | for ac_lib in '' pthread rt posix4; do |
| 14030 | if test -z "$ac_lib"; then |
| 14031 | ac_res="none required" |
| 14032 | else |
| 14033 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 14034 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14035 | fi |
| 14036 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14037 | if { (ac_try="$ac_link" |
| 14038 | case "(($ac_try" in |
| 14039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14040 | *) ac_try_echo=$ac_try;; |
| 14041 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14042 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14043 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14044 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 14045 | ac_status=$? |
| 14046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14047 | rm -f conftest.er1 |
| 14048 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14049 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14050 | (exit $ac_status); } && { |
| 14051 | test -z "$ac_c_werror_flag" || |
| 14052 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14053 | } && test -s conftest$ac_exeext && { |
| 14054 | test "$cross_compiling" = yes || |
| 14055 | $as_test_x conftest$ac_exeext |
| 14056 | }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14057 | ac_cv_search_sem_init=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14058 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14059 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 14060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14061 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14062 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14063 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14064 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14065 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14066 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 14067 | conftest$ac_exeext |
| 14068 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 14069 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 14070 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14071 | done |
| 14072 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 14073 | : |
| 14074 | else |
| 14075 | ac_cv_search_sem_init=no |
| 14076 | fi |
| 14077 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 14078 | LIBS=$ac_func_search_save_LIBS |
| 14079 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14080 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 14081 | $as_echo "$ac_cv_search_sem_init" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14082 | ac_res=$ac_cv_search_sem_init |
| 14083 | if test "$ac_res" != no; then |
| 14084 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 14085 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 14086 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 14087 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 14088 | # posix4 on Solaris 2.6 |
| 14089 | # pthread (first!) on Linux |
| 14090 | fi |
| 14091 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 14092 | # check if we need libintl for locale functions |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14093 | { $as_echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 14094 | $as_echo_n "checking for textdomain in -lintl... " >&6; } |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 14095 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14096 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 14097 | else |
| 14098 | ac_check_lib_save_LIBS=$LIBS |
| 14099 | LIBS="-lintl $LIBS" |
| 14100 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14101 | /* confdefs.h. */ |
| 14102 | _ACEOF |
| 14103 | cat confdefs.h >>conftest.$ac_ext |
| 14104 | cat >>conftest.$ac_ext <<_ACEOF |
| 14105 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 14106 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14107 | /* Override any GCC internal prototype to avoid an error. |
| 14108 | Use char because int might match the return type of a GCC |
| 14109 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 14110 | #ifdef __cplusplus |
| 14111 | extern "C" |
| 14112 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 14113 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 14114 | int |
| 14115 | main () |
| 14116 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14117 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 14118 | ; |
| 14119 | return 0; |
| 14120 | } |
| 14121 | _ACEOF |
| 14122 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14123 | if { (ac_try="$ac_link" |
| 14124 | case "(($ac_try" in |
| 14125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14126 | *) ac_try_echo=$ac_try;; |
| 14127 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14128 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14129 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14130 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 14131 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14133 | rm -f conftest.er1 |
| 14134 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14135 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14136 | (exit $ac_status); } && { |
| 14137 | test -z "$ac_c_werror_flag" || |
| 14138 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14139 | } && test -s conftest$ac_exeext && { |
| 14140 | test "$cross_compiling" = yes || |
| 14141 | $as_test_x conftest$ac_exeext |
| 14142 | }; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 14143 | ac_cv_lib_intl_textdomain=yes |
| 14144 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14145 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14147 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14148 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 14149 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14150 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14151 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14152 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14153 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 14154 | LIBS=$ac_check_lib_save_LIBS |
| 14155 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14156 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 14157 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } |
| 14158 | if test "x$ac_cv_lib_intl_textdomain" = x""yes; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 14159 | |
| 14160 | cat >>confdefs.h <<\_ACEOF |
| 14161 | #define WITH_LIBINTL 1 |
| 14162 | _ACEOF |
| 14163 | |
| 14164 | fi |
| 14165 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 14166 | |
| 14167 | # checks for system dependent C++ extensions support |
| 14168 | case "$ac_sys_system" in |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14169 | AIX*) { $as_echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 14170 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14171 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14172 | /* confdefs.h. */ |
| 14173 | _ACEOF |
| 14174 | cat confdefs.h >>conftest.$ac_ext |
| 14175 | cat >>conftest.$ac_ext <<_ACEOF |
| 14176 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 14177 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14178 | int |
| 14179 | main () |
| 14180 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 14181 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14182 | ; |
| 14183 | return 0; |
| 14184 | } |
| 14185 | _ACEOF |
| 14186 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14187 | if { (ac_try="$ac_link" |
| 14188 | case "(($ac_try" in |
| 14189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14190 | *) ac_try_echo=$ac_try;; |
| 14191 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14192 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14193 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14194 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14195 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14197 | rm -f conftest.er1 |
| 14198 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14199 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14200 | (exit $ac_status); } && { |
| 14201 | test -z "$ac_c_werror_flag" || |
| 14202 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14203 | } && test -s conftest$ac_exeext && { |
| 14204 | test "$cross_compiling" = yes || |
| 14205 | $as_test_x conftest$ac_exeext |
| 14206 | }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 14207 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14208 | cat >>confdefs.h <<\_ACEOF |
| 14209 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 14210 | _ACEOF |
| 14211 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14212 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14213 | $as_echo "yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 14214 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14215 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14217 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14218 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14219 | $as_echo "no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 14220 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14221 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14222 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14223 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14224 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 14225 | *) ;; |
| 14226 | esac |
| 14227 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 14228 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14229 | { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 14230 | $as_echo_n "checking for t_open in -lnsl... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14231 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14232 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 14233 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14234 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14235 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14236 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14237 | /* confdefs.h. */ |
| 14238 | _ACEOF |
| 14239 | cat confdefs.h >>conftest.$ac_ext |
| 14240 | cat >>conftest.$ac_ext <<_ACEOF |
| 14241 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14242 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14243 | /* Override any GCC internal prototype to avoid an error. |
| 14244 | Use char because int might match the return type of a GCC |
| 14245 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14246 | #ifdef __cplusplus |
| 14247 | extern "C" |
| 14248 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14249 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14250 | int |
| 14251 | main () |
| 14252 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14253 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14254 | ; |
| 14255 | return 0; |
| 14256 | } |
| 14257 | _ACEOF |
| 14258 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14259 | if { (ac_try="$ac_link" |
| 14260 | case "(($ac_try" in |
| 14261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14262 | *) ac_try_echo=$ac_try;; |
| 14263 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14264 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14265 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14266 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14267 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14269 | rm -f conftest.er1 |
| 14270 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14271 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14272 | (exit $ac_status); } && { |
| 14273 | test -z "$ac_c_werror_flag" || |
| 14274 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14275 | } && test -s conftest$ac_exeext && { |
| 14276 | test "$cross_compiling" = yes || |
| 14277 | $as_test_x conftest$ac_exeext |
| 14278 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14279 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 14280 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14281 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14283 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14284 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 14285 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14286 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14287 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14288 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14289 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14290 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 14291 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14292 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 14293 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } |
| 14294 | if test "x$ac_cv_lib_nsl_t_open" = x""yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 14295 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 14296 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 14297 | # SVR4 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14298 | { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 14299 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14300 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14301 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14302 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14303 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14304 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14305 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14306 | /* confdefs.h. */ |
| 14307 | _ACEOF |
| 14308 | cat confdefs.h >>conftest.$ac_ext |
| 14309 | cat >>conftest.$ac_ext <<_ACEOF |
| 14310 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14311 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14312 | /* Override any GCC internal prototype to avoid an error. |
| 14313 | Use char because int might match the return type of a GCC |
| 14314 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14315 | #ifdef __cplusplus |
| 14316 | extern "C" |
| 14317 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14318 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14319 | int |
| 14320 | main () |
| 14321 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14322 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14323 | ; |
| 14324 | return 0; |
| 14325 | } |
| 14326 | _ACEOF |
| 14327 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14328 | if { (ac_try="$ac_link" |
| 14329 | case "(($ac_try" in |
| 14330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14331 | *) ac_try_echo=$ac_try;; |
| 14332 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14333 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14334 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14335 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14336 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14337 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14338 | rm -f conftest.er1 |
| 14339 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14340 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14341 | (exit $ac_status); } && { |
| 14342 | test -z "$ac_c_werror_flag" || |
| 14343 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14344 | } && test -s conftest$ac_exeext && { |
| 14345 | test "$cross_compiling" = yes || |
| 14346 | $as_test_x conftest$ac_exeext |
| 14347 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14348 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14349 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14350 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14352 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14353 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14354 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14355 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14356 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14357 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14358 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14359 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14360 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14361 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 14362 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
| 14363 | if test "x$ac_cv_lib_socket_socket" = x""yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14364 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14365 | fi |
| 14366 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 14367 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14368 | { $as_echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 14369 | $as_echo_n "checking for --with-libs... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14370 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14371 | # Check whether --with-libs was given. |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 14372 | if test "${with_libs+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14373 | withval=$with_libs; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14374 | { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 14375 | $as_echo "$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 14376 | LIBS="$withval $LIBS" |
| 14377 | |
| 14378 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14379 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14380 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14381 | fi |
| 14382 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14383 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14384 | # Check for use of the system libffi library |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14385 | { $as_echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 14386 | $as_echo_n "checking for --with-system-ffi... " >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14387 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14388 | # Check whether --with-system_ffi was given. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14389 | if test "${with_system_ffi+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14390 | withval=$with_system_ffi; |
| 14391 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14392 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14393 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14394 | { $as_echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 14395 | $as_echo "$with_system_ffi" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14396 | |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 14397 | # Check for --with-dbmliborder |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14398 | { $as_echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5 |
| 14399 | $as_echo_n "checking for --with-dbmliborder... " >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 14400 | |
| 14401 | # Check whether --with-dbmliborder was given. |
| 14402 | if test "${with_dbmliborder+set}" = set; then |
| 14403 | withval=$with_dbmliborder; |
| 14404 | if test x$with_dbmliborder = xyes |
| 14405 | then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14406 | { { $as_echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 14407 | $as_echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 14408 | { (exit 1); exit 1; }; } |
| 14409 | else |
| 14410 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 14411 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 14412 | then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14413 | { { $as_echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 14414 | $as_echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 14415 | { (exit 1); exit 1; }; } |
| 14416 | fi |
| 14417 | done |
| 14418 | fi |
| 14419 | fi |
| 14420 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14421 | { $as_echo "$as_me:$LINENO: result: $with_dbmliborder" >&5 |
| 14422 | $as_echo "$with_dbmliborder" >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 14423 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 14424 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14425 | |
| 14426 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14427 | { $as_echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 14428 | $as_echo_n "checking for --with-signal-module... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14429 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14430 | # Check whether --with-signal-module was given. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14431 | if test "${with_signal_module+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14432 | withval=$with_signal_module; |
| 14433 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14434 | |
| 14435 | |
| 14436 | if test -z "$with_signal_module" |
| 14437 | then with_signal_module="yes" |
| 14438 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14439 | { $as_echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 14440 | $as_echo "$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14441 | |
| 14442 | if test "${with_signal_module}" = "yes"; then |
| 14443 | USE_SIGNAL_MODULE="" |
| 14444 | SIGNAL_OBJS="" |
| 14445 | else |
| 14446 | USE_SIGNAL_MODULE="#" |
| 14447 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 14448 | fi |
| 14449 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 14450 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 14451 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14452 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 14453 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14454 | { $as_echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 14455 | $as_echo_n "checking for --with-dec-threads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14456 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14457 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14458 | # Check whether --with-dec-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14459 | if test "${with_dec_threads+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14460 | withval=$with_dec_threads; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14461 | { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 14462 | $as_echo "$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14463 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14464 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14465 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14466 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14467 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14468 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14469 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14470 | fi |
| 14471 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14472 | |
| 14473 | # Templates for things AC_DEFINEd more than once. |
| 14474 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14475 | |
| 14476 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14477 | |
| 14478 | |
| 14479 | |
| 14480 | |
| 14481 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14482 | { $as_echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 14483 | $as_echo_n "checking for --with-threads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14484 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14485 | # Check whether --with-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14486 | if test "${with_threads+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14487 | withval=$with_threads; |
| 14488 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14489 | |
| 14490 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14491 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14492 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14493 | # Check whether --with-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14494 | if test "${with_thread+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14495 | withval=$with_thread; with_threads=$with_thread |
| 14496 | fi |
| 14497 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14498 | |
| 14499 | if test -z "$with_threads" |
| 14500 | then with_threads="yes" |
| 14501 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14502 | { $as_echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 14503 | $as_echo "$with_threads" >&6; } |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14504 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14505 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14506 | if test "$with_threads" = "no" |
| 14507 | then |
| 14508 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14509 | elif test "$ac_cv_pthread_is_default" = yes |
| 14510 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14511 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14512 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14513 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14514 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14515 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14516 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14517 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14518 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14519 | |
| 14520 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14521 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14522 | elif test "$ac_cv_kpthread" = "yes" |
| 14523 | then |
| 14524 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 14525 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 14526 | CXX="$CXX -Kpthread" |
| 14527 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14528 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 14529 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14530 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 14531 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14532 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14533 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 14534 | elif test "$ac_cv_kthread" = "yes" |
| 14535 | then |
| 14536 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 14537 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 14538 | CXX="$CXX -Kthread" |
| 14539 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 14540 | cat >>confdefs.h <<\_ACEOF |
| 14541 | #define WITH_THREAD 1 |
| 14542 | _ACEOF |
| 14543 | |
| 14544 | posix_threads=yes |
| 14545 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14546 | elif test "$ac_cv_pthread" = "yes" |
| 14547 | then |
| 14548 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 14549 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 14550 | CXX="$CXX -pthread" |
| 14551 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14552 | cat >>confdefs.h <<\_ACEOF |
| 14553 | #define WITH_THREAD 1 |
| 14554 | _ACEOF |
| 14555 | |
| 14556 | posix_threads=yes |
| 14557 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14558 | else |
| 14559 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 14560 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 14561 | fi |
| 14562 | if test ! -z "$withval" -a -d "$withval" |
| 14563 | then LDFLAGS="$LDFLAGS -L$withval" |
| 14564 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14565 | |
| 14566 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 14567 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 14568 | # (e.g. gnu pth with pthread emulation) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14569 | { $as_echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 14570 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14571 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14572 | /* confdefs.h. */ |
| 14573 | _ACEOF |
| 14574 | cat confdefs.h >>conftest.$ac_ext |
| 14575 | cat >>conftest.$ac_ext <<_ACEOF |
| 14576 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 14577 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14578 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 14579 | #ifdef _POSIX_THREADS |
| 14580 | yes |
| 14581 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14582 | |
| 14583 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14584 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14585 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14586 | unistd_defines_pthreads=yes |
| 14587 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14588 | unistd_defines_pthreads=no |
| 14589 | fi |
| 14590 | rm -f conftest* |
| 14591 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14592 | { $as_echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 14593 | $as_echo "$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14594 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14595 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 14596 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14597 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 14598 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14599 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14600 | { $as_echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 14601 | $as_echo_n "checking for cthreads.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14602 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14603 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14604 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14605 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 14606 | $as_echo "$ac_cv_header_cthreads_h" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14607 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14608 | # Is the header compilable? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14609 | { $as_echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 14610 | $as_echo_n "checking cthreads.h usability... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14611 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14612 | /* confdefs.h. */ |
| 14613 | _ACEOF |
| 14614 | cat confdefs.h >>conftest.$ac_ext |
| 14615 | cat >>conftest.$ac_ext <<_ACEOF |
| 14616 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14617 | $ac_includes_default |
| 14618 | #include <cthreads.h> |
| 14619 | _ACEOF |
| 14620 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14621 | if { (ac_try="$ac_compile" |
| 14622 | case "(($ac_try" in |
| 14623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14624 | *) ac_try_echo=$ac_try;; |
| 14625 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14626 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14627 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14628 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14629 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14631 | rm -f conftest.er1 |
| 14632 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14633 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14634 | (exit $ac_status); } && { |
| 14635 | test -z "$ac_c_werror_flag" || |
| 14636 | test ! -s conftest.err |
| 14637 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14638 | ac_header_compiler=yes |
| 14639 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14640 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14642 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14643 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14644 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14645 | |
| 14646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14647 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14648 | $as_echo "$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14649 | |
| 14650 | # Is the header present? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14651 | { $as_echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 14652 | $as_echo_n "checking cthreads.h presence... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14653 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14654 | /* confdefs.h. */ |
| 14655 | _ACEOF |
| 14656 | cat confdefs.h >>conftest.$ac_ext |
| 14657 | cat >>conftest.$ac_ext <<_ACEOF |
| 14658 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14659 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14660 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14661 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14662 | case "(($ac_try" in |
| 14663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14664 | *) ac_try_echo=$ac_try;; |
| 14665 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14666 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14667 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14668 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14669 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14670 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14671 | rm -f conftest.er1 |
| 14672 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14673 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14674 | (exit $ac_status); } >/dev/null && { |
| 14675 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14676 | test ! -s conftest.err |
| 14677 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14678 | ac_header_preproc=yes |
| 14679 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14680 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14682 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14683 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14684 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14685 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14686 | rm -f conftest.err conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14687 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14688 | $as_echo "$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14689 | |
| 14690 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14691 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14692 | yes:no: ) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14693 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14694 | $as_echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14695 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 14696 | $as_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] | 14697 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14698 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14699 | no:yes:* ) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14700 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 14701 | $as_echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 14702 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 14703 | $as_echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 14704 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 14705 | $as_echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 14706 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14707 | $as_echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14708 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 14709 | $as_echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 14710 | { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 14711 | $as_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] | 14712 | ( cat <<\_ASBOX |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 14713 | ## -------------------------------------- ## |
| 14714 | ## Report this to http://bugs.python.org/ ## |
| 14715 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14716 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14717 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14718 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14719 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14720 | { $as_echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 14721 | $as_echo_n "checking for cthreads.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14722 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14723 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14724 | else |
| 14725 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14726 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14727 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 14728 | $as_echo "$ac_cv_header_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14729 | |
| 14730 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14731 | if test "x$ac_cv_header_cthreads_h" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14732 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14733 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14734 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14736 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14737 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14738 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14739 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14740 | |
| 14741 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14742 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14743 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14744 | |
| 14745 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14746 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14747 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14748 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14749 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14750 | { $as_echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 14751 | $as_echo_n "checking for mach/cthreads.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14752 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14753 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14754 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14755 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 14756 | $as_echo "$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14757 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14758 | # Is the header compilable? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14759 | { $as_echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 14760 | $as_echo_n "checking mach/cthreads.h usability... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14761 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14762 | /* confdefs.h. */ |
| 14763 | _ACEOF |
| 14764 | cat confdefs.h >>conftest.$ac_ext |
| 14765 | cat >>conftest.$ac_ext <<_ACEOF |
| 14766 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14767 | $ac_includes_default |
| 14768 | #include <mach/cthreads.h> |
| 14769 | _ACEOF |
| 14770 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14771 | if { (ac_try="$ac_compile" |
| 14772 | case "(($ac_try" in |
| 14773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14774 | *) ac_try_echo=$ac_try;; |
| 14775 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14776 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14777 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14778 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14779 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14781 | rm -f conftest.er1 |
| 14782 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14783 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14784 | (exit $ac_status); } && { |
| 14785 | test -z "$ac_c_werror_flag" || |
| 14786 | test ! -s conftest.err |
| 14787 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14788 | ac_header_compiler=yes |
| 14789 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14790 | $as_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_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14797 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14798 | $as_echo "$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14799 | |
| 14800 | # Is the header present? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14801 | { $as_echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 14802 | $as_echo_n "checking mach/cthreads.h presence... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14803 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14804 | /* confdefs.h. */ |
| 14805 | _ACEOF |
| 14806 | cat confdefs.h >>conftest.$ac_ext |
| 14807 | cat >>conftest.$ac_ext <<_ACEOF |
| 14808 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14809 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14810 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14811 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14812 | case "(($ac_try" in |
| 14813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14814 | *) ac_try_echo=$ac_try;; |
| 14815 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14816 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14817 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14818 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14819 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14820 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14821 | rm -f conftest.er1 |
| 14822 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14823 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14824 | (exit $ac_status); } >/dev/null && { |
| 14825 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14826 | test ! -s conftest.err |
| 14827 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14828 | ac_header_preproc=yes |
| 14829 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14830 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14831 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14832 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14833 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14834 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14835 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14836 | rm -f conftest.err conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14837 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14838 | $as_echo "$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14839 | |
| 14840 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14841 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14842 | yes:no: ) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14843 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14844 | $as_echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14845 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 14846 | $as_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] | 14847 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14848 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14849 | no:yes:* ) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14850 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 14851 | $as_echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 14852 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 14853 | $as_echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 14854 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 14855 | $as_echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 14856 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14857 | $as_echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14858 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 14859 | $as_echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 14860 | { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 14861 | $as_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] | 14862 | ( cat <<\_ASBOX |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 14863 | ## -------------------------------------- ## |
| 14864 | ## Report this to http://bugs.python.org/ ## |
| 14865 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14866 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14867 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14868 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14869 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14870 | { $as_echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 14871 | $as_echo_n "checking for mach/cthreads.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14872 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14873 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14874 | else |
| 14875 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14876 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14877 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 14878 | $as_echo "$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14879 | |
| 14880 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14881 | if test "x$ac_cv_header_mach_cthreads_h" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14882 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14883 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14884 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14885 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14886 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14887 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14888 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14889 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14890 | |
| 14891 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14892 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14893 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14894 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14895 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14896 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14897 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14898 | { $as_echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 14899 | $as_echo_n "checking for --with-pth... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14900 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14901 | # Check whether --with-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14902 | if test "${with_pth+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14903 | withval=$with_pth; { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 14904 | $as_echo "$withval" >&6; } |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 14905 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14906 | #define WITH_THREAD 1 |
| 14907 | _ACEOF |
| 14908 | |
| 14909 | |
| 14910 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14911 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14912 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14913 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 14914 | LIBS="-lpth $LIBS" |
| 14915 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14916 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14917 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14918 | $as_echo "no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14919 | |
| 14920 | # Just looking for pthread_create in libpthread is not enough: |
| 14921 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 14922 | # So we really have to include pthread.h, and then link. |
| 14923 | _libs=$LIBS |
| 14924 | LIBS="$LIBS -lpthread" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14925 | { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 14926 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14927 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14928 | /* confdefs.h. */ |
| 14929 | _ACEOF |
| 14930 | cat confdefs.h >>conftest.$ac_ext |
| 14931 | cat >>conftest.$ac_ext <<_ACEOF |
| 14932 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14933 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14934 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14935 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14936 | int |
| 14937 | main () |
| 14938 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14939 | |
| 14940 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14941 | ; |
| 14942 | return 0; |
| 14943 | } |
| 14944 | _ACEOF |
| 14945 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14946 | if { (ac_try="$ac_link" |
| 14947 | case "(($ac_try" in |
| 14948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14949 | *) ac_try_echo=$ac_try;; |
| 14950 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14951 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14952 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14953 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14954 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14955 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14956 | rm -f conftest.er1 |
| 14957 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14958 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14959 | (exit $ac_status); } && { |
| 14960 | test -z "$ac_c_werror_flag" || |
| 14961 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14962 | } && test -s conftest$ac_exeext && { |
| 14963 | test "$cross_compiling" = yes || |
| 14964 | $as_test_x conftest$ac_exeext |
| 14965 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14966 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14967 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14968 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14969 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14970 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14971 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14972 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14973 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14974 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14975 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14976 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14978 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14979 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14980 | LIBS=$_libs |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14981 | { $as_echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 14982 | $as_echo_n "checking for pthread_detach... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14983 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 14984 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14985 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14986 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14987 | /* confdefs.h. */ |
| 14988 | _ACEOF |
| 14989 | cat confdefs.h >>conftest.$ac_ext |
| 14990 | cat >>conftest.$ac_ext <<_ACEOF |
| 14991 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14992 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 14993 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14994 | #define pthread_detach innocuous_pthread_detach |
| 14995 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14996 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14997 | which can conflict with char pthread_detach (); below. |
| 14998 | 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] | 14999 | <limits.h> exists even on freestanding compilers. */ |
| 15000 | |
| 15001 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15002 | # include <limits.h> |
| 15003 | #else |
| 15004 | # include <assert.h> |
| 15005 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15006 | |
| 15007 | #undef pthread_detach |
| 15008 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15009 | /* Override any GCC internal prototype to avoid an error. |
| 15010 | Use char because int might match the return type of a GCC |
| 15011 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15012 | #ifdef __cplusplus |
| 15013 | extern "C" |
| 15014 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15015 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15016 | /* The GNU C library defines this for functions which it implements |
| 15017 | to always fail with ENOSYS. Some functions are actually named |
| 15018 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15019 | #if defined __stub_pthread_detach || defined __stub___pthread_detach |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15020 | choke me |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15021 | #endif |
| 15022 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15023 | int |
| 15024 | main () |
| 15025 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15026 | return pthread_detach (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15027 | ; |
| 15028 | return 0; |
| 15029 | } |
| 15030 | _ACEOF |
| 15031 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15032 | if { (ac_try="$ac_link" |
| 15033 | case "(($ac_try" in |
| 15034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15035 | *) ac_try_echo=$ac_try;; |
| 15036 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15037 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15038 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15039 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15040 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15041 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15042 | rm -f conftest.er1 |
| 15043 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15044 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15045 | (exit $ac_status); } && { |
| 15046 | test -z "$ac_c_werror_flag" || |
| 15047 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15048 | } && test -s conftest$ac_exeext && { |
| 15049 | test "$cross_compiling" = yes || |
| 15050 | $as_test_x conftest$ac_exeext |
| 15051 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15052 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15053 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15054 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15056 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15057 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15058 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15059 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15060 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15061 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15062 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15063 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15064 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 15065 | $as_echo "$ac_cv_func_pthread_detach" >&6; } |
| 15066 | if test "x$ac_cv_func_pthread_detach" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15067 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15068 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15069 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15070 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15071 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15072 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15073 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15074 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15075 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15076 | { $as_echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 15077 | $as_echo_n "checking for atheos/threads.h... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15078 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15079 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15080 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15081 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 15082 | $as_echo "$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15083 | else |
| 15084 | # Is the header compilable? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15085 | { $as_echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 15086 | $as_echo_n "checking atheos/threads.h usability... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15087 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15088 | /* confdefs.h. */ |
| 15089 | _ACEOF |
| 15090 | cat confdefs.h >>conftest.$ac_ext |
| 15091 | cat >>conftest.$ac_ext <<_ACEOF |
| 15092 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15093 | $ac_includes_default |
| 15094 | #include <atheos/threads.h> |
| 15095 | _ACEOF |
| 15096 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15097 | if { (ac_try="$ac_compile" |
| 15098 | case "(($ac_try" in |
| 15099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15100 | *) ac_try_echo=$ac_try;; |
| 15101 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15102 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15103 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15104 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15105 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15107 | rm -f conftest.er1 |
| 15108 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15109 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15110 | (exit $ac_status); } && { |
| 15111 | test -z "$ac_c_werror_flag" || |
| 15112 | test ! -s conftest.err |
| 15113 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15114 | ac_header_compiler=yes |
| 15115 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15116 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15118 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15119 | ac_header_compiler=no |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15120 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15121 | |
| 15122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15123 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15124 | $as_echo "$ac_header_compiler" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15125 | |
| 15126 | # Is the header present? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15127 | { $as_echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 15128 | $as_echo_n "checking atheos/threads.h presence... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15129 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15130 | /* confdefs.h. */ |
| 15131 | _ACEOF |
| 15132 | cat confdefs.h >>conftest.$ac_ext |
| 15133 | cat >>conftest.$ac_ext <<_ACEOF |
| 15134 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15135 | #include <atheos/threads.h> |
| 15136 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15137 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15138 | case "(($ac_try" in |
| 15139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15140 | *) ac_try_echo=$ac_try;; |
| 15141 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15142 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15143 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15144 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15145 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15146 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15147 | rm -f conftest.er1 |
| 15148 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15149 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15150 | (exit $ac_status); } >/dev/null && { |
| 15151 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15152 | test ! -s conftest.err |
| 15153 | }; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15154 | ac_header_preproc=yes |
| 15155 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15156 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15158 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15159 | ac_header_preproc=no |
| 15160 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15161 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15162 | rm -f conftest.err conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15163 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15164 | $as_echo "$ac_header_preproc" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15165 | |
| 15166 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15167 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15168 | yes:no: ) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15169 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15170 | $as_echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15171 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 15172 | $as_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] | 15173 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15174 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15175 | no:yes:* ) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15176 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 15177 | $as_echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 15178 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 15179 | $as_echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 15180 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 15181 | $as_echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 15182 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 15183 | $as_echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15184 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 15185 | $as_echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 15186 | { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 15187 | $as_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] | 15188 | ( cat <<\_ASBOX |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 15189 | ## -------------------------------------- ## |
| 15190 | ## Report this to http://bugs.python.org/ ## |
| 15191 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15192 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15193 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15194 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15195 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15196 | { $as_echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 15197 | $as_echo_n "checking for atheos/threads.h... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15198 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15199 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15200 | else |
| 15201 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 15202 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15203 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 15204 | $as_echo "$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15205 | |
| 15206 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15207 | if test "x$ac_cv_header_atheos_threads_h" = x""yes; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15208 | cat >>confdefs.h <<\_ACEOF |
| 15209 | #define WITH_THREAD 1 |
| 15210 | _ACEOF |
| 15211 | |
| 15212 | |
| 15213 | cat >>confdefs.h <<\_ACEOF |
| 15214 | #define ATHEOS_THREADS 1 |
| 15215 | _ACEOF |
| 15216 | |
| 15217 | THREADOBJ="Python/thread.o" |
| 15218 | else |
| 15219 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15220 | { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 15221 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15222 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15223 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15224 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15225 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15226 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15227 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15228 | /* confdefs.h. */ |
| 15229 | _ACEOF |
| 15230 | cat confdefs.h >>conftest.$ac_ext |
| 15231 | cat >>conftest.$ac_ext <<_ACEOF |
| 15232 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15233 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15234 | /* Override any GCC internal prototype to avoid an error. |
| 15235 | Use char because int might match the return type of a GCC |
| 15236 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15237 | #ifdef __cplusplus |
| 15238 | extern "C" |
| 15239 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15240 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15241 | int |
| 15242 | main () |
| 15243 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15244 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15245 | ; |
| 15246 | return 0; |
| 15247 | } |
| 15248 | _ACEOF |
| 15249 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15250 | if { (ac_try="$ac_link" |
| 15251 | case "(($ac_try" in |
| 15252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15253 | *) ac_try_echo=$ac_try;; |
| 15254 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15255 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15256 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15257 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15258 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15260 | rm -f conftest.er1 |
| 15261 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15262 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15263 | (exit $ac_status); } && { |
| 15264 | test -z "$ac_c_werror_flag" || |
| 15265 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15266 | } && test -s conftest$ac_exeext && { |
| 15267 | test "$cross_compiling" = yes || |
| 15268 | $as_test_x conftest$ac_exeext |
| 15269 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15270 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15271 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15272 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15273 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15274 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15275 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15276 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15277 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15278 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15279 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15280 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15281 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15282 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15283 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 15284 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } |
| 15285 | if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15286 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15287 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15288 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15289 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15290 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15291 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15292 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15293 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15294 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15295 | { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 15296 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15297 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15298 | $as_echo_n "(cached) " >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15299 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15300 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15301 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15302 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15303 | /* confdefs.h. */ |
| 15304 | _ACEOF |
| 15305 | cat confdefs.h >>conftest.$ac_ext |
| 15306 | cat >>conftest.$ac_ext <<_ACEOF |
| 15307 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15308 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15309 | /* Override any GCC internal prototype to avoid an error. |
| 15310 | Use char because int might match the return type of a GCC |
| 15311 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15312 | #ifdef __cplusplus |
| 15313 | extern "C" |
| 15314 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15315 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15316 | int |
| 15317 | main () |
| 15318 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15319 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15320 | ; |
| 15321 | return 0; |
| 15322 | } |
| 15323 | _ACEOF |
| 15324 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15325 | if { (ac_try="$ac_link" |
| 15326 | case "(($ac_try" in |
| 15327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15328 | *) ac_try_echo=$ac_try;; |
| 15329 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15330 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15331 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15332 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15333 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15335 | rm -f conftest.er1 |
| 15336 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15337 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15338 | (exit $ac_status); } && { |
| 15339 | test -z "$ac_c_werror_flag" || |
| 15340 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15341 | } && test -s conftest$ac_exeext && { |
| 15342 | test "$cross_compiling" = yes || |
| 15343 | $as_test_x conftest$ac_exeext |
| 15344 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15345 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 15346 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15347 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15348 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15349 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15350 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 15351 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15352 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15353 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15354 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15355 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15356 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 15357 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15358 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 15359 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } |
| 15360 | if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15361 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 15362 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15363 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 15364 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15365 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15366 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15367 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 15368 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 15369 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15370 | { $as_echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 15371 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15372 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15373 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15374 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15375 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15376 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15377 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15378 | /* confdefs.h. */ |
| 15379 | _ACEOF |
| 15380 | cat confdefs.h >>conftest.$ac_ext |
| 15381 | cat >>conftest.$ac_ext <<_ACEOF |
| 15382 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15383 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15384 | /* Override any GCC internal prototype to avoid an error. |
| 15385 | Use char because int might match the return type of a GCC |
| 15386 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15387 | #ifdef __cplusplus |
| 15388 | extern "C" |
| 15389 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15390 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15391 | int |
| 15392 | main () |
| 15393 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15394 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15395 | ; |
| 15396 | return 0; |
| 15397 | } |
| 15398 | _ACEOF |
| 15399 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15400 | if { (ac_try="$ac_link" |
| 15401 | case "(($ac_try" in |
| 15402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15403 | *) ac_try_echo=$ac_try;; |
| 15404 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15405 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15406 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15407 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15408 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15410 | rm -f conftest.er1 |
| 15411 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15412 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15413 | (exit $ac_status); } && { |
| 15414 | test -z "$ac_c_werror_flag" || |
| 15415 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15416 | } && test -s conftest$ac_exeext && { |
| 15417 | test "$cross_compiling" = yes || |
| 15418 | $as_test_x conftest$ac_exeext |
| 15419 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15420 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15421 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15422 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15424 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15425 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15426 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15427 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15428 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15429 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15430 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15431 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15432 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15433 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 15434 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } |
| 15435 | if test "x$ac_cv_lib_pthread___pthread_create_system" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15436 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15437 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15438 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15439 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15440 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15441 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15442 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15443 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15444 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15445 | { $as_echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 15446 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15447 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15448 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15449 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15450 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15451 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15452 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15453 | /* confdefs.h. */ |
| 15454 | _ACEOF |
| 15455 | cat confdefs.h >>conftest.$ac_ext |
| 15456 | cat >>conftest.$ac_ext <<_ACEOF |
| 15457 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15458 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15459 | /* Override any GCC internal prototype to avoid an error. |
| 15460 | Use char because int might match the return type of a GCC |
| 15461 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15462 | #ifdef __cplusplus |
| 15463 | extern "C" |
| 15464 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15465 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15466 | int |
| 15467 | main () |
| 15468 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15469 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15470 | ; |
| 15471 | return 0; |
| 15472 | } |
| 15473 | _ACEOF |
| 15474 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15475 | if { (ac_try="$ac_link" |
| 15476 | case "(($ac_try" in |
| 15477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15478 | *) ac_try_echo=$ac_try;; |
| 15479 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15480 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15481 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15482 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15483 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15485 | rm -f conftest.er1 |
| 15486 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15487 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15488 | (exit $ac_status); } && { |
| 15489 | test -z "$ac_c_werror_flag" || |
| 15490 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15491 | } && test -s conftest$ac_exeext && { |
| 15492 | test "$cross_compiling" = yes || |
| 15493 | $as_test_x conftest$ac_exeext |
| 15494 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15495 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15496 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15497 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15499 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15500 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15501 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15502 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15503 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15504 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15505 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15506 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15507 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15508 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 15509 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } |
| 15510 | if test "x$ac_cv_lib_cma_pthread_create" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15511 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15512 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15513 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15514 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15515 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15516 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15517 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15518 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 15519 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15520 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 15521 | fi |
| 15522 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15523 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15524 | fi |
| 15525 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 15526 | fi |
| 15527 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 15528 | fi |
| 15529 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15530 | fi |
| 15531 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 15532 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15533 | fi |
| 15534 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15535 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15536 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15537 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15538 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15539 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15540 | fi |
| 15541 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15542 | fi |
| 15543 | |
| 15544 | |
| 15545 | fi |
| 15546 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15547 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15548 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15549 | { $as_echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 15550 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15551 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15552 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15553 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15554 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15555 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15556 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15557 | /* confdefs.h. */ |
| 15558 | _ACEOF |
| 15559 | cat confdefs.h >>conftest.$ac_ext |
| 15560 | cat >>conftest.$ac_ext <<_ACEOF |
| 15561 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15562 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15563 | /* Override any GCC internal prototype to avoid an error. |
| 15564 | Use char because int might match the return type of a GCC |
| 15565 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15566 | #ifdef __cplusplus |
| 15567 | extern "C" |
| 15568 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15569 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15570 | int |
| 15571 | main () |
| 15572 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15573 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15574 | ; |
| 15575 | return 0; |
| 15576 | } |
| 15577 | _ACEOF |
| 15578 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15579 | if { (ac_try="$ac_link" |
| 15580 | case "(($ac_try" in |
| 15581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15582 | *) ac_try_echo=$ac_try;; |
| 15583 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15584 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15585 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15586 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15587 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15588 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15589 | rm -f conftest.er1 |
| 15590 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15591 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15592 | (exit $ac_status); } && { |
| 15593 | test -z "$ac_c_werror_flag" || |
| 15594 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15595 | } && test -s conftest$ac_exeext && { |
| 15596 | test "$cross_compiling" = yes || |
| 15597 | $as_test_x conftest$ac_exeext |
| 15598 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15599 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15600 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15601 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15603 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15604 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15605 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15606 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15607 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15608 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15609 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15610 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15611 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15612 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 15613 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } |
| 15614 | if test "x$ac_cv_lib_mpc_usconfig" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15615 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15616 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15617 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15618 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15619 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15620 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15621 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15622 | fi |
| 15623 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 15624 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 15625 | if test "$posix_threads" != "yes"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15626 | { $as_echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 15627 | $as_echo_n "checking for thr_create in -lthread... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15628 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15629 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15630 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15631 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15632 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15633 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15634 | /* confdefs.h. */ |
| 15635 | _ACEOF |
| 15636 | cat confdefs.h >>conftest.$ac_ext |
| 15637 | cat >>conftest.$ac_ext <<_ACEOF |
| 15638 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15639 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15640 | /* Override any GCC internal prototype to avoid an error. |
| 15641 | Use char because int might match the return type of a GCC |
| 15642 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15643 | #ifdef __cplusplus |
| 15644 | extern "C" |
| 15645 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15646 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15647 | int |
| 15648 | main () |
| 15649 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15650 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15651 | ; |
| 15652 | return 0; |
| 15653 | } |
| 15654 | _ACEOF |
| 15655 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15656 | if { (ac_try="$ac_link" |
| 15657 | case "(($ac_try" in |
| 15658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15659 | *) ac_try_echo=$ac_try;; |
| 15660 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15661 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15662 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15663 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15664 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15665 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15666 | rm -f conftest.er1 |
| 15667 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15668 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15669 | (exit $ac_status); } && { |
| 15670 | test -z "$ac_c_werror_flag" || |
| 15671 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15672 | } && test -s conftest$ac_exeext && { |
| 15673 | test "$cross_compiling" = yes || |
| 15674 | $as_test_x conftest$ac_exeext |
| 15675 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15676 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15677 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15678 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15680 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15681 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15682 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15683 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15684 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15685 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15686 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15687 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15688 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15689 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 15690 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } |
| 15691 | if test "x$ac_cv_lib_thread_thr_create" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15692 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15693 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15694 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15695 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 15696 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15697 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 15698 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15699 | fi |
| 15700 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 15701 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15702 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15703 | if test "$USE_THREAD_MODULE" != "#" |
| 15704 | then |
| 15705 | # If the above checks didn't disable threads, (at least) OSF1 |
| 15706 | # needs this '-threads' argument during linking. |
| 15707 | case $ac_sys_system in |
| 15708 | OSF1) LDLAST=-threads;; |
| 15709 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 15710 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15711 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 15712 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15713 | if test "$posix_threads" = "yes"; then |
| 15714 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 15715 | |
| 15716 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15717 | #define _POSIX_THREADS 1 |
| 15718 | _ACEOF |
| 15719 | |
| 15720 | fi |
| 15721 | |
| 15722 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 15723 | case $ac_sys_system/$ac_sys_release in |
| 15724 | SunOS/5.6) |
| 15725 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 15726 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 15727 | _ACEOF |
| 15728 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15729 | ;; |
| 15730 | SunOS/5.8) |
| 15731 | cat >>confdefs.h <<\_ACEOF |
| 15732 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 15733 | _ACEOF |
| 15734 | |
| 15735 | ;; |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 15736 | AIX/5) |
| 15737 | cat >>confdefs.h <<\_ACEOF |
| 15738 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 15739 | _ACEOF |
| 15740 | |
| 15741 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15742 | esac |
| 15743 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15744 | { $as_echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 15745 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15746 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15747 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15748 | else |
| 15749 | if test "$cross_compiling" = yes; then |
| 15750 | ac_cv_pthread_system_supported=no |
| 15751 | else |
| 15752 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15753 | /* confdefs.h. */ |
| 15754 | _ACEOF |
| 15755 | cat confdefs.h >>conftest.$ac_ext |
| 15756 | cat >>conftest.$ac_ext <<_ACEOF |
| 15757 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15758 | #include <pthread.h> |
| 15759 | void *foo(void *parm) { |
| 15760 | return NULL; |
| 15761 | } |
| 15762 | main() { |
| 15763 | pthread_attr_t attr; |
| 15764 | pthread_t id; |
| 15765 | if (pthread_attr_init(&attr)) exit(-1); |
| 15766 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 15767 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 15768 | exit(0); |
| 15769 | } |
| 15770 | _ACEOF |
| 15771 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15772 | if { (ac_try="$ac_link" |
| 15773 | case "(($ac_try" in |
| 15774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15775 | *) ac_try_echo=$ac_try;; |
| 15776 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15777 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15778 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15779 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15780 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15781 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15782 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15783 | { (case "(($ac_try" in |
| 15784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15785 | *) ac_try_echo=$ac_try;; |
| 15786 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15787 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15788 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15789 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15790 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15791 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15792 | (exit $ac_status); }; }; then |
| 15793 | ac_cv_pthread_system_supported=yes |
| 15794 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15795 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15796 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15798 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15799 | ( exit $ac_status ) |
| 15800 | ac_cv_pthread_system_supported=no |
| 15801 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15802 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15803 | 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] | 15804 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 15805 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15806 | |
| 15807 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15808 | fi |
| 15809 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15810 | { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 15811 | $as_echo "$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15812 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 15813 | |
| 15814 | cat >>confdefs.h <<\_ACEOF |
| 15815 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 15816 | _ACEOF |
| 15817 | |
| 15818 | fi |
| 15819 | |
| 15820 | for ac_func in pthread_sigmask |
| 15821 | do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15822 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15823 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15824 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15825 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15826 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15827 | else |
| 15828 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15829 | /* confdefs.h. */ |
| 15830 | _ACEOF |
| 15831 | cat confdefs.h >>conftest.$ac_ext |
| 15832 | cat >>conftest.$ac_ext <<_ACEOF |
| 15833 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15834 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15835 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15836 | #define $ac_func innocuous_$ac_func |
| 15837 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15838 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15839 | which can conflict with char $ac_func (); below. |
| 15840 | 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] | 15841 | <limits.h> exists even on freestanding compilers. */ |
| 15842 | |
| 15843 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15844 | # include <limits.h> |
| 15845 | #else |
| 15846 | # include <assert.h> |
| 15847 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15848 | |
| 15849 | #undef $ac_func |
| 15850 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15851 | /* Override any GCC internal prototype to avoid an error. |
| 15852 | Use char because int might match the return type of a GCC |
| 15853 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15854 | #ifdef __cplusplus |
| 15855 | extern "C" |
| 15856 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15857 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15858 | /* The GNU C library defines this for functions which it implements |
| 15859 | to always fail with ENOSYS. Some functions are actually named |
| 15860 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15861 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15862 | choke me |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15863 | #endif |
| 15864 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15865 | int |
| 15866 | main () |
| 15867 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15868 | return $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15869 | ; |
| 15870 | return 0; |
| 15871 | } |
| 15872 | _ACEOF |
| 15873 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15874 | if { (ac_try="$ac_link" |
| 15875 | case "(($ac_try" in |
| 15876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15877 | *) ac_try_echo=$ac_try;; |
| 15878 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15879 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15880 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15881 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15882 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15884 | rm -f conftest.er1 |
| 15885 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15886 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15887 | (exit $ac_status); } && { |
| 15888 | test -z "$ac_c_werror_flag" || |
| 15889 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15890 | } && test -s conftest$ac_exeext && { |
| 15891 | test "$cross_compiling" = yes || |
| 15892 | $as_test_x conftest$ac_exeext |
| 15893 | }; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15894 | eval "$as_ac_var=yes" |
| 15895 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15896 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15898 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15899 | eval "$as_ac_var=no" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15900 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15901 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15902 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15903 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15904 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15905 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15906 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 15907 | $as_echo "$as_val"'` |
| 15908 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15909 | $as_echo "$ac_res" >&6; } |
| 15910 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 15911 | $as_echo "$as_val"'` |
| 15912 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15913 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15914 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15915 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 15916 | case $ac_sys_system in |
| 15917 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15918 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 15919 | cat >>confdefs.h <<\_ACEOF |
| 15920 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 15921 | _ACEOF |
| 15922 | |
| 15923 | ;; |
| 15924 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15925 | fi |
| 15926 | done |
| 15927 | |
| 15928 | fi |
| 15929 | |
| 15930 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15931 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15932 | |
| 15933 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15934 | { $as_echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 15935 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15936 | # Check whether --enable-ipv6 was given. |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15937 | if test "${enable_ipv6+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15938 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15939 | no) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15940 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15941 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15942 | ipv6=no |
| 15943 | ;; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15944 | *) { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15945 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15946 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15947 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15948 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15949 | |
| 15950 | ipv6=yes |
| 15951 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15952 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15953 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15954 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15955 | if test "$cross_compiling" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15956 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15957 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15958 | ipv6=no |
| 15959 | |
| 15960 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15961 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15962 | /* confdefs.h. */ |
| 15963 | _ACEOF |
| 15964 | cat confdefs.h >>conftest.$ac_ext |
| 15965 | cat >>conftest.$ac_ext <<_ACEOF |
| 15966 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15967 | /* AF_INET6 available check */ |
| 15968 | #include <sys/types.h> |
| 15969 | #include <sys/socket.h> |
| 15970 | main() |
| 15971 | { |
| 15972 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 15973 | exit(1); |
| 15974 | else |
| 15975 | exit(0); |
| 15976 | } |
| 15977 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15978 | _ACEOF |
| 15979 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15980 | if { (ac_try="$ac_link" |
| 15981 | case "(($ac_try" in |
| 15982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15983 | *) ac_try_echo=$ac_try;; |
| 15984 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15985 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15986 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15987 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15988 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15989 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15990 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15991 | { (case "(($ac_try" in |
| 15992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15993 | *) ac_try_echo=$ac_try;; |
| 15994 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15995 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15996 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15997 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15998 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 15999 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16000 | (exit $ac_status); }; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16001 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16002 | $as_echo "yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16003 | ipv6=yes |
| 16004 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16005 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 16006 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16009 | ( exit $ac_status ) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16010 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16011 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16012 | ipv6=no |
| 16013 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16014 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16015 | 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] | 16016 | fi |
| 16017 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16018 | |
| 16019 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 16020 | if test "$ipv6" = "yes"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16021 | { $as_echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 16022 | $as_echo_n "checking if RFC2553 API is available... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16023 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16024 | /* confdefs.h. */ |
| 16025 | _ACEOF |
| 16026 | cat confdefs.h >>conftest.$ac_ext |
| 16027 | cat >>conftest.$ac_ext <<_ACEOF |
| 16028 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 16029 | #include <sys/types.h> |
| 16030 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16031 | int |
| 16032 | main () |
| 16033 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 16034 | struct sockaddr_in6 x; |
| 16035 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16036 | ; |
| 16037 | return 0; |
| 16038 | } |
| 16039 | _ACEOF |
| 16040 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16041 | if { (ac_try="$ac_compile" |
| 16042 | case "(($ac_try" in |
| 16043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16044 | *) ac_try_echo=$ac_try;; |
| 16045 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16046 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16047 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16048 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16049 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16050 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16051 | rm -f conftest.er1 |
| 16052 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16053 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16054 | (exit $ac_status); } && { |
| 16055 | test -z "$ac_c_werror_flag" || |
| 16056 | test ! -s conftest.err |
| 16057 | } && test -s conftest.$ac_objext; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16058 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16059 | $as_echo "yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 16060 | ipv6=yes |
| 16061 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16062 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16064 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16065 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16066 | $as_echo "no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 16067 | ipv6=no |
| 16068 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16069 | |
| 16070 | 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] | 16071 | fi |
| 16072 | |
| 16073 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16074 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 16075 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16076 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 16077 | |
| 16078 | fi |
| 16079 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16080 | fi |
| 16081 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16082 | |
| 16083 | ipv6type=unknown |
| 16084 | ipv6lib=none |
| 16085 | ipv6trylibc=no |
| 16086 | |
| 16087 | if test "$ipv6" = "yes"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16088 | { $as_echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 16089 | $as_echo_n "checking ipv6 stack type... " >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 16090 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 16091 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16092 | case $i in |
| 16093 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16094 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16095 | /* confdefs.h. */ |
| 16096 | _ACEOF |
| 16097 | cat confdefs.h >>conftest.$ac_ext |
| 16098 | cat >>conftest.$ac_ext <<_ACEOF |
| 16099 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 16100 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16101 | #include <netinet/in.h> |
| 16102 | #ifdef IPV6_INRIA_VERSION |
| 16103 | yes |
| 16104 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16105 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16106 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16107 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 16108 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16109 | fi |
| 16110 | rm -f conftest* |
| 16111 | |
| 16112 | ;; |
| 16113 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16114 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16115 | /* confdefs.h. */ |
| 16116 | _ACEOF |
| 16117 | cat confdefs.h >>conftest.$ac_ext |
| 16118 | cat >>conftest.$ac_ext <<_ACEOF |
| 16119 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 16120 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16121 | #include <netinet/in.h> |
| 16122 | #ifdef __KAME__ |
| 16123 | yes |
| 16124 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16125 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16126 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16127 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16128 | ipv6type=$i; |
| 16129 | ipv6lib=inet6 |
| 16130 | ipv6libdir=/usr/local/v6/lib |
| 16131 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16132 | fi |
| 16133 | rm -f conftest* |
| 16134 | |
| 16135 | ;; |
| 16136 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16137 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16138 | /* confdefs.h. */ |
| 16139 | _ACEOF |
| 16140 | cat confdefs.h >>conftest.$ac_ext |
| 16141 | cat >>conftest.$ac_ext <<_ACEOF |
| 16142 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 16143 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16144 | #include <features.h> |
| 16145 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 16146 | yes |
| 16147 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16148 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16149 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16150 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16151 | ipv6type=$i; |
| 16152 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16153 | fi |
| 16154 | rm -f conftest* |
| 16155 | |
| 16156 | ;; |
| 16157 | linux-inet6) |
| 16158 | if test -d /usr/inet6; then |
| 16159 | ipv6type=$i |
| 16160 | ipv6lib=inet6 |
| 16161 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16162 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16163 | fi |
| 16164 | ;; |
| 16165 | solaris) |
| 16166 | if test -f /etc/netconfig; then |
| 16167 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 16168 | ipv6type=$i |
| 16169 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16170 | fi |
| 16171 | fi |
| 16172 | ;; |
| 16173 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16174 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16175 | /* confdefs.h. */ |
| 16176 | _ACEOF |
| 16177 | cat confdefs.h >>conftest.$ac_ext |
| 16178 | cat >>conftest.$ac_ext <<_ACEOF |
| 16179 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 16180 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16181 | #include <sys/param.h> |
| 16182 | #ifdef _TOSHIBA_INET6 |
| 16183 | yes |
| 16184 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16185 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16186 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16187 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16188 | ipv6type=$i; |
| 16189 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 16190 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16191 | fi |
| 16192 | rm -f conftest* |
| 16193 | |
| 16194 | ;; |
| 16195 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16196 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16197 | /* confdefs.h. */ |
| 16198 | _ACEOF |
| 16199 | cat confdefs.h >>conftest.$ac_ext |
| 16200 | cat >>conftest.$ac_ext <<_ACEOF |
| 16201 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 16202 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16203 | #include </usr/local/v6/include/sys/v6config.h> |
| 16204 | #ifdef __V6D__ |
| 16205 | yes |
| 16206 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16207 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16208 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16209 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16210 | ipv6type=$i; |
| 16211 | ipv6lib=v6; |
| 16212 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16213 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16214 | fi |
| 16215 | rm -f conftest* |
| 16216 | |
| 16217 | ;; |
| 16218 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16219 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16220 | /* confdefs.h. */ |
| 16221 | _ACEOF |
| 16222 | cat confdefs.h >>conftest.$ac_ext |
| 16223 | cat >>conftest.$ac_ext <<_ACEOF |
| 16224 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 16225 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16226 | #include <sys/param.h> |
| 16227 | #ifdef _ZETA_MINAMI_INET6 |
| 16228 | yes |
| 16229 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16230 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16231 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16232 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16233 | ipv6type=$i; |
| 16234 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 16235 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16236 | fi |
| 16237 | rm -f conftest* |
| 16238 | |
| 16239 | ;; |
| 16240 | esac |
| 16241 | if test "$ipv6type" != "unknown"; then |
| 16242 | break |
| 16243 | fi |
| 16244 | done |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16245 | { $as_echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 16246 | $as_echo "$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16247 | fi |
| 16248 | |
| 16249 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 16250 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 16251 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 16252 | echo "using lib$ipv6lib" |
| 16253 | else |
| 16254 | if test $ipv6trylibc = "yes"; then |
| 16255 | echo "using libc" |
| 16256 | else |
| 16257 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 16258 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 16259 | echo 'ipv6 kit and compile beforehand.' |
| 16260 | exit 1 |
| 16261 | fi |
| 16262 | fi |
| 16263 | fi |
| 16264 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16265 | { $as_echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5 |
| 16266 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 16267 | cat >conftest.$ac_ext <<_ACEOF |
| 16268 | /* confdefs.h. */ |
| 16269 | _ACEOF |
| 16270 | cat confdefs.h >>conftest.$ac_ext |
| 16271 | cat >>conftest.$ac_ext <<_ACEOF |
| 16272 | /* end confdefs.h. */ |
| 16273 | #include <Carbon/Carbon.h> |
| 16274 | int |
| 16275 | main () |
| 16276 | { |
| 16277 | FSIORefNum fRef = 0 |
| 16278 | ; |
| 16279 | return 0; |
| 16280 | } |
| 16281 | _ACEOF |
| 16282 | rm -f conftest.$ac_objext |
| 16283 | if { (ac_try="$ac_compile" |
| 16284 | case "(($ac_try" in |
| 16285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16286 | *) ac_try_echo=$ac_try;; |
| 16287 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16288 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16289 | $as_echo "$ac_try_echo") >&5 |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 16290 | (eval "$ac_compile") 2>conftest.er1 |
| 16291 | ac_status=$? |
| 16292 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16293 | rm -f conftest.er1 |
| 16294 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16295 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 16296 | (exit $ac_status); } && { |
| 16297 | test -z "$ac_c_werror_flag" || |
| 16298 | test ! -s conftest.err |
| 16299 | } && test -s conftest.$ac_objext; then |
| 16300 | |
| 16301 | cat >>confdefs.h <<\_ACEOF |
| 16302 | #define HAVE_OSX105_SDK 1 |
| 16303 | _ACEOF |
| 16304 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16305 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16306 | $as_echo "yes" >&6; } |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 16307 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16308 | $as_echo "$as_me: failed program was:" >&5 |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 16309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16310 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16311 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16312 | $as_echo "no" >&6; } |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 16313 | |
| 16314 | fi |
| 16315 | |
| 16316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16317 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 16318 | # Check for --with-doc-strings |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16319 | { $as_echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 16320 | $as_echo_n "checking for --with-doc-strings... " >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 16321 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16322 | # Check whether --with-doc-strings was given. |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 16323 | if test "${with_doc_strings+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16324 | withval=$with_doc_strings; |
| 16325 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 16326 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 16327 | |
| 16328 | if test -z "$with_doc_strings" |
| 16329 | then with_doc_strings="yes" |
| 16330 | fi |
| 16331 | if test "$with_doc_strings" != "no" |
| 16332 | then |
| 16333 | |
| 16334 | cat >>confdefs.h <<\_ACEOF |
| 16335 | #define WITH_DOC_STRINGS 1 |
| 16336 | _ACEOF |
| 16337 | |
| 16338 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16339 | { $as_echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 16340 | $as_echo "$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 16341 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 16342 | # Check for Python-specific malloc support |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16343 | { $as_echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 16344 | $as_echo_n "checking for --with-tsc... " >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 16345 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16346 | # Check whether --with-tsc was given. |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 16347 | if test "${with_tsc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16348 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 16349 | if test "$withval" != no |
| 16350 | then |
| 16351 | |
| 16352 | cat >>confdefs.h <<\_ACEOF |
| 16353 | #define WITH_TSC 1 |
| 16354 | _ACEOF |
| 16355 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16356 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16357 | $as_echo "yes" >&6; } |
| 16358 | else { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16359 | $as_echo "no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 16360 | fi |
| 16361 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16362 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16363 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16364 | fi |
| 16365 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 16366 | |
| 16367 | # Check for Python-specific malloc support |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16368 | { $as_echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 16369 | $as_echo_n "checking for --with-pymalloc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16370 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16371 | # Check whether --with-pymalloc was given. |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 16372 | if test "${with_pymalloc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16373 | withval=$with_pymalloc; |
| 16374 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16375 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 16376 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 16377 | if test -z "$with_pymalloc" |
| 16378 | then with_pymalloc="yes" |
| 16379 | fi |
| 16380 | if test "$with_pymalloc" != "no" |
| 16381 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16382 | |
| 16383 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 16384 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16385 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 16386 | |
| 16387 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16388 | { $as_echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 16389 | $as_echo "$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 16390 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16391 | # Check for --with-wctype-functions |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16392 | { $as_echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 16393 | $as_echo_n "checking for --with-wctype-functions... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16394 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16395 | # Check whether --with-wctype-functions was given. |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16396 | if test "${with_wctype_functions+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16397 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16398 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16399 | then |
| 16400 | |
| 16401 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16402 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16403 | _ACEOF |
| 16404 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16405 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16406 | $as_echo "yes" >&6; } |
| 16407 | else { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16408 | $as_echo "no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16409 | fi |
| 16410 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16411 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16412 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16413 | fi |
| 16414 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16415 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16416 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16417 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 16418 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16419 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16420 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 16421 | # 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] | 16422 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16423 | for ac_func in dlopen |
| 16424 | do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16425 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16426 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16427 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16428 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16429 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16430 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16431 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16432 | /* confdefs.h. */ |
| 16433 | _ACEOF |
| 16434 | cat confdefs.h >>conftest.$ac_ext |
| 16435 | cat >>conftest.$ac_ext <<_ACEOF |
| 16436 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16437 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16438 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16439 | #define $ac_func innocuous_$ac_func |
| 16440 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16441 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16442 | which can conflict with char $ac_func (); below. |
| 16443 | 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] | 16444 | <limits.h> exists even on freestanding compilers. */ |
| 16445 | |
| 16446 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16447 | # include <limits.h> |
| 16448 | #else |
| 16449 | # include <assert.h> |
| 16450 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16451 | |
| 16452 | #undef $ac_func |
| 16453 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16454 | /* Override any GCC internal prototype to avoid an error. |
| 16455 | Use char because int might match the return type of a GCC |
| 16456 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16457 | #ifdef __cplusplus |
| 16458 | extern "C" |
| 16459 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16460 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16461 | /* The GNU C library defines this for functions which it implements |
| 16462 | to always fail with ENOSYS. Some functions are actually named |
| 16463 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16464 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16465 | choke me |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16466 | #endif |
| 16467 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16468 | int |
| 16469 | main () |
| 16470 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16471 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16472 | ; |
| 16473 | return 0; |
| 16474 | } |
| 16475 | _ACEOF |
| 16476 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16477 | if { (ac_try="$ac_link" |
| 16478 | case "(($ac_try" in |
| 16479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16480 | *) ac_try_echo=$ac_try;; |
| 16481 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16482 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16483 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16484 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16485 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16486 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16487 | rm -f conftest.er1 |
| 16488 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16489 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16490 | (exit $ac_status); } && { |
| 16491 | test -z "$ac_c_werror_flag" || |
| 16492 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16493 | } && test -s conftest$ac_exeext && { |
| 16494 | test "$cross_compiling" = yes || |
| 16495 | $as_test_x conftest$ac_exeext |
| 16496 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16497 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16498 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16499 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16501 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16502 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16503 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16504 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16505 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16506 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16507 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16508 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16509 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 16510 | $as_echo "$as_val"'` |
| 16511 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16512 | $as_echo "$ac_res" >&6; } |
| 16513 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 16514 | $as_echo "$as_val"'` |
| 16515 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16516 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16517 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16518 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16519 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16520 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16521 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16522 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16523 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16524 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 16525 | # loading of modules. |
| 16526 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16527 | { $as_echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 16528 | $as_echo_n "checking DYNLOADFILE... " >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16529 | if test -z "$DYNLOADFILE" |
| 16530 | then |
| 16531 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 16532 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 16533 | if test "$ac_cv_func_dlopen" = yes |
| 16534 | then DYNLOADFILE="dynload_shlib.o" |
| 16535 | else DYNLOADFILE="dynload_aix.o" |
| 16536 | fi |
| 16537 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16538 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 16539 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 16540 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16541 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16542 | *) |
| 16543 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 16544 | # out any dynamic loading |
| 16545 | if test "$ac_cv_func_dlopen" = yes |
| 16546 | then DYNLOADFILE="dynload_shlib.o" |
| 16547 | else DYNLOADFILE="dynload_stub.o" |
| 16548 | fi |
| 16549 | ;; |
| 16550 | esac |
| 16551 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16552 | { $as_echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 16553 | $as_echo "$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16554 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 16555 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16556 | |
| 16557 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16558 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16559 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16560 | |
| 16561 | fi |
| 16562 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 16563 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 16564 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16565 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16566 | { $as_echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 16567 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 16568 | if test -z "$MACHDEP_OBJS" |
| 16569 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 16570 | MACHDEP_OBJS=$extra_machdep_objs |
| 16571 | else |
| 16572 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 16573 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16574 | { $as_echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 16575 | $as_echo "MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 16576 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16577 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16578 | |
| 16579 | |
| 16580 | |
| 16581 | |
| 16582 | |
| 16583 | |
| 16584 | |
| 16585 | |
| 16586 | |
| 16587 | |
| 16588 | |
| 16589 | |
| 16590 | |
| 16591 | |
| 16592 | |
| 16593 | |
| 16594 | |
| 16595 | |
| 16596 | |
| 16597 | |
| 16598 | |
| 16599 | |
| 16600 | |
| 16601 | |
| 16602 | |
| 16603 | |
| 16604 | |
| 16605 | |
| 16606 | |
| 16607 | |
| 16608 | |
| 16609 | |
| 16610 | |
| 16611 | |
| 16612 | |
| 16613 | |
| 16614 | |
| 16615 | |
| 16616 | |
| 16617 | |
| 16618 | |
| 16619 | |
| 16620 | |
| 16621 | |
| 16622 | |
| 16623 | |
| 16624 | |
| 16625 | |
| 16626 | |
| 16627 | |
| 16628 | |
| 16629 | |
| 16630 | |
| 16631 | |
| 16632 | |
| 16633 | |
| 16634 | |
| 16635 | |
| 16636 | |
| 16637 | |
| 16638 | |
| 16639 | |
| 16640 | |
| 16641 | |
| 16642 | |
| 16643 | |
| 16644 | |
| 16645 | |
| 16646 | |
| 16647 | |
| 16648 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 16649 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 16650 | |
| 16651 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 16652 | |
| 16653 | |
Thomas Wouters | cf297e4 | 2007-02-23 15:07:44 +0000 | [diff] [blame] | 16654 | |
| 16655 | |
Gregory P. Smith | 25523d2 | 2007-09-03 16:44:55 +0000 | [diff] [blame] | 16656 | |
Christian Heimes | 4e30a84 | 2007-11-30 22:12:06 +0000 | [diff] [blame] | 16657 | |
Martin v. Löwis | 92fab75 | 2008-03-08 10:40:41 +0000 | [diff] [blame] | 16658 | |
Martin v. Löwis | 823725e | 2008-03-24 13:39:54 +0000 | [diff] [blame] | 16659 | |
| 16660 | |
Benjamin Peterson | 965ce87 | 2009-04-05 21:24:58 +0000 | [diff] [blame] | 16661 | |
| 16662 | |
| 16663 | |
| 16664 | |
Martin v. Löwis | 011e842 | 2009-05-05 04:43:17 +0000 | [diff] [blame] | 16665 | |
Martin v. Löwis | 823725e | 2008-03-24 13:39:54 +0000 | [diff] [blame] | 16666 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 16667 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 16668 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 16669 | getpriority getpwent getspnam getspent getsid getwd \ |
Martin v. Löwis | 011e842 | 2009-05-05 04:43:17 +0000 | [diff] [blame] | 16670 | kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 16671 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 16672 | putenv readlink realpath \ |
Benjamin Peterson | 965ce87 | 2009-04-05 21:24:58 +0000 | [diff] [blame] | 16673 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ |
| 16674 | setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 16675 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Gregory P. Smith | 25523d2 | 2007-09-03 16:44:55 +0000 | [diff] [blame] | 16676 | sigaction siginterrupt sigrelse strftime strlcpy \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 16677 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 92fab75 | 2008-03-08 10:40:41 +0000 | [diff] [blame] | 16678 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll wcsxfrm _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16679 | do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16680 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16681 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16682 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16683 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16684 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16685 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16686 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16687 | /* confdefs.h. */ |
| 16688 | _ACEOF |
| 16689 | cat confdefs.h >>conftest.$ac_ext |
| 16690 | cat >>conftest.$ac_ext <<_ACEOF |
| 16691 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16692 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16693 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16694 | #define $ac_func innocuous_$ac_func |
| 16695 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16696 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16697 | which can conflict with char $ac_func (); below. |
| 16698 | 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] | 16699 | <limits.h> exists even on freestanding compilers. */ |
| 16700 | |
| 16701 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16702 | # include <limits.h> |
| 16703 | #else |
| 16704 | # include <assert.h> |
| 16705 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16706 | |
| 16707 | #undef $ac_func |
| 16708 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16709 | /* Override any GCC internal prototype to avoid an error. |
| 16710 | Use char because int might match the return type of a GCC |
| 16711 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16712 | #ifdef __cplusplus |
| 16713 | extern "C" |
| 16714 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16715 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16716 | /* The GNU C library defines this for functions which it implements |
| 16717 | to always fail with ENOSYS. Some functions are actually named |
| 16718 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16719 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16720 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16721 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16722 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16723 | int |
| 16724 | main () |
| 16725 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16726 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16727 | ; |
| 16728 | return 0; |
| 16729 | } |
| 16730 | _ACEOF |
| 16731 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16732 | if { (ac_try="$ac_link" |
| 16733 | case "(($ac_try" in |
| 16734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16735 | *) ac_try_echo=$ac_try;; |
| 16736 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16737 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16738 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16739 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16740 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16741 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16742 | rm -f conftest.er1 |
| 16743 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16744 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16745 | (exit $ac_status); } && { |
| 16746 | test -z "$ac_c_werror_flag" || |
| 16747 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16748 | } && test -s conftest$ac_exeext && { |
| 16749 | test "$cross_compiling" = yes || |
| 16750 | $as_test_x conftest$ac_exeext |
| 16751 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16752 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16753 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16754 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16756 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16757 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16758 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16759 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16760 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16761 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16762 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16763 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16764 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 16765 | $as_echo "$as_val"'` |
| 16766 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16767 | $as_echo "$ac_res" >&6; } |
| 16768 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 16769 | $as_echo "$as_val"'` |
| 16770 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16771 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16772 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16773 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16774 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16775 | fi |
| 16776 | done |
| 16777 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16778 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16779 | # For some functions, having a definition is not sufficient, since |
| 16780 | # we want to take their address. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16781 | { $as_echo "$as_me:$LINENO: checking for chroot" >&5 |
| 16782 | $as_echo_n "checking for chroot... " >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16783 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16784 | /* confdefs.h. */ |
| 16785 | _ACEOF |
| 16786 | cat confdefs.h >>conftest.$ac_ext |
| 16787 | cat >>conftest.$ac_ext <<_ACEOF |
| 16788 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16789 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16790 | int |
| 16791 | main () |
| 16792 | { |
| 16793 | void *x=chroot |
| 16794 | ; |
| 16795 | return 0; |
| 16796 | } |
| 16797 | _ACEOF |
| 16798 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16799 | if { (ac_try="$ac_compile" |
| 16800 | case "(($ac_try" in |
| 16801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16802 | *) ac_try_echo=$ac_try;; |
| 16803 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16804 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16805 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16806 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16807 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16809 | rm -f conftest.er1 |
| 16810 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16811 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16812 | (exit $ac_status); } && { |
| 16813 | test -z "$ac_c_werror_flag" || |
| 16814 | test ! -s conftest.err |
| 16815 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16816 | |
| 16817 | cat >>confdefs.h <<\_ACEOF |
| 16818 | #define HAVE_CHROOT 1 |
| 16819 | _ACEOF |
| 16820 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16821 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16822 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16823 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16824 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16826 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16827 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16828 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16829 | |
| 16830 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16831 | |
| 16832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16833 | { $as_echo "$as_me:$LINENO: checking for link" >&5 |
| 16834 | $as_echo_n "checking for link... " >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16835 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16836 | /* confdefs.h. */ |
| 16837 | _ACEOF |
| 16838 | cat confdefs.h >>conftest.$ac_ext |
| 16839 | cat >>conftest.$ac_ext <<_ACEOF |
| 16840 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16841 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16842 | int |
| 16843 | main () |
| 16844 | { |
| 16845 | void *x=link |
| 16846 | ; |
| 16847 | return 0; |
| 16848 | } |
| 16849 | _ACEOF |
| 16850 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16851 | if { (ac_try="$ac_compile" |
| 16852 | case "(($ac_try" in |
| 16853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16854 | *) ac_try_echo=$ac_try;; |
| 16855 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16856 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16857 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16858 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16859 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16861 | rm -f conftest.er1 |
| 16862 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16863 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16864 | (exit $ac_status); } && { |
| 16865 | test -z "$ac_c_werror_flag" || |
| 16866 | test ! -s conftest.err |
| 16867 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16868 | |
| 16869 | cat >>confdefs.h <<\_ACEOF |
| 16870 | #define HAVE_LINK 1 |
| 16871 | _ACEOF |
| 16872 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16873 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16874 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16875 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16876 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16878 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16879 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16880 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16881 | |
| 16882 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16883 | |
| 16884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16885 | { $as_echo "$as_me:$LINENO: checking for symlink" >&5 |
| 16886 | $as_echo_n "checking for symlink... " >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16887 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16888 | /* confdefs.h. */ |
| 16889 | _ACEOF |
| 16890 | cat confdefs.h >>conftest.$ac_ext |
| 16891 | cat >>conftest.$ac_ext <<_ACEOF |
| 16892 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16893 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16894 | int |
| 16895 | main () |
| 16896 | { |
| 16897 | void *x=symlink |
| 16898 | ; |
| 16899 | return 0; |
| 16900 | } |
| 16901 | _ACEOF |
| 16902 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16903 | if { (ac_try="$ac_compile" |
| 16904 | case "(($ac_try" in |
| 16905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16906 | *) ac_try_echo=$ac_try;; |
| 16907 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16908 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16909 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16910 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16911 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16913 | rm -f conftest.er1 |
| 16914 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16915 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16916 | (exit $ac_status); } && { |
| 16917 | test -z "$ac_c_werror_flag" || |
| 16918 | test ! -s conftest.err |
| 16919 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16920 | |
| 16921 | cat >>confdefs.h <<\_ACEOF |
| 16922 | #define HAVE_SYMLINK 1 |
| 16923 | _ACEOF |
| 16924 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16925 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16926 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16927 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16928 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16930 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16931 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16932 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16933 | |
| 16934 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16935 | |
| 16936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16937 | { $as_echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 16938 | $as_echo_n "checking for fchdir... " >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16939 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16940 | /* confdefs.h. */ |
| 16941 | _ACEOF |
| 16942 | cat confdefs.h >>conftest.$ac_ext |
| 16943 | cat >>conftest.$ac_ext <<_ACEOF |
| 16944 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16945 | #include <unistd.h> |
| 16946 | int |
| 16947 | main () |
| 16948 | { |
| 16949 | void *x=fchdir |
| 16950 | ; |
| 16951 | return 0; |
| 16952 | } |
| 16953 | _ACEOF |
| 16954 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16955 | if { (ac_try="$ac_compile" |
| 16956 | case "(($ac_try" in |
| 16957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16958 | *) ac_try_echo=$ac_try;; |
| 16959 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16960 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16961 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16962 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16963 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16964 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16965 | rm -f conftest.er1 |
| 16966 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16967 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16968 | (exit $ac_status); } && { |
| 16969 | test -z "$ac_c_werror_flag" || |
| 16970 | test ! -s conftest.err |
| 16971 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16972 | |
| 16973 | cat >>confdefs.h <<\_ACEOF |
| 16974 | #define HAVE_FCHDIR 1 |
| 16975 | _ACEOF |
| 16976 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16977 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16978 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16979 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16980 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16982 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16983 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16984 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16985 | |
| 16986 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16987 | |
| 16988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16989 | { $as_echo "$as_me:$LINENO: checking for fsync" >&5 |
| 16990 | $as_echo_n "checking for fsync... " >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16991 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16992 | /* confdefs.h. */ |
| 16993 | _ACEOF |
| 16994 | cat confdefs.h >>conftest.$ac_ext |
| 16995 | cat >>conftest.$ac_ext <<_ACEOF |
| 16996 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16997 | #include <unistd.h> |
| 16998 | int |
| 16999 | main () |
| 17000 | { |
| 17001 | void *x=fsync |
| 17002 | ; |
| 17003 | return 0; |
| 17004 | } |
| 17005 | _ACEOF |
| 17006 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17007 | if { (ac_try="$ac_compile" |
| 17008 | case "(($ac_try" in |
| 17009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17010 | *) ac_try_echo=$ac_try;; |
| 17011 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17012 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17013 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17014 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17015 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17017 | rm -f conftest.er1 |
| 17018 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17019 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17020 | (exit $ac_status); } && { |
| 17021 | test -z "$ac_c_werror_flag" || |
| 17022 | test ! -s conftest.err |
| 17023 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17024 | |
| 17025 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17026 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17027 | _ACEOF |
| 17028 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17029 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17030 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17031 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17032 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17034 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17035 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17036 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17037 | |
| 17038 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17039 | |
| 17040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17041 | { $as_echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 17042 | $as_echo_n "checking for fdatasync... " >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17043 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17044 | /* confdefs.h. */ |
| 17045 | _ACEOF |
| 17046 | cat confdefs.h >>conftest.$ac_ext |
| 17047 | cat >>conftest.$ac_ext <<_ACEOF |
| 17048 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17049 | #include <unistd.h> |
| 17050 | int |
| 17051 | main () |
| 17052 | { |
| 17053 | void *x=fdatasync |
| 17054 | ; |
| 17055 | return 0; |
| 17056 | } |
| 17057 | _ACEOF |
| 17058 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17059 | if { (ac_try="$ac_compile" |
| 17060 | case "(($ac_try" in |
| 17061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17062 | *) ac_try_echo=$ac_try;; |
| 17063 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17064 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17065 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17066 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17067 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17068 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17069 | rm -f conftest.er1 |
| 17070 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17071 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17072 | (exit $ac_status); } && { |
| 17073 | test -z "$ac_c_werror_flag" || |
| 17074 | test ! -s conftest.err |
| 17075 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17076 | |
| 17077 | cat >>confdefs.h <<\_ACEOF |
| 17078 | #define HAVE_FDATASYNC 1 |
| 17079 | _ACEOF |
| 17080 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17081 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17082 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17083 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17084 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17086 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17087 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17088 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 17089 | |
| 17090 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17091 | |
| 17092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17093 | { $as_echo "$as_me:$LINENO: checking for epoll" >&5 |
| 17094 | $as_echo_n "checking for epoll... " >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17095 | cat >conftest.$ac_ext <<_ACEOF |
| 17096 | /* confdefs.h. */ |
| 17097 | _ACEOF |
| 17098 | cat confdefs.h >>conftest.$ac_ext |
| 17099 | cat >>conftest.$ac_ext <<_ACEOF |
| 17100 | /* end confdefs.h. */ |
| 17101 | #include <sys/epoll.h> |
| 17102 | int |
| 17103 | main () |
| 17104 | { |
| 17105 | void *x=epoll_create |
| 17106 | ; |
| 17107 | return 0; |
| 17108 | } |
| 17109 | _ACEOF |
| 17110 | rm -f conftest.$ac_objext |
| 17111 | if { (ac_try="$ac_compile" |
| 17112 | case "(($ac_try" in |
| 17113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17114 | *) ac_try_echo=$ac_try;; |
| 17115 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17116 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17117 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17118 | (eval "$ac_compile") 2>conftest.er1 |
| 17119 | ac_status=$? |
| 17120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17121 | rm -f conftest.er1 |
| 17122 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17123 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17124 | (exit $ac_status); } && { |
| 17125 | test -z "$ac_c_werror_flag" || |
| 17126 | test ! -s conftest.err |
| 17127 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17128 | |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17129 | cat >>confdefs.h <<\_ACEOF |
| 17130 | #define HAVE_EPOLL 1 |
| 17131 | _ACEOF |
| 17132 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17133 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17134 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17135 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17136 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17138 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17139 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17140 | $as_echo "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17141 | |
| 17142 | fi |
| 17143 | |
| 17144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17145 | { $as_echo "$as_me:$LINENO: checking for kqueue" >&5 |
| 17146 | $as_echo_n "checking for kqueue... " >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17147 | cat >conftest.$ac_ext <<_ACEOF |
| 17148 | /* confdefs.h. */ |
| 17149 | _ACEOF |
| 17150 | cat confdefs.h >>conftest.$ac_ext |
| 17151 | cat >>conftest.$ac_ext <<_ACEOF |
| 17152 | /* end confdefs.h. */ |
| 17153 | |
| 17154 | #include <sys/types.h> |
| 17155 | #include <sys/event.h> |
| 17156 | |
| 17157 | int |
| 17158 | main () |
| 17159 | { |
| 17160 | int x=kqueue() |
| 17161 | ; |
| 17162 | return 0; |
| 17163 | } |
| 17164 | _ACEOF |
| 17165 | rm -f conftest.$ac_objext |
| 17166 | if { (ac_try="$ac_compile" |
| 17167 | case "(($ac_try" in |
| 17168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17169 | *) ac_try_echo=$ac_try;; |
| 17170 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17171 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17172 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17173 | (eval "$ac_compile") 2>conftest.er1 |
| 17174 | ac_status=$? |
| 17175 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17176 | rm -f conftest.er1 |
| 17177 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17178 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17179 | (exit $ac_status); } && { |
| 17180 | test -z "$ac_c_werror_flag" || |
| 17181 | test ! -s conftest.err |
| 17182 | } && test -s conftest.$ac_objext; then |
| 17183 | |
| 17184 | cat >>confdefs.h <<\_ACEOF |
| 17185 | #define HAVE_KQUEUE 1 |
| 17186 | _ACEOF |
| 17187 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17188 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17189 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17190 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17191 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17192 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17193 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17194 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17195 | $as_echo "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 17196 | |
| 17197 | fi |
| 17198 | |
| 17199 | 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] | 17200 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 17201 | # functions ctermid_r, setgroups in the library, but no prototype |
| 17202 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 17203 | # address to avoid compiler warnings and potential miscompilations |
| 17204 | # because of the missing prototypes. |
| 17205 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17206 | { $as_echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 17207 | $as_echo_n "checking for ctermid_r... " >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17208 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17209 | /* confdefs.h. */ |
| 17210 | _ACEOF |
| 17211 | cat confdefs.h >>conftest.$ac_ext |
| 17212 | cat >>conftest.$ac_ext <<_ACEOF |
| 17213 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17214 | |
| 17215 | #include "confdefs.h" |
| 17216 | #include <stdio.h> |
| 17217 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17218 | int |
| 17219 | main () |
| 17220 | { |
| 17221 | void* p = ctermid_r |
| 17222 | ; |
| 17223 | return 0; |
| 17224 | } |
| 17225 | _ACEOF |
| 17226 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17227 | if { (ac_try="$ac_compile" |
| 17228 | case "(($ac_try" in |
| 17229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17230 | *) ac_try_echo=$ac_try;; |
| 17231 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17232 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17233 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17234 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17235 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17237 | rm -f conftest.er1 |
| 17238 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17239 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17240 | (exit $ac_status); } && { |
| 17241 | test -z "$ac_c_werror_flag" || |
| 17242 | test ! -s conftest.err |
| 17243 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17244 | |
| 17245 | cat >>confdefs.h <<\_ACEOF |
| 17246 | #define HAVE_CTERMID_R 1 |
| 17247 | _ACEOF |
| 17248 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17249 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17250 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17251 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17252 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17254 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17255 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17256 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17257 | |
| 17258 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17259 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17260 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17261 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17262 | { $as_echo "$as_me:$LINENO: checking for flock" >&5 |
| 17263 | $as_echo_n "checking for flock... " >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17264 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17265 | /* confdefs.h. */ |
| 17266 | _ACEOF |
| 17267 | cat confdefs.h >>conftest.$ac_ext |
| 17268 | cat >>conftest.$ac_ext <<_ACEOF |
| 17269 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17270 | |
| 17271 | #include "confdefs.h" |
| 17272 | #include <sys/file.h> |
| 17273 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17274 | int |
| 17275 | main () |
| 17276 | { |
| 17277 | void* p = flock |
| 17278 | ; |
| 17279 | return 0; |
| 17280 | } |
| 17281 | _ACEOF |
| 17282 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17283 | if { (ac_try="$ac_compile" |
| 17284 | case "(($ac_try" in |
| 17285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17286 | *) ac_try_echo=$ac_try;; |
| 17287 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17288 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17289 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17290 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17291 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17292 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17293 | rm -f conftest.er1 |
| 17294 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17295 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17296 | (exit $ac_status); } && { |
| 17297 | test -z "$ac_c_werror_flag" || |
| 17298 | test ! -s conftest.err |
| 17299 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17300 | |
| 17301 | cat >>confdefs.h <<\_ACEOF |
| 17302 | #define HAVE_FLOCK 1 |
| 17303 | _ACEOF |
| 17304 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17305 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17306 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17307 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17308 | $as_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 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17311 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17312 | $as_echo "no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17313 | |
| 17314 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17315 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17317 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17318 | { $as_echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 17319 | $as_echo_n "checking for getpagesize... " >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17320 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17321 | /* confdefs.h. */ |
| 17322 | _ACEOF |
| 17323 | cat confdefs.h >>conftest.$ac_ext |
| 17324 | cat >>conftest.$ac_ext <<_ACEOF |
| 17325 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17326 | |
| 17327 | #include "confdefs.h" |
| 17328 | #include <unistd.h> |
| 17329 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17330 | int |
| 17331 | main () |
| 17332 | { |
| 17333 | void* p = getpagesize |
| 17334 | ; |
| 17335 | return 0; |
| 17336 | } |
| 17337 | _ACEOF |
| 17338 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17339 | if { (ac_try="$ac_compile" |
| 17340 | case "(($ac_try" in |
| 17341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17342 | *) ac_try_echo=$ac_try;; |
| 17343 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17344 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17345 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17346 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17347 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17349 | rm -f conftest.er1 |
| 17350 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17351 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17352 | (exit $ac_status); } && { |
| 17353 | test -z "$ac_c_werror_flag" || |
| 17354 | test ! -s conftest.err |
| 17355 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17356 | |
| 17357 | cat >>confdefs.h <<\_ACEOF |
| 17358 | #define HAVE_GETPAGESIZE 1 |
| 17359 | _ACEOF |
| 17360 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17361 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17362 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17363 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17364 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17366 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17367 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17368 | $as_echo "no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17369 | |
| 17370 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17371 | |
| 17372 | 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] | 17373 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17374 | for ac_prog in true |
| 17375 | do |
| 17376 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 17377 | set dummy $ac_prog; ac_word=$2 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17378 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 17379 | $as_echo_n "checking for $ac_word... " >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17380 | if test "${ac_cv_prog_TRUE+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17381 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17382 | else |
| 17383 | if test -n "$TRUE"; then |
| 17384 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 17385 | else |
| 17386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17387 | for as_dir in $PATH |
| 17388 | do |
| 17389 | IFS=$as_save_IFS |
| 17390 | test -z "$as_dir" && as_dir=. |
| 17391 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17392 | 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] | 17393 | ac_cv_prog_TRUE="$ac_prog" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17394 | $as_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] | 17395 | break 2 |
| 17396 | fi |
| 17397 | done |
| 17398 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17399 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17400 | |
| 17401 | fi |
| 17402 | fi |
| 17403 | TRUE=$ac_cv_prog_TRUE |
| 17404 | if test -n "$TRUE"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17405 | { $as_echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 17406 | $as_echo "$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17407 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17408 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17409 | $as_echo "no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17410 | fi |
| 17411 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17412 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17413 | test -n "$TRUE" && break |
| 17414 | done |
| 17415 | test -n "$TRUE" || TRUE="/bin/true" |
| 17416 | |
| 17417 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17418 | { $as_echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 17419 | $as_echo_n "checking for inet_aton in -lc... " >&6; } |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17420 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17421 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17422 | else |
| 17423 | ac_check_lib_save_LIBS=$LIBS |
| 17424 | LIBS="-lc $LIBS" |
| 17425 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17426 | /* confdefs.h. */ |
| 17427 | _ACEOF |
| 17428 | cat confdefs.h >>conftest.$ac_ext |
| 17429 | cat >>conftest.$ac_ext <<_ACEOF |
| 17430 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17431 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17432 | /* Override any GCC internal prototype to avoid an error. |
| 17433 | Use char because int might match the return type of a GCC |
| 17434 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17435 | #ifdef __cplusplus |
| 17436 | extern "C" |
| 17437 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17438 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17439 | int |
| 17440 | main () |
| 17441 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17442 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17443 | ; |
| 17444 | return 0; |
| 17445 | } |
| 17446 | _ACEOF |
| 17447 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17448 | if { (ac_try="$ac_link" |
| 17449 | case "(($ac_try" in |
| 17450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17451 | *) ac_try_echo=$ac_try;; |
| 17452 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17453 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17454 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17455 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17456 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17457 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17458 | rm -f conftest.er1 |
| 17459 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17460 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17461 | (exit $ac_status); } && { |
| 17462 | test -z "$ac_c_werror_flag" || |
| 17463 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17464 | } && test -s conftest$ac_exeext && { |
| 17465 | test "$cross_compiling" = yes || |
| 17466 | $as_test_x conftest$ac_exeext |
| 17467 | }; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17468 | ac_cv_lib_c_inet_aton=yes |
| 17469 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17470 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17472 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17473 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17474 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17475 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17476 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17477 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17478 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17479 | LIBS=$ac_check_lib_save_LIBS |
| 17480 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17481 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 17482 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } |
| 17483 | if test "x$ac_cv_lib_c_inet_aton" = x""yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17484 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17485 | else |
| 17486 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17487 | { $as_echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 17488 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17489 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17490 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17491 | else |
| 17492 | ac_check_lib_save_LIBS=$LIBS |
| 17493 | LIBS="-lresolv $LIBS" |
| 17494 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17495 | /* confdefs.h. */ |
| 17496 | _ACEOF |
| 17497 | cat confdefs.h >>conftest.$ac_ext |
| 17498 | cat >>conftest.$ac_ext <<_ACEOF |
| 17499 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17500 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17501 | /* Override any GCC internal prototype to avoid an error. |
| 17502 | Use char because int might match the return type of a GCC |
| 17503 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17504 | #ifdef __cplusplus |
| 17505 | extern "C" |
| 17506 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17507 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17508 | int |
| 17509 | main () |
| 17510 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17511 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17512 | ; |
| 17513 | return 0; |
| 17514 | } |
| 17515 | _ACEOF |
| 17516 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17517 | if { (ac_try="$ac_link" |
| 17518 | case "(($ac_try" in |
| 17519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17520 | *) ac_try_echo=$ac_try;; |
| 17521 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17522 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17523 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17524 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17525 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17527 | rm -f conftest.er1 |
| 17528 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17529 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17530 | (exit $ac_status); } && { |
| 17531 | test -z "$ac_c_werror_flag" || |
| 17532 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17533 | } && test -s conftest$ac_exeext && { |
| 17534 | test "$cross_compiling" = yes || |
| 17535 | $as_test_x conftest$ac_exeext |
| 17536 | }; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17537 | ac_cv_lib_resolv_inet_aton=yes |
| 17538 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17539 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17541 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17542 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17543 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17544 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17545 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17546 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17547 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17548 | LIBS=$ac_check_lib_save_LIBS |
| 17549 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17550 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 17551 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } |
| 17552 | if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17553 | cat >>confdefs.h <<_ACEOF |
| 17554 | #define HAVE_LIBRESOLV 1 |
| 17555 | _ACEOF |
| 17556 | |
| 17557 | LIBS="-lresolv $LIBS" |
| 17558 | |
| 17559 | fi |
| 17560 | |
| 17561 | |
| 17562 | fi |
| 17563 | |
| 17564 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17565 | # On Tru64, chflags seems to be present, but calling it will |
| 17566 | # exit Python |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17567 | { $as_echo "$as_me:$LINENO: checking for chflags" >&5 |
| 17568 | $as_echo_n "checking for chflags... " >&6; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17569 | if test "$cross_compiling" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17570 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 17571 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 17572 | { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17573 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17574 | $as_echo "$as_me: error: cannot run test program while cross compiling |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17575 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17576 | { (exit 1); exit 1; }; }; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17577 | else |
| 17578 | cat >conftest.$ac_ext <<_ACEOF |
| 17579 | /* confdefs.h. */ |
| 17580 | _ACEOF |
| 17581 | cat confdefs.h >>conftest.$ac_ext |
| 17582 | cat >>conftest.$ac_ext <<_ACEOF |
| 17583 | /* end confdefs.h. */ |
| 17584 | |
| 17585 | #include <sys/stat.h> |
| 17586 | #include <unistd.h> |
| 17587 | int main(int argc, char*argv[]) |
| 17588 | { |
| 17589 | if(chflags(argv[0], 0) != 0) |
| 17590 | return 1; |
| 17591 | return 0; |
| 17592 | } |
| 17593 | |
| 17594 | _ACEOF |
| 17595 | rm -f conftest$ac_exeext |
| 17596 | if { (ac_try="$ac_link" |
| 17597 | case "(($ac_try" in |
| 17598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17599 | *) ac_try_echo=$ac_try;; |
| 17600 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17601 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17602 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17603 | (eval "$ac_link") 2>&5 |
| 17604 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17605 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17606 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17607 | { (case "(($ac_try" in |
| 17608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17609 | *) ac_try_echo=$ac_try;; |
| 17610 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17611 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17612 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17613 | (eval "$ac_try") 2>&5 |
| 17614 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17615 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17616 | (exit $ac_status); }; }; then |
| 17617 | |
| 17618 | cat >>confdefs.h <<\_ACEOF |
| 17619 | #define HAVE_CHFLAGS 1 |
| 17620 | _ACEOF |
| 17621 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17622 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17623 | $as_echo "yes" >&6; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17624 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17625 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 17626 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17628 | |
| 17629 | ( exit $ac_status ) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17630 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17631 | $as_echo "no" >&6; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17632 | |
| 17633 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17634 | rm -rf conftest.dSYM |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17635 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 17636 | fi |
| 17637 | |
| 17638 | |
| 17639 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17640 | { $as_echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 17641 | $as_echo_n "checking for lchflags... " >&6; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17642 | if test "$cross_compiling" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17643 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 17644 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 17645 | { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17646 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17647 | $as_echo "$as_me: error: cannot run test program while cross compiling |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17648 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17649 | { (exit 1); exit 1; }; }; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17650 | else |
| 17651 | cat >conftest.$ac_ext <<_ACEOF |
| 17652 | /* confdefs.h. */ |
| 17653 | _ACEOF |
| 17654 | cat confdefs.h >>conftest.$ac_ext |
| 17655 | cat >>conftest.$ac_ext <<_ACEOF |
| 17656 | /* end confdefs.h. */ |
| 17657 | |
| 17658 | #include <sys/stat.h> |
| 17659 | #include <unistd.h> |
| 17660 | int main(int argc, char*argv[]) |
| 17661 | { |
| 17662 | if(lchflags(argv[0], 0) != 0) |
| 17663 | return 1; |
| 17664 | return 0; |
| 17665 | } |
| 17666 | |
| 17667 | _ACEOF |
| 17668 | rm -f conftest$ac_exeext |
| 17669 | if { (ac_try="$ac_link" |
| 17670 | case "(($ac_try" in |
| 17671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17672 | *) ac_try_echo=$ac_try;; |
| 17673 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17674 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17675 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17676 | (eval "$ac_link") 2>&5 |
| 17677 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17678 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17679 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17680 | { (case "(($ac_try" in |
| 17681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17682 | *) ac_try_echo=$ac_try;; |
| 17683 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17684 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17685 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17686 | (eval "$ac_try") 2>&5 |
| 17687 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17688 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17689 | (exit $ac_status); }; }; then |
| 17690 | |
| 17691 | cat >>confdefs.h <<\_ACEOF |
| 17692 | #define HAVE_LCHFLAGS 1 |
| 17693 | _ACEOF |
| 17694 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17695 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17696 | $as_echo "yes" >&6; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17697 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17698 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 17699 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17701 | |
| 17702 | ( exit $ac_status ) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17703 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17704 | $as_echo "no" >&6; } |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17705 | |
| 17706 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17707 | rm -rf conftest.dSYM |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 17708 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 17709 | fi |
| 17710 | |
| 17711 | |
| 17712 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17713 | case $ac_sys_system/$ac_sys_release in |
| 17714 | Darwin/*) |
| 17715 | _CUR_CFLAGS="${CFLAGS}" |
| 17716 | _CUR_LDFLAGS="${LDFLAGS}" |
| 17717 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 17718 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 17719 | ;; |
| 17720 | esac |
| 17721 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17722 | { $as_echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 17723 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17724 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17725 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17726 | else |
| 17727 | ac_check_lib_save_LIBS=$LIBS |
| 17728 | LIBS="-lz $LIBS" |
| 17729 | cat >conftest.$ac_ext <<_ACEOF |
| 17730 | /* confdefs.h. */ |
| 17731 | _ACEOF |
| 17732 | cat confdefs.h >>conftest.$ac_ext |
| 17733 | cat >>conftest.$ac_ext <<_ACEOF |
| 17734 | /* end confdefs.h. */ |
| 17735 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17736 | /* Override any GCC internal prototype to avoid an error. |
| 17737 | Use char because int might match the return type of a GCC |
| 17738 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17739 | #ifdef __cplusplus |
| 17740 | extern "C" |
| 17741 | #endif |
| 17742 | char inflateCopy (); |
| 17743 | int |
| 17744 | main () |
| 17745 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17746 | return inflateCopy (); |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17747 | ; |
| 17748 | return 0; |
| 17749 | } |
| 17750 | _ACEOF |
| 17751 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17752 | if { (ac_try="$ac_link" |
| 17753 | case "(($ac_try" in |
| 17754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17755 | *) ac_try_echo=$ac_try;; |
| 17756 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17757 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17758 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17759 | (eval "$ac_link") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17760 | ac_status=$? |
| 17761 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17762 | rm -f conftest.er1 |
| 17763 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17764 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17765 | (exit $ac_status); } && { |
| 17766 | test -z "$ac_c_werror_flag" || |
| 17767 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17768 | } && test -s conftest$ac_exeext && { |
| 17769 | test "$cross_compiling" = yes || |
| 17770 | $as_test_x conftest$ac_exeext |
| 17771 | }; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17772 | ac_cv_lib_z_inflateCopy=yes |
| 17773 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17774 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17776 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17777 | ac_cv_lib_z_inflateCopy=no |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17778 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17779 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17780 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17781 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17782 | conftest$ac_exeext conftest.$ac_ext |
| 17783 | LIBS=$ac_check_lib_save_LIBS |
| 17784 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17785 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 17786 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } |
| 17787 | if test "x$ac_cv_lib_z_inflateCopy" = x""yes; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17788 | |
| 17789 | cat >>confdefs.h <<\_ACEOF |
| 17790 | #define HAVE_ZLIB_COPY 1 |
| 17791 | _ACEOF |
| 17792 | |
| 17793 | fi |
| 17794 | |
| 17795 | |
| 17796 | case $ac_sys_system/$ac_sys_release in |
| 17797 | Darwin/*) |
| 17798 | CFLAGS="${_CUR_CFLAGS}" |
| 17799 | LDFLAGS="${_CUR_LDFLAGS}" |
| 17800 | ;; |
| 17801 | esac |
| 17802 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17803 | { $as_echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 17804 | $as_echo_n "checking for hstrerror... " >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17805 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17806 | /* confdefs.h. */ |
| 17807 | _ACEOF |
| 17808 | cat confdefs.h >>conftest.$ac_ext |
| 17809 | cat >>conftest.$ac_ext <<_ACEOF |
| 17810 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17811 | |
| 17812 | #include "confdefs.h" |
| 17813 | #include <netdb.h> |
| 17814 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17815 | int |
| 17816 | main () |
| 17817 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17818 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17819 | ; |
| 17820 | return 0; |
| 17821 | } |
| 17822 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17823 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17824 | if { (ac_try="$ac_link" |
| 17825 | case "(($ac_try" in |
| 17826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17827 | *) ac_try_echo=$ac_try;; |
| 17828 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17829 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17830 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17831 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17832 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17834 | rm -f conftest.er1 |
| 17835 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17836 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17837 | (exit $ac_status); } && { |
| 17838 | test -z "$ac_c_werror_flag" || |
| 17839 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17840 | } && test -s conftest$ac_exeext && { |
| 17841 | test "$cross_compiling" = yes || |
| 17842 | $as_test_x conftest$ac_exeext |
| 17843 | }; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17844 | |
| 17845 | cat >>confdefs.h <<\_ACEOF |
| 17846 | #define HAVE_HSTRERROR 1 |
| 17847 | _ACEOF |
| 17848 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17849 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17850 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17851 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17852 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17854 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17855 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17856 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17857 | |
| 17858 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17859 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17860 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17861 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17862 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17863 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17864 | { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 17865 | $as_echo_n "checking for inet_aton... " >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17866 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17867 | /* confdefs.h. */ |
| 17868 | _ACEOF |
| 17869 | cat confdefs.h >>conftest.$ac_ext |
| 17870 | cat >>conftest.$ac_ext <<_ACEOF |
| 17871 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17872 | |
| 17873 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 17874 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17875 | #include <sys/socket.h> |
| 17876 | #include <netinet/in.h> |
| 17877 | #include <arpa/inet.h> |
| 17878 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17879 | int |
| 17880 | main () |
| 17881 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17882 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17883 | ; |
| 17884 | return 0; |
| 17885 | } |
| 17886 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17887 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17888 | if { (ac_try="$ac_link" |
| 17889 | case "(($ac_try" in |
| 17890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17891 | *) ac_try_echo=$ac_try;; |
| 17892 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17893 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17894 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17895 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17896 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17897 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17898 | rm -f conftest.er1 |
| 17899 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17900 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17901 | (exit $ac_status); } && { |
| 17902 | test -z "$ac_c_werror_flag" || |
| 17903 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17904 | } && test -s conftest$ac_exeext && { |
| 17905 | test "$cross_compiling" = yes || |
| 17906 | $as_test_x conftest$ac_exeext |
| 17907 | }; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17908 | |
| 17909 | cat >>confdefs.h <<\_ACEOF |
| 17910 | #define HAVE_INET_ATON 1 |
| 17911 | _ACEOF |
| 17912 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17913 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17914 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17915 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17916 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17918 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17919 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17920 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17921 | |
| 17922 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17923 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17924 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17925 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17926 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17927 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17928 | { $as_echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 17929 | $as_echo_n "checking for inet_pton... " >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17930 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17931 | /* confdefs.h. */ |
| 17932 | _ACEOF |
| 17933 | cat confdefs.h >>conftest.$ac_ext |
| 17934 | cat >>conftest.$ac_ext <<_ACEOF |
| 17935 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17936 | |
| 17937 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 17938 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17939 | #include <sys/socket.h> |
| 17940 | #include <netinet/in.h> |
| 17941 | #include <arpa/inet.h> |
| 17942 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17943 | int |
| 17944 | main () |
| 17945 | { |
| 17946 | void* p = inet_pton |
| 17947 | ; |
| 17948 | return 0; |
| 17949 | } |
| 17950 | _ACEOF |
| 17951 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17952 | if { (ac_try="$ac_compile" |
| 17953 | case "(($ac_try" in |
| 17954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17955 | *) ac_try_echo=$ac_try;; |
| 17956 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17957 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17958 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17959 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17960 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17961 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17962 | rm -f conftest.er1 |
| 17963 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17964 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17965 | (exit $ac_status); } && { |
| 17966 | test -z "$ac_c_werror_flag" || |
| 17967 | test ! -s conftest.err |
| 17968 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17969 | |
| 17970 | cat >>confdefs.h <<\_ACEOF |
| 17971 | #define HAVE_INET_PTON 1 |
| 17972 | _ACEOF |
| 17973 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17974 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 17975 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17976 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17977 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17979 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17980 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 17981 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17982 | |
| 17983 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17984 | |
| 17985 | 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] | 17986 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 17987 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17988 | { $as_echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 17989 | $as_echo_n "checking for setgroups... " >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17990 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17991 | /* confdefs.h. */ |
| 17992 | _ACEOF |
| 17993 | cat confdefs.h >>conftest.$ac_ext |
| 17994 | cat >>conftest.$ac_ext <<_ACEOF |
| 17995 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17996 | |
| 17997 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 17998 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 17999 | #ifdef HAVE_GRP_H |
| 18000 | #include <grp.h> |
| 18001 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18002 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18003 | int |
| 18004 | main () |
| 18005 | { |
| 18006 | void* p = setgroups |
| 18007 | ; |
| 18008 | return 0; |
| 18009 | } |
| 18010 | _ACEOF |
| 18011 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18012 | if { (ac_try="$ac_compile" |
| 18013 | case "(($ac_try" in |
| 18014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18015 | *) ac_try_echo=$ac_try;; |
| 18016 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18017 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18018 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18019 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18020 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18021 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18022 | rm -f conftest.er1 |
| 18023 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18024 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18025 | (exit $ac_status); } && { |
| 18026 | test -z "$ac_c_werror_flag" || |
| 18027 | test ! -s conftest.err |
| 18028 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18029 | |
| 18030 | cat >>confdefs.h <<\_ACEOF |
| 18031 | #define HAVE_SETGROUPS 1 |
| 18032 | _ACEOF |
| 18033 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18034 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 18035 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18036 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18037 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18039 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18040 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 18041 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18042 | |
| 18043 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18044 | |
| 18045 | 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] | 18046 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18047 | # check for openpty and forkpty |
| 18048 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18049 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18050 | for ac_func in openpty |
| 18051 | do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18052 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18053 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18054 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18055 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18056 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18057 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18058 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18059 | /* confdefs.h. */ |
| 18060 | _ACEOF |
| 18061 | cat confdefs.h >>conftest.$ac_ext |
| 18062 | cat >>conftest.$ac_ext <<_ACEOF |
| 18063 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18064 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18065 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18066 | #define $ac_func innocuous_$ac_func |
| 18067 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18068 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18069 | which can conflict with char $ac_func (); below. |
| 18070 | 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] | 18071 | <limits.h> exists even on freestanding compilers. */ |
| 18072 | |
| 18073 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18074 | # include <limits.h> |
| 18075 | #else |
| 18076 | # include <assert.h> |
| 18077 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18078 | |
| 18079 | #undef $ac_func |
| 18080 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18081 | /* Override any GCC internal prototype to avoid an error. |
| 18082 | Use char because int might match the return type of a GCC |
| 18083 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18084 | #ifdef __cplusplus |
| 18085 | extern "C" |
| 18086 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18087 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18088 | /* The GNU C library defines this for functions which it implements |
| 18089 | to always fail with ENOSYS. Some functions are actually named |
| 18090 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18091 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18092 | choke me |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18093 | #endif |
| 18094 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18095 | int |
| 18096 | main () |
| 18097 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18098 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18099 | ; |
| 18100 | return 0; |
| 18101 | } |
| 18102 | _ACEOF |
| 18103 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18104 | if { (ac_try="$ac_link" |
| 18105 | case "(($ac_try" in |
| 18106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18107 | *) ac_try_echo=$ac_try;; |
| 18108 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18109 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18110 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18111 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18112 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18114 | rm -f conftest.er1 |
| 18115 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18116 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18117 | (exit $ac_status); } && { |
| 18118 | test -z "$ac_c_werror_flag" || |
| 18119 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18120 | } && test -s conftest$ac_exeext && { |
| 18121 | test "$cross_compiling" = yes || |
| 18122 | $as_test_x conftest$ac_exeext |
| 18123 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18124 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18125 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18126 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18128 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18129 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18130 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18131 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18132 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18133 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18134 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18135 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18136 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 18137 | $as_echo "$as_val"'` |
| 18138 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18139 | $as_echo "$ac_res" >&6; } |
| 18140 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 18141 | $as_echo "$as_val"'` |
| 18142 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18143 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18144 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18145 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18146 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18147 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18148 | { $as_echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 18149 | $as_echo_n "checking for openpty in -lutil... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18150 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18151 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18152 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18153 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18154 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18155 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18156 | /* confdefs.h. */ |
| 18157 | _ACEOF |
| 18158 | cat confdefs.h >>conftest.$ac_ext |
| 18159 | cat >>conftest.$ac_ext <<_ACEOF |
| 18160 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18161 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18162 | /* Override any GCC internal prototype to avoid an error. |
| 18163 | Use char because int might match the return type of a GCC |
| 18164 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18165 | #ifdef __cplusplus |
| 18166 | extern "C" |
| 18167 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18168 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18169 | int |
| 18170 | main () |
| 18171 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18172 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18173 | ; |
| 18174 | return 0; |
| 18175 | } |
| 18176 | _ACEOF |
| 18177 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18178 | if { (ac_try="$ac_link" |
| 18179 | case "(($ac_try" in |
| 18180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18181 | *) ac_try_echo=$ac_try;; |
| 18182 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18183 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18184 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18185 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18186 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18187 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18188 | rm -f conftest.er1 |
| 18189 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18190 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18191 | (exit $ac_status); } && { |
| 18192 | test -z "$ac_c_werror_flag" || |
| 18193 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18194 | } && test -s conftest$ac_exeext && { |
| 18195 | test "$cross_compiling" = yes || |
| 18196 | $as_test_x conftest$ac_exeext |
| 18197 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18198 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18199 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18200 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18202 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18203 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18204 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18205 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18206 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18207 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18208 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18209 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18210 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18211 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 18212 | $as_echo "$ac_cv_lib_util_openpty" >&6; } |
| 18213 | if test "x$ac_cv_lib_util_openpty" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18214 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18215 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18216 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18217 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18218 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18219 | { $as_echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 18220 | $as_echo_n "checking for openpty in -lbsd... " >&6; } |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18221 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18222 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18223 | else |
| 18224 | ac_check_lib_save_LIBS=$LIBS |
| 18225 | LIBS="-lbsd $LIBS" |
| 18226 | cat >conftest.$ac_ext <<_ACEOF |
| 18227 | /* confdefs.h. */ |
| 18228 | _ACEOF |
| 18229 | cat confdefs.h >>conftest.$ac_ext |
| 18230 | cat >>conftest.$ac_ext <<_ACEOF |
| 18231 | /* end confdefs.h. */ |
| 18232 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18233 | /* Override any GCC internal prototype to avoid an error. |
| 18234 | Use char because int might match the return type of a GCC |
| 18235 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18236 | #ifdef __cplusplus |
| 18237 | extern "C" |
| 18238 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18239 | char openpty (); |
| 18240 | int |
| 18241 | main () |
| 18242 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18243 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18244 | ; |
| 18245 | return 0; |
| 18246 | } |
| 18247 | _ACEOF |
| 18248 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18249 | if { (ac_try="$ac_link" |
| 18250 | case "(($ac_try" in |
| 18251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18252 | *) ac_try_echo=$ac_try;; |
| 18253 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18254 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18255 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18256 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18257 | ac_status=$? |
| 18258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18259 | rm -f conftest.er1 |
| 18260 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18261 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18262 | (exit $ac_status); } && { |
| 18263 | test -z "$ac_c_werror_flag" || |
| 18264 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18265 | } && test -s conftest$ac_exeext && { |
| 18266 | test "$cross_compiling" = yes || |
| 18267 | $as_test_x conftest$ac_exeext |
| 18268 | }; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18269 | ac_cv_lib_bsd_openpty=yes |
| 18270 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18271 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18272 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18273 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18274 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18275 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18276 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18277 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18278 | 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] | 18279 | conftest$ac_exeext conftest.$ac_ext |
| 18280 | LIBS=$ac_check_lib_save_LIBS |
| 18281 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18282 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 18283 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } |
| 18284 | if test "x$ac_cv_lib_bsd_openpty" = x""yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18285 | cat >>confdefs.h <<\_ACEOF |
| 18286 | #define HAVE_OPENPTY 1 |
| 18287 | _ACEOF |
| 18288 | LIBS="$LIBS -lbsd" |
| 18289 | fi |
| 18290 | |
| 18291 | |
| 18292 | fi |
| 18293 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18294 | |
| 18295 | fi |
| 18296 | done |
| 18297 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18298 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18299 | for ac_func in forkpty |
| 18300 | do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18301 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18302 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18303 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18304 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18305 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18306 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18307 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18308 | /* confdefs.h. */ |
| 18309 | _ACEOF |
| 18310 | cat confdefs.h >>conftest.$ac_ext |
| 18311 | cat >>conftest.$ac_ext <<_ACEOF |
| 18312 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18313 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18314 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18315 | #define $ac_func innocuous_$ac_func |
| 18316 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18317 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18318 | which can conflict with char $ac_func (); below. |
| 18319 | 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] | 18320 | <limits.h> exists even on freestanding compilers. */ |
| 18321 | |
| 18322 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18323 | # include <limits.h> |
| 18324 | #else |
| 18325 | # include <assert.h> |
| 18326 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18327 | |
| 18328 | #undef $ac_func |
| 18329 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18330 | /* Override any GCC internal prototype to avoid an error. |
| 18331 | Use char because int might match the return type of a GCC |
| 18332 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18333 | #ifdef __cplusplus |
| 18334 | extern "C" |
| 18335 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18336 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18337 | /* The GNU C library defines this for functions which it implements |
| 18338 | to always fail with ENOSYS. Some functions are actually named |
| 18339 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18340 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18341 | choke me |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18342 | #endif |
| 18343 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18344 | int |
| 18345 | main () |
| 18346 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18347 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18348 | ; |
| 18349 | return 0; |
| 18350 | } |
| 18351 | _ACEOF |
| 18352 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18353 | if { (ac_try="$ac_link" |
| 18354 | case "(($ac_try" in |
| 18355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18356 | *) ac_try_echo=$ac_try;; |
| 18357 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18358 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18359 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18360 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18361 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18363 | rm -f conftest.er1 |
| 18364 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18365 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18366 | (exit $ac_status); } && { |
| 18367 | test -z "$ac_c_werror_flag" || |
| 18368 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18369 | } && test -s conftest$ac_exeext && { |
| 18370 | test "$cross_compiling" = yes || |
| 18371 | $as_test_x conftest$ac_exeext |
| 18372 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18373 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18374 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18375 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18377 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18378 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18379 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18380 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18381 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18382 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18383 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18384 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18385 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 18386 | $as_echo "$as_val"'` |
| 18387 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18388 | $as_echo "$ac_res" >&6; } |
| 18389 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 18390 | $as_echo "$as_val"'` |
| 18391 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18392 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18393 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18394 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18395 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18396 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18397 | { $as_echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 18398 | $as_echo_n "checking for forkpty in -lutil... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18399 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18400 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18401 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18402 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18403 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18404 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18405 | /* confdefs.h. */ |
| 18406 | _ACEOF |
| 18407 | cat confdefs.h >>conftest.$ac_ext |
| 18408 | cat >>conftest.$ac_ext <<_ACEOF |
| 18409 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18410 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18411 | /* Override any GCC internal prototype to avoid an error. |
| 18412 | Use char because int might match the return type of a GCC |
| 18413 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18414 | #ifdef __cplusplus |
| 18415 | extern "C" |
| 18416 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18417 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18418 | int |
| 18419 | main () |
| 18420 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18421 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18422 | ; |
| 18423 | return 0; |
| 18424 | } |
| 18425 | _ACEOF |
| 18426 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18427 | if { (ac_try="$ac_link" |
| 18428 | case "(($ac_try" in |
| 18429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18430 | *) ac_try_echo=$ac_try;; |
| 18431 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18432 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18433 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18434 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18435 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18436 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18437 | rm -f conftest.er1 |
| 18438 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18439 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18440 | (exit $ac_status); } && { |
| 18441 | test -z "$ac_c_werror_flag" || |
| 18442 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18443 | } && test -s conftest$ac_exeext && { |
| 18444 | test "$cross_compiling" = yes || |
| 18445 | $as_test_x conftest$ac_exeext |
| 18446 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18447 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18448 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18449 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18451 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18452 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18453 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18454 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18455 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18456 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18457 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18458 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18459 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18460 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 18461 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } |
| 18462 | if test "x$ac_cv_lib_util_forkpty" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18463 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18464 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18465 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18466 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18467 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18468 | { $as_echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 18469 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18470 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18471 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18472 | else |
| 18473 | ac_check_lib_save_LIBS=$LIBS |
| 18474 | LIBS="-lbsd $LIBS" |
| 18475 | cat >conftest.$ac_ext <<_ACEOF |
| 18476 | /* confdefs.h. */ |
| 18477 | _ACEOF |
| 18478 | cat confdefs.h >>conftest.$ac_ext |
| 18479 | cat >>conftest.$ac_ext <<_ACEOF |
| 18480 | /* end confdefs.h. */ |
| 18481 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18482 | /* Override any GCC internal prototype to avoid an error. |
| 18483 | Use char because int might match the return type of a GCC |
| 18484 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18485 | #ifdef __cplusplus |
| 18486 | extern "C" |
| 18487 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18488 | char forkpty (); |
| 18489 | int |
| 18490 | main () |
| 18491 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18492 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18493 | ; |
| 18494 | return 0; |
| 18495 | } |
| 18496 | _ACEOF |
| 18497 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18498 | if { (ac_try="$ac_link" |
| 18499 | case "(($ac_try" in |
| 18500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18501 | *) ac_try_echo=$ac_try;; |
| 18502 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18503 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18504 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18505 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18506 | ac_status=$? |
| 18507 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18508 | rm -f conftest.er1 |
| 18509 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18510 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18511 | (exit $ac_status); } && { |
| 18512 | test -z "$ac_c_werror_flag" || |
| 18513 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18514 | } && test -s conftest$ac_exeext && { |
| 18515 | test "$cross_compiling" = yes || |
| 18516 | $as_test_x conftest$ac_exeext |
| 18517 | }; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18518 | ac_cv_lib_bsd_forkpty=yes |
| 18519 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18520 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18522 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18523 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18524 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18525 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18526 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18527 | 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] | 18528 | conftest$ac_exeext conftest.$ac_ext |
| 18529 | LIBS=$ac_check_lib_save_LIBS |
| 18530 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18531 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 18532 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } |
| 18533 | if test "x$ac_cv_lib_bsd_forkpty" = x""yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18534 | cat >>confdefs.h <<\_ACEOF |
| 18535 | #define HAVE_FORKPTY 1 |
| 18536 | _ACEOF |
| 18537 | LIBS="$LIBS -lbsd" |
| 18538 | fi |
| 18539 | |
| 18540 | |
| 18541 | fi |
| 18542 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18543 | |
| 18544 | fi |
| 18545 | done |
| 18546 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18547 | |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18548 | # Stuff for expat. |
| 18549 | |
| 18550 | for ac_func in memmove |
| 18551 | do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18552 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18553 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18554 | $as_echo_n "checking for $ac_func... " >&6; } |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18555 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18556 | $as_echo_n "(cached) " >&6 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18557 | else |
| 18558 | cat >conftest.$ac_ext <<_ACEOF |
| 18559 | /* confdefs.h. */ |
| 18560 | _ACEOF |
| 18561 | cat confdefs.h >>conftest.$ac_ext |
| 18562 | cat >>conftest.$ac_ext <<_ACEOF |
| 18563 | /* end confdefs.h. */ |
| 18564 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18565 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18566 | #define $ac_func innocuous_$ac_func |
| 18567 | |
| 18568 | /* System header to define __stub macros and hopefully few prototypes, |
| 18569 | which can conflict with char $ac_func (); below. |
| 18570 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18571 | <limits.h> exists even on freestanding compilers. */ |
| 18572 | |
| 18573 | #ifdef __STDC__ |
| 18574 | # include <limits.h> |
| 18575 | #else |
| 18576 | # include <assert.h> |
| 18577 | #endif |
| 18578 | |
| 18579 | #undef $ac_func |
| 18580 | |
| 18581 | /* Override any GCC internal prototype to avoid an error. |
| 18582 | Use char because int might match the return type of a GCC |
| 18583 | builtin and then its argument prototype would still apply. */ |
| 18584 | #ifdef __cplusplus |
| 18585 | extern "C" |
| 18586 | #endif |
| 18587 | char $ac_func (); |
| 18588 | /* The GNU C library defines this for functions which it implements |
| 18589 | to always fail with ENOSYS. Some functions are actually named |
| 18590 | something starting with __ and the normal name is an alias. */ |
| 18591 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18592 | choke me |
| 18593 | #endif |
| 18594 | |
| 18595 | int |
| 18596 | main () |
| 18597 | { |
| 18598 | return $ac_func (); |
| 18599 | ; |
| 18600 | return 0; |
| 18601 | } |
| 18602 | _ACEOF |
| 18603 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18604 | if { (ac_try="$ac_link" |
| 18605 | case "(($ac_try" in |
| 18606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18607 | *) ac_try_echo=$ac_try;; |
| 18608 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18609 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18610 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18611 | (eval "$ac_link") 2>conftest.er1 |
| 18612 | ac_status=$? |
| 18613 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18614 | rm -f conftest.er1 |
| 18615 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18616 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18617 | (exit $ac_status); } && { |
| 18618 | test -z "$ac_c_werror_flag" || |
| 18619 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18620 | } && test -s conftest$ac_exeext && { |
| 18621 | test "$cross_compiling" = yes || |
| 18622 | $as_test_x conftest$ac_exeext |
| 18623 | }; then |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18624 | eval "$as_ac_var=yes" |
| 18625 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18626 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18628 | |
| 18629 | eval "$as_ac_var=no" |
| 18630 | fi |
| 18631 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18632 | rm -rf conftest.dSYM |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18633 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 18634 | conftest$ac_exeext conftest.$ac_ext |
| 18635 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18636 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 18637 | $as_echo "$as_val"'` |
| 18638 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18639 | $as_echo "$ac_res" >&6; } |
| 18640 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 18641 | $as_echo "$as_val"'` |
| 18642 | if test "x$as_val" = x""yes; then |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18643 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18644 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18645 | _ACEOF |
| 18646 | |
| 18647 | fi |
| 18648 | done |
| 18649 | |
| 18650 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18651 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18652 | |
| 18653 | |
| 18654 | |
| 18655 | |
| 18656 | |
| 18657 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18658 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 18659 | do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18660 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18661 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18662 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18663 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18664 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18665 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18666 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18667 | /* confdefs.h. */ |
| 18668 | _ACEOF |
| 18669 | cat confdefs.h >>conftest.$ac_ext |
| 18670 | cat >>conftest.$ac_ext <<_ACEOF |
| 18671 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18672 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18673 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18674 | #define $ac_func innocuous_$ac_func |
| 18675 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18676 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18677 | which can conflict with char $ac_func (); below. |
| 18678 | 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] | 18679 | <limits.h> exists even on freestanding compilers. */ |
| 18680 | |
| 18681 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18682 | # include <limits.h> |
| 18683 | #else |
| 18684 | # include <assert.h> |
| 18685 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18686 | |
| 18687 | #undef $ac_func |
| 18688 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18689 | /* Override any GCC internal prototype to avoid an error. |
| 18690 | Use char because int might match the return type of a GCC |
| 18691 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18692 | #ifdef __cplusplus |
| 18693 | extern "C" |
| 18694 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18695 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18696 | /* The GNU C library defines this for functions which it implements |
| 18697 | to always fail with ENOSYS. Some functions are actually named |
| 18698 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18699 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18700 | choke me |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18701 | #endif |
| 18702 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18703 | int |
| 18704 | main () |
| 18705 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18706 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18707 | ; |
| 18708 | return 0; |
| 18709 | } |
| 18710 | _ACEOF |
| 18711 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18712 | if { (ac_try="$ac_link" |
| 18713 | case "(($ac_try" in |
| 18714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18715 | *) ac_try_echo=$ac_try;; |
| 18716 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18717 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18718 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18719 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18720 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18722 | rm -f conftest.er1 |
| 18723 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18724 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18725 | (exit $ac_status); } && { |
| 18726 | test -z "$ac_c_werror_flag" || |
| 18727 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18728 | } && test -s conftest$ac_exeext && { |
| 18729 | test "$cross_compiling" = yes || |
| 18730 | $as_test_x conftest$ac_exeext |
| 18731 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18732 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18733 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18734 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18736 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18737 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18738 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18739 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18740 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18741 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18742 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18743 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18744 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 18745 | $as_echo "$as_val"'` |
| 18746 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18747 | $as_echo "$ac_res" >&6; } |
| 18748 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 18749 | $as_echo "$as_val"'` |
| 18750 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18751 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18752 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18753 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18754 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18755 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18756 | done |
| 18757 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18758 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18759 | |
| 18760 | |
| 18761 | |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 18762 | for ac_func in dup2 getcwd strdup |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18763 | do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18764 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18765 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18766 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18767 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18768 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18769 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18770 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18771 | /* confdefs.h. */ |
| 18772 | _ACEOF |
| 18773 | cat confdefs.h >>conftest.$ac_ext |
| 18774 | cat >>conftest.$ac_ext <<_ACEOF |
| 18775 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18776 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18777 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18778 | #define $ac_func innocuous_$ac_func |
| 18779 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18780 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18781 | which can conflict with char $ac_func (); below. |
| 18782 | 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] | 18783 | <limits.h> exists even on freestanding compilers. */ |
| 18784 | |
| 18785 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18786 | # include <limits.h> |
| 18787 | #else |
| 18788 | # include <assert.h> |
| 18789 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18790 | |
| 18791 | #undef $ac_func |
| 18792 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18793 | /* Override any GCC internal prototype to avoid an error. |
| 18794 | Use char because int might match the return type of a GCC |
| 18795 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18796 | #ifdef __cplusplus |
| 18797 | extern "C" |
| 18798 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18799 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18800 | /* The GNU C library defines this for functions which it implements |
| 18801 | to always fail with ENOSYS. Some functions are actually named |
| 18802 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18803 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18804 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18805 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18806 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18807 | int |
| 18808 | main () |
| 18809 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18810 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18811 | ; |
| 18812 | return 0; |
| 18813 | } |
| 18814 | _ACEOF |
| 18815 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18816 | if { (ac_try="$ac_link" |
| 18817 | case "(($ac_try" in |
| 18818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18819 | *) ac_try_echo=$ac_try;; |
| 18820 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18821 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18822 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18823 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18824 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18825 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18826 | rm -f conftest.er1 |
| 18827 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18828 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18829 | (exit $ac_status); } && { |
| 18830 | test -z "$ac_c_werror_flag" || |
| 18831 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18832 | } && test -s conftest$ac_exeext && { |
| 18833 | test "$cross_compiling" = yes || |
| 18834 | $as_test_x conftest$ac_exeext |
| 18835 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18836 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18837 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18838 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18840 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18841 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18842 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18843 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18844 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18845 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18846 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18847 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18848 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 18849 | $as_echo "$as_val"'` |
| 18850 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18851 | $as_echo "$ac_res" >&6; } |
| 18852 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 18853 | $as_echo "$as_val"'` |
| 18854 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18855 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18856 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18857 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18858 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18859 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18860 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18861 | *" $ac_func.$ac_objext "* ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18862 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 18863 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18864 | esac |
| 18865 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18866 | fi |
| 18867 | done |
| 18868 | |
| 18869 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18870 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18871 | for ac_func in getpgrp |
| 18872 | do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18873 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18874 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18875 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18876 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18877 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18878 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18879 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18880 | /* confdefs.h. */ |
| 18881 | _ACEOF |
| 18882 | cat confdefs.h >>conftest.$ac_ext |
| 18883 | cat >>conftest.$ac_ext <<_ACEOF |
| 18884 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18885 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18886 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18887 | #define $ac_func innocuous_$ac_func |
| 18888 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18889 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18890 | which can conflict with char $ac_func (); below. |
| 18891 | 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] | 18892 | <limits.h> exists even on freestanding compilers. */ |
| 18893 | |
| 18894 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18895 | # include <limits.h> |
| 18896 | #else |
| 18897 | # include <assert.h> |
| 18898 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18899 | |
| 18900 | #undef $ac_func |
| 18901 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18902 | /* Override any GCC internal prototype to avoid an error. |
| 18903 | Use char because int might match the return type of a GCC |
| 18904 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18905 | #ifdef __cplusplus |
| 18906 | extern "C" |
| 18907 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18908 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18909 | /* The GNU C library defines this for functions which it implements |
| 18910 | to always fail with ENOSYS. Some functions are actually named |
| 18911 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18912 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18913 | choke me |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18914 | #endif |
| 18915 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18916 | int |
| 18917 | main () |
| 18918 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18919 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18920 | ; |
| 18921 | return 0; |
| 18922 | } |
| 18923 | _ACEOF |
| 18924 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18925 | if { (ac_try="$ac_link" |
| 18926 | case "(($ac_try" in |
| 18927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18928 | *) ac_try_echo=$ac_try;; |
| 18929 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18930 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18931 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18932 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18933 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18935 | rm -f conftest.er1 |
| 18936 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18937 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18938 | (exit $ac_status); } && { |
| 18939 | test -z "$ac_c_werror_flag" || |
| 18940 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18941 | } && test -s conftest$ac_exeext && { |
| 18942 | test "$cross_compiling" = yes || |
| 18943 | $as_test_x conftest$ac_exeext |
| 18944 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18945 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18946 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18947 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18949 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18950 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18951 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18952 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18953 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18954 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18955 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18956 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18957 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 18958 | $as_echo "$as_val"'` |
| 18959 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18960 | $as_echo "$ac_res" >&6; } |
| 18961 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 18962 | $as_echo "$as_val"'` |
| 18963 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18964 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18965 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18966 | _ACEOF |
| 18967 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18968 | /* confdefs.h. */ |
| 18969 | _ACEOF |
| 18970 | cat confdefs.h >>conftest.$ac_ext |
| 18971 | cat >>conftest.$ac_ext <<_ACEOF |
| 18972 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18973 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18974 | int |
| 18975 | main () |
| 18976 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18977 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18978 | ; |
| 18979 | return 0; |
| 18980 | } |
| 18981 | _ACEOF |
| 18982 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18983 | if { (ac_try="$ac_compile" |
| 18984 | case "(($ac_try" in |
| 18985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18986 | *) ac_try_echo=$ac_try;; |
| 18987 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18988 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18989 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18990 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18991 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18993 | rm -f conftest.er1 |
| 18994 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 18995 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18996 | (exit $ac_status); } && { |
| 18997 | test -z "$ac_c_werror_flag" || |
| 18998 | test ! -s conftest.err |
| 18999 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19000 | |
| 19001 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19002 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19003 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19004 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19005 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 19006 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19007 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19009 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19010 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19011 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19012 | |
| 19013 | 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] | 19014 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19015 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 19016 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19017 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19018 | |
| 19019 | for ac_func in setpgrp |
| 19020 | do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19021 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19022 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19023 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19024 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19025 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19026 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19027 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19028 | /* confdefs.h. */ |
| 19029 | _ACEOF |
| 19030 | cat confdefs.h >>conftest.$ac_ext |
| 19031 | cat >>conftest.$ac_ext <<_ACEOF |
| 19032 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19033 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19034 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19035 | #define $ac_func innocuous_$ac_func |
| 19036 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19037 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19038 | which can conflict with char $ac_func (); below. |
| 19039 | 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] | 19040 | <limits.h> exists even on freestanding compilers. */ |
| 19041 | |
| 19042 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19043 | # include <limits.h> |
| 19044 | #else |
| 19045 | # include <assert.h> |
| 19046 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19047 | |
| 19048 | #undef $ac_func |
| 19049 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19050 | /* Override any GCC internal prototype to avoid an error. |
| 19051 | Use char because int might match the return type of a GCC |
| 19052 | builtin and then its argument prototype would still apply. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19053 | #ifdef __cplusplus |
| 19054 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19055 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19056 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19057 | /* The GNU C library defines this for functions which it implements |
| 19058 | to always fail with ENOSYS. Some functions are actually named |
| 19059 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19060 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19061 | choke me |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19062 | #endif |
| 19063 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19064 | int |
| 19065 | main () |
| 19066 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19067 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19068 | ; |
| 19069 | return 0; |
| 19070 | } |
| 19071 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19072 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19073 | if { (ac_try="$ac_link" |
| 19074 | case "(($ac_try" in |
| 19075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19076 | *) ac_try_echo=$ac_try;; |
| 19077 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19078 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19079 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19080 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19081 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19083 | rm -f conftest.er1 |
| 19084 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19085 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19086 | (exit $ac_status); } && { |
| 19087 | test -z "$ac_c_werror_flag" || |
| 19088 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19089 | } && test -s conftest$ac_exeext && { |
| 19090 | test "$cross_compiling" = yes || |
| 19091 | $as_test_x conftest$ac_exeext |
| 19092 | }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19093 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19094 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19095 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19097 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19098 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19099 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19100 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19101 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19102 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19103 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19104 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19105 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 19106 | $as_echo "$as_val"'` |
| 19107 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19108 | $as_echo "$ac_res" >&6; } |
| 19109 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 19110 | $as_echo "$as_val"'` |
| 19111 | if test "x$as_val" = x""yes; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19112 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19113 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19114 | _ACEOF |
| 19115 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19116 | /* confdefs.h. */ |
| 19117 | _ACEOF |
| 19118 | cat confdefs.h >>conftest.$ac_ext |
| 19119 | cat >>conftest.$ac_ext <<_ACEOF |
| 19120 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19121 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19122 | int |
| 19123 | main () |
| 19124 | { |
| 19125 | setpgrp(0,0); |
| 19126 | ; |
| 19127 | return 0; |
| 19128 | } |
| 19129 | _ACEOF |
| 19130 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19131 | if { (ac_try="$ac_compile" |
| 19132 | case "(($ac_try" in |
| 19133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19134 | *) ac_try_echo=$ac_try;; |
| 19135 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19136 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19137 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19138 | (eval "$ac_compile") 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19139 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19141 | rm -f conftest.er1 |
| 19142 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19143 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19144 | (exit $ac_status); } && { |
| 19145 | test -z "$ac_c_werror_flag" || |
| 19146 | test ! -s conftest.err |
| 19147 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19148 | |
| 19149 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19150 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19151 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 19152 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19153 | |
| 19154 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19155 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19157 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19158 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 19159 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19160 | |
| 19161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 19162 | |
| 19163 | fi |
| 19164 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 19165 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19166 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 19167 | for ac_func in gettimeofday |
| 19168 | do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19169 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19170 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19171 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19172 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19173 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19174 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19175 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19176 | /* confdefs.h. */ |
| 19177 | _ACEOF |
| 19178 | cat confdefs.h >>conftest.$ac_ext |
| 19179 | cat >>conftest.$ac_ext <<_ACEOF |
| 19180 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19181 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19182 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19183 | #define $ac_func innocuous_$ac_func |
| 19184 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19185 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19186 | which can conflict with char $ac_func (); below. |
| 19187 | 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] | 19188 | <limits.h> exists even on freestanding compilers. */ |
| 19189 | |
| 19190 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19191 | # include <limits.h> |
| 19192 | #else |
| 19193 | # include <assert.h> |
| 19194 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19195 | |
| 19196 | #undef $ac_func |
| 19197 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19198 | /* Override any GCC internal prototype to avoid an error. |
| 19199 | Use char because int might match the return type of a GCC |
| 19200 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19201 | #ifdef __cplusplus |
| 19202 | extern "C" |
| 19203 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19204 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19205 | /* The GNU C library defines this for functions which it implements |
| 19206 | to always fail with ENOSYS. Some functions are actually named |
| 19207 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19208 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19209 | choke me |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19210 | #endif |
| 19211 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19212 | int |
| 19213 | main () |
| 19214 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19215 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19216 | ; |
| 19217 | return 0; |
| 19218 | } |
| 19219 | _ACEOF |
| 19220 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19221 | if { (ac_try="$ac_link" |
| 19222 | case "(($ac_try" in |
| 19223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19224 | *) ac_try_echo=$ac_try;; |
| 19225 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19226 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19227 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19228 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19229 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19230 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19231 | rm -f conftest.er1 |
| 19232 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19233 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19234 | (exit $ac_status); } && { |
| 19235 | test -z "$ac_c_werror_flag" || |
| 19236 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19237 | } && test -s conftest$ac_exeext && { |
| 19238 | test "$cross_compiling" = yes || |
| 19239 | $as_test_x conftest$ac_exeext |
| 19240 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19241 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19242 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19243 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19245 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19246 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19247 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19248 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19249 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19250 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19251 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19252 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19253 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 19254 | $as_echo "$as_val"'` |
| 19255 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19256 | $as_echo "$ac_res" >&6; } |
| 19257 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 19258 | $as_echo "$as_val"'` |
| 19259 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19260 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19261 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19262 | _ACEOF |
| 19263 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19264 | /* confdefs.h. */ |
| 19265 | _ACEOF |
| 19266 | cat confdefs.h >>conftest.$ac_ext |
| 19267 | cat >>conftest.$ac_ext <<_ACEOF |
| 19268 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19269 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19270 | int |
| 19271 | main () |
| 19272 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19273 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19274 | ; |
| 19275 | return 0; |
| 19276 | } |
| 19277 | _ACEOF |
| 19278 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19279 | if { (ac_try="$ac_compile" |
| 19280 | case "(($ac_try" in |
| 19281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19282 | *) ac_try_echo=$ac_try;; |
| 19283 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19284 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19285 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19286 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19287 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19289 | rm -f conftest.er1 |
| 19290 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19291 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19292 | (exit $ac_status); } && { |
| 19293 | test -z "$ac_c_werror_flag" || |
| 19294 | test ! -s conftest.err |
| 19295 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19296 | : |
| 19297 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19298 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19300 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19301 | |
| 19302 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19303 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19304 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19305 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19306 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19307 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19308 | |
| 19309 | 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] | 19310 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19311 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 19312 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19313 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19314 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19315 | { $as_echo "$as_me:$LINENO: checking for major" >&5 |
| 19316 | $as_echo_n "checking for major... " >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19317 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19318 | /* confdefs.h. */ |
| 19319 | _ACEOF |
| 19320 | cat confdefs.h >>conftest.$ac_ext |
| 19321 | cat >>conftest.$ac_ext <<_ACEOF |
| 19322 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19323 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 19324 | #if defined(MAJOR_IN_MKDEV) |
| 19325 | #include <sys/mkdev.h> |
| 19326 | #elif defined(MAJOR_IN_SYSMACROS) |
| 19327 | #include <sys/sysmacros.h> |
| 19328 | #else |
| 19329 | #include <sys/types.h> |
| 19330 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19331 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19332 | int |
| 19333 | main () |
| 19334 | { |
| 19335 | |
| 19336 | makedev(major(0),minor(0)); |
| 19337 | |
| 19338 | ; |
| 19339 | return 0; |
| 19340 | } |
| 19341 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 19342 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19343 | if { (ac_try="$ac_link" |
| 19344 | case "(($ac_try" in |
| 19345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19346 | *) ac_try_echo=$ac_try;; |
| 19347 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19348 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19349 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19350 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19351 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19353 | rm -f conftest.er1 |
| 19354 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19355 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19356 | (exit $ac_status); } && { |
| 19357 | test -z "$ac_c_werror_flag" || |
| 19358 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19359 | } && test -s conftest$ac_exeext && { |
| 19360 | test "$cross_compiling" = yes || |
| 19361 | $as_test_x conftest$ac_exeext |
| 19362 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19363 | |
| 19364 | |
| 19365 | cat >>confdefs.h <<\_ACEOF |
| 19366 | #define HAVE_DEVICE_MACROS 1 |
| 19367 | _ACEOF |
| 19368 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19369 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 19370 | $as_echo "yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19371 | |
| 19372 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19373 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19375 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19376 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19377 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 19378 | $as_echo "no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19379 | |
| 19380 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19381 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19382 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19383 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19384 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19385 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19386 | # 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] | 19387 | # for [no]getaddrinfo in netdb.h. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19388 | { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 19389 | $as_echo_n "checking for getaddrinfo... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19390 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19391 | /* confdefs.h. */ |
| 19392 | _ACEOF |
| 19393 | cat confdefs.h >>conftest.$ac_ext |
| 19394 | cat >>conftest.$ac_ext <<_ACEOF |
| 19395 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19396 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 19397 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19398 | #include <sys/socket.h> |
| 19399 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 19400 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19401 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19402 | int |
| 19403 | main () |
| 19404 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19405 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19406 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19407 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19408 | ; |
| 19409 | return 0; |
| 19410 | } |
| 19411 | _ACEOF |
| 19412 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19413 | if { (ac_try="$ac_link" |
| 19414 | case "(($ac_try" in |
| 19415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19416 | *) ac_try_echo=$ac_try;; |
| 19417 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19418 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19419 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19420 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19421 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19423 | rm -f conftest.er1 |
| 19424 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19425 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19426 | (exit $ac_status); } && { |
| 19427 | test -z "$ac_c_werror_flag" || |
| 19428 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19429 | } && test -s conftest$ac_exeext && { |
| 19430 | test "$cross_compiling" = yes || |
| 19431 | $as_test_x conftest$ac_exeext |
| 19432 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19433 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19434 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 19435 | $as_echo "yes" >&6; } |
| 19436 | { $as_echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 19437 | $as_echo_n "checking getaddrinfo bug... " >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19438 | if test "$cross_compiling" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19439 | { $as_echo "$as_me:$LINENO: result: buggy" >&5 |
| 19440 | $as_echo "buggy" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19441 | buggygetaddrinfo=yes |
| 19442 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19443 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19444 | /* confdefs.h. */ |
| 19445 | _ACEOF |
| 19446 | cat confdefs.h >>conftest.$ac_ext |
| 19447 | cat >>conftest.$ac_ext <<_ACEOF |
| 19448 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19449 | |
| 19450 | #include <sys/types.h> |
| 19451 | #include <netdb.h> |
| 19452 | #include <string.h> |
| 19453 | #include <sys/socket.h> |
| 19454 | #include <netinet/in.h> |
| 19455 | |
| 19456 | main() |
| 19457 | { |
| 19458 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 19459 | struct addrinfo hints, *ai, *aitop; |
| 19460 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 19461 | |
| 19462 | for (passive = 0; passive <= 1; passive++) { |
| 19463 | memset(&hints, 0, sizeof(hints)); |
| 19464 | hints.ai_family = AF_UNSPEC; |
| 19465 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 19466 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 19467 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19468 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 19469 | (void)gai_strerror(gaierr); |
| 19470 | goto bad; |
| 19471 | } |
| 19472 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 19473 | if (ai->ai_addr == NULL || |
| 19474 | ai->ai_addrlen == 0 || |
| 19475 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 19476 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 19477 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 19478 | goto bad; |
| 19479 | } |
| 19480 | switch (ai->ai_family) { |
| 19481 | case AF_INET: |
| 19482 | if (strcmp(strport, "54321") != 0) { |
| 19483 | goto bad; |
| 19484 | } |
| 19485 | if (passive) { |
| 19486 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 19487 | goto bad; |
| 19488 | } |
| 19489 | } else { |
| 19490 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 19491 | goto bad; |
| 19492 | } |
| 19493 | } |
| 19494 | inet4++; |
| 19495 | break; |
| 19496 | case AF_INET6: |
| 19497 | if (strcmp(strport, "54321") != 0) { |
| 19498 | goto bad; |
| 19499 | } |
| 19500 | if (passive) { |
| 19501 | if (strcmp(straddr, "::") != 0) { |
| 19502 | goto bad; |
| 19503 | } |
| 19504 | } else { |
| 19505 | if (strcmp(straddr, "::1") != 0) { |
| 19506 | goto bad; |
| 19507 | } |
| 19508 | } |
| 19509 | inet6++; |
| 19510 | break; |
| 19511 | case AF_UNSPEC: |
| 19512 | goto bad; |
| 19513 | break; |
| 19514 | default: |
| 19515 | /* another family support? */ |
| 19516 | break; |
| 19517 | } |
| 19518 | } |
| 19519 | } |
| 19520 | |
| 19521 | if (!(inet4 == 0 || inet4 == 2)) |
| 19522 | goto bad; |
| 19523 | if (!(inet6 == 0 || inet6 == 2)) |
| 19524 | goto bad; |
| 19525 | |
| 19526 | if (aitop) |
| 19527 | freeaddrinfo(aitop); |
| 19528 | exit(0); |
| 19529 | |
| 19530 | bad: |
| 19531 | if (aitop) |
| 19532 | freeaddrinfo(aitop); |
| 19533 | exit(1); |
| 19534 | } |
| 19535 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19536 | _ACEOF |
| 19537 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19538 | if { (ac_try="$ac_link" |
| 19539 | case "(($ac_try" in |
| 19540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19541 | *) ac_try_echo=$ac_try;; |
| 19542 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19543 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19544 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19545 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19546 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19547 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19548 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19549 | { (case "(($ac_try" in |
| 19550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19551 | *) ac_try_echo=$ac_try;; |
| 19552 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19553 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19554 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19555 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19556 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19557 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19558 | (exit $ac_status); }; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19559 | { $as_echo "$as_me:$LINENO: result: good" >&5 |
| 19560 | $as_echo "good" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19561 | buggygetaddrinfo=no |
| 19562 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19563 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 19564 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19566 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19567 | ( exit $ac_status ) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19568 | { $as_echo "$as_me:$LINENO: result: buggy" >&5 |
| 19569 | $as_echo "buggy" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19570 | buggygetaddrinfo=yes |
| 19571 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19572 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19573 | 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] | 19574 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19575 | |
| 19576 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19577 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19578 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19580 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19581 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19582 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 19583 | $as_echo "no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19584 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19585 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19586 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19587 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19588 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19589 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19590 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19591 | |
| 19592 | if test "$buggygetaddrinfo" = "yes"; then |
| 19593 | if test "$ipv6" = "yes"; then |
| 19594 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 19595 | echo ' or you can specify "--disable-ipv6"'. |
| 19596 | exit 1 |
| 19597 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19598 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19599 | |
| 19600 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19601 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19602 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19603 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19604 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19605 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 19606 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19607 | do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19608 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19609 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19610 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19611 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19612 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19613 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19614 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19615 | /* confdefs.h. */ |
| 19616 | _ACEOF |
| 19617 | cat confdefs.h >>conftest.$ac_ext |
| 19618 | cat >>conftest.$ac_ext <<_ACEOF |
| 19619 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19620 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19621 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19622 | #define $ac_func innocuous_$ac_func |
| 19623 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19624 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19625 | which can conflict with char $ac_func (); below. |
| 19626 | 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] | 19627 | <limits.h> exists even on freestanding compilers. */ |
| 19628 | |
| 19629 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19630 | # include <limits.h> |
| 19631 | #else |
| 19632 | # include <assert.h> |
| 19633 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19634 | |
| 19635 | #undef $ac_func |
| 19636 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19637 | /* Override any GCC internal prototype to avoid an error. |
| 19638 | Use char because int might match the return type of a GCC |
| 19639 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19640 | #ifdef __cplusplus |
| 19641 | extern "C" |
| 19642 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19643 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19644 | /* The GNU C library defines this for functions which it implements |
| 19645 | to always fail with ENOSYS. Some functions are actually named |
| 19646 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19647 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19648 | choke me |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19649 | #endif |
| 19650 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19651 | int |
| 19652 | main () |
| 19653 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19654 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19655 | ; |
| 19656 | return 0; |
| 19657 | } |
| 19658 | _ACEOF |
| 19659 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19660 | if { (ac_try="$ac_link" |
| 19661 | case "(($ac_try" in |
| 19662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19663 | *) ac_try_echo=$ac_try;; |
| 19664 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19665 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19666 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19667 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19668 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19670 | rm -f conftest.er1 |
| 19671 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19672 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19673 | (exit $ac_status); } && { |
| 19674 | test -z "$ac_c_werror_flag" || |
| 19675 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19676 | } && test -s conftest$ac_exeext && { |
| 19677 | test "$cross_compiling" = yes || |
| 19678 | $as_test_x conftest$ac_exeext |
| 19679 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19680 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19681 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19682 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19684 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19685 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19686 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19687 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19688 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19689 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19690 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19691 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19692 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 19693 | $as_echo "$as_val"'` |
| 19694 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19695 | $as_echo "$ac_res" >&6; } |
| 19696 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 19697 | $as_echo "$as_val"'` |
| 19698 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19699 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19700 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19701 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19702 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19703 | fi |
| 19704 | done |
| 19705 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19706 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19707 | # checks for structures |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19708 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 19709 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19710 | if test "${ac_cv_header_time+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19711 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19712 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19713 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19714 | /* confdefs.h. */ |
| 19715 | _ACEOF |
| 19716 | cat confdefs.h >>conftest.$ac_ext |
| 19717 | cat >>conftest.$ac_ext <<_ACEOF |
| 19718 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19719 | #include <sys/types.h> |
| 19720 | #include <sys/time.h> |
| 19721 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19722 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19723 | int |
| 19724 | main () |
| 19725 | { |
| 19726 | if ((struct tm *) 0) |
| 19727 | return 0; |
| 19728 | ; |
| 19729 | return 0; |
| 19730 | } |
| 19731 | _ACEOF |
| 19732 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19733 | if { (ac_try="$ac_compile" |
| 19734 | case "(($ac_try" in |
| 19735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19736 | *) ac_try_echo=$ac_try;; |
| 19737 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19738 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19739 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19740 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19741 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19742 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19743 | rm -f conftest.er1 |
| 19744 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19745 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19746 | (exit $ac_status); } && { |
| 19747 | test -z "$ac_c_werror_flag" || |
| 19748 | test ! -s conftest.err |
| 19749 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19750 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19751 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19752 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19754 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19755 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19756 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19757 | |
| 19758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19759 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19760 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 19761 | $as_echo "$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19762 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19763 | |
| 19764 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19765 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19766 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19767 | |
| 19768 | fi |
| 19769 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19770 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 19771 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19772 | if test "${ac_cv_struct_tm+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19773 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19774 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19775 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19776 | /* confdefs.h. */ |
| 19777 | _ACEOF |
| 19778 | cat confdefs.h >>conftest.$ac_ext |
| 19779 | cat >>conftest.$ac_ext <<_ACEOF |
| 19780 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19781 | #include <sys/types.h> |
| 19782 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19783 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19784 | int |
| 19785 | main () |
| 19786 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19787 | struct tm tm; |
| 19788 | int *p = &tm.tm_sec; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19789 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19790 | ; |
| 19791 | return 0; |
| 19792 | } |
| 19793 | _ACEOF |
| 19794 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19795 | if { (ac_try="$ac_compile" |
| 19796 | case "(($ac_try" in |
| 19797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19798 | *) ac_try_echo=$ac_try;; |
| 19799 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19800 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19801 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19802 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19803 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19804 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19805 | rm -f conftest.er1 |
| 19806 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19807 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19808 | (exit $ac_status); } && { |
| 19809 | test -z "$ac_c_werror_flag" || |
| 19810 | test ! -s conftest.err |
| 19811 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19812 | ac_cv_struct_tm=time.h |
| 19813 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19814 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19816 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19817 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19818 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19819 | |
| 19820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19821 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19822 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 19823 | $as_echo "$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19824 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19825 | |
| 19826 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19827 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19828 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19829 | |
| 19830 | fi |
| 19831 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19832 | { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 19833 | $as_echo_n "checking for struct tm.tm_zone... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19834 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19835 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19836 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19837 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19838 | /* confdefs.h. */ |
| 19839 | _ACEOF |
| 19840 | cat confdefs.h >>conftest.$ac_ext |
| 19841 | cat >>conftest.$ac_ext <<_ACEOF |
| 19842 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19843 | #include <sys/types.h> |
| 19844 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19845 | |
| 19846 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19847 | int |
| 19848 | main () |
| 19849 | { |
| 19850 | static struct tm ac_aggr; |
| 19851 | if (ac_aggr.tm_zone) |
| 19852 | return 0; |
| 19853 | ; |
| 19854 | return 0; |
| 19855 | } |
| 19856 | _ACEOF |
| 19857 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19858 | if { (ac_try="$ac_compile" |
| 19859 | case "(($ac_try" in |
| 19860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19861 | *) ac_try_echo=$ac_try;; |
| 19862 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19863 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19864 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19865 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19866 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19867 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19868 | rm -f conftest.er1 |
| 19869 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19870 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19871 | (exit $ac_status); } && { |
| 19872 | test -z "$ac_c_werror_flag" || |
| 19873 | test ! -s conftest.err |
| 19874 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19875 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19876 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19877 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19879 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19880 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19881 | /* confdefs.h. */ |
| 19882 | _ACEOF |
| 19883 | cat confdefs.h >>conftest.$ac_ext |
| 19884 | cat >>conftest.$ac_ext <<_ACEOF |
| 19885 | /* end confdefs.h. */ |
| 19886 | #include <sys/types.h> |
| 19887 | #include <$ac_cv_struct_tm> |
| 19888 | |
| 19889 | |
| 19890 | int |
| 19891 | main () |
| 19892 | { |
| 19893 | static struct tm ac_aggr; |
| 19894 | if (sizeof ac_aggr.tm_zone) |
| 19895 | return 0; |
| 19896 | ; |
| 19897 | return 0; |
| 19898 | } |
| 19899 | _ACEOF |
| 19900 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19901 | if { (ac_try="$ac_compile" |
| 19902 | case "(($ac_try" in |
| 19903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19904 | *) ac_try_echo=$ac_try;; |
| 19905 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19906 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19907 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19908 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19909 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19911 | rm -f conftest.er1 |
| 19912 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19913 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19914 | (exit $ac_status); } && { |
| 19915 | test -z "$ac_c_werror_flag" || |
| 19916 | test ! -s conftest.err |
| 19917 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19918 | ac_cv_member_struct_tm_tm_zone=yes |
| 19919 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19920 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19922 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19923 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19924 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19925 | |
| 19926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19927 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19928 | |
| 19929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19930 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19931 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 19932 | $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 19933 | if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19934 | |
| 19935 | cat >>confdefs.h <<_ACEOF |
| 19936 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 19937 | _ACEOF |
| 19938 | |
| 19939 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19940 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 19941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19942 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 19943 | |
| 19944 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19945 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19946 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19947 | |
| 19948 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19949 | { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 19950 | $as_echo_n "checking whether tzname is declared... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19951 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19952 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19953 | else |
| 19954 | cat >conftest.$ac_ext <<_ACEOF |
| 19955 | /* confdefs.h. */ |
| 19956 | _ACEOF |
| 19957 | cat confdefs.h >>conftest.$ac_ext |
| 19958 | cat >>conftest.$ac_ext <<_ACEOF |
| 19959 | /* end confdefs.h. */ |
| 19960 | #include <time.h> |
| 19961 | |
| 19962 | int |
| 19963 | main () |
| 19964 | { |
| 19965 | #ifndef tzname |
| 19966 | (void) tzname; |
| 19967 | #endif |
| 19968 | |
| 19969 | ; |
| 19970 | return 0; |
| 19971 | } |
| 19972 | _ACEOF |
| 19973 | rm -f conftest.$ac_objext |
| 19974 | if { (ac_try="$ac_compile" |
| 19975 | case "(($ac_try" in |
| 19976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19977 | *) ac_try_echo=$ac_try;; |
| 19978 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19979 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19980 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19981 | (eval "$ac_compile") 2>conftest.er1 |
| 19982 | ac_status=$? |
| 19983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19984 | rm -f conftest.er1 |
| 19985 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19986 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19987 | (exit $ac_status); } && { |
| 19988 | test -z "$ac_c_werror_flag" || |
| 19989 | test ! -s conftest.err |
| 19990 | } && test -s conftest.$ac_objext; then |
| 19991 | ac_cv_have_decl_tzname=yes |
| 19992 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 19993 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19995 | |
| 19996 | ac_cv_have_decl_tzname=no |
| 19997 | fi |
| 19998 | |
| 19999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20000 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20001 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 20002 | $as_echo "$ac_cv_have_decl_tzname" >&6; } |
| 20003 | if test "x$ac_cv_have_decl_tzname" = x""yes; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20004 | |
| 20005 | cat >>confdefs.h <<_ACEOF |
| 20006 | #define HAVE_DECL_TZNAME 1 |
| 20007 | _ACEOF |
| 20008 | |
| 20009 | |
| 20010 | else |
| 20011 | cat >>confdefs.h <<_ACEOF |
| 20012 | #define HAVE_DECL_TZNAME 0 |
| 20013 | _ACEOF |
| 20014 | |
| 20015 | |
| 20016 | fi |
| 20017 | |
| 20018 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20019 | { $as_echo "$as_me:$LINENO: checking for tzname" >&5 |
| 20020 | $as_echo_n "checking for tzname... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20021 | if test "${ac_cv_var_tzname+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20022 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20023 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20024 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20025 | /* confdefs.h. */ |
| 20026 | _ACEOF |
| 20027 | cat confdefs.h >>conftest.$ac_ext |
| 20028 | cat >>conftest.$ac_ext <<_ACEOF |
| 20029 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20030 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20031 | #if !HAVE_DECL_TZNAME |
| 20032 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20033 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20034 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20035 | int |
| 20036 | main () |
| 20037 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20038 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20039 | ; |
| 20040 | return 0; |
| 20041 | } |
| 20042 | _ACEOF |
| 20043 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20044 | if { (ac_try="$ac_link" |
| 20045 | case "(($ac_try" in |
| 20046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20047 | *) ac_try_echo=$ac_try;; |
| 20048 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20049 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20050 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20051 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20052 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20053 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20054 | rm -f conftest.er1 |
| 20055 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20056 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20057 | (exit $ac_status); } && { |
| 20058 | test -z "$ac_c_werror_flag" || |
| 20059 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20060 | } && test -s conftest$ac_exeext && { |
| 20061 | test "$cross_compiling" = yes || |
| 20062 | $as_test_x conftest$ac_exeext |
| 20063 | }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20064 | ac_cv_var_tzname=yes |
| 20065 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20066 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20068 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20069 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20070 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20071 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20072 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20073 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20074 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20075 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20076 | { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 20077 | $as_echo "$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20078 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20079 | |
| 20080 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20081 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20082 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20083 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20084 | fi |
| 20085 | fi |
| 20086 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20087 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 20088 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20089 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20090 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20091 | else |
| 20092 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20093 | /* confdefs.h. */ |
| 20094 | _ACEOF |
| 20095 | cat confdefs.h >>conftest.$ac_ext |
| 20096 | cat >>conftest.$ac_ext <<_ACEOF |
| 20097 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20098 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20099 | int |
| 20100 | main () |
| 20101 | { |
| 20102 | static struct stat ac_aggr; |
| 20103 | if (ac_aggr.st_rdev) |
| 20104 | return 0; |
| 20105 | ; |
| 20106 | return 0; |
| 20107 | } |
| 20108 | _ACEOF |
| 20109 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20110 | if { (ac_try="$ac_compile" |
| 20111 | case "(($ac_try" in |
| 20112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20113 | *) ac_try_echo=$ac_try;; |
| 20114 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20115 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20116 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20117 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20118 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20120 | rm -f conftest.er1 |
| 20121 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20122 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20123 | (exit $ac_status); } && { |
| 20124 | test -z "$ac_c_werror_flag" || |
| 20125 | test ! -s conftest.err |
| 20126 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20127 | ac_cv_member_struct_stat_st_rdev=yes |
| 20128 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20129 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20130 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20131 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20132 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20133 | /* confdefs.h. */ |
| 20134 | _ACEOF |
| 20135 | cat confdefs.h >>conftest.$ac_ext |
| 20136 | cat >>conftest.$ac_ext <<_ACEOF |
| 20137 | /* end confdefs.h. */ |
| 20138 | $ac_includes_default |
| 20139 | int |
| 20140 | main () |
| 20141 | { |
| 20142 | static struct stat ac_aggr; |
| 20143 | if (sizeof ac_aggr.st_rdev) |
| 20144 | return 0; |
| 20145 | ; |
| 20146 | return 0; |
| 20147 | } |
| 20148 | _ACEOF |
| 20149 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20150 | if { (ac_try="$ac_compile" |
| 20151 | case "(($ac_try" in |
| 20152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20153 | *) ac_try_echo=$ac_try;; |
| 20154 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20155 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20156 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20157 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20158 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20160 | rm -f conftest.er1 |
| 20161 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20162 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20163 | (exit $ac_status); } && { |
| 20164 | test -z "$ac_c_werror_flag" || |
| 20165 | test ! -s conftest.err |
| 20166 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20167 | ac_cv_member_struct_stat_st_rdev=yes |
| 20168 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20169 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20171 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20172 | ac_cv_member_struct_stat_st_rdev=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20173 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20174 | |
| 20175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20176 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20177 | |
| 20178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20179 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20180 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 20181 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } |
| 20182 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20183 | |
| 20184 | cat >>confdefs.h <<_ACEOF |
| 20185 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 20186 | _ACEOF |
| 20187 | |
| 20188 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20189 | fi |
| 20190 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20191 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 20192 | $as_echo_n "checking for struct stat.st_blksize... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20193 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20194 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20195 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20196 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20197 | /* confdefs.h. */ |
| 20198 | _ACEOF |
| 20199 | cat confdefs.h >>conftest.$ac_ext |
| 20200 | cat >>conftest.$ac_ext <<_ACEOF |
| 20201 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20202 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20203 | int |
| 20204 | main () |
| 20205 | { |
| 20206 | static struct stat ac_aggr; |
| 20207 | if (ac_aggr.st_blksize) |
| 20208 | return 0; |
| 20209 | ; |
| 20210 | return 0; |
| 20211 | } |
| 20212 | _ACEOF |
| 20213 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20214 | if { (ac_try="$ac_compile" |
| 20215 | case "(($ac_try" in |
| 20216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20217 | *) ac_try_echo=$ac_try;; |
| 20218 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20219 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20220 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20221 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20222 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20224 | rm -f conftest.er1 |
| 20225 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20226 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20227 | (exit $ac_status); } && { |
| 20228 | test -z "$ac_c_werror_flag" || |
| 20229 | test ! -s conftest.err |
| 20230 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20231 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20232 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20233 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20235 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20236 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20237 | /* confdefs.h. */ |
| 20238 | _ACEOF |
| 20239 | cat confdefs.h >>conftest.$ac_ext |
| 20240 | cat >>conftest.$ac_ext <<_ACEOF |
| 20241 | /* end confdefs.h. */ |
| 20242 | $ac_includes_default |
| 20243 | int |
| 20244 | main () |
| 20245 | { |
| 20246 | static struct stat ac_aggr; |
| 20247 | if (sizeof ac_aggr.st_blksize) |
| 20248 | return 0; |
| 20249 | ; |
| 20250 | return 0; |
| 20251 | } |
| 20252 | _ACEOF |
| 20253 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20254 | if { (ac_try="$ac_compile" |
| 20255 | case "(($ac_try" in |
| 20256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20257 | *) ac_try_echo=$ac_try;; |
| 20258 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20259 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20260 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20261 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20262 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20264 | rm -f conftest.er1 |
| 20265 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20266 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20267 | (exit $ac_status); } && { |
| 20268 | test -z "$ac_c_werror_flag" || |
| 20269 | test ! -s conftest.err |
| 20270 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20271 | ac_cv_member_struct_stat_st_blksize=yes |
| 20272 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20273 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20274 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20275 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20276 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20277 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20278 | |
| 20279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20280 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20281 | |
| 20282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20283 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20284 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 20285 | $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; } |
| 20286 | if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20287 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20288 | cat >>confdefs.h <<_ACEOF |
| 20289 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 20290 | _ACEOF |
| 20291 | |
| 20292 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20293 | fi |
| 20294 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20295 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 20296 | $as_echo_n "checking for struct stat.st_flags... " >&6; } |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20297 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20298 | $as_echo_n "(cached) " >&6 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20299 | else |
| 20300 | cat >conftest.$ac_ext <<_ACEOF |
| 20301 | /* confdefs.h. */ |
| 20302 | _ACEOF |
| 20303 | cat confdefs.h >>conftest.$ac_ext |
| 20304 | cat >>conftest.$ac_ext <<_ACEOF |
| 20305 | /* end confdefs.h. */ |
| 20306 | $ac_includes_default |
| 20307 | int |
| 20308 | main () |
| 20309 | { |
| 20310 | static struct stat ac_aggr; |
| 20311 | if (ac_aggr.st_flags) |
| 20312 | return 0; |
| 20313 | ; |
| 20314 | return 0; |
| 20315 | } |
| 20316 | _ACEOF |
| 20317 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20318 | if { (ac_try="$ac_compile" |
| 20319 | case "(($ac_try" in |
| 20320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20321 | *) ac_try_echo=$ac_try;; |
| 20322 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20323 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20324 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20325 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20326 | ac_status=$? |
| 20327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20328 | rm -f conftest.er1 |
| 20329 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20330 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20331 | (exit $ac_status); } && { |
| 20332 | test -z "$ac_c_werror_flag" || |
| 20333 | test ! -s conftest.err |
| 20334 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20335 | ac_cv_member_struct_stat_st_flags=yes |
| 20336 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20337 | $as_echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20339 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20340 | cat >conftest.$ac_ext <<_ACEOF |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20341 | /* confdefs.h. */ |
| 20342 | _ACEOF |
| 20343 | cat confdefs.h >>conftest.$ac_ext |
| 20344 | cat >>conftest.$ac_ext <<_ACEOF |
| 20345 | /* end confdefs.h. */ |
| 20346 | $ac_includes_default |
| 20347 | int |
| 20348 | main () |
| 20349 | { |
| 20350 | static struct stat ac_aggr; |
| 20351 | if (sizeof ac_aggr.st_flags) |
| 20352 | return 0; |
| 20353 | ; |
| 20354 | return 0; |
| 20355 | } |
| 20356 | _ACEOF |
| 20357 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20358 | if { (ac_try="$ac_compile" |
| 20359 | case "(($ac_try" in |
| 20360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20361 | *) ac_try_echo=$ac_try;; |
| 20362 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20363 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20364 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20365 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20366 | ac_status=$? |
| 20367 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20368 | rm -f conftest.er1 |
| 20369 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20370 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20371 | (exit $ac_status); } && { |
| 20372 | test -z "$ac_c_werror_flag" || |
| 20373 | test ! -s conftest.err |
| 20374 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20375 | ac_cv_member_struct_stat_st_flags=yes |
| 20376 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20377 | $as_echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20379 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20380 | ac_cv_member_struct_stat_st_flags=no |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20381 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20382 | |
| 20383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20384 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20385 | |
| 20386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20387 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20388 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 20389 | $as_echo "$ac_cv_member_struct_stat_st_flags" >&6; } |
| 20390 | if test "x$ac_cv_member_struct_stat_st_flags" = x""yes; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20391 | |
| 20392 | cat >>confdefs.h <<_ACEOF |
| 20393 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 20394 | _ACEOF |
| 20395 | |
| 20396 | |
| 20397 | fi |
| 20398 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20399 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 20400 | $as_echo_n "checking for struct stat.st_gen... " >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20401 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20402 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20403 | else |
| 20404 | cat >conftest.$ac_ext <<_ACEOF |
| 20405 | /* confdefs.h. */ |
| 20406 | _ACEOF |
| 20407 | cat confdefs.h >>conftest.$ac_ext |
| 20408 | cat >>conftest.$ac_ext <<_ACEOF |
| 20409 | /* end confdefs.h. */ |
| 20410 | $ac_includes_default |
| 20411 | int |
| 20412 | main () |
| 20413 | { |
| 20414 | static struct stat ac_aggr; |
| 20415 | if (ac_aggr.st_gen) |
| 20416 | return 0; |
| 20417 | ; |
| 20418 | return 0; |
| 20419 | } |
| 20420 | _ACEOF |
| 20421 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20422 | if { (ac_try="$ac_compile" |
| 20423 | case "(($ac_try" in |
| 20424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20425 | *) ac_try_echo=$ac_try;; |
| 20426 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20427 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20428 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20429 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20430 | ac_status=$? |
| 20431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20432 | rm -f conftest.er1 |
| 20433 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20434 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20435 | (exit $ac_status); } && { |
| 20436 | test -z "$ac_c_werror_flag" || |
| 20437 | test ! -s conftest.err |
| 20438 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20439 | ac_cv_member_struct_stat_st_gen=yes |
| 20440 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20441 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20442 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20443 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20444 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +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. */ |
| 20450 | $ac_includes_default |
| 20451 | int |
| 20452 | main () |
| 20453 | { |
| 20454 | static struct stat ac_aggr; |
| 20455 | if (sizeof ac_aggr.st_gen) |
| 20456 | return 0; |
| 20457 | ; |
| 20458 | return 0; |
| 20459 | } |
| 20460 | _ACEOF |
| 20461 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20462 | if { (ac_try="$ac_compile" |
| 20463 | case "(($ac_try" in |
| 20464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20465 | *) ac_try_echo=$ac_try;; |
| 20466 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20467 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20468 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20469 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20470 | ac_status=$? |
| 20471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20472 | rm -f conftest.er1 |
| 20473 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20474 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20475 | (exit $ac_status); } && { |
| 20476 | test -z "$ac_c_werror_flag" || |
| 20477 | test ! -s conftest.err |
| 20478 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20479 | ac_cv_member_struct_stat_st_gen=yes |
| 20480 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20481 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20483 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20484 | ac_cv_member_struct_stat_st_gen=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20485 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20486 | |
| 20487 | 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] | 20488 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20489 | |
| 20490 | 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] | 20491 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20492 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 20493 | $as_echo "$ac_cv_member_struct_stat_st_gen" >&6; } |
| 20494 | if test "x$ac_cv_member_struct_stat_st_gen" = x""yes; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20495 | |
| 20496 | cat >>confdefs.h <<_ACEOF |
| 20497 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 20498 | _ACEOF |
| 20499 | |
| 20500 | |
| 20501 | fi |
| 20502 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20503 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 20504 | $as_echo_n "checking for struct stat.st_birthtime... " >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20505 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20506 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20507 | else |
| 20508 | cat >conftest.$ac_ext <<_ACEOF |
| 20509 | /* confdefs.h. */ |
| 20510 | _ACEOF |
| 20511 | cat confdefs.h >>conftest.$ac_ext |
| 20512 | cat >>conftest.$ac_ext <<_ACEOF |
| 20513 | /* end confdefs.h. */ |
| 20514 | $ac_includes_default |
| 20515 | int |
| 20516 | main () |
| 20517 | { |
| 20518 | static struct stat ac_aggr; |
| 20519 | if (ac_aggr.st_birthtime) |
| 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 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20531 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20532 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20533 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20534 | ac_status=$? |
| 20535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20536 | rm -f conftest.er1 |
| 20537 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20538 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20539 | (exit $ac_status); } && { |
| 20540 | test -z "$ac_c_werror_flag" || |
| 20541 | test ! -s conftest.err |
| 20542 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20543 | ac_cv_member_struct_stat_st_birthtime=yes |
| 20544 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20545 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20547 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20548 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20549 | /* confdefs.h. */ |
| 20550 | _ACEOF |
| 20551 | cat confdefs.h >>conftest.$ac_ext |
| 20552 | cat >>conftest.$ac_ext <<_ACEOF |
| 20553 | /* end confdefs.h. */ |
| 20554 | $ac_includes_default |
| 20555 | int |
| 20556 | main () |
| 20557 | { |
| 20558 | static struct stat ac_aggr; |
| 20559 | if (sizeof ac_aggr.st_birthtime) |
| 20560 | return 0; |
| 20561 | ; |
| 20562 | return 0; |
| 20563 | } |
| 20564 | _ACEOF |
| 20565 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20566 | if { (ac_try="$ac_compile" |
| 20567 | case "(($ac_try" in |
| 20568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20569 | *) ac_try_echo=$ac_try;; |
| 20570 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20571 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20572 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20573 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20574 | ac_status=$? |
| 20575 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20576 | rm -f conftest.er1 |
| 20577 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20578 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20579 | (exit $ac_status); } && { |
| 20580 | test -z "$ac_c_werror_flag" || |
| 20581 | test ! -s conftest.err |
| 20582 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20583 | ac_cv_member_struct_stat_st_birthtime=yes |
| 20584 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20585 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20587 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20588 | ac_cv_member_struct_stat_st_birthtime=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20589 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20590 | |
| 20591 | 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] | 20592 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20593 | |
| 20594 | 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] | 20595 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20596 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 20597 | $as_echo "$ac_cv_member_struct_stat_st_birthtime" >&6; } |
| 20598 | if test "x$ac_cv_member_struct_stat_st_birthtime" = x""yes; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20599 | |
| 20600 | cat >>confdefs.h <<_ACEOF |
| 20601 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 20602 | _ACEOF |
| 20603 | |
| 20604 | |
| 20605 | fi |
| 20606 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20607 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 20608 | $as_echo_n "checking for struct stat.st_blocks... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20609 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20610 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20611 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20612 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20613 | /* confdefs.h. */ |
| 20614 | _ACEOF |
| 20615 | cat confdefs.h >>conftest.$ac_ext |
| 20616 | cat >>conftest.$ac_ext <<_ACEOF |
| 20617 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20618 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20619 | int |
| 20620 | main () |
| 20621 | { |
| 20622 | static struct stat ac_aggr; |
| 20623 | if (ac_aggr.st_blocks) |
| 20624 | return 0; |
| 20625 | ; |
| 20626 | return 0; |
| 20627 | } |
| 20628 | _ACEOF |
| 20629 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20630 | if { (ac_try="$ac_compile" |
| 20631 | case "(($ac_try" in |
| 20632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20633 | *) ac_try_echo=$ac_try;; |
| 20634 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20635 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20636 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20637 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20638 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20639 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20640 | rm -f conftest.er1 |
| 20641 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20642 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20643 | (exit $ac_status); } && { |
| 20644 | test -z "$ac_c_werror_flag" || |
| 20645 | test ! -s conftest.err |
| 20646 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20647 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20648 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20649 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20651 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20652 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20653 | /* confdefs.h. */ |
| 20654 | _ACEOF |
| 20655 | cat confdefs.h >>conftest.$ac_ext |
| 20656 | cat >>conftest.$ac_ext <<_ACEOF |
| 20657 | /* end confdefs.h. */ |
| 20658 | $ac_includes_default |
| 20659 | int |
| 20660 | main () |
| 20661 | { |
| 20662 | static struct stat ac_aggr; |
| 20663 | if (sizeof ac_aggr.st_blocks) |
| 20664 | return 0; |
| 20665 | ; |
| 20666 | return 0; |
| 20667 | } |
| 20668 | _ACEOF |
| 20669 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20670 | if { (ac_try="$ac_compile" |
| 20671 | case "(($ac_try" in |
| 20672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20673 | *) ac_try_echo=$ac_try;; |
| 20674 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20675 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20676 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20677 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20678 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20679 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20680 | rm -f conftest.er1 |
| 20681 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20682 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20683 | (exit $ac_status); } && { |
| 20684 | test -z "$ac_c_werror_flag" || |
| 20685 | test ! -s conftest.err |
| 20686 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20687 | ac_cv_member_struct_stat_st_blocks=yes |
| 20688 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20689 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20691 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20692 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20693 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20694 | |
| 20695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20696 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20697 | |
| 20698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20699 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20700 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 20701 | $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; } |
| 20702 | if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20703 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20704 | cat >>confdefs.h <<_ACEOF |
| 20705 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 20706 | _ACEOF |
| 20707 | |
| 20708 | |
| 20709 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20710 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20711 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20712 | |
| 20713 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20714 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20715 | *" fileblocks.$ac_objext "* ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20716 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 20717 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20718 | esac |
| 20719 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20720 | fi |
| 20721 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20722 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20723 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20724 | { $as_echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 20725 | $as_echo_n "checking for time.h that defines altzone... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20726 | if test "${ac_cv_header_time_altzone+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20727 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20728 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20729 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20730 | /* confdefs.h. */ |
| 20731 | _ACEOF |
| 20732 | cat confdefs.h >>conftest.$ac_ext |
| 20733 | cat >>conftest.$ac_ext <<_ACEOF |
| 20734 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20735 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20736 | int |
| 20737 | main () |
| 20738 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20739 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20740 | ; |
| 20741 | return 0; |
| 20742 | } |
| 20743 | _ACEOF |
| 20744 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20745 | if { (ac_try="$ac_compile" |
| 20746 | case "(($ac_try" in |
| 20747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20748 | *) ac_try_echo=$ac_try;; |
| 20749 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20750 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20751 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20752 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20753 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20754 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20755 | rm -f conftest.er1 |
| 20756 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20757 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20758 | (exit $ac_status); } && { |
| 20759 | test -z "$ac_c_werror_flag" || |
| 20760 | test ! -s conftest.err |
| 20761 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20762 | ac_cv_header_time_altzone=yes |
| 20763 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20764 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20766 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20767 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20768 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20769 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20771 | fi |
| 20772 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20773 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 20774 | $as_echo "$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20775 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20776 | |
| 20777 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20778 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20779 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20780 | |
| 20781 | fi |
| 20782 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20783 | was_it_defined=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20784 | { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 20785 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20786 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20787 | /* confdefs.h. */ |
| 20788 | _ACEOF |
| 20789 | cat confdefs.h >>conftest.$ac_ext |
| 20790 | cat >>conftest.$ac_ext <<_ACEOF |
| 20791 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20792 | |
| 20793 | #include <sys/types.h> |
| 20794 | #include <sys/select.h> |
| 20795 | #include <sys/time.h> |
| 20796 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20797 | int |
| 20798 | main () |
| 20799 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20800 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20801 | ; |
| 20802 | return 0; |
| 20803 | } |
| 20804 | _ACEOF |
| 20805 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20806 | if { (ac_try="$ac_compile" |
| 20807 | case "(($ac_try" in |
| 20808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20809 | *) ac_try_echo=$ac_try;; |
| 20810 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20811 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20812 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20813 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20814 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20816 | rm -f conftest.er1 |
| 20817 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20818 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20819 | (exit $ac_status); } && { |
| 20820 | test -z "$ac_c_werror_flag" || |
| 20821 | test ! -s conftest.err |
| 20822 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20823 | |
| 20824 | |
| 20825 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20826 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20827 | _ACEOF |
| 20828 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20829 | was_it_defined=yes |
| 20830 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20831 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20832 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20834 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20835 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20836 | fi |
| 20837 | |
| 20838 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20839 | { $as_echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 20840 | $as_echo "$was_it_defined" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20841 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20842 | { $as_echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 20843 | $as_echo_n "checking for addrinfo... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20844 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20845 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20846 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20847 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20848 | /* confdefs.h. */ |
| 20849 | _ACEOF |
| 20850 | cat confdefs.h >>conftest.$ac_ext |
| 20851 | cat >>conftest.$ac_ext <<_ACEOF |
| 20852 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20853 | |
| 20854 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20855 | int |
| 20856 | main () |
| 20857 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20858 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20859 | ; |
| 20860 | return 0; |
| 20861 | } |
| 20862 | _ACEOF |
| 20863 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20864 | if { (ac_try="$ac_compile" |
| 20865 | case "(($ac_try" in |
| 20866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20867 | *) ac_try_echo=$ac_try;; |
| 20868 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20869 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20870 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20871 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20872 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20873 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20874 | rm -f conftest.er1 |
| 20875 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20876 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20877 | (exit $ac_status); } && { |
| 20878 | test -z "$ac_c_werror_flag" || |
| 20879 | test ! -s conftest.err |
| 20880 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20881 | ac_cv_struct_addrinfo=yes |
| 20882 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20883 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20885 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20886 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20887 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20888 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20890 | fi |
| 20891 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20892 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 20893 | $as_echo "$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20894 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20895 | |
| 20896 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20897 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20898 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20899 | |
| 20900 | fi |
| 20901 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20902 | { $as_echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 20903 | $as_echo_n "checking for sockaddr_storage... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20904 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20905 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20906 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20907 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20908 | /* confdefs.h. */ |
| 20909 | _ACEOF |
| 20910 | cat confdefs.h >>conftest.$ac_ext |
| 20911 | cat >>conftest.$ac_ext <<_ACEOF |
| 20912 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20913 | |
| 20914 | # include <sys/types.h> |
| 20915 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20916 | int |
| 20917 | main () |
| 20918 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20919 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20920 | ; |
| 20921 | return 0; |
| 20922 | } |
| 20923 | _ACEOF |
| 20924 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20925 | if { (ac_try="$ac_compile" |
| 20926 | case "(($ac_try" in |
| 20927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20928 | *) ac_try_echo=$ac_try;; |
| 20929 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20930 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20931 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20932 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20933 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20935 | rm -f conftest.er1 |
| 20936 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20937 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20938 | (exit $ac_status); } && { |
| 20939 | test -z "$ac_c_werror_flag" || |
| 20940 | test ! -s conftest.err |
| 20941 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20942 | ac_cv_struct_sockaddr_storage=yes |
| 20943 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20944 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20946 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20947 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20948 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20949 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20951 | fi |
| 20952 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20953 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 20954 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20955 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20956 | |
| 20957 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20958 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20959 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20960 | |
| 20961 | fi |
| 20962 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20963 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20964 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20965 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20966 | { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 20967 | $as_echo_n "checking whether char is unsigned... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20968 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20969 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20970 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20971 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20972 | /* confdefs.h. */ |
| 20973 | _ACEOF |
| 20974 | cat confdefs.h >>conftest.$ac_ext |
| 20975 | cat >>conftest.$ac_ext <<_ACEOF |
| 20976 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20977 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20978 | int |
| 20979 | main () |
| 20980 | { |
| 20981 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 20982 | test_array [0] = 0 |
| 20983 | |
| 20984 | ; |
| 20985 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20986 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20987 | _ACEOF |
| 20988 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20989 | if { (ac_try="$ac_compile" |
| 20990 | case "(($ac_try" in |
| 20991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20992 | *) ac_try_echo=$ac_try;; |
| 20993 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 20994 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20995 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20996 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20997 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20998 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20999 | rm -f conftest.er1 |
| 21000 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21001 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21002 | (exit $ac_status); } && { |
| 21003 | test -z "$ac_c_werror_flag" || |
| 21004 | test ! -s conftest.err |
| 21005 | } && test -s conftest.$ac_objext; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21006 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21007 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21008 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21010 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21011 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21012 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21013 | |
| 21014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21015 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21016 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 21017 | $as_echo "$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21018 | 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] | 21019 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21020 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21021 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21022 | |
| 21023 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21024 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21025 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 21026 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21027 | if test "${ac_cv_c_const+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21028 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21029 | else |
| 21030 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21031 | /* confdefs.h. */ |
| 21032 | _ACEOF |
| 21033 | cat confdefs.h >>conftest.$ac_ext |
| 21034 | cat >>conftest.$ac_ext <<_ACEOF |
| 21035 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21036 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21037 | int |
| 21038 | main () |
| 21039 | { |
| 21040 | /* FIXME: Include the comments suggested by Paul. */ |
| 21041 | #ifndef __cplusplus |
| 21042 | /* Ultrix mips cc rejects this. */ |
| 21043 | typedef int charset[2]; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21044 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21045 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21046 | char const *const *pcpcc; |
| 21047 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21048 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 21049 | struct point {int x, y;}; |
| 21050 | static struct point const zero = {0,0}; |
| 21051 | /* AIX XL C 1.02.0.0 rejects this. |
| 21052 | It does not let you subtract one const X* pointer from another in |
| 21053 | an arm of an if-expression whose if-part is not a constant |
| 21054 | expression */ |
| 21055 | const char *g = "string"; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21056 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21057 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21058 | ++pcpcc; |
| 21059 | ppc = (char**) pcpcc; |
| 21060 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21061 | { /* SCO 3.2v4 cc rejects this. */ |
| 21062 | char *t; |
| 21063 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21065 | *t++ = 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21066 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21067 | } |
| 21068 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 21069 | int x[] = {25, 17}; |
| 21070 | const int *foo = &x[0]; |
| 21071 | ++foo; |
| 21072 | } |
| 21073 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 21074 | typedef const int *iptr; |
| 21075 | iptr p = 0; |
| 21076 | ++p; |
| 21077 | } |
| 21078 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 21079 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 21080 | struct s { int j; const int *ap[3]; }; |
| 21081 | struct s *b; b->j = 5; |
| 21082 | } |
| 21083 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 21084 | const int foo = 10; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21085 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21086 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21087 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21088 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21090 | ; |
| 21091 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21092 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21093 | _ACEOF |
| 21094 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21095 | if { (ac_try="$ac_compile" |
| 21096 | case "(($ac_try" in |
| 21097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21098 | *) ac_try_echo=$ac_try;; |
| 21099 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21100 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21101 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21102 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21103 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21104 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21105 | rm -f conftest.er1 |
| 21106 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21107 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21108 | (exit $ac_status); } && { |
| 21109 | test -z "$ac_c_werror_flag" || |
| 21110 | test ! -s conftest.err |
| 21111 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21112 | ac_cv_c_const=yes |
| 21113 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21114 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21116 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21117 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21118 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21119 | |
| 21120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21121 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21122 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 21123 | $as_echo "$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21124 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21125 | |
| 21126 | cat >>confdefs.h <<\_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21127 | #define const /**/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21128 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21129 | |
| 21130 | fi |
| 21131 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21132 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21133 | works=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21134 | { $as_echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 21135 | $as_echo_n "checking for working volatile... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21136 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21137 | /* confdefs.h. */ |
| 21138 | _ACEOF |
| 21139 | cat confdefs.h >>conftest.$ac_ext |
| 21140 | cat >>conftest.$ac_ext <<_ACEOF |
| 21141 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21143 | int |
| 21144 | main () |
| 21145 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21146 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21147 | ; |
| 21148 | return 0; |
| 21149 | } |
| 21150 | _ACEOF |
| 21151 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21152 | if { (ac_try="$ac_compile" |
| 21153 | case "(($ac_try" in |
| 21154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21155 | *) ac_try_echo=$ac_try;; |
| 21156 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21157 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21158 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21159 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21160 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21162 | rm -f conftest.er1 |
| 21163 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21164 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21165 | (exit $ac_status); } && { |
| 21166 | test -z "$ac_c_werror_flag" || |
| 21167 | test ! -s conftest.err |
| 21168 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21169 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21170 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21171 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21173 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21174 | |
| 21175 | cat >>confdefs.h <<\_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21176 | #define volatile /**/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21177 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21178 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 21179 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21180 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21181 | |
| 21182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21183 | { $as_echo "$as_me:$LINENO: result: $works" >&5 |
| 21184 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21185 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21186 | works=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21187 | { $as_echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 21188 | $as_echo_n "checking for working signed char... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21189 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21190 | /* confdefs.h. */ |
| 21191 | _ACEOF |
| 21192 | cat confdefs.h >>conftest.$ac_ext |
| 21193 | cat >>conftest.$ac_ext <<_ACEOF |
| 21194 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 21195 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21196 | int |
| 21197 | main () |
| 21198 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21199 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21200 | ; |
| 21201 | return 0; |
| 21202 | } |
| 21203 | _ACEOF |
| 21204 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21205 | if { (ac_try="$ac_compile" |
| 21206 | case "(($ac_try" in |
| 21207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21208 | *) ac_try_echo=$ac_try;; |
| 21209 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21210 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21211 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21212 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21213 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21214 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21215 | rm -f conftest.er1 |
| 21216 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21217 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21218 | (exit $ac_status); } && { |
| 21219 | test -z "$ac_c_werror_flag" || |
| 21220 | test ! -s conftest.err |
| 21221 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21222 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 21223 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21224 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21226 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21227 | |
| 21228 | cat >>confdefs.h <<\_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21229 | #define signed /**/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21230 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21231 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 21232 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21233 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21234 | |
| 21235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21236 | { $as_echo "$as_me:$LINENO: result: $works" >&5 |
| 21237 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21238 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21239 | have_prototypes=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21240 | { $as_echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 21241 | $as_echo_n "checking for prototypes... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21242 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21243 | /* confdefs.h. */ |
| 21244 | _ACEOF |
| 21245 | cat confdefs.h >>conftest.$ac_ext |
| 21246 | cat >>conftest.$ac_ext <<_ACEOF |
| 21247 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21248 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21249 | int |
| 21250 | main () |
| 21251 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21252 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21253 | ; |
| 21254 | return 0; |
| 21255 | } |
| 21256 | _ACEOF |
| 21257 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21258 | if { (ac_try="$ac_compile" |
| 21259 | case "(($ac_try" in |
| 21260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21261 | *) ac_try_echo=$ac_try;; |
| 21262 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21263 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21264 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21265 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21266 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21267 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21268 | rm -f conftest.er1 |
| 21269 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21270 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21271 | (exit $ac_status); } && { |
| 21272 | test -z "$ac_c_werror_flag" || |
| 21273 | test ! -s conftest.err |
| 21274 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21275 | |
| 21276 | |
| 21277 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21278 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21279 | _ACEOF |
| 21280 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 21281 | have_prototypes=yes |
| 21282 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 21283 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21284 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21286 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21287 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21288 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21289 | |
| 21290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21291 | { $as_echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 21292 | $as_echo "$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21293 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21294 | works=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21295 | { $as_echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 21296 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21297 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21298 | /* confdefs.h. */ |
| 21299 | _ACEOF |
| 21300 | cat confdefs.h >>conftest.$ac_ext |
| 21301 | cat >>conftest.$ac_ext <<_ACEOF |
| 21302 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21303 | |
| 21304 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 21305 | int foo(int x, ...) { |
| 21306 | va_list va; |
| 21307 | va_start(va, x); |
| 21308 | va_arg(va, int); |
| 21309 | va_arg(va, char *); |
| 21310 | va_arg(va, double); |
| 21311 | return 0; |
| 21312 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21313 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21314 | int |
| 21315 | main () |
| 21316 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 21317 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21318 | ; |
| 21319 | return 0; |
| 21320 | } |
| 21321 | _ACEOF |
| 21322 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21323 | if { (ac_try="$ac_compile" |
| 21324 | case "(($ac_try" in |
| 21325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21326 | *) ac_try_echo=$ac_try;; |
| 21327 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21328 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21329 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21330 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21331 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21333 | rm -f conftest.er1 |
| 21334 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21335 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21336 | (exit $ac_status); } && { |
| 21337 | test -z "$ac_c_werror_flag" || |
| 21338 | test ! -s conftest.err |
| 21339 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21340 | |
| 21341 | |
| 21342 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21343 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21344 | _ACEOF |
| 21345 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 21346 | works=yes |
| 21347 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 21348 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21349 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21351 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21352 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21353 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21354 | |
| 21355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21356 | { $as_echo "$as_me:$LINENO: result: $works" >&5 |
| 21357 | $as_echo "$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21358 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21359 | # check for socketpair |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21360 | { $as_echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 21361 | $as_echo_n "checking for socketpair... " >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21362 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21363 | /* confdefs.h. */ |
| 21364 | _ACEOF |
| 21365 | cat confdefs.h >>conftest.$ac_ext |
| 21366 | cat >>conftest.$ac_ext <<_ACEOF |
| 21367 | /* end confdefs.h. */ |
| 21368 | |
| 21369 | #include <sys/types.h> |
| 21370 | #include <sys/socket.h> |
| 21371 | |
| 21372 | int |
| 21373 | main () |
| 21374 | { |
| 21375 | void *x=socketpair |
| 21376 | ; |
| 21377 | return 0; |
| 21378 | } |
| 21379 | _ACEOF |
| 21380 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21381 | if { (ac_try="$ac_compile" |
| 21382 | case "(($ac_try" in |
| 21383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21384 | *) ac_try_echo=$ac_try;; |
| 21385 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21386 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21387 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21388 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21389 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21391 | rm -f conftest.er1 |
| 21392 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21393 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21394 | (exit $ac_status); } && { |
| 21395 | test -z "$ac_c_werror_flag" || |
| 21396 | test ! -s conftest.err |
| 21397 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21398 | |
| 21399 | cat >>confdefs.h <<\_ACEOF |
| 21400 | #define HAVE_SOCKETPAIR 1 |
| 21401 | _ACEOF |
| 21402 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21403 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 21404 | $as_echo "yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21405 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21406 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21408 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21409 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 21410 | $as_echo "no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21411 | |
| 21412 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21413 | |
| 21414 | 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] | 21415 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21416 | # check if sockaddr has sa_len member |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21417 | { $as_echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 21418 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21419 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21420 | /* confdefs.h. */ |
| 21421 | _ACEOF |
| 21422 | cat confdefs.h >>conftest.$ac_ext |
| 21423 | cat >>conftest.$ac_ext <<_ACEOF |
| 21424 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21425 | #include <sys/types.h> |
| 21426 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21427 | int |
| 21428 | main () |
| 21429 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21430 | struct sockaddr x; |
| 21431 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21432 | ; |
| 21433 | return 0; |
| 21434 | } |
| 21435 | _ACEOF |
| 21436 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21437 | if { (ac_try="$ac_compile" |
| 21438 | case "(($ac_try" in |
| 21439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21440 | *) ac_try_echo=$ac_try;; |
| 21441 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21442 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21443 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21444 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21445 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21447 | rm -f conftest.er1 |
| 21448 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21449 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21450 | (exit $ac_status); } && { |
| 21451 | test -z "$ac_c_werror_flag" || |
| 21452 | test ! -s conftest.err |
| 21453 | } && test -s conftest.$ac_objext; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21454 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 21455 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21456 | |
| 21457 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21458 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21459 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21460 | |
| 21461 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21462 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21464 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21465 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 21466 | $as_echo "no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21467 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21468 | |
| 21469 | 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] | 21470 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21471 | va_list_is_array=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21472 | { $as_echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 21473 | $as_echo_n "checking whether va_list is an array... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21474 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21475 | /* confdefs.h. */ |
| 21476 | _ACEOF |
| 21477 | cat confdefs.h >>conftest.$ac_ext |
| 21478 | cat >>conftest.$ac_ext <<_ACEOF |
| 21479 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21480 | |
| 21481 | #ifdef HAVE_STDARG_PROTOTYPES |
| 21482 | #include <stdarg.h> |
| 21483 | #else |
| 21484 | #include <varargs.h> |
| 21485 | #endif |
| 21486 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21487 | int |
| 21488 | main () |
| 21489 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21490 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21491 | ; |
| 21492 | return 0; |
| 21493 | } |
| 21494 | _ACEOF |
| 21495 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21496 | if { (ac_try="$ac_compile" |
| 21497 | case "(($ac_try" in |
| 21498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21499 | *) ac_try_echo=$ac_try;; |
| 21500 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21501 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21502 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21503 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21504 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21505 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21506 | rm -f conftest.er1 |
| 21507 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21508 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21509 | (exit $ac_status); } && { |
| 21510 | test -z "$ac_c_werror_flag" || |
| 21511 | test ! -s conftest.err |
| 21512 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21513 | : |
| 21514 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21515 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21517 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21518 | |
| 21519 | |
| 21520 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21521 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21522 | _ACEOF |
| 21523 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21524 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 21525 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21526 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21527 | |
| 21528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21529 | { $as_echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 21530 | $as_echo "$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21531 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21532 | # 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] | 21533 | |
| 21534 | |
| 21535 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21536 | { $as_echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 21537 | $as_echo_n "checking for gethostbyname_r... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21538 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21539 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21540 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21541 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21542 | /* confdefs.h. */ |
| 21543 | _ACEOF |
| 21544 | cat confdefs.h >>conftest.$ac_ext |
| 21545 | cat >>conftest.$ac_ext <<_ACEOF |
| 21546 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21547 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 21548 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21549 | #define gethostbyname_r innocuous_gethostbyname_r |
| 21550 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21551 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21552 | which can conflict with char gethostbyname_r (); below. |
| 21553 | 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] | 21554 | <limits.h> exists even on freestanding compilers. */ |
| 21555 | |
| 21556 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21557 | # include <limits.h> |
| 21558 | #else |
| 21559 | # include <assert.h> |
| 21560 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21561 | |
| 21562 | #undef gethostbyname_r |
| 21563 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21564 | /* Override any GCC internal prototype to avoid an error. |
| 21565 | Use char because int might match the return type of a GCC |
| 21566 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21567 | #ifdef __cplusplus |
| 21568 | extern "C" |
| 21569 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21570 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21571 | /* The GNU C library defines this for functions which it implements |
| 21572 | to always fail with ENOSYS. Some functions are actually named |
| 21573 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21574 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21575 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21576 | #endif |
| 21577 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21578 | int |
| 21579 | main () |
| 21580 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21581 | return gethostbyname_r (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21582 | ; |
| 21583 | return 0; |
| 21584 | } |
| 21585 | _ACEOF |
| 21586 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21587 | if { (ac_try="$ac_link" |
| 21588 | case "(($ac_try" in |
| 21589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21590 | *) ac_try_echo=$ac_try;; |
| 21591 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21592 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21593 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21594 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21595 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21596 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21597 | rm -f conftest.er1 |
| 21598 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21599 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21600 | (exit $ac_status); } && { |
| 21601 | test -z "$ac_c_werror_flag" || |
| 21602 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21603 | } && test -s conftest$ac_exeext && { |
| 21604 | test "$cross_compiling" = yes || |
| 21605 | $as_test_x conftest$ac_exeext |
| 21606 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21607 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21608 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21609 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21611 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21612 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21613 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21614 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21615 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21616 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21617 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21618 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21619 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 21620 | $as_echo "$ac_cv_func_gethostbyname_r" >&6; } |
| 21621 | if test "x$ac_cv_func_gethostbyname_r" = x""yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21622 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21623 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21624 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21625 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21626 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21627 | { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 21628 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21629 | OLD_CFLAGS=$CFLAGS |
| 21630 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21631 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21632 | /* confdefs.h. */ |
| 21633 | _ACEOF |
| 21634 | cat confdefs.h >>conftest.$ac_ext |
| 21635 | cat >>conftest.$ac_ext <<_ACEOF |
| 21636 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21637 | |
| 21638 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21640 | int |
| 21641 | main () |
| 21642 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21643 | |
| 21644 | char *name; |
| 21645 | struct hostent *he, *res; |
| 21646 | char buffer[2048]; |
| 21647 | int buflen = 2048; |
| 21648 | int h_errnop; |
| 21649 | |
| 21650 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21651 | |
| 21652 | ; |
| 21653 | return 0; |
| 21654 | } |
| 21655 | _ACEOF |
| 21656 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21657 | if { (ac_try="$ac_compile" |
| 21658 | case "(($ac_try" in |
| 21659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21660 | *) ac_try_echo=$ac_try;; |
| 21661 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21662 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21663 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21664 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21665 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21667 | rm -f conftest.er1 |
| 21668 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21669 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21670 | (exit $ac_status); } && { |
| 21671 | test -z "$ac_c_werror_flag" || |
| 21672 | test ! -s conftest.err |
| 21673 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21674 | |
| 21675 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21676 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21677 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21678 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21679 | |
| 21680 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21681 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21682 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21683 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21684 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 21685 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21686 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21687 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21688 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21690 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21691 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21692 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 21693 | $as_echo "no" >&6; } |
| 21694 | { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 21695 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21696 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21697 | /* confdefs.h. */ |
| 21698 | _ACEOF |
| 21699 | cat confdefs.h >>conftest.$ac_ext |
| 21700 | cat >>conftest.$ac_ext <<_ACEOF |
| 21701 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21702 | |
| 21703 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21704 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21705 | int |
| 21706 | main () |
| 21707 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21708 | |
| 21709 | char *name; |
| 21710 | struct hostent *he; |
| 21711 | char buffer[2048]; |
| 21712 | int buflen = 2048; |
| 21713 | int h_errnop; |
| 21714 | |
| 21715 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21716 | |
| 21717 | ; |
| 21718 | return 0; |
| 21719 | } |
| 21720 | _ACEOF |
| 21721 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21722 | if { (ac_try="$ac_compile" |
| 21723 | case "(($ac_try" in |
| 21724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21725 | *) ac_try_echo=$ac_try;; |
| 21726 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21727 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21728 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21729 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21730 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21731 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21732 | rm -f conftest.er1 |
| 21733 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21734 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21735 | (exit $ac_status); } && { |
| 21736 | test -z "$ac_c_werror_flag" || |
| 21737 | test ! -s conftest.err |
| 21738 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21739 | |
| 21740 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21741 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21742 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21743 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21744 | |
| 21745 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21746 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21747 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21748 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21749 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 21750 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21751 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21752 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21753 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21755 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21756 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21757 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 21758 | $as_echo "no" >&6; } |
| 21759 | { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 21760 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21761 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21762 | /* confdefs.h. */ |
| 21763 | _ACEOF |
| 21764 | cat confdefs.h >>conftest.$ac_ext |
| 21765 | cat >>conftest.$ac_ext <<_ACEOF |
| 21766 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21767 | |
| 21768 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21769 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21770 | int |
| 21771 | main () |
| 21772 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21773 | |
| 21774 | char *name; |
| 21775 | struct hostent *he; |
| 21776 | struct hostent_data data; |
| 21777 | |
| 21778 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21779 | |
| 21780 | ; |
| 21781 | return 0; |
| 21782 | } |
| 21783 | _ACEOF |
| 21784 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21785 | if { (ac_try="$ac_compile" |
| 21786 | case "(($ac_try" in |
| 21787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21788 | *) ac_try_echo=$ac_try;; |
| 21789 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21790 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21791 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21792 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21793 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21795 | rm -f conftest.er1 |
| 21796 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21797 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21798 | (exit $ac_status); } && { |
| 21799 | test -z "$ac_c_werror_flag" || |
| 21800 | test ! -s conftest.err |
| 21801 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21802 | |
| 21803 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21804 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21805 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21806 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21807 | |
| 21808 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21809 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21810 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21811 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21812 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 21813 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21814 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21815 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21816 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21818 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21819 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21820 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 21821 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21822 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21823 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21824 | |
| 21825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21826 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21827 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21828 | |
| 21829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21830 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21831 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21832 | |
| 21833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21834 | CFLAGS=$OLD_CFLAGS |
| 21835 | |
| 21836 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21837 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21838 | |
| 21839 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 21840 | do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21841 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21842 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21843 | $as_echo_n "checking for $ac_func... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21844 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21845 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21846 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21847 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21848 | /* confdefs.h. */ |
| 21849 | _ACEOF |
| 21850 | cat confdefs.h >>conftest.$ac_ext |
| 21851 | cat >>conftest.$ac_ext <<_ACEOF |
| 21852 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21853 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21854 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21855 | #define $ac_func innocuous_$ac_func |
| 21856 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21857 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21858 | which can conflict with char $ac_func (); below. |
| 21859 | 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] | 21860 | <limits.h> exists even on freestanding compilers. */ |
| 21861 | |
| 21862 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21863 | # include <limits.h> |
| 21864 | #else |
| 21865 | # include <assert.h> |
| 21866 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21867 | |
| 21868 | #undef $ac_func |
| 21869 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21870 | /* Override any GCC internal prototype to avoid an error. |
| 21871 | Use char because int might match the return type of a GCC |
| 21872 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21873 | #ifdef __cplusplus |
| 21874 | extern "C" |
| 21875 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21876 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21877 | /* The GNU C library defines this for functions which it implements |
| 21878 | to always fail with ENOSYS. Some functions are actually named |
| 21879 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21880 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21881 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21882 | #endif |
| 21883 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21884 | int |
| 21885 | main () |
| 21886 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21887 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21888 | ; |
| 21889 | return 0; |
| 21890 | } |
| 21891 | _ACEOF |
| 21892 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21893 | if { (ac_try="$ac_link" |
| 21894 | case "(($ac_try" in |
| 21895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21896 | *) ac_try_echo=$ac_try;; |
| 21897 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21898 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21899 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21900 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21901 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21903 | rm -f conftest.er1 |
| 21904 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21905 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21906 | (exit $ac_status); } && { |
| 21907 | test -z "$ac_c_werror_flag" || |
| 21908 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21909 | } && test -s conftest$ac_exeext && { |
| 21910 | test "$cross_compiling" = yes || |
| 21911 | $as_test_x conftest$ac_exeext |
| 21912 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21913 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21914 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21915 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21917 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21918 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21919 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21920 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21921 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21922 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21923 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21924 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21925 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 21926 | $as_echo "$as_val"'` |
| 21927 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21928 | $as_echo "$ac_res" >&6; } |
| 21929 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 21930 | $as_echo "$as_val"'` |
| 21931 | if test "x$as_val" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21932 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21933 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21934 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21935 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21936 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 21937 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21938 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21939 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21940 | fi |
| 21941 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21942 | |
| 21943 | |
| 21944 | |
| 21945 | |
| 21946 | |
| 21947 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21948 | # checks for system services |
| 21949 | # (none yet) |
| 21950 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21951 | # Linux requires this for correct f.p. operations |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21952 | { $as_echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 21953 | $as_echo_n "checking for __fpu_control... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21954 | if test "${ac_cv_func___fpu_control+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 21955 | $as_echo_n "(cached) " >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21956 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21957 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21958 | /* confdefs.h. */ |
| 21959 | _ACEOF |
| 21960 | cat confdefs.h >>conftest.$ac_ext |
| 21961 | cat >>conftest.$ac_ext <<_ACEOF |
| 21962 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21963 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 21964 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21965 | #define __fpu_control innocuous___fpu_control |
| 21966 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21967 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21968 | which can conflict with char __fpu_control (); below. |
| 21969 | 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] | 21970 | <limits.h> exists even on freestanding compilers. */ |
| 21971 | |
| 21972 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21973 | # include <limits.h> |
| 21974 | #else |
| 21975 | # include <assert.h> |
| 21976 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21977 | |
| 21978 | #undef __fpu_control |
| 21979 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21980 | /* Override any GCC internal prototype to avoid an error. |
| 21981 | Use char because int might match the return type of a GCC |
| 21982 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21983 | #ifdef __cplusplus |
| 21984 | extern "C" |
| 21985 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21986 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21987 | /* The GNU C library defines this for functions which it implements |
| 21988 | to always fail with ENOSYS. Some functions are actually named |
| 21989 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21990 | #if defined __stub___fpu_control || defined __stub_____fpu_control |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21991 | choke me |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21992 | #endif |
| 21993 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21994 | int |
| 21995 | main () |
| 21996 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21997 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21998 | ; |
| 21999 | return 0; |
| 22000 | } |
| 22001 | _ACEOF |
| 22002 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22003 | if { (ac_try="$ac_link" |
| 22004 | case "(($ac_try" in |
| 22005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22006 | *) ac_try_echo=$ac_try;; |
| 22007 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22008 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22009 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22010 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22011 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22012 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22013 | rm -f conftest.er1 |
| 22014 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22015 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22016 | (exit $ac_status); } && { |
| 22017 | test -z "$ac_c_werror_flag" || |
| 22018 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22019 | } && test -s conftest$ac_exeext && { |
| 22020 | test "$cross_compiling" = yes || |
| 22021 | $as_test_x conftest$ac_exeext |
| 22022 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22023 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22024 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22025 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22027 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22028 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22029 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22030 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22031 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22032 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22033 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22034 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22035 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 22036 | $as_echo "$ac_cv_func___fpu_control" >&6; } |
| 22037 | if test "x$ac_cv_func___fpu_control" = x""yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22038 | : |
| 22039 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22040 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22041 | { $as_echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 22042 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22043 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22044 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22045 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22046 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 22047 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22048 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22049 | /* confdefs.h. */ |
| 22050 | _ACEOF |
| 22051 | cat confdefs.h >>conftest.$ac_ext |
| 22052 | cat >>conftest.$ac_ext <<_ACEOF |
| 22053 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22054 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22055 | /* Override any GCC internal prototype to avoid an error. |
| 22056 | Use char because int might match the return type of a GCC |
| 22057 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22058 | #ifdef __cplusplus |
| 22059 | extern "C" |
| 22060 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22061 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22062 | int |
| 22063 | main () |
| 22064 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22065 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22066 | ; |
| 22067 | return 0; |
| 22068 | } |
| 22069 | _ACEOF |
| 22070 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22071 | if { (ac_try="$ac_link" |
| 22072 | case "(($ac_try" in |
| 22073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22074 | *) ac_try_echo=$ac_try;; |
| 22075 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22076 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22077 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22078 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22079 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22080 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22081 | rm -f conftest.er1 |
| 22082 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22083 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22084 | (exit $ac_status); } && { |
| 22085 | test -z "$ac_c_werror_flag" || |
| 22086 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22087 | } && test -s conftest$ac_exeext && { |
| 22088 | test "$cross_compiling" = yes || |
| 22089 | $as_test_x conftest$ac_exeext |
| 22090 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22091 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22092 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22093 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22095 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22096 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22097 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22098 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22099 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22100 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22101 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22102 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22103 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22104 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 22105 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } |
| 22106 | if test "x$ac_cv_lib_ieee___fpu_control" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22107 | cat >>confdefs.h <<_ACEOF |
| 22108 | #define HAVE_LIBIEEE 1 |
| 22109 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22110 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 22111 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22112 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22113 | fi |
| 22114 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22115 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 22116 | fi |
| 22117 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22118 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22119 | # Check for --with-fpectl |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22120 | { $as_echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 22121 | $as_echo_n "checking for --with-fpectl... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22122 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22123 | # Check whether --with-fpectl was given. |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22124 | if test "${with_fpectl+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22125 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22126 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22127 | then |
| 22128 | |
| 22129 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22130 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22131 | _ACEOF |
| 22132 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22133 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 22134 | $as_echo "yes" >&6; } |
| 22135 | else { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 22136 | $as_echo "no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22137 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22138 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22139 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 22140 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22141 | fi |
| 22142 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22143 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22144 | # check for --with-libm=... |
| 22145 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 22146 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 22147 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 22148 | *) LIBM=-lm |
| 22149 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22150 | { $as_echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 22151 | $as_echo_n "checking for --with-libm=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22152 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22153 | # Check whether --with-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 22154 | if test "${with_libm+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22155 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22156 | if test "$withval" = no |
| 22157 | then LIBM= |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22158 | { $as_echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 22159 | $as_echo "force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22160 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22161 | then LIBM=$withval |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22162 | { $as_echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 22163 | $as_echo "set LIBM=\"$withval\"" >&6; } |
| 22164 | else { { $as_echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 22165 | $as_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] | 22166 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22167 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22168 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22169 | { $as_echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 22170 | $as_echo "default LIBM=\"$LIBM\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22171 | fi |
| 22172 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22173 | |
| 22174 | # check for --with-libc=... |
| 22175 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22176 | { $as_echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 22177 | $as_echo_n "checking for --with-libc=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22178 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22179 | # Check whether --with-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 22180 | if test "${with_libc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22181 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22182 | if test "$withval" = no |
| 22183 | then LIBC= |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22184 | { $as_echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 22185 | $as_echo "force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22186 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22187 | then LIBC=$withval |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22188 | { $as_echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 22189 | $as_echo "set LIBC=\"$withval\"" >&6; } |
| 22190 | else { { $as_echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 22191 | $as_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] | 22192 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22193 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 22194 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22195 | { $as_echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 22196 | $as_echo "default LIBC=\"$LIBC\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22197 | fi |
| 22198 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22199 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22200 | # ************************************************** |
| 22201 | # * Check for various properties of floating point * |
| 22202 | # ************************************************** |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 22203 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22204 | { $as_echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
| 22205 | $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22206 | if test "${ac_cv_little_endian_double+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22207 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22208 | else |
| 22209 | |
| 22210 | if test "$cross_compiling" = yes; then |
| 22211 | ac_cv_little_endian_double=no |
| 22212 | else |
| 22213 | cat >conftest.$ac_ext <<_ACEOF |
| 22214 | /* confdefs.h. */ |
| 22215 | _ACEOF |
| 22216 | cat confdefs.h >>conftest.$ac_ext |
| 22217 | cat >>conftest.$ac_ext <<_ACEOF |
| 22218 | /* end confdefs.h. */ |
| 22219 | |
| 22220 | #include <string.h> |
| 22221 | int main() { |
| 22222 | double x = 9006104071832581.0; |
| 22223 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) |
| 22224 | return 0; |
| 22225 | else |
| 22226 | return 1; |
| 22227 | } |
| 22228 | |
| 22229 | _ACEOF |
| 22230 | rm -f conftest$ac_exeext |
| 22231 | if { (ac_try="$ac_link" |
| 22232 | case "(($ac_try" in |
| 22233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22234 | *) ac_try_echo=$ac_try;; |
| 22235 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22236 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22237 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22238 | (eval "$ac_link") 2>&5 |
| 22239 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22240 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22241 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22242 | { (case "(($ac_try" in |
| 22243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22244 | *) ac_try_echo=$ac_try;; |
| 22245 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22246 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22247 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22248 | (eval "$ac_try") 2>&5 |
| 22249 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22250 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22251 | (exit $ac_status); }; }; then |
| 22252 | ac_cv_little_endian_double=yes |
| 22253 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22254 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 22255 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22257 | |
| 22258 | ( exit $ac_status ) |
| 22259 | ac_cv_little_endian_double=no |
| 22260 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22261 | rm -rf conftest.dSYM |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22262 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 22263 | fi |
| 22264 | |
| 22265 | |
| 22266 | fi |
| 22267 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22268 | { $as_echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5 |
| 22269 | $as_echo "$ac_cv_little_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22270 | if test "$ac_cv_little_endian_double" = yes |
| 22271 | then |
| 22272 | |
| 22273 | cat >>confdefs.h <<\_ACEOF |
| 22274 | #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1 |
| 22275 | _ACEOF |
| 22276 | |
| 22277 | fi |
| 22278 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22279 | { $as_echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
| 22280 | $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22281 | if test "${ac_cv_big_endian_double+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22282 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22283 | else |
| 22284 | |
| 22285 | if test "$cross_compiling" = yes; then |
| 22286 | ac_cv_big_endian_double=no |
| 22287 | else |
| 22288 | cat >conftest.$ac_ext <<_ACEOF |
| 22289 | /* confdefs.h. */ |
| 22290 | _ACEOF |
| 22291 | cat confdefs.h >>conftest.$ac_ext |
| 22292 | cat >>conftest.$ac_ext <<_ACEOF |
| 22293 | /* end confdefs.h. */ |
| 22294 | |
| 22295 | #include <string.h> |
| 22296 | int main() { |
| 22297 | double x = 9006104071832581.0; |
| 22298 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) |
| 22299 | return 0; |
| 22300 | else |
| 22301 | return 1; |
| 22302 | } |
| 22303 | |
| 22304 | _ACEOF |
| 22305 | rm -f conftest$ac_exeext |
| 22306 | if { (ac_try="$ac_link" |
| 22307 | case "(($ac_try" in |
| 22308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22309 | *) ac_try_echo=$ac_try;; |
| 22310 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22311 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22312 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22313 | (eval "$ac_link") 2>&5 |
| 22314 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22315 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22316 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22317 | { (case "(($ac_try" in |
| 22318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22319 | *) ac_try_echo=$ac_try;; |
| 22320 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22321 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22322 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22323 | (eval "$ac_try") 2>&5 |
| 22324 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22325 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22326 | (exit $ac_status); }; }; then |
| 22327 | ac_cv_big_endian_double=yes |
| 22328 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22329 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 22330 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22332 | |
| 22333 | ( exit $ac_status ) |
| 22334 | ac_cv_big_endian_double=no |
| 22335 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22336 | rm -rf conftest.dSYM |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22337 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 22338 | fi |
| 22339 | |
| 22340 | |
| 22341 | fi |
| 22342 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22343 | { $as_echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5 |
| 22344 | $as_echo "$ac_cv_big_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22345 | if test "$ac_cv_big_endian_double" = yes |
| 22346 | then |
| 22347 | |
| 22348 | cat >>confdefs.h <<\_ACEOF |
| 22349 | #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1 |
| 22350 | _ACEOF |
| 22351 | |
| 22352 | fi |
| 22353 | |
| 22354 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 22355 | # While Python doesn't currently have full support for these platforms |
| 22356 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 22357 | # conversions work. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22358 | { $as_echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
| 22359 | $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22360 | if test "${ac_cv_mixed_endian_double+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22361 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22362 | else |
| 22363 | |
| 22364 | if test "$cross_compiling" = yes; then |
| 22365 | ac_cv_mixed_endian_double=no |
| 22366 | else |
| 22367 | cat >conftest.$ac_ext <<_ACEOF |
| 22368 | /* confdefs.h. */ |
| 22369 | _ACEOF |
| 22370 | cat confdefs.h >>conftest.$ac_ext |
| 22371 | cat >>conftest.$ac_ext <<_ACEOF |
| 22372 | /* end confdefs.h. */ |
| 22373 | |
| 22374 | #include <string.h> |
| 22375 | int main() { |
| 22376 | double x = 9006104071832581.0; |
| 22377 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) |
| 22378 | return 0; |
| 22379 | else |
| 22380 | return 1; |
| 22381 | } |
| 22382 | |
| 22383 | _ACEOF |
| 22384 | rm -f conftest$ac_exeext |
| 22385 | if { (ac_try="$ac_link" |
| 22386 | case "(($ac_try" in |
| 22387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22388 | *) ac_try_echo=$ac_try;; |
| 22389 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22390 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22391 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22392 | (eval "$ac_link") 2>&5 |
| 22393 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22394 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22395 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22396 | { (case "(($ac_try" in |
| 22397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22398 | *) ac_try_echo=$ac_try;; |
| 22399 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22400 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22401 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22402 | (eval "$ac_try") 2>&5 |
| 22403 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22404 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22405 | (exit $ac_status); }; }; then |
| 22406 | ac_cv_mixed_endian_double=yes |
| 22407 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22408 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 22409 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22411 | |
| 22412 | ( exit $ac_status ) |
| 22413 | ac_cv_mixed_endian_double=no |
| 22414 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22415 | rm -rf conftest.dSYM |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22416 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 22417 | fi |
| 22418 | |
| 22419 | |
| 22420 | fi |
| 22421 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22422 | { $as_echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5 |
| 22423 | $as_echo "$ac_cv_mixed_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22424 | if test "$ac_cv_mixed_endian_double" = yes |
| 22425 | then |
| 22426 | |
| 22427 | cat >>confdefs.h <<\_ACEOF |
| 22428 | #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1 |
| 22429 | _ACEOF |
| 22430 | |
| 22431 | fi |
| 22432 | |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 22433 | # The short float repr introduced in Python 3.1 requires the |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 22434 | # correctly-rounded string <-> double conversion functions from |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 22435 | # 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] | 22436 | # rounding; this is a problem on x86, where the x87 FPU has a default |
| 22437 | # rounding precision of 64 bits. For gcc/x86, we try to fix this by |
| 22438 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22439 | if test "$GCC" = yes && test -n "`$CC -dM -E - </dev/null | grep i386`" |
| 22440 | then |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 22441 | # 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] | 22442 | # x87 control word. It should be, but you never know... |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22443 | { $as_echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
| 22444 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 22445 | cat >conftest.$ac_ext <<_ACEOF |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22446 | /* confdefs.h. */ |
| 22447 | _ACEOF |
| 22448 | cat confdefs.h >>conftest.$ac_ext |
| 22449 | cat >>conftest.$ac_ext <<_ACEOF |
| 22450 | /* end confdefs.h. */ |
| 22451 | |
| 22452 | int |
| 22453 | main () |
| 22454 | { |
| 22455 | |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 22456 | unsigned short cw; |
| 22457 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 22458 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22459 | |
| 22460 | ; |
| 22461 | return 0; |
| 22462 | } |
| 22463 | _ACEOF |
| 22464 | rm -f conftest.$ac_objext |
| 22465 | if { (ac_try="$ac_compile" |
| 22466 | case "(($ac_try" in |
| 22467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22468 | *) ac_try_echo=$ac_try;; |
| 22469 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22470 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22471 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22472 | (eval "$ac_compile") 2>conftest.er1 |
| 22473 | ac_status=$? |
| 22474 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22475 | rm -f conftest.er1 |
| 22476 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22477 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22478 | (exit $ac_status); } && { |
| 22479 | test -z "$ac_c_werror_flag" || |
| 22480 | test ! -s conftest.err |
| 22481 | } && test -s conftest.$ac_objext; then |
| 22482 | have_gcc_asm_for_x87=yes |
| 22483 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22484 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22486 | |
| 22487 | have_gcc_asm_for_x87=no |
| 22488 | fi |
| 22489 | |
| 22490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22491 | { $as_echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5 |
| 22492 | $as_echo "$have_gcc_asm_for_x87" >&6; } |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 22493 | if test "$have_gcc_asm_for_x87" = yes |
| 22494 | then |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22495 | |
| 22496 | cat >>confdefs.h <<\_ACEOF |
| 22497 | #define HAVE_GCC_ASM_FOR_X87 1 |
| 22498 | _ACEOF |
| 22499 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22500 | fi |
| 22501 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22502 | |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22503 | # Detect whether system arithmetic is subject to x87-style double |
| 22504 | # rounding issues. The result of this test has little meaning on non |
| 22505 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 22506 | # mode is round-to-nearest and double rounding issues are present, and |
| 22507 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22508 | { $as_echo "$as_me:$LINENO: checking for x87-style double rounding" >&5 |
| 22509 | $as_echo_n "checking for x87-style double rounding... " >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22510 | # $BASECFLAGS may affect the result |
| 22511 | ac_save_cc="$CC" |
| 22512 | CC="$CC $BASECFLAGS" |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22513 | if test "$cross_compiling" = yes; then |
| 22514 | ac_cv_x87_double_rounding=no |
| 22515 | else |
| 22516 | cat >conftest.$ac_ext <<_ACEOF |
| 22517 | /* confdefs.h. */ |
| 22518 | _ACEOF |
| 22519 | cat confdefs.h >>conftest.$ac_ext |
| 22520 | cat >>conftest.$ac_ext <<_ACEOF |
| 22521 | /* end confdefs.h. */ |
| 22522 | |
| 22523 | #include <stdlib.h> |
| 22524 | #include <math.h> |
| 22525 | int main() { |
| 22526 | volatile double x, y, z; |
| 22527 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 22528 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 22529 | y = 1./x; |
| 22530 | if (y != 1.) |
| 22531 | exit(0); |
| 22532 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 22533 | x = 1e16; |
| 22534 | y = 2.99999; |
| 22535 | z = x + y; |
| 22536 | if (z != 1e16+4.) |
| 22537 | exit(0); |
| 22538 | /* both tests show evidence of double rounding */ |
| 22539 | exit(1); |
| 22540 | } |
| 22541 | |
| 22542 | _ACEOF |
| 22543 | rm -f conftest$ac_exeext |
| 22544 | if { (ac_try="$ac_link" |
| 22545 | case "(($ac_try" in |
| 22546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22547 | *) ac_try_echo=$ac_try;; |
| 22548 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22549 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22550 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22551 | (eval "$ac_link") 2>&5 |
| 22552 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22553 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22554 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22555 | { (case "(($ac_try" in |
| 22556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22557 | *) ac_try_echo=$ac_try;; |
| 22558 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22559 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22560 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22561 | (eval "$ac_try") 2>&5 |
| 22562 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22563 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22564 | (exit $ac_status); }; }; then |
| 22565 | ac_cv_x87_double_rounding=no |
| 22566 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22567 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 22568 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22570 | |
| 22571 | ( exit $ac_status ) |
| 22572 | ac_cv_x87_double_rounding=yes |
| 22573 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22574 | rm -rf conftest.dSYM |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22575 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 22576 | fi |
| 22577 | |
| 22578 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22579 | CC="$ac_save_cc" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22580 | { $as_echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5 |
| 22581 | $as_echo "$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22582 | if test "$ac_cv_x87_double_rounding" = yes |
| 22583 | then |
| 22584 | |
| 22585 | cat >>confdefs.h <<\_ACEOF |
| 22586 | #define X87_DOUBLE_ROUNDING 1 |
| 22587 | _ACEOF |
| 22588 | |
| 22589 | fi |
| 22590 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 22591 | # ************************************ |
| 22592 | # * Check for mathematical functions * |
| 22593 | # ************************************ |
| 22594 | |
| 22595 | LIBS_SAVE=$LIBS |
| 22596 | LIBS="$LIBS $LIBM" |
| 22597 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 22598 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 22599 | # -0. on some architectures. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22600 | { $as_echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5 |
| 22601 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 22602 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22603 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 22604 | else |
| 22605 | |
| 22606 | if test "$cross_compiling" = yes; then |
| 22607 | ac_cv_tanh_preserves_zero_sign=no |
| 22608 | else |
| 22609 | cat >conftest.$ac_ext <<_ACEOF |
| 22610 | /* confdefs.h. */ |
| 22611 | _ACEOF |
| 22612 | cat confdefs.h >>conftest.$ac_ext |
| 22613 | cat >>conftest.$ac_ext <<_ACEOF |
| 22614 | /* end confdefs.h. */ |
| 22615 | |
| 22616 | #include <math.h> |
| 22617 | #include <stdlib.h> |
| 22618 | int main() { |
| 22619 | /* return 0 if either negative zeros don't exist |
| 22620 | on this platform or if negative zeros exist |
| 22621 | and tanh(-0.) == -0. */ |
| 22622 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 22623 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 22624 | else exit(1); |
| 22625 | } |
| 22626 | |
| 22627 | _ACEOF |
| 22628 | rm -f conftest$ac_exeext |
| 22629 | if { (ac_try="$ac_link" |
| 22630 | case "(($ac_try" in |
| 22631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22632 | *) ac_try_echo=$ac_try;; |
| 22633 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22634 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22635 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 22636 | (eval "$ac_link") 2>&5 |
| 22637 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22638 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 22639 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22640 | { (case "(($ac_try" in |
| 22641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22642 | *) ac_try_echo=$ac_try;; |
| 22643 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22644 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22645 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 22646 | (eval "$ac_try") 2>&5 |
| 22647 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22648 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 22649 | (exit $ac_status); }; }; then |
| 22650 | ac_cv_tanh_preserves_zero_sign=yes |
| 22651 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22652 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 22653 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 22654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22655 | |
| 22656 | ( exit $ac_status ) |
| 22657 | ac_cv_tanh_preserves_zero_sign=no |
| 22658 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22659 | rm -rf conftest.dSYM |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 22660 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 22661 | fi |
| 22662 | |
| 22663 | |
| 22664 | fi |
| 22665 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22666 | { $as_echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 22667 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 22668 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 22669 | then |
| 22670 | |
| 22671 | cat >>confdefs.h <<\_ACEOF |
| 22672 | #define TANH_PRESERVES_ZERO_SIGN 1 |
| 22673 | _ACEOF |
| 22674 | |
| 22675 | fi |
| 22676 | |
| 22677 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 22678 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22679 | |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 22680 | |
| 22681 | |
| 22682 | |
| 22683 | |
| 22684 | |
Mark Dickinson | f253786 | 2009-04-18 13:58:18 +0000 | [diff] [blame] | 22685 | |
| 22686 | for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 22687 | do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22688 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22689 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22690 | $as_echo_n "checking for $ac_func... " >&6; } |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 22691 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22692 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 22693 | else |
| 22694 | cat >conftest.$ac_ext <<_ACEOF |
| 22695 | /* confdefs.h. */ |
| 22696 | _ACEOF |
| 22697 | cat confdefs.h >>conftest.$ac_ext |
| 22698 | cat >>conftest.$ac_ext <<_ACEOF |
| 22699 | /* end confdefs.h. */ |
| 22700 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22701 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22702 | #define $ac_func innocuous_$ac_func |
| 22703 | |
| 22704 | /* System header to define __stub macros and hopefully few prototypes, |
| 22705 | which can conflict with char $ac_func (); below. |
| 22706 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22707 | <limits.h> exists even on freestanding compilers. */ |
| 22708 | |
| 22709 | #ifdef __STDC__ |
| 22710 | # include <limits.h> |
| 22711 | #else |
| 22712 | # include <assert.h> |
| 22713 | #endif |
| 22714 | |
| 22715 | #undef $ac_func |
| 22716 | |
| 22717 | /* Override any GCC internal prototype to avoid an error. |
| 22718 | Use char because int might match the return type of a GCC |
| 22719 | builtin and then its argument prototype would still apply. */ |
| 22720 | #ifdef __cplusplus |
| 22721 | extern "C" |
| 22722 | #endif |
| 22723 | char $ac_func (); |
| 22724 | /* The GNU C library defines this for functions which it implements |
| 22725 | to always fail with ENOSYS. Some functions are actually named |
| 22726 | something starting with __ and the normal name is an alias. */ |
| 22727 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 22728 | choke me |
| 22729 | #endif |
| 22730 | |
| 22731 | int |
| 22732 | main () |
| 22733 | { |
| 22734 | return $ac_func (); |
| 22735 | ; |
| 22736 | return 0; |
| 22737 | } |
| 22738 | _ACEOF |
| 22739 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22740 | if { (ac_try="$ac_link" |
| 22741 | case "(($ac_try" in |
| 22742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22743 | *) ac_try_echo=$ac_try;; |
| 22744 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22745 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22746 | $as_echo "$ac_try_echo") >&5 |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 22747 | (eval "$ac_link") 2>conftest.er1 |
| 22748 | ac_status=$? |
| 22749 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22750 | rm -f conftest.er1 |
| 22751 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22752 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 22753 | (exit $ac_status); } && { |
| 22754 | test -z "$ac_c_werror_flag" || |
| 22755 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22756 | } && test -s conftest$ac_exeext && { |
| 22757 | test "$cross_compiling" = yes || |
| 22758 | $as_test_x conftest$ac_exeext |
| 22759 | }; then |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 22760 | eval "$as_ac_var=yes" |
| 22761 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22762 | $as_echo "$as_me: failed program was:" >&5 |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 22763 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22764 | |
| 22765 | eval "$as_ac_var=no" |
| 22766 | fi |
| 22767 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22768 | rm -rf conftest.dSYM |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 22769 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 22770 | conftest$ac_exeext conftest.$ac_ext |
| 22771 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22772 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 22773 | $as_echo "$as_val"'` |
| 22774 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 22775 | $as_echo "$ac_res" >&6; } |
| 22776 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 22777 | $as_echo "$as_val"'` |
| 22778 | if test "x$as_val" = x""yes; then |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 22779 | cat >>confdefs.h <<_ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22780 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 22781 | _ACEOF |
| 22782 | |
| 22783 | fi |
| 22784 | done |
| 22785 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22786 | { $as_echo "$as_me:$LINENO: checking whether isinf is declared" >&5 |
| 22787 | $as_echo_n "checking whether isinf is declared... " >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22788 | if test "${ac_cv_have_decl_isinf+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22789 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22790 | else |
| 22791 | cat >conftest.$ac_ext <<_ACEOF |
| 22792 | /* confdefs.h. */ |
| 22793 | _ACEOF |
| 22794 | cat confdefs.h >>conftest.$ac_ext |
| 22795 | cat >>conftest.$ac_ext <<_ACEOF |
| 22796 | /* end confdefs.h. */ |
| 22797 | #include <math.h> |
| 22798 | |
| 22799 | int |
| 22800 | main () |
| 22801 | { |
| 22802 | #ifndef isinf |
| 22803 | (void) isinf; |
| 22804 | #endif |
| 22805 | |
| 22806 | ; |
| 22807 | return 0; |
| 22808 | } |
| 22809 | _ACEOF |
| 22810 | rm -f conftest.$ac_objext |
| 22811 | if { (ac_try="$ac_compile" |
| 22812 | case "(($ac_try" in |
| 22813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22814 | *) ac_try_echo=$ac_try;; |
| 22815 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22816 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22817 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22818 | (eval "$ac_compile") 2>conftest.er1 |
| 22819 | ac_status=$? |
| 22820 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22821 | rm -f conftest.er1 |
| 22822 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22823 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22824 | (exit $ac_status); } && { |
| 22825 | test -z "$ac_c_werror_flag" || |
| 22826 | test ! -s conftest.err |
| 22827 | } && test -s conftest.$ac_objext; then |
| 22828 | ac_cv_have_decl_isinf=yes |
| 22829 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22830 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22831 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22832 | |
| 22833 | ac_cv_have_decl_isinf=no |
| 22834 | fi |
| 22835 | |
| 22836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22837 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22838 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5 |
| 22839 | $as_echo "$ac_cv_have_decl_isinf" >&6; } |
| 22840 | if test "x$ac_cv_have_decl_isinf" = x""yes; then |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22841 | |
| 22842 | cat >>confdefs.h <<_ACEOF |
| 22843 | #define HAVE_DECL_ISINF 1 |
| 22844 | _ACEOF |
| 22845 | |
| 22846 | |
| 22847 | else |
| 22848 | cat >>confdefs.h <<_ACEOF |
| 22849 | #define HAVE_DECL_ISINF 0 |
| 22850 | _ACEOF |
| 22851 | |
| 22852 | |
| 22853 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22854 | { $as_echo "$as_me:$LINENO: checking whether isnan is declared" >&5 |
| 22855 | $as_echo_n "checking whether isnan is declared... " >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22856 | if test "${ac_cv_have_decl_isnan+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22857 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22858 | else |
| 22859 | cat >conftest.$ac_ext <<_ACEOF |
| 22860 | /* confdefs.h. */ |
| 22861 | _ACEOF |
| 22862 | cat confdefs.h >>conftest.$ac_ext |
| 22863 | cat >>conftest.$ac_ext <<_ACEOF |
| 22864 | /* end confdefs.h. */ |
| 22865 | #include <math.h> |
| 22866 | |
| 22867 | int |
| 22868 | main () |
| 22869 | { |
| 22870 | #ifndef isnan |
| 22871 | (void) isnan; |
| 22872 | #endif |
| 22873 | |
| 22874 | ; |
| 22875 | return 0; |
| 22876 | } |
| 22877 | _ACEOF |
| 22878 | rm -f conftest.$ac_objext |
| 22879 | if { (ac_try="$ac_compile" |
| 22880 | case "(($ac_try" in |
| 22881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22882 | *) ac_try_echo=$ac_try;; |
| 22883 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22884 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22885 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22886 | (eval "$ac_compile") 2>conftest.er1 |
| 22887 | ac_status=$? |
| 22888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22889 | rm -f conftest.er1 |
| 22890 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22891 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22892 | (exit $ac_status); } && { |
| 22893 | test -z "$ac_c_werror_flag" || |
| 22894 | test ! -s conftest.err |
| 22895 | } && test -s conftest.$ac_objext; then |
| 22896 | ac_cv_have_decl_isnan=yes |
| 22897 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22898 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22900 | |
| 22901 | ac_cv_have_decl_isnan=no |
| 22902 | fi |
| 22903 | |
| 22904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22905 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22906 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5 |
| 22907 | $as_echo "$ac_cv_have_decl_isnan" >&6; } |
| 22908 | if test "x$ac_cv_have_decl_isnan" = x""yes; then |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22909 | |
| 22910 | cat >>confdefs.h <<_ACEOF |
| 22911 | #define HAVE_DECL_ISNAN 1 |
| 22912 | _ACEOF |
| 22913 | |
| 22914 | |
| 22915 | else |
| 22916 | cat >>confdefs.h <<_ACEOF |
| 22917 | #define HAVE_DECL_ISNAN 0 |
| 22918 | _ACEOF |
| 22919 | |
| 22920 | |
| 22921 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22922 | { $as_echo "$as_me:$LINENO: checking whether isfinite is declared" >&5 |
| 22923 | $as_echo_n "checking whether isfinite is declared... " >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22924 | if test "${ac_cv_have_decl_isfinite+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22925 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22926 | else |
| 22927 | cat >conftest.$ac_ext <<_ACEOF |
| 22928 | /* confdefs.h. */ |
| 22929 | _ACEOF |
| 22930 | cat confdefs.h >>conftest.$ac_ext |
| 22931 | cat >>conftest.$ac_ext <<_ACEOF |
| 22932 | /* end confdefs.h. */ |
| 22933 | #include <math.h> |
| 22934 | |
| 22935 | int |
| 22936 | main () |
| 22937 | { |
| 22938 | #ifndef isfinite |
| 22939 | (void) isfinite; |
| 22940 | #endif |
| 22941 | |
| 22942 | ; |
| 22943 | return 0; |
| 22944 | } |
| 22945 | _ACEOF |
| 22946 | rm -f conftest.$ac_objext |
| 22947 | if { (ac_try="$ac_compile" |
| 22948 | case "(($ac_try" in |
| 22949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22950 | *) ac_try_echo=$ac_try;; |
| 22951 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22952 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22953 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22954 | (eval "$ac_compile") 2>conftest.er1 |
| 22955 | ac_status=$? |
| 22956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22957 | rm -f conftest.er1 |
| 22958 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22959 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22960 | (exit $ac_status); } && { |
| 22961 | test -z "$ac_c_werror_flag" || |
| 22962 | test ! -s conftest.err |
| 22963 | } && test -s conftest.$ac_objext; then |
| 22964 | ac_cv_have_decl_isfinite=yes |
| 22965 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22966 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22968 | |
| 22969 | ac_cv_have_decl_isfinite=no |
| 22970 | fi |
| 22971 | |
| 22972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22973 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22974 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5 |
| 22975 | $as_echo "$ac_cv_have_decl_isfinite" >&6; } |
| 22976 | if test "x$ac_cv_have_decl_isfinite" = x""yes; then |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 22977 | |
| 22978 | cat >>confdefs.h <<_ACEOF |
| 22979 | #define HAVE_DECL_ISFINITE 1 |
| 22980 | _ACEOF |
| 22981 | |
| 22982 | |
| 22983 | else |
| 22984 | cat >>confdefs.h <<_ACEOF |
| 22985 | #define HAVE_DECL_ISFINITE 0 |
| 22986 | _ACEOF |
| 22987 | |
| 22988 | |
| 22989 | fi |
| 22990 | |
| 22991 | |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 22992 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 22993 | LIBS=$LIBS_SAVE |
| 22994 | |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 22995 | # Multiprocessing check for broken sem_getvalue |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22996 | { $as_echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5 |
| 22997 | $as_echo_n "checking for broken sem_getvalue... " >&6; } |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 22998 | if test "$cross_compiling" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 22999 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 23000 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 23001 | { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23002 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23003 | $as_echo "$as_me: error: cannot run test program while cross compiling |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23004 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23005 | { (exit 1); exit 1; }; }; } |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23006 | else |
| 23007 | cat >conftest.$ac_ext <<_ACEOF |
| 23008 | /* confdefs.h. */ |
| 23009 | _ACEOF |
| 23010 | cat confdefs.h >>conftest.$ac_ext |
| 23011 | cat >>conftest.$ac_ext <<_ACEOF |
| 23012 | /* end confdefs.h. */ |
| 23013 | |
| 23014 | #include <unistd.h> |
| 23015 | #include <fcntl.h> |
| 23016 | #include <stdio.h> |
| 23017 | #include <semaphore.h> |
| 23018 | #include <sys/stat.h> |
| 23019 | |
| 23020 | int main(void){ |
| 23021 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 23022 | int count; |
| 23023 | int res; |
| 23024 | if(a==SEM_FAILED){ |
| 23025 | perror("sem_open"); |
| 23026 | return 1; |
| 23027 | |
| 23028 | } |
| 23029 | res = sem_getvalue(a, &count); |
| 23030 | sem_close(a); |
| 23031 | return res==-1 ? 1 : 0; |
| 23032 | } |
| 23033 | |
| 23034 | |
| 23035 | _ACEOF |
| 23036 | rm -f conftest$ac_exeext |
| 23037 | if { (ac_try="$ac_link" |
| 23038 | case "(($ac_try" in |
| 23039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23040 | *) ac_try_echo=$ac_try;; |
| 23041 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23042 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23043 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23044 | (eval "$ac_link") 2>&5 |
| 23045 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23046 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23047 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23048 | { (case "(($ac_try" in |
| 23049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23050 | *) ac_try_echo=$ac_try;; |
| 23051 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23052 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23053 | $as_echo "$ac_try_echo") >&5 |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23054 | (eval "$ac_try") 2>&5 |
| 23055 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23056 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23057 | (exit $ac_status); }; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23058 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 23059 | $as_echo "no" >&6; } |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23060 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23061 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 23062 | $as_echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23064 | |
| 23065 | ( exit $ac_status ) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23066 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 23067 | $as_echo "yes" >&6; } |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23068 | |
| 23069 | cat >>confdefs.h <<\_ACEOF |
| 23070 | #define HAVE_BROKEN_SEM_GETVALUE 1 |
| 23071 | _ACEOF |
| 23072 | |
| 23073 | |
| 23074 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23075 | rm -rf conftest.dSYM |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 23076 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23077 | fi |
| 23078 | |
| 23079 | |
| 23080 | |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 23081 | # determine what size digit to use for Python's longs |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23082 | { $as_echo "$as_me:$LINENO: checking digit size for Python's longs" >&5 |
| 23083 | $as_echo_n "checking digit size for Python's longs... " >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 23084 | # Check whether --enable-big-digits was given. |
| 23085 | if test "${enable_big_digits+set}" = set; then |
| 23086 | enableval=$enable_big_digits; case $enable_big_digits in |
| 23087 | yes) |
| 23088 | enable_big_digits=30 ;; |
| 23089 | no) |
| 23090 | enable_big_digits=15 ;; |
| 23091 | 15|30) |
| 23092 | ;; |
| 23093 | *) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23094 | { { $as_echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5 |
| 23095 | $as_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] | 23096 | { (exit 1); exit 1; }; } ;; |
| 23097 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23098 | { $as_echo "$as_me:$LINENO: result: $enable_big_digits" >&5 |
| 23099 | $as_echo "$enable_big_digits" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 23100 | |
| 23101 | cat >>confdefs.h <<_ACEOF |
| 23102 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 23103 | _ACEOF |
| 23104 | |
| 23105 | |
| 23106 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23107 | { $as_echo "$as_me:$LINENO: result: no value specified" >&5 |
| 23108 | $as_echo "no value specified" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 23109 | fi |
| 23110 | |
| 23111 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23112 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23113 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23114 | { $as_echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 23115 | $as_echo_n "checking for wchar.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23116 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23117 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23118 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23119 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 23120 | $as_echo "$ac_cv_header_wchar_h" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23121 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23122 | # Is the header compilable? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23123 | { $as_echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 23124 | $as_echo_n "checking wchar.h usability... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23125 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23126 | /* confdefs.h. */ |
| 23127 | _ACEOF |
| 23128 | cat confdefs.h >>conftest.$ac_ext |
| 23129 | cat >>conftest.$ac_ext <<_ACEOF |
| 23130 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23131 | $ac_includes_default |
| 23132 | #include <wchar.h> |
| 23133 | _ACEOF |
| 23134 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23135 | if { (ac_try="$ac_compile" |
| 23136 | case "(($ac_try" in |
| 23137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23138 | *) ac_try_echo=$ac_try;; |
| 23139 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23140 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23141 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23142 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23143 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23144 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23145 | rm -f conftest.er1 |
| 23146 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23147 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23148 | (exit $ac_status); } && { |
| 23149 | test -z "$ac_c_werror_flag" || |
| 23150 | test ! -s conftest.err |
| 23151 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23152 | ac_header_compiler=yes |
| 23153 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23154 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23155 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23156 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23157 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23158 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23159 | |
| 23160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23161 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 23162 | $as_echo "$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23163 | |
| 23164 | # Is the header present? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23165 | { $as_echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 23166 | $as_echo_n "checking wchar.h presence... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23167 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23168 | /* confdefs.h. */ |
| 23169 | _ACEOF |
| 23170 | cat confdefs.h >>conftest.$ac_ext |
| 23171 | cat >>conftest.$ac_ext <<_ACEOF |
| 23172 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23173 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23174 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23175 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 23176 | case "(($ac_try" in |
| 23177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23178 | *) ac_try_echo=$ac_try;; |
| 23179 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23180 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23181 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23182 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23183 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23184 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23185 | rm -f conftest.er1 |
| 23186 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23187 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23188 | (exit $ac_status); } >/dev/null && { |
| 23189 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 23190 | test ! -s conftest.err |
| 23191 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23192 | ac_header_preproc=yes |
| 23193 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23194 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23196 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23197 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23198 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23199 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23200 | rm -f conftest.err conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23201 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 23202 | $as_echo "$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23203 | |
| 23204 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23205 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 23206 | yes:no: ) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23207 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 23208 | $as_echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 23209 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 23210 | $as_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] | 23211 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23212 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23213 | no:yes:* ) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23214 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 23215 | $as_echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 23216 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 23217 | $as_echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 23218 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 23219 | $as_echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 23220 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 23221 | $as_echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 23222 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 23223 | $as_echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 23224 | { $as_echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 23225 | $as_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] | 23226 | ( cat <<\_ASBOX |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 23227 | ## -------------------------------------- ## |
| 23228 | ## Report this to http://bugs.python.org/ ## |
| 23229 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23230 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23231 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23232 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23233 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23234 | { $as_echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 23235 | $as_echo_n "checking for wchar.h... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23236 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23237 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23238 | else |
| 23239 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23240 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23241 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 23242 | $as_echo "$ac_cv_header_wchar_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23243 | |
| 23244 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23245 | if test "x$ac_cv_header_wchar_h" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23246 | |
| 23247 | |
| 23248 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23249 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23250 | _ACEOF |
| 23251 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 23252 | wchar_h="yes" |
| 23253 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23254 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23255 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23256 | |
| 23257 | fi |
| 23258 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23259 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23260 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23261 | # determine wchar_t size |
| 23262 | if test "$wchar_h" = yes |
| 23263 | then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23264 | # 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] | 23265 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23266 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23267 | # This bug is HP SR number 8606223364. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23268 | { $as_echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 23269 | $as_echo_n "checking size of wchar_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23270 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23271 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23272 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23273 | if test "$cross_compiling" = yes; then |
| 23274 | # Depending upon the size, compute the lo and hi bounds. |
| 23275 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23276 | /* confdefs.h. */ |
| 23277 | _ACEOF |
| 23278 | cat confdefs.h >>conftest.$ac_ext |
| 23279 | cat >>conftest.$ac_ext <<_ACEOF |
| 23280 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23281 | #include <wchar.h> |
| 23282 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23283 | int |
| 23284 | main () |
| 23285 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23286 | static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23287 | test_array [0] = 0 |
| 23288 | |
| 23289 | ; |
| 23290 | return 0; |
| 23291 | } |
| 23292 | _ACEOF |
| 23293 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23294 | if { (ac_try="$ac_compile" |
| 23295 | case "(($ac_try" in |
| 23296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23297 | *) ac_try_echo=$ac_try;; |
| 23298 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23299 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23300 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23301 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23302 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23304 | rm -f conftest.er1 |
| 23305 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23306 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23307 | (exit $ac_status); } && { |
| 23308 | test -z "$ac_c_werror_flag" || |
| 23309 | test ! -s conftest.err |
| 23310 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23311 | ac_lo=0 ac_mid=0 |
| 23312 | while :; do |
| 23313 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23314 | /* confdefs.h. */ |
| 23315 | _ACEOF |
| 23316 | cat confdefs.h >>conftest.$ac_ext |
| 23317 | cat >>conftest.$ac_ext <<_ACEOF |
| 23318 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23319 | #include <wchar.h> |
| 23320 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23321 | int |
| 23322 | main () |
| 23323 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23324 | static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23325 | test_array [0] = 0 |
| 23326 | |
| 23327 | ; |
| 23328 | return 0; |
| 23329 | } |
| 23330 | _ACEOF |
| 23331 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23332 | if { (ac_try="$ac_compile" |
| 23333 | case "(($ac_try" in |
| 23334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23335 | *) ac_try_echo=$ac_try;; |
| 23336 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23337 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23338 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23339 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23340 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23342 | rm -f conftest.er1 |
| 23343 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23344 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23345 | (exit $ac_status); } && { |
| 23346 | test -z "$ac_c_werror_flag" || |
| 23347 | test ! -s conftest.err |
| 23348 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23349 | ac_hi=$ac_mid; break |
| 23350 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23351 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23353 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23354 | ac_lo=`expr $ac_mid + 1` |
| 23355 | if test $ac_lo -le $ac_mid; then |
| 23356 | ac_lo= ac_hi= |
| 23357 | break |
| 23358 | fi |
| 23359 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23360 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23361 | |
| 23362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23363 | done |
| 23364 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23365 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23367 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23368 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23369 | /* confdefs.h. */ |
| 23370 | _ACEOF |
| 23371 | cat confdefs.h >>conftest.$ac_ext |
| 23372 | cat >>conftest.$ac_ext <<_ACEOF |
| 23373 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23374 | #include <wchar.h> |
| 23375 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23376 | int |
| 23377 | main () |
| 23378 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23379 | static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23380 | test_array [0] = 0 |
| 23381 | |
| 23382 | ; |
| 23383 | return 0; |
| 23384 | } |
| 23385 | _ACEOF |
| 23386 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23387 | if { (ac_try="$ac_compile" |
| 23388 | case "(($ac_try" in |
| 23389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23390 | *) ac_try_echo=$ac_try;; |
| 23391 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23392 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23393 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23394 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23395 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23397 | rm -f conftest.er1 |
| 23398 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23399 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23400 | (exit $ac_status); } && { |
| 23401 | test -z "$ac_c_werror_flag" || |
| 23402 | test ! -s conftest.err |
| 23403 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23404 | ac_hi=-1 ac_mid=-1 |
| 23405 | while :; do |
| 23406 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23407 | /* confdefs.h. */ |
| 23408 | _ACEOF |
| 23409 | cat confdefs.h >>conftest.$ac_ext |
| 23410 | cat >>conftest.$ac_ext <<_ACEOF |
| 23411 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23412 | #include <wchar.h> |
| 23413 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23414 | int |
| 23415 | main () |
| 23416 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23417 | static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23418 | test_array [0] = 0 |
| 23419 | |
| 23420 | ; |
| 23421 | return 0; |
| 23422 | } |
| 23423 | _ACEOF |
| 23424 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23425 | if { (ac_try="$ac_compile" |
| 23426 | case "(($ac_try" in |
| 23427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23428 | *) ac_try_echo=$ac_try;; |
| 23429 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23430 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23431 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23432 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23433 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23434 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23435 | rm -f conftest.er1 |
| 23436 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23437 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23438 | (exit $ac_status); } && { |
| 23439 | test -z "$ac_c_werror_flag" || |
| 23440 | test ! -s conftest.err |
| 23441 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23442 | ac_lo=$ac_mid; break |
| 23443 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23444 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23446 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23447 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 23448 | if test $ac_mid -le $ac_hi; then |
| 23449 | ac_lo= ac_hi= |
| 23450 | break |
| 23451 | fi |
| 23452 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23453 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23454 | |
| 23455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23456 | done |
| 23457 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23458 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23460 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23461 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23462 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23463 | |
| 23464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23465 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23466 | |
| 23467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23468 | # Binary search between lo and hi bounds. |
| 23469 | while test "x$ac_lo" != "x$ac_hi"; do |
| 23470 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 23471 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23472 | /* confdefs.h. */ |
| 23473 | _ACEOF |
| 23474 | cat confdefs.h >>conftest.$ac_ext |
| 23475 | cat >>conftest.$ac_ext <<_ACEOF |
| 23476 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23477 | #include <wchar.h> |
| 23478 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23479 | int |
| 23480 | main () |
| 23481 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23482 | static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23483 | test_array [0] = 0 |
| 23484 | |
| 23485 | ; |
| 23486 | return 0; |
| 23487 | } |
| 23488 | _ACEOF |
| 23489 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23490 | if { (ac_try="$ac_compile" |
| 23491 | case "(($ac_try" in |
| 23492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23493 | *) ac_try_echo=$ac_try;; |
| 23494 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23495 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23496 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23497 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23498 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23500 | rm -f conftest.er1 |
| 23501 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23502 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23503 | (exit $ac_status); } && { |
| 23504 | test -z "$ac_c_werror_flag" || |
| 23505 | test ! -s conftest.err |
| 23506 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23507 | ac_hi=$ac_mid |
| 23508 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23509 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23511 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23512 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23513 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23514 | |
| 23515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23516 | done |
| 23517 | case $ac_lo in |
| 23518 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23519 | '') if test "$ac_cv_type_wchar_t" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23520 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 23521 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 23522 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23523 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23524 | $as_echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23525 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23526 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23527 | else |
| 23528 | ac_cv_sizeof_wchar_t=0 |
| 23529 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23530 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23531 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23532 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23533 | /* confdefs.h. */ |
| 23534 | _ACEOF |
| 23535 | cat confdefs.h >>conftest.$ac_ext |
| 23536 | cat >>conftest.$ac_ext <<_ACEOF |
| 23537 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23538 | #include <wchar.h> |
| 23539 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23540 | static long int longval () { return (long int) (sizeof (wchar_t)); } |
| 23541 | static unsigned long int ulongval () { return (long int) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23542 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23543 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23544 | int |
| 23545 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23546 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23547 | |
| 23548 | FILE *f = fopen ("conftest.val", "w"); |
| 23549 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23550 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23551 | if (((long int) (sizeof (wchar_t))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23552 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23553 | long int i = longval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23554 | if (i != ((long int) (sizeof (wchar_t)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23555 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23556 | fprintf (f, "%ld", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23557 | } |
| 23558 | else |
| 23559 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23560 | unsigned long int i = ulongval (); |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23561 | if (i != ((long int) (sizeof (wchar_t)))) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23562 | return 1; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23563 | fprintf (f, "%lu", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23564 | } |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23565 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 23566 | on some platforms. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23567 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23568 | |
| 23569 | ; |
| 23570 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23571 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23572 | _ACEOF |
| 23573 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23574 | if { (ac_try="$ac_link" |
| 23575 | case "(($ac_try" in |
| 23576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23577 | *) ac_try_echo=$ac_try;; |
| 23578 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23579 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23580 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23581 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23582 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23583 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23584 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23585 | { (case "(($ac_try" in |
| 23586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23587 | *) ac_try_echo=$ac_try;; |
| 23588 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23589 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23590 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23591 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23592 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23593 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23594 | (exit $ac_status); }; }; then |
| 23595 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23596 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23597 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 23598 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23600 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23601 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23602 | if test "$ac_cv_type_wchar_t" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23603 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 23604 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 23605 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23606 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23607 | $as_echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23608 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23609 | { (exit 77); exit 77; }; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23610 | else |
| 23611 | ac_cv_sizeof_wchar_t=0 |
| 23612 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23613 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23614 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23615 | 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] | 23616 | fi |
| 23617 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23618 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23619 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 23620 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23621 | |
| 23622 | |
| 23623 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23624 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23625 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23626 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23627 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23628 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23629 | fi |
| 23630 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23631 | { $as_echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 23632 | $as_echo_n "checking for UCS-4 tcl... " >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 23633 | have_ucs4_tcl=no |
| 23634 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23635 | /* confdefs.h. */ |
| 23636 | _ACEOF |
| 23637 | cat confdefs.h >>conftest.$ac_ext |
| 23638 | cat >>conftest.$ac_ext <<_ACEOF |
| 23639 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 23640 | |
| 23641 | #include <tcl.h> |
| 23642 | #if TCL_UTF_MAX != 6 |
| 23643 | # error "NOT UCS4_TCL" |
| 23644 | #endif |
| 23645 | int |
| 23646 | main () |
| 23647 | { |
| 23648 | |
| 23649 | ; |
| 23650 | return 0; |
| 23651 | } |
| 23652 | _ACEOF |
| 23653 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23654 | if { (ac_try="$ac_compile" |
| 23655 | case "(($ac_try" in |
| 23656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23657 | *) ac_try_echo=$ac_try;; |
| 23658 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23659 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23660 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23661 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 23662 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23663 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23664 | rm -f conftest.er1 |
| 23665 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23666 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23667 | (exit $ac_status); } && { |
| 23668 | test -z "$ac_c_werror_flag" || |
| 23669 | test ! -s conftest.err |
| 23670 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 23671 | |
| 23672 | |
| 23673 | cat >>confdefs.h <<\_ACEOF |
| 23674 | #define HAVE_UCS4_TCL 1 |
| 23675 | _ACEOF |
| 23676 | |
| 23677 | have_ucs4_tcl=yes |
| 23678 | |
| 23679 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23680 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23682 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23683 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 23684 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23685 | |
| 23686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23687 | { $as_echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 23688 | $as_echo "$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 23689 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23690 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23691 | if test "$wchar_h" = yes |
| 23692 | then |
| 23693 | # check whether wchar_t is signed or not |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23694 | { $as_echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 23695 | $as_echo_n "checking whether wchar_t is signed... " >&6; } |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23696 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23697 | $as_echo_n "(cached) " >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23698 | else |
| 23699 | |
| 23700 | if test "$cross_compiling" = yes; then |
| 23701 | ac_cv_wchar_t_signed=yes |
| 23702 | else |
| 23703 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23704 | /* confdefs.h. */ |
| 23705 | _ACEOF |
| 23706 | cat confdefs.h >>conftest.$ac_ext |
| 23707 | cat >>conftest.$ac_ext <<_ACEOF |
| 23708 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23709 | |
| 23710 | #include <wchar.h> |
| 23711 | int main() |
| 23712 | { |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 23713 | /* Success: exit code 0 */ |
| 23714 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23715 | } |
| 23716 | |
| 23717 | _ACEOF |
| 23718 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 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 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23724 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23725 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23726 | (eval "$ac_link") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23727 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23728 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23729 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23730 | { (case "(($ac_try" in |
| 23731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23732 | *) ac_try_echo=$ac_try;; |
| 23733 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23734 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23735 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23736 | (eval "$ac_try") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23737 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23738 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23739 | (exit $ac_status); }; }; then |
| 23740 | ac_cv_wchar_t_signed=yes |
| 23741 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23742 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 23743 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23745 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23746 | ( exit $ac_status ) |
| 23747 | ac_cv_wchar_t_signed=no |
| 23748 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23749 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23750 | 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] | 23751 | fi |
| 23752 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23753 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23754 | fi |
| 23755 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23756 | { $as_echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 23757 | $as_echo "$ac_cv_wchar_t_signed" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23758 | fi |
| 23759 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23760 | { $as_echo "$as_me:$LINENO: checking what type to use for str" >&5 |
| 23761 | $as_echo_n "checking what type to use for str... " >&6; } |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 23762 | |
| 23763 | # Check whether --with-wide-unicode was given. |
| 23764 | if test "${with_wide_unicode+set}" = set; then |
| 23765 | withval=$with_wide_unicode; |
| 23766 | if test "$withval" != no |
| 23767 | then unicode_size="4" |
| 23768 | else unicode_size="2" |
| 23769 | fi |
| 23770 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23771 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23772 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 23773 | case "$have_ucs4_tcl" in |
| 23774 | yes) unicode_size="4" ;; |
| 23775 | *) unicode_size="2" ;; |
| 23776 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23777 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23778 | fi |
| 23779 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 23780 | |
| 23781 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23782 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 23783 | case "$unicode_size" in |
| 23784 | 4) cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23785 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23786 | _ACEOF |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 23787 | ;; |
| 23788 | *) cat >>confdefs.h <<\_ACEOF |
| 23789 | #define Py_UNICODE_SIZE 2 |
| 23790 | _ACEOF |
| 23791 | ;; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23792 | esac |
| 23793 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23794 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23795 | |
| 23796 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 23797 | # wchar_t is only usable if it maps to an unsigned type |
| 23798 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 23799 | -a "$ac_cv_wchar_t_signed" = "no" |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 23800 | then |
| 23801 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23802 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23803 | cat >>confdefs.h <<\_ACEOF |
| 23804 | #define HAVE_USABLE_WCHAR_T 1 |
| 23805 | _ACEOF |
| 23806 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 23807 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23808 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23809 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23810 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 23811 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 23812 | then |
| 23813 | PY_UNICODE_TYPE="unsigned short" |
| 23814 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23815 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23816 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23817 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 23818 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 23819 | then |
| 23820 | PY_UNICODE_TYPE="unsigned long" |
| 23821 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23822 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23823 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23824 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 23825 | else |
| 23826 | PY_UNICODE_TYPE="no type found" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23827 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23828 | { $as_echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 23829 | $as_echo "$PY_UNICODE_TYPE" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23830 | |
| 23831 | # check for endianness |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23832 | |
| 23833 | { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 23834 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23835 | if test "${ac_cv_c_bigendian+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23836 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23837 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23838 | ac_cv_c_bigendian=unknown |
| 23839 | # See if we're dealing with a universal compiler. |
| 23840 | cat >conftest.$ac_ext <<_ACEOF |
| 23841 | /* confdefs.h. */ |
| 23842 | _ACEOF |
| 23843 | cat confdefs.h >>conftest.$ac_ext |
| 23844 | cat >>conftest.$ac_ext <<_ACEOF |
| 23845 | /* end confdefs.h. */ |
| 23846 | #ifndef __APPLE_CC__ |
| 23847 | not a universal capable compiler |
| 23848 | #endif |
| 23849 | typedef int dummy; |
| 23850 | |
| 23851 | _ACEOF |
| 23852 | rm -f conftest.$ac_objext |
| 23853 | if { (ac_try="$ac_compile" |
| 23854 | case "(($ac_try" in |
| 23855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23856 | *) ac_try_echo=$ac_try;; |
| 23857 | esac |
| 23858 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23859 | $as_echo "$ac_try_echo") >&5 |
| 23860 | (eval "$ac_compile") 2>conftest.er1 |
| 23861 | ac_status=$? |
| 23862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23863 | rm -f conftest.er1 |
| 23864 | cat conftest.err >&5 |
| 23865 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23866 | (exit $ac_status); } && { |
| 23867 | test -z "$ac_c_werror_flag" || |
| 23868 | test ! -s conftest.err |
| 23869 | } && test -s conftest.$ac_objext; then |
| 23870 | |
| 23871 | # Check for potential -arch flags. It is not universal unless |
| 23872 | # there are some -arch flags. Note that *ppc* also matches |
| 23873 | # ppc64. This check is also rather less than ideal. |
| 23874 | case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #( |
| 23875 | *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;; |
| 23876 | esac |
| 23877 | else |
| 23878 | $as_echo "$as_me: failed program was:" >&5 |
| 23879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23880 | |
| 23881 | |
| 23882 | fi |
| 23883 | |
| 23884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23885 | if test $ac_cv_c_bigendian = unknown; then |
| 23886 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 23887 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23888 | /* confdefs.h. */ |
| 23889 | _ACEOF |
| 23890 | cat confdefs.h >>conftest.$ac_ext |
| 23891 | cat >>conftest.$ac_ext <<_ACEOF |
| 23892 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23893 | #include <sys/types.h> |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23894 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23895 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23896 | int |
| 23897 | main () |
| 23898 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23899 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 23900 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 23901 | && LITTLE_ENDIAN) |
| 23902 | bogus endian macros |
| 23903 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23904 | |
| 23905 | ; |
| 23906 | return 0; |
| 23907 | } |
| 23908 | _ACEOF |
| 23909 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23910 | if { (ac_try="$ac_compile" |
| 23911 | case "(($ac_try" in |
| 23912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23913 | *) ac_try_echo=$ac_try;; |
| 23914 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23915 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23916 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23917 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23918 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23920 | rm -f conftest.er1 |
| 23921 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23922 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23923 | (exit $ac_status); } && { |
| 23924 | test -z "$ac_c_werror_flag" || |
| 23925 | test ! -s conftest.err |
| 23926 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23927 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23928 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23929 | /* confdefs.h. */ |
| 23930 | _ACEOF |
| 23931 | cat confdefs.h >>conftest.$ac_ext |
| 23932 | cat >>conftest.$ac_ext <<_ACEOF |
| 23933 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23934 | #include <sys/types.h> |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23935 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23937 | int |
| 23938 | main () |
| 23939 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23940 | #if BYTE_ORDER != BIG_ENDIAN |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23941 | not big endian |
| 23942 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23943 | |
| 23944 | ; |
| 23945 | return 0; |
| 23946 | } |
| 23947 | _ACEOF |
| 23948 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23949 | if { (ac_try="$ac_compile" |
| 23950 | case "(($ac_try" in |
| 23951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23952 | *) ac_try_echo=$ac_try;; |
| 23953 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23954 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23955 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23956 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23957 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23959 | rm -f conftest.er1 |
| 23960 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23961 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23962 | (exit $ac_status); } && { |
| 23963 | test -z "$ac_c_werror_flag" || |
| 23964 | test ! -s conftest.err |
| 23965 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23966 | ac_cv_c_bigendian=yes |
| 23967 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23968 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23970 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23971 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23972 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23973 | |
| 23974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23975 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23976 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23978 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23979 | |
| 23980 | fi |
| 23981 | |
| 23982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23983 | fi |
| 23984 | if test $ac_cv_c_bigendian = unknown; then |
| 23985 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 23986 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23987 | /* confdefs.h. */ |
| 23988 | _ACEOF |
| 23989 | cat confdefs.h >>conftest.$ac_ext |
| 23990 | cat >>conftest.$ac_ext <<_ACEOF |
| 23991 | /* end confdefs.h. */ |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23992 | #include <limits.h> |
| 23993 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23994 | int |
| 23995 | main () |
| 23996 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 23997 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 23998 | bogus endian macros |
| 23999 | #endif |
| 24000 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24001 | ; |
| 24002 | return 0; |
| 24003 | } |
| 24004 | _ACEOF |
| 24005 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24006 | if { (ac_try="$ac_compile" |
| 24007 | case "(($ac_try" in |
| 24008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24009 | *) ac_try_echo=$ac_try;; |
| 24010 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24011 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24012 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24013 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24014 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24015 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24016 | rm -f conftest.er1 |
| 24017 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24018 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24019 | (exit $ac_status); } && { |
| 24020 | test -z "$ac_c_werror_flag" || |
| 24021 | test ! -s conftest.err |
| 24022 | } && test -s conftest.$ac_objext; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24023 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 24024 | cat >conftest.$ac_ext <<_ACEOF |
| 24025 | /* confdefs.h. */ |
| 24026 | _ACEOF |
| 24027 | cat confdefs.h >>conftest.$ac_ext |
| 24028 | cat >>conftest.$ac_ext <<_ACEOF |
| 24029 | /* end confdefs.h. */ |
| 24030 | #include <limits.h> |
| 24031 | |
| 24032 | int |
| 24033 | main () |
| 24034 | { |
| 24035 | #ifndef _BIG_ENDIAN |
| 24036 | not big endian |
| 24037 | #endif |
| 24038 | |
| 24039 | ; |
| 24040 | return 0; |
| 24041 | } |
| 24042 | _ACEOF |
| 24043 | rm -f conftest.$ac_objext |
| 24044 | if { (ac_try="$ac_compile" |
| 24045 | case "(($ac_try" in |
| 24046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24047 | *) ac_try_echo=$ac_try;; |
| 24048 | esac |
| 24049 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24050 | $as_echo "$ac_try_echo") >&5 |
| 24051 | (eval "$ac_compile") 2>conftest.er1 |
| 24052 | ac_status=$? |
| 24053 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24054 | rm -f conftest.er1 |
| 24055 | cat conftest.err >&5 |
| 24056 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24057 | (exit $ac_status); } && { |
| 24058 | test -z "$ac_c_werror_flag" || |
| 24059 | test ! -s conftest.err |
| 24060 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24061 | ac_cv_c_bigendian=yes |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24062 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24063 | $as_echo "$as_me: failed program was:" >&5 |
| 24064 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24065 | |
| 24066 | ac_cv_c_bigendian=no |
| 24067 | fi |
| 24068 | |
| 24069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24070 | else |
| 24071 | $as_echo "$as_me: failed program was:" >&5 |
| 24072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24073 | |
| 24074 | |
| 24075 | fi |
| 24076 | |
| 24077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24078 | fi |
| 24079 | if test $ac_cv_c_bigendian = unknown; then |
| 24080 | # Compile a test program. |
| 24081 | if test "$cross_compiling" = yes; then |
| 24082 | # Try to guess by grepping values from an object file. |
| 24083 | cat >conftest.$ac_ext <<_ACEOF |
| 24084 | /* confdefs.h. */ |
| 24085 | _ACEOF |
| 24086 | cat confdefs.h >>conftest.$ac_ext |
| 24087 | cat >>conftest.$ac_ext <<_ACEOF |
| 24088 | /* end confdefs.h. */ |
| 24089 | short int ascii_mm[] = |
| 24090 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 24091 | short int ascii_ii[] = |
| 24092 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 24093 | int use_ascii (int i) { |
| 24094 | return ascii_mm[i] + ascii_ii[i]; |
| 24095 | } |
| 24096 | short int ebcdic_ii[] = |
| 24097 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 24098 | short int ebcdic_mm[] = |
| 24099 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 24100 | int use_ebcdic (int i) { |
| 24101 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 24102 | } |
| 24103 | extern int foo; |
| 24104 | |
| 24105 | int |
| 24106 | main () |
| 24107 | { |
| 24108 | return use_ascii (foo) == use_ebcdic (foo); |
| 24109 | ; |
| 24110 | return 0; |
| 24111 | } |
| 24112 | _ACEOF |
| 24113 | rm -f conftest.$ac_objext |
| 24114 | if { (ac_try="$ac_compile" |
| 24115 | case "(($ac_try" in |
| 24116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24117 | *) ac_try_echo=$ac_try;; |
| 24118 | esac |
| 24119 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24120 | $as_echo "$ac_try_echo") >&5 |
| 24121 | (eval "$ac_compile") 2>conftest.er1 |
| 24122 | ac_status=$? |
| 24123 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24124 | rm -f conftest.er1 |
| 24125 | cat conftest.err >&5 |
| 24126 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24127 | (exit $ac_status); } && { |
| 24128 | test -z "$ac_c_werror_flag" || |
| 24129 | test ! -s conftest.err |
| 24130 | } && test -s conftest.$ac_objext; then |
| 24131 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 24132 | ac_cv_c_bigendian=yes |
| 24133 | fi |
| 24134 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 24135 | if test "$ac_cv_c_bigendian" = unknown; then |
| 24136 | ac_cv_c_bigendian=no |
| 24137 | else |
| 24138 | # finding both strings is unlikely to happen, but who knows? |
| 24139 | ac_cv_c_bigendian=unknown |
| 24140 | fi |
| 24141 | fi |
| 24142 | else |
| 24143 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24145 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24146 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24147 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24148 | |
| 24149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24150 | else |
| 24151 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24152 | /* confdefs.h. */ |
| 24153 | _ACEOF |
| 24154 | cat confdefs.h >>conftest.$ac_ext |
| 24155 | cat >>conftest.$ac_ext <<_ACEOF |
| 24156 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24157 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24158 | int |
| 24159 | main () |
| 24160 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24161 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24162 | /* Are we little or big endian? From Harbison&Steele. */ |
| 24163 | union |
| 24164 | { |
| 24165 | long int l; |
| 24166 | char c[sizeof (long int)]; |
| 24167 | } u; |
| 24168 | u.l = 1; |
| 24169 | return u.c[sizeof (long int) - 1] == 1; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24170 | |
| 24171 | ; |
| 24172 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24173 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24174 | _ACEOF |
| 24175 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24176 | if { (ac_try="$ac_link" |
| 24177 | case "(($ac_try" in |
| 24178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24179 | *) ac_try_echo=$ac_try;; |
| 24180 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24181 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24182 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24183 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24184 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24185 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24186 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24187 | { (case "(($ac_try" in |
| 24188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24189 | *) ac_try_echo=$ac_try;; |
| 24190 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24191 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24192 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24193 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24194 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24195 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24196 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24197 | ac_cv_c_bigendian=no |
| 24198 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24199 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 24200 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24202 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24203 | ( exit $ac_status ) |
| 24204 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24205 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24206 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24207 | 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] | 24208 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24209 | |
| 24210 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24211 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24212 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24213 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 24214 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 24215 | case $ac_cv_c_bigendian in #( |
| 24216 | yes) |
| 24217 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | b70bcf5 | 2009-02-19 07:51:52 +0000 | [diff] [blame] | 24218 | #define WORDS_BIGENDIAN 1 |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 24219 | _ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24220 | ;; #( |
| 24221 | no) |
| 24222 | ;; #( |
| 24223 | universal) |
| 24224 | |
| 24225 | cat >>confdefs.h <<\_ACEOF |
| 24226 | #define AC_APPLE_UNIVERSAL_BUILD 1 |
| 24227 | _ACEOF |
| 24228 | |
| 24229 | ;; #( |
| 24230 | *) |
| 24231 | { { $as_echo "$as_me:$LINENO: error: unknown endianness |
| 24232 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 24233 | $as_echo "$as_me: error: unknown endianness |
| 24234 | 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] | 24235 | { (exit 1); exit 1; }; } ;; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24236 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24237 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24238 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24239 | # Check whether right shifting a negative integer extends the sign bit |
| 24240 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24241 | { $as_echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 24242 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24243 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24244 | $as_echo_n "(cached) " >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 24245 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24246 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24247 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 24248 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24249 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24250 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24251 | /* confdefs.h. */ |
| 24252 | _ACEOF |
| 24253 | cat confdefs.h >>conftest.$ac_ext |
| 24254 | cat >>conftest.$ac_ext <<_ACEOF |
| 24255 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24256 | |
| 24257 | int main() |
| 24258 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 24259 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24260 | } |
| 24261 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24262 | _ACEOF |
| 24263 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24264 | if { (ac_try="$ac_link" |
| 24265 | case "(($ac_try" in |
| 24266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24267 | *) ac_try_echo=$ac_try;; |
| 24268 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24269 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24270 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24271 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24272 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24273 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24274 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24275 | { (case "(($ac_try" in |
| 24276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24277 | *) ac_try_echo=$ac_try;; |
| 24278 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24279 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24280 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24281 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24282 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24283 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24284 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 24285 | ac_cv_rshift_extends_sign=yes |
| 24286 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24287 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 24288 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24290 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24291 | ( exit $ac_status ) |
| 24292 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 24293 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24294 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24295 | 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] | 24296 | fi |
| 24297 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24298 | |
| 24299 | fi |
| 24300 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24301 | { $as_echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 24302 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 24303 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24304 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24305 | |
| 24306 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24307 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24308 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24309 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24310 | fi |
| 24311 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24312 | # check for getc_unlocked and related locking functions |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24313 | { $as_echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 24314 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24315 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24316 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24317 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24318 | |
| 24319 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24320 | /* confdefs.h. */ |
| 24321 | _ACEOF |
| 24322 | cat confdefs.h >>conftest.$ac_ext |
| 24323 | cat >>conftest.$ac_ext <<_ACEOF |
| 24324 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24325 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24326 | int |
| 24327 | main () |
| 24328 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24329 | |
| 24330 | FILE *f = fopen("/dev/null", "r"); |
| 24331 | flockfile(f); |
| 24332 | getc_unlocked(f); |
| 24333 | funlockfile(f); |
| 24334 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24335 | ; |
| 24336 | return 0; |
| 24337 | } |
| 24338 | _ACEOF |
| 24339 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24340 | if { (ac_try="$ac_link" |
| 24341 | case "(($ac_try" in |
| 24342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24343 | *) ac_try_echo=$ac_try;; |
| 24344 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24345 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24346 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24347 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24348 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24350 | rm -f conftest.er1 |
| 24351 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24352 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24353 | (exit $ac_status); } && { |
| 24354 | test -z "$ac_c_werror_flag" || |
| 24355 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24356 | } && test -s conftest$ac_exeext && { |
| 24357 | test "$cross_compiling" = yes || |
| 24358 | $as_test_x conftest$ac_exeext |
| 24359 | }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24360 | ac_cv_have_getc_unlocked=yes |
| 24361 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24362 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24364 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24365 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24366 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24367 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24368 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24369 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24370 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24371 | fi |
| 24372 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24373 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 24374 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24375 | if test "$ac_cv_have_getc_unlocked" = yes |
| 24376 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24377 | |
| 24378 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24379 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24380 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 24381 | |
| 24382 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 24383 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24384 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 24385 | # save the value of LIBS so we don't actually link Python with readline |
| 24386 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24387 | |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 24388 | # On some systems we need to link readline to a termcap compatible |
| 24389 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 24390 | # with setup.py. |
| 24391 | py_cv_lib_readline=no |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24392 | { $as_echo "$as_me:$LINENO: checking how to link readline libs" >&5 |
| 24393 | $as_echo_n "checking how to link readline libs... " >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 24394 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 24395 | if test -z "$py_libtermcap"; then |
| 24396 | READLINE_LIBS="-lreadline" |
| 24397 | else |
| 24398 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 24399 | fi |
| 24400 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
| 24401 | cat >conftest.$ac_ext <<_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24402 | /* confdefs.h. */ |
| 24403 | _ACEOF |
| 24404 | cat confdefs.h >>conftest.$ac_ext |
| 24405 | cat >>conftest.$ac_ext <<_ACEOF |
| 24406 | /* end confdefs.h. */ |
| 24407 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24408 | /* Override any GCC internal prototype to avoid an error. |
| 24409 | Use char because int might match the return type of a GCC |
| 24410 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24411 | #ifdef __cplusplus |
| 24412 | extern "C" |
| 24413 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24414 | char readline (); |
| 24415 | int |
| 24416 | main () |
| 24417 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24418 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24419 | ; |
| 24420 | return 0; |
| 24421 | } |
| 24422 | _ACEOF |
| 24423 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24424 | if { (ac_try="$ac_link" |
| 24425 | case "(($ac_try" in |
| 24426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24427 | *) ac_try_echo=$ac_try;; |
| 24428 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24429 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24430 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24431 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24432 | ac_status=$? |
| 24433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24434 | rm -f conftest.er1 |
| 24435 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24436 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24437 | (exit $ac_status); } && { |
| 24438 | test -z "$ac_c_werror_flag" || |
| 24439 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24440 | } && test -s conftest$ac_exeext && { |
| 24441 | test "$cross_compiling" = yes || |
| 24442 | $as_test_x conftest$ac_exeext |
| 24443 | }; then |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 24444 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24445 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24446 | $as_echo "$as_me: failed program was:" >&5 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24448 | |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 24449 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24450 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24451 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24452 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24453 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24454 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 24455 | if test $py_cv_lib_readline = yes; then |
| 24456 | break |
| 24457 | fi |
| 24458 | done |
| 24459 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 24460 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 24461 | if test $py_cv_lib_readline = no; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24462 | { $as_echo "$as_me:$LINENO: result: none" >&5 |
| 24463 | $as_echo "none" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 24464 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24465 | { $as_echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5 |
| 24466 | $as_echo "$READLINE_LIBS" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 24467 | |
| 24468 | cat >>confdefs.h <<\_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24469 | #define HAVE_LIBREADLINE 1 |
| 24470 | _ACEOF |
| 24471 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 24472 | fi |
| 24473 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24474 | # check for readline 2.1 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24475 | { $as_echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 24476 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24477 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24478 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24479 | else |
| 24480 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 24481 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24482 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24483 | /* confdefs.h. */ |
| 24484 | _ACEOF |
| 24485 | cat confdefs.h >>conftest.$ac_ext |
| 24486 | cat >>conftest.$ac_ext <<_ACEOF |
| 24487 | /* end confdefs.h. */ |
| 24488 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24489 | /* Override any GCC internal prototype to avoid an error. |
| 24490 | Use char because int might match the return type of a GCC |
| 24491 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24492 | #ifdef __cplusplus |
| 24493 | extern "C" |
| 24494 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24495 | char rl_callback_handler_install (); |
| 24496 | int |
| 24497 | main () |
| 24498 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24499 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24500 | ; |
| 24501 | return 0; |
| 24502 | } |
| 24503 | _ACEOF |
| 24504 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24505 | if { (ac_try="$ac_link" |
| 24506 | case "(($ac_try" in |
| 24507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24508 | *) ac_try_echo=$ac_try;; |
| 24509 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24510 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24511 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24512 | (eval "$ac_link") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24513 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24514 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24515 | rm -f conftest.er1 |
| 24516 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24517 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24518 | (exit $ac_status); } && { |
| 24519 | test -z "$ac_c_werror_flag" || |
| 24520 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24521 | } && test -s conftest$ac_exeext && { |
| 24522 | test "$cross_compiling" = yes || |
| 24523 | $as_test_x conftest$ac_exeext |
| 24524 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24525 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 24526 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24527 | $as_echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24529 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24530 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24531 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24532 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24533 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24534 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24535 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24536 | LIBS=$ac_check_lib_save_LIBS |
| 24537 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24538 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 24539 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
| 24540 | if test "x$ac_cv_lib_readline_rl_callback_handler_install" = x""yes; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24541 | |
| 24542 | cat >>confdefs.h <<\_ACEOF |
| 24543 | #define HAVE_RL_CALLBACK 1 |
| 24544 | _ACEOF |
| 24545 | |
| 24546 | fi |
| 24547 | |
| 24548 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 24549 | # check for readline 2.2 |
| 24550 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24551 | /* confdefs.h. */ |
| 24552 | _ACEOF |
| 24553 | cat confdefs.h >>conftest.$ac_ext |
| 24554 | cat >>conftest.$ac_ext <<_ACEOF |
| 24555 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 24556 | #include <readline/readline.h> |
| 24557 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24558 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 24559 | case "(($ac_try" in |
| 24560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24561 | *) ac_try_echo=$ac_try;; |
| 24562 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24563 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24564 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24565 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 24566 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24567 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 24568 | rm -f conftest.er1 |
| 24569 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24570 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24571 | (exit $ac_status); } >/dev/null && { |
| 24572 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 24573 | test ! -s conftest.err |
| 24574 | }; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 24575 | have_readline=yes |
| 24576 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24577 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24579 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 24580 | have_readline=no |
| 24581 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24582 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 24583 | rm -f conftest.err conftest.$ac_ext |
| 24584 | if test $have_readline = yes |
| 24585 | then |
| 24586 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24587 | /* confdefs.h. */ |
| 24588 | _ACEOF |
| 24589 | cat confdefs.h >>conftest.$ac_ext |
| 24590 | cat >>conftest.$ac_ext <<_ACEOF |
| 24591 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 24592 | #include <readline/readline.h> |
| 24593 | |
| 24594 | _ACEOF |
| 24595 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24596 | $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] | 24597 | |
| 24598 | cat >>confdefs.h <<\_ACEOF |
| 24599 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 24600 | _ACEOF |
| 24601 | |
| 24602 | fi |
| 24603 | rm -f conftest* |
| 24604 | |
| 24605 | fi |
| 24606 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 24607 | # check for readline 4.0 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24608 | { $as_echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 24609 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24610 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24611 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 24612 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24613 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 24614 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24615 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24616 | /* confdefs.h. */ |
| 24617 | _ACEOF |
| 24618 | cat confdefs.h >>conftest.$ac_ext |
| 24619 | cat >>conftest.$ac_ext <<_ACEOF |
| 24620 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24621 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24622 | /* Override any GCC internal prototype to avoid an error. |
| 24623 | Use char because int might match the return type of a GCC |
| 24624 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24625 | #ifdef __cplusplus |
| 24626 | extern "C" |
| 24627 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24628 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24629 | int |
| 24630 | main () |
| 24631 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24632 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24633 | ; |
| 24634 | return 0; |
| 24635 | } |
| 24636 | _ACEOF |
| 24637 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24638 | if { (ac_try="$ac_link" |
| 24639 | case "(($ac_try" in |
| 24640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24641 | *) ac_try_echo=$ac_try;; |
| 24642 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24643 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24644 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24645 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24646 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24648 | rm -f conftest.er1 |
| 24649 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24650 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24651 | (exit $ac_status); } && { |
| 24652 | test -z "$ac_c_werror_flag" || |
| 24653 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24654 | } && test -s conftest$ac_exeext && { |
| 24655 | test "$cross_compiling" = yes || |
| 24656 | $as_test_x conftest$ac_exeext |
| 24657 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24658 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 24659 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24660 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24662 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24663 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 24664 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24665 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24666 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24667 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24668 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24669 | LIBS=$ac_check_lib_save_LIBS |
| 24670 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24671 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 24672 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
| 24673 | if test "x$ac_cv_lib_readline_rl_pre_input_hook" = x""yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24674 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24675 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 24676 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24677 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 24678 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 24679 | fi |
| 24680 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24681 | |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 24682 | # also in 4.0 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24683 | { $as_echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 24684 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 24685 | if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24686 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 24687 | else |
| 24688 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 24689 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 24690 | cat >conftest.$ac_ext <<_ACEOF |
| 24691 | /* confdefs.h. */ |
| 24692 | _ACEOF |
| 24693 | cat confdefs.h >>conftest.$ac_ext |
| 24694 | cat >>conftest.$ac_ext <<_ACEOF |
| 24695 | /* end confdefs.h. */ |
| 24696 | |
| 24697 | /* Override any GCC internal prototype to avoid an error. |
| 24698 | Use char because int might match the return type of a GCC |
| 24699 | builtin and then its argument prototype would still apply. */ |
| 24700 | #ifdef __cplusplus |
| 24701 | extern "C" |
| 24702 | #endif |
| 24703 | char rl_completion_display_matches_hook (); |
| 24704 | int |
| 24705 | main () |
| 24706 | { |
| 24707 | return rl_completion_display_matches_hook (); |
| 24708 | ; |
| 24709 | return 0; |
| 24710 | } |
| 24711 | _ACEOF |
| 24712 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24713 | if { (ac_try="$ac_link" |
| 24714 | case "(($ac_try" in |
| 24715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24716 | *) ac_try_echo=$ac_try;; |
| 24717 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24718 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24719 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 24720 | (eval "$ac_link") 2>conftest.er1 |
| 24721 | ac_status=$? |
| 24722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24723 | rm -f conftest.er1 |
| 24724 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24725 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 24726 | (exit $ac_status); } && { |
| 24727 | test -z "$ac_c_werror_flag" || |
| 24728 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24729 | } && test -s conftest$ac_exeext && { |
| 24730 | test "$cross_compiling" = yes || |
| 24731 | $as_test_x conftest$ac_exeext |
| 24732 | }; then |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 24733 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 24734 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24735 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 24736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24737 | |
| 24738 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
| 24739 | fi |
| 24740 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24741 | rm -rf conftest.dSYM |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 24742 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24743 | conftest$ac_exeext conftest.$ac_ext |
| 24744 | LIBS=$ac_check_lib_save_LIBS |
| 24745 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24746 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 24747 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
| 24748 | if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = x""yes; then |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 24749 | |
| 24750 | cat >>confdefs.h <<\_ACEOF |
| 24751 | #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1 |
| 24752 | _ACEOF |
| 24753 | |
| 24754 | fi |
| 24755 | |
| 24756 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 24757 | # check for readline 4.2 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24758 | { $as_echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 24759 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24760 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24761 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 24762 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24763 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 24764 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24765 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24766 | /* confdefs.h. */ |
| 24767 | _ACEOF |
| 24768 | cat confdefs.h >>conftest.$ac_ext |
| 24769 | cat >>conftest.$ac_ext <<_ACEOF |
| 24770 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24771 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24772 | /* Override any GCC internal prototype to avoid an error. |
| 24773 | Use char because int might match the return type of a GCC |
| 24774 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24775 | #ifdef __cplusplus |
| 24776 | extern "C" |
| 24777 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24778 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24779 | int |
| 24780 | main () |
| 24781 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24782 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24783 | ; |
| 24784 | return 0; |
| 24785 | } |
| 24786 | _ACEOF |
| 24787 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24788 | if { (ac_try="$ac_link" |
| 24789 | case "(($ac_try" in |
| 24790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24791 | *) ac_try_echo=$ac_try;; |
| 24792 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24793 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24794 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24795 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24796 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24797 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24798 | rm -f conftest.er1 |
| 24799 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24800 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24801 | (exit $ac_status); } && { |
| 24802 | test -z "$ac_c_werror_flag" || |
| 24803 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24804 | } && test -s conftest$ac_exeext && { |
| 24805 | test "$cross_compiling" = yes || |
| 24806 | $as_test_x conftest$ac_exeext |
| 24807 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24808 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 24809 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24810 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24812 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24813 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 24814 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24815 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24816 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24817 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24818 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24819 | LIBS=$ac_check_lib_save_LIBS |
| 24820 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24821 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 24822 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } |
| 24823 | if test "x$ac_cv_lib_readline_rl_completion_matches" = x""yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24824 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24825 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 24826 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24827 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 24828 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 24829 | fi |
| 24830 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 24831 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24832 | # also in readline 4.2 |
| 24833 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24834 | /* confdefs.h. */ |
| 24835 | _ACEOF |
| 24836 | cat confdefs.h >>conftest.$ac_ext |
| 24837 | cat >>conftest.$ac_ext <<_ACEOF |
| 24838 | /* end confdefs.h. */ |
| 24839 | #include <readline/readline.h> |
| 24840 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24841 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 24842 | case "(($ac_try" in |
| 24843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24844 | *) ac_try_echo=$ac_try;; |
| 24845 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24846 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24847 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24848 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24849 | ac_status=$? |
| 24850 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24851 | rm -f conftest.er1 |
| 24852 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24853 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24854 | (exit $ac_status); } >/dev/null && { |
| 24855 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 24856 | test ! -s conftest.err |
| 24857 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24858 | have_readline=yes |
| 24859 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24860 | $as_echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24862 | |
| 24863 | have_readline=no |
| 24864 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24865 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24866 | rm -f conftest.err conftest.$ac_ext |
| 24867 | if test $have_readline = yes |
| 24868 | then |
| 24869 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24870 | /* confdefs.h. */ |
| 24871 | _ACEOF |
| 24872 | cat confdefs.h >>conftest.$ac_ext |
| 24873 | cat >>conftest.$ac_ext <<_ACEOF |
| 24874 | /* end confdefs.h. */ |
| 24875 | #include <readline/readline.h> |
| 24876 | |
| 24877 | _ACEOF |
| 24878 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 24879 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 24880 | |
| 24881 | cat >>confdefs.h <<\_ACEOF |
| 24882 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 24883 | _ACEOF |
| 24884 | |
| 24885 | fi |
| 24886 | rm -f conftest* |
| 24887 | |
| 24888 | fi |
| 24889 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 24890 | # End of readline checks: restore LIBS |
| 24891 | LIBS=$LIBS_no_readline |
| 24892 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24893 | { $as_echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 24894 | $as_echo_n "checking for broken nice()... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24895 | if test "${ac_cv_broken_nice+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24896 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24897 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24898 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24899 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 24900 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24901 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24902 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24903 | /* confdefs.h. */ |
| 24904 | _ACEOF |
| 24905 | cat confdefs.h >>conftest.$ac_ext |
| 24906 | cat >>conftest.$ac_ext <<_ACEOF |
| 24907 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24908 | |
| 24909 | int main() |
| 24910 | { |
| 24911 | int val1 = nice(1); |
| 24912 | if (val1 != -1 && val1 == nice(2)) |
| 24913 | exit(0); |
| 24914 | exit(1); |
| 24915 | } |
| 24916 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24917 | _ACEOF |
| 24918 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24919 | if { (ac_try="$ac_link" |
| 24920 | case "(($ac_try" in |
| 24921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24922 | *) ac_try_echo=$ac_try;; |
| 24923 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24924 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24925 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24926 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24927 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24928 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24929 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24930 | { (case "(($ac_try" in |
| 24931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24932 | *) ac_try_echo=$ac_try;; |
| 24933 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24934 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24935 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24936 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24937 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24938 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24939 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24940 | ac_cv_broken_nice=yes |
| 24941 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24942 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 24943 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24945 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24946 | ( exit $ac_status ) |
| 24947 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24948 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24949 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24950 | 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] | 24951 | fi |
| 24952 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24953 | |
| 24954 | fi |
| 24955 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24956 | { $as_echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 24957 | $as_echo "$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24958 | if test "$ac_cv_broken_nice" = yes |
| 24959 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24960 | |
| 24961 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24962 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24963 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24964 | |
| 24965 | fi |
| 24966 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 24967 | { $as_echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 24968 | $as_echo_n "checking for broken poll()... " >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24969 | if test "$cross_compiling" = yes; then |
| 24970 | ac_cv_broken_poll=no |
| 24971 | else |
| 24972 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24973 | /* confdefs.h. */ |
| 24974 | _ACEOF |
| 24975 | cat confdefs.h >>conftest.$ac_ext |
| 24976 | cat >>conftest.$ac_ext <<_ACEOF |
| 24977 | /* end confdefs.h. */ |
| 24978 | |
| 24979 | #include <poll.h> |
| 24980 | |
| 24981 | int main (void) |
| 24982 | { |
| 24983 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| 24984 | |
| 24985 | close (42); |
| 24986 | |
| 24987 | int poll_test = poll (&poll_struct, 1, 0); |
| 24988 | |
| 24989 | if (poll_test < 0) |
| 24990 | { |
| 24991 | exit(0); |
| 24992 | } |
| 24993 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
| 24994 | { |
| 24995 | exit(0); |
| 24996 | } |
| 24997 | else |
| 24998 | { |
| 24999 | exit(1); |
| 25000 | } |
| 25001 | } |
| 25002 | |
| 25003 | _ACEOF |
| 25004 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25005 | if { (ac_try="$ac_link" |
| 25006 | case "(($ac_try" in |
| 25007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25008 | *) ac_try_echo=$ac_try;; |
| 25009 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25010 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25011 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25012 | (eval "$ac_link") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25013 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25014 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25015 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25016 | { (case "(($ac_try" in |
| 25017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25018 | *) ac_try_echo=$ac_try;; |
| 25019 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25020 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25021 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25022 | (eval "$ac_try") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25023 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25024 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25025 | (exit $ac_status); }; }; then |
| 25026 | ac_cv_broken_poll=yes |
| 25027 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25028 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 25029 | $as_echo "$as_me: failed program was:" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25031 | |
| 25032 | ( exit $ac_status ) |
| 25033 | ac_cv_broken_poll=no |
| 25034 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25035 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25036 | 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] | 25037 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25038 | |
| 25039 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25040 | { $as_echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 25041 | $as_echo "$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25042 | if test "$ac_cv_broken_poll" = yes |
| 25043 | then |
| 25044 | |
| 25045 | cat >>confdefs.h <<\_ACEOF |
| 25046 | #define HAVE_BROKEN_POLL 1 |
| 25047 | _ACEOF |
| 25048 | |
| 25049 | fi |
| 25050 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25051 | # 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] | 25052 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 25053 | # tzname[] |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25054 | { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 25055 | $as_echo_n "checking for struct tm.tm_zone... " >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25056 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25057 | $as_echo_n "(cached) " >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25058 | else |
| 25059 | cat >conftest.$ac_ext <<_ACEOF |
| 25060 | /* confdefs.h. */ |
| 25061 | _ACEOF |
| 25062 | cat confdefs.h >>conftest.$ac_ext |
| 25063 | cat >>conftest.$ac_ext <<_ACEOF |
| 25064 | /* end confdefs.h. */ |
| 25065 | #include <sys/types.h> |
| 25066 | #include <$ac_cv_struct_tm> |
| 25067 | |
| 25068 | |
| 25069 | int |
| 25070 | main () |
| 25071 | { |
| 25072 | static struct tm ac_aggr; |
| 25073 | if (ac_aggr.tm_zone) |
| 25074 | return 0; |
| 25075 | ; |
| 25076 | return 0; |
| 25077 | } |
| 25078 | _ACEOF |
| 25079 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25080 | if { (ac_try="$ac_compile" |
| 25081 | case "(($ac_try" in |
| 25082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25083 | *) ac_try_echo=$ac_try;; |
| 25084 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25085 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25086 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25087 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25088 | ac_status=$? |
| 25089 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25090 | rm -f conftest.er1 |
| 25091 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25092 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25093 | (exit $ac_status); } && { |
| 25094 | test -z "$ac_c_werror_flag" || |
| 25095 | test ! -s conftest.err |
| 25096 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25097 | ac_cv_member_struct_tm_tm_zone=yes |
| 25098 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25099 | $as_echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25101 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25102 | cat >conftest.$ac_ext <<_ACEOF |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25103 | /* confdefs.h. */ |
| 25104 | _ACEOF |
| 25105 | cat confdefs.h >>conftest.$ac_ext |
| 25106 | cat >>conftest.$ac_ext <<_ACEOF |
| 25107 | /* end confdefs.h. */ |
| 25108 | #include <sys/types.h> |
| 25109 | #include <$ac_cv_struct_tm> |
| 25110 | |
| 25111 | |
| 25112 | int |
| 25113 | main () |
| 25114 | { |
| 25115 | static struct tm ac_aggr; |
| 25116 | if (sizeof ac_aggr.tm_zone) |
| 25117 | return 0; |
| 25118 | ; |
| 25119 | return 0; |
| 25120 | } |
| 25121 | _ACEOF |
| 25122 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25123 | if { (ac_try="$ac_compile" |
| 25124 | case "(($ac_try" in |
| 25125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25126 | *) ac_try_echo=$ac_try;; |
| 25127 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25128 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25129 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25130 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25131 | ac_status=$? |
| 25132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25133 | rm -f conftest.er1 |
| 25134 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25135 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25136 | (exit $ac_status); } && { |
| 25137 | test -z "$ac_c_werror_flag" || |
| 25138 | test ! -s conftest.err |
| 25139 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25140 | ac_cv_member_struct_tm_tm_zone=yes |
| 25141 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25142 | $as_echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25144 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25145 | ac_cv_member_struct_tm_tm_zone=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25146 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25147 | |
| 25148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25149 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25150 | |
| 25151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25152 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25153 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 25154 | $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 25155 | if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25156 | |
| 25157 | cat >>confdefs.h <<_ACEOF |
| 25158 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 25159 | _ACEOF |
| 25160 | |
| 25161 | |
| 25162 | fi |
| 25163 | |
| 25164 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 25165 | |
| 25166 | cat >>confdefs.h <<\_ACEOF |
| 25167 | #define HAVE_TM_ZONE 1 |
| 25168 | _ACEOF |
| 25169 | |
| 25170 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25171 | { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 25172 | $as_echo_n "checking whether tzname is declared... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25173 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25174 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25175 | else |
| 25176 | cat >conftest.$ac_ext <<_ACEOF |
| 25177 | /* confdefs.h. */ |
| 25178 | _ACEOF |
| 25179 | cat confdefs.h >>conftest.$ac_ext |
| 25180 | cat >>conftest.$ac_ext <<_ACEOF |
| 25181 | /* end confdefs.h. */ |
| 25182 | #include <time.h> |
| 25183 | |
| 25184 | int |
| 25185 | main () |
| 25186 | { |
| 25187 | #ifndef tzname |
| 25188 | (void) tzname; |
| 25189 | #endif |
| 25190 | |
| 25191 | ; |
| 25192 | return 0; |
| 25193 | } |
| 25194 | _ACEOF |
| 25195 | rm -f conftest.$ac_objext |
| 25196 | if { (ac_try="$ac_compile" |
| 25197 | case "(($ac_try" in |
| 25198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25199 | *) ac_try_echo=$ac_try;; |
| 25200 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25201 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25202 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25203 | (eval "$ac_compile") 2>conftest.er1 |
| 25204 | ac_status=$? |
| 25205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25206 | rm -f conftest.er1 |
| 25207 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25208 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25209 | (exit $ac_status); } && { |
| 25210 | test -z "$ac_c_werror_flag" || |
| 25211 | test ! -s conftest.err |
| 25212 | } && test -s conftest.$ac_objext; then |
| 25213 | ac_cv_have_decl_tzname=yes |
| 25214 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25215 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25217 | |
| 25218 | ac_cv_have_decl_tzname=no |
| 25219 | fi |
| 25220 | |
| 25221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25222 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25223 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 25224 | $as_echo "$ac_cv_have_decl_tzname" >&6; } |
| 25225 | if test "x$ac_cv_have_decl_tzname" = x""yes; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25226 | |
| 25227 | cat >>confdefs.h <<_ACEOF |
| 25228 | #define HAVE_DECL_TZNAME 1 |
| 25229 | _ACEOF |
| 25230 | |
| 25231 | |
| 25232 | else |
| 25233 | cat >>confdefs.h <<_ACEOF |
| 25234 | #define HAVE_DECL_TZNAME 0 |
| 25235 | _ACEOF |
| 25236 | |
| 25237 | |
| 25238 | fi |
| 25239 | |
| 25240 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25241 | { $as_echo "$as_me:$LINENO: checking for tzname" >&5 |
| 25242 | $as_echo_n "checking for tzname... " >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25243 | if test "${ac_cv_var_tzname+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25244 | $as_echo_n "(cached) " >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25245 | else |
| 25246 | cat >conftest.$ac_ext <<_ACEOF |
| 25247 | /* confdefs.h. */ |
| 25248 | _ACEOF |
| 25249 | cat confdefs.h >>conftest.$ac_ext |
| 25250 | cat >>conftest.$ac_ext <<_ACEOF |
| 25251 | /* end confdefs.h. */ |
| 25252 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25253 | #if !HAVE_DECL_TZNAME |
| 25254 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25255 | #endif |
| 25256 | |
| 25257 | int |
| 25258 | main () |
| 25259 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25260 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25261 | ; |
| 25262 | return 0; |
| 25263 | } |
| 25264 | _ACEOF |
| 25265 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25266 | if { (ac_try="$ac_link" |
| 25267 | case "(($ac_try" in |
| 25268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25269 | *) ac_try_echo=$ac_try;; |
| 25270 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25271 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25272 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25273 | (eval "$ac_link") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25274 | ac_status=$? |
| 25275 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25276 | rm -f conftest.er1 |
| 25277 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25278 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25279 | (exit $ac_status); } && { |
| 25280 | test -z "$ac_c_werror_flag" || |
| 25281 | test ! -s conftest.err |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25282 | } && test -s conftest$ac_exeext && { |
| 25283 | test "$cross_compiling" = yes || |
| 25284 | $as_test_x conftest$ac_exeext |
| 25285 | }; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25286 | ac_cv_var_tzname=yes |
| 25287 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25288 | $as_echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25290 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25291 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25292 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25293 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25294 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25295 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25296 | conftest$ac_exeext conftest.$ac_ext |
| 25297 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25298 | { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 25299 | $as_echo "$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25300 | if test $ac_cv_var_tzname = yes; then |
| 25301 | |
| 25302 | cat >>confdefs.h <<\_ACEOF |
| 25303 | #define HAVE_TZNAME 1 |
| 25304 | _ACEOF |
| 25305 | |
| 25306 | fi |
| 25307 | fi |
| 25308 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 25309 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 25310 | # check tzset(3) exists and works like we expect it to |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25311 | { $as_echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 25312 | $as_echo_n "checking for working tzset()... " >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25313 | if test "${ac_cv_working_tzset+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25314 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25315 | else |
| 25316 | |
| 25317 | if test "$cross_compiling" = yes; then |
| 25318 | ac_cv_working_tzset=no |
| 25319 | else |
| 25320 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25321 | /* confdefs.h. */ |
| 25322 | _ACEOF |
| 25323 | cat confdefs.h >>conftest.$ac_ext |
| 25324 | cat >>conftest.$ac_ext <<_ACEOF |
| 25325 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25326 | |
| 25327 | #include <stdlib.h> |
| 25328 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25329 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25330 | |
| 25331 | #if HAVE_TZNAME |
| 25332 | extern char *tzname[]; |
| 25333 | #endif |
| 25334 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25335 | int main() |
| 25336 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25337 | /* Note that we need to ensure that not only does tzset(3) |
| 25338 | do 'something' with localtime, but it works as documented |
| 25339 | 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] | 25340 | This includes making sure that tzname is set properly if |
| 25341 | tm->tm_zone does not exist since it is the alternative way |
| 25342 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25343 | |
| 25344 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 25345 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25346 | */ |
| 25347 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 25348 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25349 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 25350 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 25351 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25352 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25353 | if (localtime(&groundhogday)->tm_hour != 0) |
| 25354 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25355 | #if HAVE_TZNAME |
| 25356 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 25357 | if (strcmp(tzname[0], "UTC") || |
| 25358 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 25359 | exit(1); |
| 25360 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25361 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 25362 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25363 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25364 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25365 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25366 | #if HAVE_TZNAME |
| 25367 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 25368 | exit(1); |
| 25369 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25370 | |
| 25371 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 25372 | tzset(); |
| 25373 | if (localtime(&groundhogday)->tm_hour != 11) |
| 25374 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25375 | #if HAVE_TZNAME |
| 25376 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 25377 | exit(1); |
| 25378 | #endif |
| 25379 | |
| 25380 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25381 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 25382 | exit(1); |
| 25383 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 25384 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 25385 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 25386 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25387 | exit(0); |
| 25388 | } |
| 25389 | |
| 25390 | _ACEOF |
| 25391 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25392 | if { (ac_try="$ac_link" |
| 25393 | case "(($ac_try" in |
| 25394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25395 | *) ac_try_echo=$ac_try;; |
| 25396 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25397 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25398 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25399 | (eval "$ac_link") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25400 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25401 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25402 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25403 | { (case "(($ac_try" in |
| 25404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25405 | *) ac_try_echo=$ac_try;; |
| 25406 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25407 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25408 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25409 | (eval "$ac_try") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25410 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25411 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25412 | (exit $ac_status); }; }; then |
| 25413 | ac_cv_working_tzset=yes |
| 25414 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25415 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 25416 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25418 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25419 | ( exit $ac_status ) |
| 25420 | ac_cv_working_tzset=no |
| 25421 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25422 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25423 | 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] | 25424 | fi |
| 25425 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25426 | |
| 25427 | fi |
| 25428 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25429 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 25430 | $as_echo "$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 25431 | if test "$ac_cv_working_tzset" = yes |
| 25432 | then |
| 25433 | |
| 25434 | cat >>confdefs.h <<\_ACEOF |
| 25435 | #define HAVE_WORKING_TZSET 1 |
| 25436 | _ACEOF |
| 25437 | |
| 25438 | fi |
| 25439 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25440 | # Look for subsecond timestamps in struct stat |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25441 | { $as_echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 25442 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25443 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25444 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25445 | else |
| 25446 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25447 | /* confdefs.h. */ |
| 25448 | _ACEOF |
| 25449 | cat confdefs.h >>conftest.$ac_ext |
| 25450 | cat >>conftest.$ac_ext <<_ACEOF |
| 25451 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25452 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25453 | int |
| 25454 | main () |
| 25455 | { |
| 25456 | |
| 25457 | struct stat st; |
| 25458 | st.st_mtim.tv_nsec = 1; |
| 25459 | |
| 25460 | ; |
| 25461 | return 0; |
| 25462 | } |
| 25463 | _ACEOF |
| 25464 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25465 | if { (ac_try="$ac_compile" |
| 25466 | case "(($ac_try" in |
| 25467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25468 | *) ac_try_echo=$ac_try;; |
| 25469 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25470 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25471 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25472 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25473 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25474 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25475 | rm -f conftest.er1 |
| 25476 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25477 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25478 | (exit $ac_status); } && { |
| 25479 | test -z "$ac_c_werror_flag" || |
| 25480 | test ! -s conftest.err |
| 25481 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 25482 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25483 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25484 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25486 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25487 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25488 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25489 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25491 | fi |
| 25492 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25493 | { $as_echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 25494 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 25495 | if test "$ac_cv_stat_tv_nsec" = yes |
| 25496 | then |
| 25497 | |
| 25498 | cat >>confdefs.h <<\_ACEOF |
| 25499 | #define HAVE_STAT_TV_NSEC 1 |
| 25500 | _ACEOF |
| 25501 | |
| 25502 | fi |
| 25503 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 25504 | # Look for BSD style subsecond timestamps in struct stat |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25505 | { $as_echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 25506 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 25507 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25508 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 25509 | else |
| 25510 | cat >conftest.$ac_ext <<_ACEOF |
| 25511 | /* confdefs.h. */ |
| 25512 | _ACEOF |
| 25513 | cat confdefs.h >>conftest.$ac_ext |
| 25514 | cat >>conftest.$ac_ext <<_ACEOF |
| 25515 | /* end confdefs.h. */ |
| 25516 | #include <sys/stat.h> |
| 25517 | int |
| 25518 | main () |
| 25519 | { |
| 25520 | |
| 25521 | struct stat st; |
| 25522 | st.st_mtimespec.tv_nsec = 1; |
| 25523 | |
| 25524 | ; |
| 25525 | return 0; |
| 25526 | } |
| 25527 | _ACEOF |
| 25528 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25529 | if { (ac_try="$ac_compile" |
| 25530 | case "(($ac_try" in |
| 25531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25532 | *) ac_try_echo=$ac_try;; |
| 25533 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25534 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25535 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25536 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 25537 | ac_status=$? |
| 25538 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25539 | rm -f conftest.er1 |
| 25540 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25541 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25542 | (exit $ac_status); } && { |
| 25543 | test -z "$ac_c_werror_flag" || |
| 25544 | test ! -s conftest.err |
| 25545 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 25546 | ac_cv_stat_tv_nsec2=yes |
| 25547 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25548 | $as_echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 25549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25550 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25551 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 25552 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25553 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25555 | fi |
| 25556 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25557 | { $as_echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 25558 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 25559 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 25560 | then |
| 25561 | |
| 25562 | cat >>confdefs.h <<\_ACEOF |
| 25563 | #define HAVE_STAT_TV_NSEC2 1 |
| 25564 | _ACEOF |
| 25565 | |
| 25566 | fi |
| 25567 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 25568 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25569 | { $as_echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 25570 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25571 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25572 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 25573 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25574 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25575 | /* confdefs.h. */ |
| 25576 | _ACEOF |
| 25577 | cat confdefs.h >>conftest.$ac_ext |
| 25578 | cat >>conftest.$ac_ext <<_ACEOF |
| 25579 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 25580 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25581 | int |
| 25582 | main () |
| 25583 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 25584 | |
| 25585 | int rtn; |
| 25586 | rtn = mvwdelch(0,0,0); |
| 25587 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25588 | ; |
| 25589 | return 0; |
| 25590 | } |
| 25591 | _ACEOF |
| 25592 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25593 | if { (ac_try="$ac_compile" |
| 25594 | case "(($ac_try" in |
| 25595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25596 | *) ac_try_echo=$ac_try;; |
| 25597 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25598 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25599 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25600 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25601 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25603 | rm -f conftest.er1 |
| 25604 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25605 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25606 | (exit $ac_status); } && { |
| 25607 | test -z "$ac_c_werror_flag" || |
| 25608 | test ! -s conftest.err |
| 25609 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 25610 | ac_cv_mvwdelch_is_expression=yes |
| 25611 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25612 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25614 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25615 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 25616 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25617 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25619 | fi |
| 25620 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25621 | { $as_echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 25622 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 25623 | |
| 25624 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 25625 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25626 | |
| 25627 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 25628 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25629 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 25630 | |
| 25631 | fi |
| 25632 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25633 | { $as_echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 25634 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25635 | if test "${ac_cv_window_has_flags+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25636 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 25637 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25638 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25639 | /* confdefs.h. */ |
| 25640 | _ACEOF |
| 25641 | cat confdefs.h >>conftest.$ac_ext |
| 25642 | cat >>conftest.$ac_ext <<_ACEOF |
| 25643 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 25644 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25645 | int |
| 25646 | main () |
| 25647 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 25648 | |
| 25649 | WINDOW *w; |
| 25650 | w->_flags = 0; |
| 25651 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25652 | ; |
| 25653 | return 0; |
| 25654 | } |
| 25655 | _ACEOF |
| 25656 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25657 | if { (ac_try="$ac_compile" |
| 25658 | case "(($ac_try" in |
| 25659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25660 | *) ac_try_echo=$ac_try;; |
| 25661 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25662 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25663 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25664 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25665 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25667 | rm -f conftest.er1 |
| 25668 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25669 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25670 | (exit $ac_status); } && { |
| 25671 | test -z "$ac_c_werror_flag" || |
| 25672 | test ! -s conftest.err |
| 25673 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 25674 | ac_cv_window_has_flags=yes |
| 25675 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25676 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25678 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25679 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 25680 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25681 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25683 | fi |
| 25684 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25685 | { $as_echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 25686 | $as_echo "$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25687 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 25688 | |
| 25689 | if test "$ac_cv_window_has_flags" = yes |
| 25690 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25691 | |
| 25692 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 25693 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25694 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 25695 | |
| 25696 | fi |
| 25697 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25698 | { $as_echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 25699 | $as_echo_n "checking for is_term_resized... " >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 25700 | cat >conftest.$ac_ext <<_ACEOF |
| 25701 | /* confdefs.h. */ |
| 25702 | _ACEOF |
| 25703 | cat confdefs.h >>conftest.$ac_ext |
| 25704 | cat >>conftest.$ac_ext <<_ACEOF |
| 25705 | /* end confdefs.h. */ |
| 25706 | #include <curses.h> |
| 25707 | int |
| 25708 | main () |
| 25709 | { |
| 25710 | void *x=is_term_resized |
| 25711 | ; |
| 25712 | return 0; |
| 25713 | } |
| 25714 | _ACEOF |
| 25715 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25716 | if { (ac_try="$ac_compile" |
| 25717 | case "(($ac_try" in |
| 25718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25719 | *) ac_try_echo=$ac_try;; |
| 25720 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25721 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25722 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25723 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 25724 | ac_status=$? |
| 25725 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25726 | rm -f conftest.er1 |
| 25727 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25728 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25729 | (exit $ac_status); } && { |
| 25730 | test -z "$ac_c_werror_flag" || |
| 25731 | test ! -s conftest.err |
| 25732 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 25733 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 25734 | cat >>confdefs.h <<\_ACEOF |
| 25735 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 25736 | _ACEOF |
| 25737 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25738 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 25739 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 25740 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25741 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 25742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25743 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25744 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 25745 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 25746 | |
| 25747 | fi |
| 25748 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25750 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25751 | { $as_echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 25752 | $as_echo_n "checking for resize_term... " >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 25753 | cat >conftest.$ac_ext <<_ACEOF |
| 25754 | /* confdefs.h. */ |
| 25755 | _ACEOF |
| 25756 | cat confdefs.h >>conftest.$ac_ext |
| 25757 | cat >>conftest.$ac_ext <<_ACEOF |
| 25758 | /* end confdefs.h. */ |
| 25759 | #include <curses.h> |
| 25760 | int |
| 25761 | main () |
| 25762 | { |
| 25763 | void *x=resize_term |
| 25764 | ; |
| 25765 | return 0; |
| 25766 | } |
| 25767 | _ACEOF |
| 25768 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25769 | if { (ac_try="$ac_compile" |
| 25770 | case "(($ac_try" in |
| 25771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25772 | *) ac_try_echo=$ac_try;; |
| 25773 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25774 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25775 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25776 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 25777 | ac_status=$? |
| 25778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25779 | rm -f conftest.er1 |
| 25780 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25781 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25782 | (exit $ac_status); } && { |
| 25783 | test -z "$ac_c_werror_flag" || |
| 25784 | test ! -s conftest.err |
| 25785 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 25786 | |
| 25787 | cat >>confdefs.h <<\_ACEOF |
| 25788 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 25789 | _ACEOF |
| 25790 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25791 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 25792 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 25793 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25794 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 25795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25796 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25797 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 25798 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 25799 | |
| 25800 | fi |
| 25801 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25803 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25804 | { $as_echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 25805 | $as_echo_n "checking for resizeterm... " >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 25806 | cat >conftest.$ac_ext <<_ACEOF |
| 25807 | /* confdefs.h. */ |
| 25808 | _ACEOF |
| 25809 | cat confdefs.h >>conftest.$ac_ext |
| 25810 | cat >>conftest.$ac_ext <<_ACEOF |
| 25811 | /* end confdefs.h. */ |
| 25812 | #include <curses.h> |
| 25813 | int |
| 25814 | main () |
| 25815 | { |
| 25816 | void *x=resizeterm |
| 25817 | ; |
| 25818 | return 0; |
| 25819 | } |
| 25820 | _ACEOF |
| 25821 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25822 | if { (ac_try="$ac_compile" |
| 25823 | case "(($ac_try" in |
| 25824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25825 | *) ac_try_echo=$ac_try;; |
| 25826 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25827 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25828 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25829 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 25830 | ac_status=$? |
| 25831 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25832 | rm -f conftest.er1 |
| 25833 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25834 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25835 | (exit $ac_status); } && { |
| 25836 | test -z "$ac_c_werror_flag" || |
| 25837 | test ! -s conftest.err |
| 25838 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 25839 | |
| 25840 | cat >>confdefs.h <<\_ACEOF |
| 25841 | #define HAVE_CURSES_RESIZETERM 1 |
| 25842 | _ACEOF |
| 25843 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25844 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 25845 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 25846 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25847 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 25848 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25849 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25850 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 25851 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 25852 | |
| 25853 | fi |
| 25854 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25856 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25857 | { $as_echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 25858 | $as_echo_n "checking for /dev/ptmx... " >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 25859 | |
| 25860 | if test -r /dev/ptmx |
| 25861 | then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25862 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 25863 | $as_echo "yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 25864 | |
| 25865 | cat >>confdefs.h <<\_ACEOF |
| 25866 | #define HAVE_DEV_PTMX 1 |
| 25867 | _ACEOF |
| 25868 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 25869 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25870 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 25871 | $as_echo "no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 25872 | fi |
| 25873 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25874 | { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 25875 | $as_echo_n "checking for /dev/ptc... " >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 25876 | |
| 25877 | if test -r /dev/ptc |
| 25878 | then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25879 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 25880 | $as_echo "yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 25881 | |
| 25882 | cat >>confdefs.h <<\_ACEOF |
| 25883 | #define HAVE_DEV_PTC 1 |
| 25884 | _ACEOF |
| 25885 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 25886 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25887 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 25888 | $as_echo "no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 25889 | fi |
| 25890 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25891 | { $as_echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 25892 | $as_echo_n "checking for %zd printf() format support... " >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25893 | if test "$cross_compiling" = yes; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25894 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 25895 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 25896 | { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25897 | See \`config.log' for more details." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25898 | $as_echo "$as_me: error: cannot run test program while cross compiling |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25899 | See \`config.log' for more details." >&2;} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25900 | { (exit 1); exit 1; }; }; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25901 | else |
| 25902 | cat >conftest.$ac_ext <<_ACEOF |
| 25903 | /* confdefs.h. */ |
| 25904 | _ACEOF |
| 25905 | cat confdefs.h >>conftest.$ac_ext |
| 25906 | cat >>conftest.$ac_ext <<_ACEOF |
| 25907 | /* end confdefs.h. */ |
| 25908 | #include <stdio.h> |
| 25909 | #include <stddef.h> |
| 25910 | #include <string.h> |
| 25911 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 25912 | #ifdef HAVE_SYS_TYPES_H |
| 25913 | #include <sys/types.h> |
| 25914 | #endif |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 25915 | |
| 25916 | #ifdef HAVE_SSIZE_T |
| 25917 | typedef ssize_t Py_ssize_t; |
| 25918 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 25919 | typedef long Py_ssize_t; |
| 25920 | #else |
| 25921 | typedef int Py_ssize_t; |
| 25922 | #endif |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25923 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 25924 | int main() |
| 25925 | { |
| 25926 | char buffer[256]; |
| 25927 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25928 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 25929 | return 1; |
| 25930 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 25931 | if (strcmp(buffer, "123")) |
| 25932 | return 1; |
| 25933 | |
| 25934 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 25935 | return 1; |
| 25936 | |
| 25937 | if (strcmp(buffer, "-123")) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25938 | return 1; |
| 25939 | |
| 25940 | return 0; |
| 25941 | } |
| 25942 | _ACEOF |
| 25943 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25944 | if { (ac_try="$ac_link" |
| 25945 | case "(($ac_try" in |
| 25946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25947 | *) ac_try_echo=$ac_try;; |
| 25948 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25949 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25950 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25951 | (eval "$ac_link") 2>&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25952 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25953 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25954 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25955 | { (case "(($ac_try" in |
| 25956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25957 | *) ac_try_echo=$ac_try;; |
| 25958 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25959 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25960 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25961 | (eval "$ac_try") 2>&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25962 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25963 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25964 | (exit $ac_status); }; }; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25965 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 25966 | $as_echo "yes" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25967 | |
| 25968 | cat >>confdefs.h <<\_ACEOF |
| 25969 | #define PY_FORMAT_SIZE_T "z" |
| 25970 | _ACEOF |
| 25971 | |
| 25972 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25973 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 25974 | $as_echo "$as_me: failed program was:" >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25976 | |
| 25977 | ( exit $ac_status ) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25978 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 25979 | $as_echo "no" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25980 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25981 | rm -rf conftest.dSYM |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25982 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25983 | fi |
| 25984 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25985 | |
| 25986 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25987 | { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 25988 | $as_echo_n "checking for socklen_t... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25989 | if test "${ac_cv_type_socklen_t+set}" = set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25990 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 25991 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 25992 | ac_cv_type_socklen_t=no |
| 25993 | cat >conftest.$ac_ext <<_ACEOF |
| 25994 | /* confdefs.h. */ |
| 25995 | _ACEOF |
| 25996 | cat confdefs.h >>conftest.$ac_ext |
| 25997 | cat >>conftest.$ac_ext <<_ACEOF |
| 25998 | /* end confdefs.h. */ |
| 25999 | |
| 26000 | #ifdef HAVE_SYS_TYPES_H |
| 26001 | #include <sys/types.h> |
| 26002 | #endif |
| 26003 | #ifdef HAVE_SYS_SOCKET_H |
| 26004 | #include <sys/socket.h> |
| 26005 | #endif |
| 26006 | |
| 26007 | |
| 26008 | int |
| 26009 | main () |
| 26010 | { |
| 26011 | if (sizeof (socklen_t)) |
| 26012 | return 0; |
| 26013 | ; |
| 26014 | return 0; |
| 26015 | } |
| 26016 | _ACEOF |
| 26017 | rm -f conftest.$ac_objext |
| 26018 | if { (ac_try="$ac_compile" |
| 26019 | case "(($ac_try" in |
| 26020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26021 | *) ac_try_echo=$ac_try;; |
| 26022 | esac |
| 26023 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26024 | $as_echo "$ac_try_echo") >&5 |
| 26025 | (eval "$ac_compile") 2>conftest.er1 |
| 26026 | ac_status=$? |
| 26027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26028 | rm -f conftest.er1 |
| 26029 | cat conftest.err >&5 |
| 26030 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26031 | (exit $ac_status); } && { |
| 26032 | test -z "$ac_c_werror_flag" || |
| 26033 | test ! -s conftest.err |
| 26034 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26035 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26036 | /* confdefs.h. */ |
| 26037 | _ACEOF |
| 26038 | cat confdefs.h >>conftest.$ac_ext |
| 26039 | cat >>conftest.$ac_ext <<_ACEOF |
| 26040 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 26041 | |
| 26042 | #ifdef HAVE_SYS_TYPES_H |
| 26043 | #include <sys/types.h> |
| 26044 | #endif |
| 26045 | #ifdef HAVE_SYS_SOCKET_H |
| 26046 | #include <sys/socket.h> |
| 26047 | #endif |
| 26048 | |
| 26049 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26050 | int |
| 26051 | main () |
| 26052 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26053 | if (sizeof ((socklen_t))) |
| 26054 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26055 | ; |
| 26056 | return 0; |
| 26057 | } |
| 26058 | _ACEOF |
| 26059 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26060 | if { (ac_try="$ac_compile" |
| 26061 | case "(($ac_try" in |
| 26062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26063 | *) ac_try_echo=$ac_try;; |
| 26064 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26065 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26066 | $as_echo "$ac_try_echo") >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26067 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26068 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26070 | rm -f conftest.er1 |
| 26071 | cat conftest.err >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26072 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26073 | (exit $ac_status); } && { |
| 26074 | test -z "$ac_c_werror_flag" || |
| 26075 | test ! -s conftest.err |
| 26076 | } && test -s conftest.$ac_objext; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26077 | : |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26078 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26079 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26081 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26082 | ac_cv_type_socklen_t=yes |
| 26083 | fi |
| 26084 | |
| 26085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26086 | else |
| 26087 | $as_echo "$as_me: failed program was:" >&5 |
| 26088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26089 | |
| 26090 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26091 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26092 | |
| 26093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26094 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26095 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 26096 | $as_echo "$ac_cv_type_socklen_t" >&6; } |
| 26097 | if test "x$ac_cv_type_socklen_t" = x""yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26098 | : |
| 26099 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26100 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 26101 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26102 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26103 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 26104 | |
| 26105 | fi |
| 26106 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26107 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26108 | { $as_echo "$as_me:$LINENO: checking for broken mbstowcs" >&5 |
| 26109 | $as_echo_n "checking for broken mbstowcs... " >&6; } |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 26110 | if test "$cross_compiling" = yes; then |
| 26111 | ac_cv_broken_mbstowcs=no |
| 26112 | else |
| 26113 | cat >conftest.$ac_ext <<_ACEOF |
| 26114 | /* confdefs.h. */ |
| 26115 | _ACEOF |
| 26116 | cat confdefs.h >>conftest.$ac_ext |
| 26117 | cat >>conftest.$ac_ext <<_ACEOF |
| 26118 | /* end confdefs.h. */ |
| 26119 | |
| 26120 | #include<stdlib.h> |
| 26121 | int main() { |
| 26122 | size_t len = -1; |
| 26123 | const char *str = "text"; |
| 26124 | len = mbstowcs(NULL, str, 0); |
| 26125 | return (len != 4); |
| 26126 | } |
| 26127 | |
| 26128 | _ACEOF |
| 26129 | rm -f conftest$ac_exeext |
| 26130 | if { (ac_try="$ac_link" |
| 26131 | case "(($ac_try" in |
| 26132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26133 | *) ac_try_echo=$ac_try;; |
| 26134 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26135 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26136 | $as_echo "$ac_try_echo") >&5 |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 26137 | (eval "$ac_link") 2>&5 |
| 26138 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26139 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 26140 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 26141 | { (case "(($ac_try" in |
| 26142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26143 | *) ac_try_echo=$ac_try;; |
| 26144 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26145 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26146 | $as_echo "$ac_try_echo") >&5 |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 26147 | (eval "$ac_try") 2>&5 |
| 26148 | ac_status=$? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26149 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 26150 | (exit $ac_status); }; }; then |
| 26151 | ac_cv_broken_mbstowcs=no |
| 26152 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26153 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 26154 | $as_echo "$as_me: failed program was:" >&5 |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 26155 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26156 | |
| 26157 | ( exit $ac_status ) |
| 26158 | ac_cv_broken_mbstowcs=yes |
| 26159 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26160 | rm -rf conftest.dSYM |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 26161 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 26162 | fi |
| 26163 | |
| 26164 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26165 | { $as_echo "$as_me:$LINENO: result: $ac_cv_broken_mbstowcs" >&5 |
| 26166 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 26167 | if test "$ac_cv_broken_mbstowcs" = yes |
| 26168 | then |
| 26169 | |
| 26170 | cat >>confdefs.h <<\_ACEOF |
| 26171 | #define HAVE_BROKEN_MBSTOWCS 1 |
| 26172 | _ACEOF |
| 26173 | |
| 26174 | fi |
| 26175 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26176 | # Check for --with-computed-gotos |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26177 | { $as_echo "$as_me:$LINENO: checking for --with-computed-gotos" >&5 |
| 26178 | $as_echo_n "checking for --with-computed-gotos... " >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26179 | |
| 26180 | # Check whether --with-computed-gotos was given. |
| 26181 | if test "${with_computed_gotos+set}" = set; then |
| 26182 | withval=$with_computed_gotos; |
| 26183 | if test "$withval" != no |
| 26184 | then |
| 26185 | |
| 26186 | cat >>confdefs.h <<\_ACEOF |
| 26187 | #define USE_COMPUTED_GOTOS 1 |
| 26188 | _ACEOF |
| 26189 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26190 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 26191 | $as_echo "yes" >&6; } |
| 26192 | else { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 26193 | $as_echo "no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26194 | fi |
| 26195 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26196 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 26197 | $as_echo "no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 26198 | fi |
| 26199 | |
| 26200 | |
| 26201 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26202 | |
| 26203 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 26204 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 26205 | do |
| 26206 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 26207 | done |
| 26208 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26209 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 26210 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26211 | { $as_echo "$as_me:$LINENO: checking for build directories" >&5 |
| 26212 | $as_echo_n "checking for build directories... " >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 26213 | for dir in $SRCDIRS; do |
| 26214 | if test ! -d $dir; then |
| 26215 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 26216 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 26217 | done |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26218 | { $as_echo "$as_me:$LINENO: result: done" >&5 |
| 26219 | $as_echo "done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 26220 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 26221 | # generate output files |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26222 | 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] | 26223 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26224 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26225 | # This file is a shell script that caches the results of configure |
| 26226 | # 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] | 26227 | # scripts and configure runs, see configure's option --config-cache. |
| 26228 | # It is not useful on other systems. If it contains results you don't |
| 26229 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26230 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26231 | # config.status only pays attention to the cache file if you give it |
| 26232 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26233 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26234 | # `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] | 26235 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 26236 | # following values. |
| 26237 | |
| 26238 | _ACEOF |
| 26239 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 26240 | # The following way of writing the cache mishandles newlines in values, |
| 26241 | # but we know of no workaround that is simple, portable, and efficient. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26242 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 26243 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 26244 | # 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] | 26245 | ( |
| 26246 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 26247 | eval ac_val=\$$ac_var |
| 26248 | case $ac_val in #( |
| 26249 | *${as_nl}*) |
| 26250 | case $ac_var in #( |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26251 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
| 26252 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26253 | esac |
| 26254 | case $ac_var in #( |
| 26255 | _ | IFS | as_nl) ;; #( |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26256 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26257 | *) $as_unset $ac_var ;; |
| 26258 | esac ;; |
| 26259 | esac |
| 26260 | done |
| 26261 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26262 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26263 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 26264 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26265 | # `set' does not quote correctly, so add quotes (double-quote |
| 26266 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 26267 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26268 | "s/'/'\\\\''/g; |
| 26269 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26270 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26271 | *) |
| 26272 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26273 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26274 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26275 | esac | |
| 26276 | sort |
| 26277 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26278 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26279 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26280 | t clear |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26281 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26282 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 26283 | t end |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26284 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 26285 | :end' >>confcache |
| 26286 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 26287 | if test -w "$cache_file"; then |
| 26288 | test "x$cache_file" != "x/dev/null" && |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26289 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 26290 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26291 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 26292 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26293 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 26294 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 26295 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26296 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 26297 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 26298 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26299 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 26300 | # Let make expand exec_prefix. |
| 26301 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 26302 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26303 | DEFS=-DHAVE_CONFIG_H |
| 26304 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26305 | ac_libobjs= |
| 26306 | ac_ltlibobjs= |
| 26307 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 26308 | # 1. Remove the extension, and $U if already installed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26309 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26310 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26311 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 26312 | # will be set to the directory where LIBOBJS objects are built. |
| 26313 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 26314 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26315 | done |
| 26316 | LIBOBJS=$ac_libobjs |
| 26317 | |
| 26318 | LTLIBOBJS=$ac_ltlibobjs |
| 26319 | |
| 26320 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26321 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26322 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26323 | : ${CONFIG_STATUS=./config.status} |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26324 | ac_write_fail=0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26325 | ac_clean_files_save=$ac_clean_files |
| 26326 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26327 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 26328 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 26329 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26330 | #! $SHELL |
| 26331 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 26332 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26333 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26334 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 26335 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26336 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26337 | ac_cs_recheck=false |
| 26338 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26339 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 26340 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 26341 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26342 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26343 | ## --------------------- ## |
| 26344 | ## M4sh Initialization. ## |
| 26345 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 26346 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26347 | # Be more Bourne compatible |
| 26348 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26349 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 26350 | emulate sh |
| 26351 | NULLCMD=: |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26352 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26353 | # is contrary to our usage. Disable this feature. |
| 26354 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26355 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 26356 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26357 | case `(set -o) 2>/dev/null` in |
| 26358 | *posix*) set -o posix ;; |
| 26359 | esac |
| 26360 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26361 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 26362 | |
| 26363 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26364 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26365 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26366 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26367 | # Avoid depending upon Character Ranges. |
| 26368 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 26369 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 26370 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 26371 | as_cr_digits='0123456789' |
| 26372 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 26373 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26374 | as_nl=' |
| 26375 | ' |
| 26376 | export as_nl |
| 26377 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 26378 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 26379 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 26380 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 26381 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 26382 | as_echo='printf %s\n' |
| 26383 | as_echo_n='printf %s' |
| 26384 | else |
| 26385 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 26386 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 26387 | as_echo_n='/usr/ucb/echo -n' |
| 26388 | else |
| 26389 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 26390 | as_echo_n_body='eval |
| 26391 | arg=$1; |
| 26392 | case $arg in |
| 26393 | *"$as_nl"*) |
| 26394 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 26395 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 26396 | esac; |
| 26397 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 26398 | ' |
| 26399 | export as_echo_n_body |
| 26400 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 26401 | fi |
| 26402 | export as_echo_body |
| 26403 | as_echo='sh -c $as_echo_body as_echo' |
| 26404 | fi |
| 26405 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26406 | # The user is always right. |
| 26407 | if test "${PATH_SEPARATOR+set}" != set; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26408 | PATH_SEPARATOR=: |
| 26409 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 26410 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 26411 | PATH_SEPARATOR=';' |
| 26412 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26413 | fi |
| 26414 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26415 | # Support unset when possible. |
| 26416 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 26417 | as_unset=unset |
| 26418 | else |
| 26419 | as_unset=false |
| 26420 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26421 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26422 | |
| 26423 | # IFS |
| 26424 | # We need space, tab and new line, in precisely that order. Quoting is |
| 26425 | # there to prevent editors from complaining about space-tab. |
| 26426 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 26427 | # splitting by setting IFS to empty value.) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26428 | IFS=" "" $as_nl" |
| 26429 | |
| 26430 | # Find who we are. Look in the path if we contain no directory separator. |
| 26431 | case $0 in |
| 26432 | *[\\/]* ) as_myself=$0 ;; |
| 26433 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26434 | for as_dir in $PATH |
| 26435 | do |
| 26436 | IFS=$as_save_IFS |
| 26437 | test -z "$as_dir" && as_dir=. |
| 26438 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 26439 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26440 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26441 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26442 | ;; |
| 26443 | esac |
| 26444 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 26445 | # in which case we are not to be found in the path. |
| 26446 | if test "x$as_myself" = x; then |
| 26447 | as_myself=$0 |
| 26448 | fi |
| 26449 | if test ! -f "$as_myself"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26450 | $as_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] | 26451 | { (exit 1); exit 1; } |
| 26452 | fi |
| 26453 | |
| 26454 | # Work around bugs in pre-3.0 UWIN ksh. |
| 26455 | for as_var in ENV MAIL MAILPATH |
| 26456 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 26457 | done |
| 26458 | PS1='$ ' |
| 26459 | PS2='> ' |
| 26460 | PS4='+ ' |
| 26461 | |
| 26462 | # NLS nuisances. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26463 | LC_ALL=C |
| 26464 | export LC_ALL |
| 26465 | LANGUAGE=C |
| 26466 | export LANGUAGE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26467 | |
| 26468 | # Required to use basename. |
| 26469 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 26470 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 26471 | as_expr=expr |
| 26472 | else |
| 26473 | as_expr=false |
| 26474 | fi |
| 26475 | |
| 26476 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 26477 | as_basename=basename |
| 26478 | else |
| 26479 | as_basename=false |
| 26480 | fi |
| 26481 | |
| 26482 | |
| 26483 | # Name of the executable. |
| 26484 | as_me=`$as_basename -- "$0" || |
| 26485 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 26486 | X"$0" : 'X\(//\)$' \| \ |
| 26487 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26488 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26489 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 26490 | s//\1/ |
| 26491 | q |
| 26492 | } |
| 26493 | /^X\/\(\/\/\)$/{ |
| 26494 | s//\1/ |
| 26495 | q |
| 26496 | } |
| 26497 | /^X\/\(\/\).*/{ |
| 26498 | s//\1/ |
| 26499 | q |
| 26500 | } |
| 26501 | s/.*/./; q'` |
| 26502 | |
| 26503 | # CDPATH. |
| 26504 | $as_unset CDPATH |
| 26505 | |
| 26506 | |
| 26507 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26508 | as_lineno_1=$LINENO |
| 26509 | as_lineno_2=$LINENO |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26510 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26511 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 26512 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26513 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 26514 | # uniformly replaced by the line number. The first 'sed' inserts a |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26515 | # line-number line after each line using $LINENO; the second 'sed' |
| 26516 | # does the real work. The second script uses 'N' to pair each |
| 26517 | # line-number line with the line containing $LINENO, and appends |
| 26518 | # trailing '-' during substitution so that $LINENO is not a special |
| 26519 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26520 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26521 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 26522 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 26523 | sed -n ' |
| 26524 | p |
| 26525 | /[$]LINENO/= |
| 26526 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26527 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26528 | s/[$]LINENO.*/&-/ |
| 26529 | t lineno |
| 26530 | b |
| 26531 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26532 | N |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26533 | :loop |
| 26534 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26535 | t loop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26536 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26537 | ' >$as_me.lineno && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26538 | chmod +x "$as_me.lineno" || |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26539 | { $as_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] | 26540 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26541 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26542 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 26543 | # (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] | 26544 | # original and so on. Autoconf is especially sensitive to this). |
| 26545 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26546 | # Exit status is that of the last command. |
| 26547 | exit |
| 26548 | } |
| 26549 | |
| 26550 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26551 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 26552 | as_dirname=dirname |
| 26553 | else |
| 26554 | as_dirname=false |
| 26555 | fi |
| 26556 | |
| 26557 | ECHO_C= ECHO_N= ECHO_T= |
| 26558 | case `echo -n x` in |
| 26559 | -n*) |
| 26560 | case `echo 'x\c'` in |
| 26561 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 26562 | *) ECHO_C='\c';; |
| 26563 | esac;; |
| 26564 | *) |
| 26565 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26566 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26567 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 26568 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26569 | as_expr=expr |
| 26570 | else |
| 26571 | as_expr=false |
| 26572 | fi |
| 26573 | |
| 26574 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26575 | if test -d conf$$.dir; then |
| 26576 | rm -f conf$$.dir/conf$$.file |
| 26577 | else |
| 26578 | rm -f conf$$.dir |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26579 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26580 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26581 | if (echo >conf$$.file) 2>/dev/null; then |
| 26582 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 26583 | as_ln_s='ln -s' |
| 26584 | # ... but there are two gotchas: |
| 26585 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 26586 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 26587 | # In both cases, we have to default to `cp -p'. |
| 26588 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 26589 | as_ln_s='cp -p' |
| 26590 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 26591 | as_ln_s=ln |
| 26592 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26593 | as_ln_s='cp -p' |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26594 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26595 | else |
| 26596 | as_ln_s='cp -p' |
| 26597 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26598 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 26599 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26600 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26601 | if mkdir -p . 2>/dev/null; then |
| 26602 | as_mkdir_p=: |
| 26603 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26604 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26605 | as_mkdir_p=false |
| 26606 | fi |
| 26607 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26608 | if test -x / >/dev/null 2>&1; then |
| 26609 | as_test_x='test -x' |
| 26610 | else |
| 26611 | if ls -dL / >/dev/null 2>&1; then |
| 26612 | as_ls_L_option=L |
| 26613 | else |
| 26614 | as_ls_L_option= |
| 26615 | fi |
| 26616 | as_test_x=' |
| 26617 | eval sh -c '\'' |
| 26618 | if test -d "$1"; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26619 | test -d "$1/."; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26620 | else |
| 26621 | case $1 in |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26622 | -*)set "./$1";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26623 | esac; |
| 26624 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 26625 | ???[sx]*):;;*)false;;esac;fi |
| 26626 | '\'' sh |
| 26627 | ' |
| 26628 | fi |
| 26629 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26630 | |
| 26631 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26632 | 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] | 26633 | |
| 26634 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26635 | 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] | 26636 | |
| 26637 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26638 | exec 6>&1 |
| 26639 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26640 | # 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] | 26641 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26642 | # values after options handling. |
| 26643 | ac_log=" |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 26644 | This file was extended by python $as_me 3.1, which was |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26645 | generated by GNU Autoconf 2.63. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26646 | |
| 26647 | CONFIG_FILES = $CONFIG_FILES |
| 26648 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 26649 | CONFIG_LINKS = $CONFIG_LINKS |
| 26650 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 26651 | $ $0 $@ |
| 26652 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26653 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 26654 | " |
| 26655 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26656 | _ACEOF |
| 26657 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26658 | case $ac_config_files in *" |
| 26659 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 26660 | esac |
| 26661 | |
| 26662 | case $ac_config_headers in *" |
| 26663 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 26664 | esac |
| 26665 | |
| 26666 | |
| 26667 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26668 | # Files that config.status was made for. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26669 | config_files="`echo $ac_config_files`" |
| 26670 | config_headers="`echo $ac_config_headers`" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26671 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26672 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26673 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26674 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26675 | ac_cs_usage="\ |
| 26676 | \`$as_me' instantiates files from templates according to the |
| 26677 | current configuration. |
| 26678 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26679 | Usage: $0 [OPTION]... [FILE]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26680 | |
| 26681 | -h, --help print this help, then exit |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26682 | -V, --version print version number and configuration settings, then exit |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26683 | -q, --quiet, --silent |
| 26684 | do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26685 | -d, --debug don't remove temporary files |
| 26686 | --recheck update $as_me by reconfiguring in the same conditions |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26687 | --file=FILE[:TEMPLATE] |
| 26688 | instantiate the configuration file FILE |
| 26689 | --header=FILE[:TEMPLATE] |
| 26690 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26691 | |
| 26692 | Configuration files: |
| 26693 | $config_files |
| 26694 | |
| 26695 | Configuration headers: |
| 26696 | $config_headers |
| 26697 | |
| 26698 | Report bugs to <bug-autoconf@gnu.org>." |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 26699 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26700 | _ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26701 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26702 | ac_cs_version="\\ |
Christian Heimes | 70e5cab | 2008-12-03 18:18:23 +0000 | [diff] [blame] | 26703 | python config.status 3.1 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26704 | configured by $0, generated by GNU Autoconf 2.63, |
| 26705 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26706 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26707 | Copyright (C) 2008 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26708 | This config.status script is free software; the Free Software Foundation |
| 26709 | gives unlimited permission to copy, distribute and modify it." |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26710 | |
| 26711 | ac_pwd='$ac_pwd' |
| 26712 | srcdir='$srcdir' |
| 26713 | INSTALL='$INSTALL' |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26714 | test -n "\$AWK" || AWK=awk |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26715 | _ACEOF |
| 26716 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26717 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26718 | # The default lists apply if the user does not specify any file. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26719 | ac_need_defaults=: |
| 26720 | while test $# != 0 |
| 26721 | do |
| 26722 | case $1 in |
| 26723 | --*=*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26724 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 26725 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26726 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26727 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26728 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26729 | ac_option=$1 |
| 26730 | ac_optarg=$2 |
| 26731 | ac_shift=shift |
| 26732 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26733 | esac |
| 26734 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26735 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26736 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26737 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 26738 | ac_cs_recheck=: ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26739 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26740 | $as_echo "$ac_cs_version"; exit ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26741 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26742 | debug=: ;; |
| 26743 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26744 | $ac_shift |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26745 | case $ac_optarg in |
| 26746 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 26747 | esac |
| 26748 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26749 | ac_need_defaults=false;; |
| 26750 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26751 | $ac_shift |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26752 | case $ac_optarg in |
| 26753 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 26754 | esac |
| 26755 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26756 | ac_need_defaults=false;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26757 | --he | --h) |
| 26758 | # Conflict between --help and --header |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26759 | { $as_echo "$as_me: error: ambiguous option: $1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26760 | Try \`$0 --help' for more information." >&2 |
| 26761 | { (exit 1); exit 1; }; };; |
| 26762 | --help | --hel | -h ) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26763 | $as_echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26764 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 26765 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 26766 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26767 | |
| 26768 | # This is an error. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26769 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26770 | Try \`$0 --help' for more information." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26771 | { (exit 1); exit 1; }; } ;; |
| 26772 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26773 | *) ac_config_targets="$ac_config_targets $1" |
| 26774 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26775 | |
| 26776 | esac |
| 26777 | shift |
| 26778 | done |
| 26779 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26780 | ac_configure_extra_args= |
| 26781 | |
| 26782 | if $ac_cs_silent; then |
| 26783 | exec 6>/dev/null |
| 26784 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 26785 | fi |
| 26786 | |
| 26787 | _ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26788 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26789 | if \$ac_cs_recheck; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26790 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 26791 | shift |
| 26792 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 26793 | CONFIG_SHELL='$SHELL' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26794 | export CONFIG_SHELL |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26795 | exec "\$@" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26796 | fi |
| 26797 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26798 | _ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26799 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26800 | exec 5>>config.log |
| 26801 | { |
| 26802 | echo |
| 26803 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 26804 | ## Running $as_me. ## |
| 26805 | _ASBOX |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26806 | $as_echo "$ac_log" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26807 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26808 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26809 | _ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26810 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26811 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26812 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26813 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26814 | |
| 26815 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26816 | for ac_config_target in $ac_config_targets |
| 26817 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26818 | case $ac_config_target in |
| 26819 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 26820 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 26821 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 26822 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 26823 | "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] | 26824 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 26825 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26826 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26827 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26828 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 26829 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26830 | { (exit 1); exit 1; }; };; |
| 26831 | esac |
| 26832 | done |
| 26833 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26834 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26835 | # If the user did not use the arguments to specify the items to instantiate, |
| 26836 | # then the envvar interface is used. Set only those that are not. |
| 26837 | # We use the long form for the default assignment because of an extremely |
| 26838 | # bizarre bug on SunOS 4.1.3. |
| 26839 | if $ac_need_defaults; then |
| 26840 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 26841 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 26842 | fi |
| 26843 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26844 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26845 | # 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] | 26846 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26847 | # Hook for its removal unless debugging. |
| 26848 | # Note that there is a small window in which the directory will not be cleaned: |
| 26849 | # 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] | 26850 | $debug || |
| 26851 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26852 | tmp= |
| 26853 | trap 'exit_status=$? |
| 26854 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 26855 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26856 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 26857 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26858 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26859 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26860 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26861 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26862 | test -n "$tmp" && test -d "$tmp" |
| 26863 | } || |
| 26864 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26865 | tmp=./conf$$-$RANDOM |
| 26866 | (umask 077 && mkdir "$tmp") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26867 | } || |
| 26868 | { |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26869 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26870 | { (exit 1); exit 1; } |
| 26871 | } |
| 26872 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26873 | # Set up the scripts for CONFIG_FILES section. |
| 26874 | # No need to generate them if there are no CONFIG_FILES. |
| 26875 | # This happens for instance with `./config.status config.h'. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26876 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26877 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26878 | |
| 26879 | ac_cr=' |
| 26880 | ' |
| 26881 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 26882 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 26883 | ac_cs_awk_cr='\\r' |
| 26884 | else |
| 26885 | ac_cs_awk_cr=$ac_cr |
| 26886 | fi |
| 26887 | |
| 26888 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26889 | _ACEOF |
| 26890 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26891 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26892 | { |
| 26893 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 26894 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 26895 | echo "_ACEOF" |
| 26896 | } >conf$$subs.sh || |
| 26897 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 26898 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 26899 | { (exit 1); exit 1; }; } |
| 26900 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26901 | ac_delim='%!_!# ' |
| 26902 | for ac_last_try in false false false false false :; do |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26903 | . ./conf$$subs.sh || |
| 26904 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 26905 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 26906 | { (exit 1); exit 1; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26907 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26908 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 26909 | if test $ac_delim_n = $ac_delim_num; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26910 | break |
| 26911 | elif $ac_last_try; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26912 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 26913 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26914 | { (exit 1); exit 1; }; } |
| 26915 | else |
| 26916 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26917 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26918 | done |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26919 | rm -f conf$$subs.sh |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26920 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26921 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26922 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26923 | _ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26924 | sed -n ' |
| 26925 | h |
| 26926 | s/^/S["/; s/!.*/"]=/ |
| 26927 | p |
| 26928 | g |
| 26929 | s/^[^!]*!// |
| 26930 | :repl |
| 26931 | t repl |
| 26932 | s/'"$ac_delim"'$// |
| 26933 | t delim |
| 26934 | :nl |
| 26935 | h |
| 26936 | s/\(.\{148\}\).*/\1/ |
| 26937 | t more1 |
| 26938 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 26939 | p |
| 26940 | n |
| 26941 | b repl |
| 26942 | :more1 |
| 26943 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 26944 | p |
| 26945 | g |
| 26946 | s/.\{148\}// |
| 26947 | t nl |
| 26948 | :delim |
| 26949 | h |
| 26950 | s/\(.\{148\}\).*/\1/ |
| 26951 | t more2 |
| 26952 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 26953 | p |
| 26954 | b |
| 26955 | :more2 |
| 26956 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 26957 | p |
| 26958 | g |
| 26959 | s/.\{148\}// |
| 26960 | t delim |
| 26961 | ' <conf$$subs.awk | sed ' |
| 26962 | /^[^""]/{ |
| 26963 | N |
| 26964 | s/\n// |
| 26965 | } |
| 26966 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 26967 | rm -f conf$$subs.awk |
| 26968 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26969 | _ACAWK |
| 26970 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 26971 | for (key in S) S_is_set[key] = 1 |
| 26972 | FS = "" |
| 26973 | |
| 26974 | } |
| 26975 | { |
| 26976 | line = $ 0 |
| 26977 | nfields = split(line, field, "@") |
| 26978 | substed = 0 |
| 26979 | len = length(field[1]) |
| 26980 | for (i = 2; i < nfields; i++) { |
| 26981 | key = field[i] |
| 26982 | keylen = length(key) |
| 26983 | if (S_is_set[key]) { |
| 26984 | value = S[key] |
| 26985 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 26986 | len += length(value) + length(field[++i]) |
| 26987 | substed = 1 |
| 26988 | } else |
| 26989 | len += 1 + keylen |
| 26990 | } |
| 26991 | |
| 26992 | print line |
| 26993 | } |
| 26994 | |
| 26995 | _ACAWK |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 26996 | _ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 26997 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26998 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 26999 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 27000 | else |
| 27001 | cat |
| 27002 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 27003 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
| 27004 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27005 | { (exit 1); exit 1; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27006 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27007 | |
| 27008 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 27009 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 27010 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 27011 | # (actually we leave an empty line to preserve line numbers). |
| 27012 | if test "x$srcdir" = x.; then |
| 27013 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 27014 | s/:*\$(srcdir):*/:/ |
| 27015 | s/:*\${srcdir}:*/:/ |
| 27016 | s/:*@srcdir@:*/:/ |
| 27017 | s/^\([^=]*=[ ]*\):*/\1/ |
| 27018 | s/:*$// |
| 27019 | s/^[^=]*=[ ]*$// |
| 27020 | }' |
| 27021 | fi |
| 27022 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27023 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27024 | fi # test -n "$CONFIG_FILES" |
| 27025 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27026 | # Set up the scripts for CONFIG_HEADERS section. |
| 27027 | # No need to generate them if there are no CONFIG_HEADERS. |
| 27028 | # This happens for instance with `./config.status Makefile'. |
| 27029 | if test -n "$CONFIG_HEADERS"; then |
| 27030 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 27031 | BEGIN { |
| 27032 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27033 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27034 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 27035 | # here-document in config.status, that substitutes the proper values into |
| 27036 | # config.h.in to produce config.h. |
| 27037 | |
| 27038 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 27039 | # handling of long lines. |
| 27040 | ac_delim='%!_!# ' |
| 27041 | for ac_last_try in false false :; do |
| 27042 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 27043 | if test -z "$ac_t"; then |
| 27044 | break |
| 27045 | elif $ac_last_try; then |
| 27046 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 |
| 27047 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} |
| 27048 | { (exit 1); exit 1; }; } |
| 27049 | else |
| 27050 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 27051 | fi |
| 27052 | done |
| 27053 | |
| 27054 | # For the awk script, D is an array of macro values keyed by name, |
| 27055 | # likewise P contains macro parameters if any. Preserve backslash |
| 27056 | # newline sequences. |
| 27057 | |
| 27058 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 27059 | sed -n ' |
| 27060 | s/.\{148\}/&'"$ac_delim"'/g |
| 27061 | t rset |
| 27062 | :rset |
| 27063 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 27064 | t def |
| 27065 | d |
| 27066 | :def |
| 27067 | s/\\$// |
| 27068 | t bsnl |
| 27069 | s/["\\]/\\&/g |
| 27070 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 27071 | D["\1"]=" \3"/p |
| 27072 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 27073 | d |
| 27074 | :bsnl |
| 27075 | s/["\\]/\\&/g |
| 27076 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 27077 | D["\1"]=" \3\\\\\\n"\\/p |
| 27078 | t cont |
| 27079 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 27080 | t cont |
| 27081 | d |
| 27082 | :cont |
| 27083 | n |
| 27084 | s/.\{148\}/&'"$ac_delim"'/g |
| 27085 | t clear |
| 27086 | :clear |
| 27087 | s/\\$// |
| 27088 | t bsnlc |
| 27089 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 27090 | d |
| 27091 | :bsnlc |
| 27092 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 27093 | b cont |
| 27094 | ' <confdefs.h | sed ' |
| 27095 | s/'"$ac_delim"'/"\\\ |
| 27096 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 27097 | |
| 27098 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 27099 | for (key in D) D_is_set[key] = 1 |
| 27100 | FS = "" |
| 27101 | } |
| 27102 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 27103 | line = \$ 0 |
| 27104 | split(line, arg, " ") |
| 27105 | if (arg[1] == "#") { |
| 27106 | defundef = arg[2] |
| 27107 | mac1 = arg[3] |
| 27108 | } else { |
| 27109 | defundef = substr(arg[1], 2) |
| 27110 | mac1 = arg[2] |
| 27111 | } |
| 27112 | split(mac1, mac2, "(") #) |
| 27113 | macro = mac2[1] |
| 27114 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 27115 | if (D_is_set[macro]) { |
| 27116 | # Preserve the white space surrounding the "#". |
| 27117 | print prefix "define", macro P[macro] D[macro] |
| 27118 | next |
| 27119 | } else { |
| 27120 | # Replace #undef with comments. This is necessary, for example, |
| 27121 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 27122 | # on some systems where configure will not decide to define it. |
| 27123 | if (defundef == "undef") { |
| 27124 | print "/*", prefix defundef, macro, "*/" |
| 27125 | next |
| 27126 | } |
| 27127 | } |
| 27128 | } |
| 27129 | { print } |
| 27130 | _ACAWK |
| 27131 | _ACEOF |
| 27132 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 27133 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 |
| 27134 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} |
| 27135 | { (exit 1); exit 1; }; } |
| 27136 | fi # test -n "$CONFIG_HEADERS" |
| 27137 | |
| 27138 | |
| 27139 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 27140 | shift |
| 27141 | for ac_tag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27142 | do |
| 27143 | case $ac_tag in |
| 27144 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 27145 | esac |
| 27146 | case $ac_mode$ac_tag in |
| 27147 | :[FHL]*:*);; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27148 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
| 27149 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27150 | { (exit 1); exit 1; }; };; |
| 27151 | :[FH]-) ac_tag=-:-;; |
| 27152 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 27153 | esac |
| 27154 | ac_save_IFS=$IFS |
| 27155 | IFS=: |
| 27156 | set x $ac_tag |
| 27157 | IFS=$ac_save_IFS |
| 27158 | shift |
| 27159 | ac_file=$1 |
| 27160 | shift |
| 27161 | |
| 27162 | case $ac_mode in |
| 27163 | :L) ac_source=$1;; |
| 27164 | :[FH]) |
| 27165 | ac_file_inputs= |
| 27166 | for ac_f |
| 27167 | do |
| 27168 | case $ac_f in |
| 27169 | -) ac_f="$tmp/stdin";; |
| 27170 | *) # Look for the file first in the build tree, then in the source tree |
| 27171 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 27172 | # because $ac_f cannot contain `:'. |
| 27173 | test -f "$ac_f" || |
| 27174 | case $ac_f in |
| 27175 | [\\/$]*) false;; |
| 27176 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 27177 | esac || |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27178 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 27179 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27180 | { (exit 1); exit 1; }; };; |
| 27181 | esac |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27182 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 27183 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27184 | done |
| 27185 | |
| 27186 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 27187 | # use $as_me), people would be surprised to read: |
| 27188 | # /* config.h. Generated by config.status. */ |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27189 | configure_input='Generated from '` |
| 27190 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 27191 | `' by configure.' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27192 | if test x"$ac_file" != x-; then |
| 27193 | configure_input="$ac_file. $configure_input" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27194 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 27195 | $as_echo "$as_me: creating $ac_file" >&6;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27196 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27197 | # Neutralize special characters interpreted by sed in replacement strings. |
| 27198 | case $configure_input in #( |
| 27199 | *\&* | *\|* | *\\* ) |
| 27200 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 27201 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 27202 | *) ac_sed_conf_input=$configure_input;; |
| 27203 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27204 | |
| 27205 | case $ac_tag in |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27206 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 27207 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 27208 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 27209 | { (exit 1); exit 1; }; } ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27210 | esac |
| 27211 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27212 | esac |
| 27213 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27214 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27215 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27216 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 27217 | X"$ac_file" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27218 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27219 | $as_echo X"$ac_file" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27220 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 27221 | s//\1/ |
| 27222 | q |
| 27223 | } |
| 27224 | /^X\(\/\/\)[^/].*/{ |
| 27225 | s//\1/ |
| 27226 | q |
| 27227 | } |
| 27228 | /^X\(\/\/\)$/{ |
| 27229 | s//\1/ |
| 27230 | q |
| 27231 | } |
| 27232 | /^X\(\/\).*/{ |
| 27233 | s//\1/ |
| 27234 | q |
| 27235 | } |
| 27236 | s/.*/./; q'` |
| 27237 | { as_dir="$ac_dir" |
| 27238 | case $as_dir in #( |
| 27239 | -*) as_dir=./$as_dir;; |
| 27240 | esac |
| 27241 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27242 | as_dirs= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27243 | while :; do |
| 27244 | case $as_dir in #( |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27245 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27246 | *) as_qdir=$as_dir;; |
| 27247 | esac |
| 27248 | as_dirs="'$as_qdir' $as_dirs" |
| 27249 | as_dir=`$as_dirname -- "$as_dir" || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27250 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27251 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 27252 | X"$as_dir" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27253 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27254 | $as_echo X"$as_dir" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27255 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 27256 | s//\1/ |
| 27257 | q |
| 27258 | } |
| 27259 | /^X\(\/\/\)[^/].*/{ |
| 27260 | s//\1/ |
| 27261 | q |
| 27262 | } |
| 27263 | /^X\(\/\/\)$/{ |
| 27264 | s//\1/ |
| 27265 | q |
| 27266 | } |
| 27267 | /^X\(\/\).*/{ |
| 27268 | s//\1/ |
| 27269 | q |
| 27270 | } |
| 27271 | s/.*/./; q'` |
| 27272 | test -d "$as_dir" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27273 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27274 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27275 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 27276 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27277 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27278 | ac_builddir=. |
| 27279 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27280 | case "$ac_dir" in |
| 27281 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 27282 | *) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27283 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27284 | # A ".." for each directory in $ac_dir_suffix. |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27285 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27286 | case $ac_top_builddir_sub in |
| 27287 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 27288 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 27289 | esac ;; |
| 27290 | esac |
| 27291 | ac_abs_top_builddir=$ac_pwd |
| 27292 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 27293 | # for backward compatibility: |
| 27294 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27295 | |
| 27296 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27297 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27298 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27299 | ac_top_srcdir=$ac_top_builddir_sub |
| 27300 | ac_abs_top_srcdir=$ac_pwd ;; |
| 27301 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27302 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27303 | ac_top_srcdir=$srcdir |
| 27304 | ac_abs_top_srcdir=$srcdir ;; |
| 27305 | *) # Relative name. |
| 27306 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 27307 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 27308 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27309 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27310 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27311 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27312 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27313 | case $ac_mode in |
| 27314 | :F) |
| 27315 | # |
| 27316 | # CONFIG_FILE |
| 27317 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27318 | |
| 27319 | case $INSTALL in |
| 27320 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27321 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27322 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 27323 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27324 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27325 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27326 | # If the template does not know about datarootdir, expand it. |
| 27327 | # FIXME: This hack should be removed a few years after 2.60. |
| 27328 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 27329 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27330 | ac_sed_dataroot=' |
| 27331 | /datarootdir/ { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27332 | p |
| 27333 | q |
| 27334 | } |
| 27335 | /@datadir@/p |
| 27336 | /@docdir@/p |
| 27337 | /@infodir@/p |
| 27338 | /@localedir@/p |
| 27339 | /@mandir@/p |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27340 | ' |
| 27341 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27342 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 27343 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27344 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 27345 | $as_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] | 27346 | _ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27347 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27348 | ac_datarootdir_hack=' |
| 27349 | s&@datadir@&$datadir&g |
| 27350 | s&@docdir@&$docdir&g |
| 27351 | s&@infodir@&$infodir&g |
| 27352 | s&@localedir@&$localedir&g |
| 27353 | s&@mandir@&$mandir&g |
| 27354 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 27355 | esac |
| 27356 | _ACEOF |
| 27357 | |
| 27358 | # Neutralize VPATH when `$srcdir' = `.'. |
| 27359 | # Shell code in configure.ac might set extrasub. |
| 27360 | # FIXME: do we really want to maintain this feature? |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27361 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 27362 | ac_sed_extra="$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27363 | $extrasub |
| 27364 | _ACEOF |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27365 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27366 | :t |
| 27367 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27368 | s|@configure_input@|$ac_sed_conf_input|;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27369 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27370 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27371 | s&@srcdir@&$ac_srcdir&;t t |
| 27372 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 27373 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 27374 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 27375 | s&@builddir@&$ac_builddir&;t t |
| 27376 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 27377 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 27378 | s&@INSTALL@&$ac_INSTALL&;t t |
| 27379 | $ac_datarootdir_hack |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27380 | " |
| 27381 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 27382 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 27383 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 27384 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27385 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27386 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 27387 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 27388 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27389 | { $as_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] | 27390 | which seems to be undefined. Please make sure it is defined." >&5 |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27391 | $as_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] | 27392 | which seems to be undefined. Please make sure it is defined." >&2;} |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 27393 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27394 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27395 | case $ac_file in |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27396 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 27397 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 27398 | esac \ |
| 27399 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 27400 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 27401 | { (exit 1); exit 1; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27402 | ;; |
| 27403 | :H) |
| 27404 | # |
| 27405 | # CONFIG_HEADER |
| 27406 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27407 | if test x"$ac_file" != x-; then |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27408 | { |
| 27409 | $as_echo "/* $configure_input */" \ |
| 27410 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 27411 | } >"$tmp/config.h" \ |
| 27412 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 27413 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 27414 | { (exit 1); exit 1; }; } |
| 27415 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 27416 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 27417 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27418 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27419 | rm -f "$ac_file" |
| 27420 | mv "$tmp/config.h" "$ac_file" \ |
| 27421 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 27422 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 27423 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27424 | fi |
| 27425 | else |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27426 | $as_echo "/* $configure_input */" \ |
| 27427 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 27428 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 |
| 27429 | $as_echo "$as_me: error: could not create -" >&2;} |
| 27430 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27431 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27432 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 27433 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 27434 | |
| 27435 | esac |
| 27436 | |
| 27437 | done # for ac_tag |
| 27438 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27439 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27440 | { (exit 0); exit 0; } |
| 27441 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27442 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27443 | ac_clean_files=$ac_clean_files_save |
| 27444 | |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27445 | test $ac_write_fail = 0 || |
| 27446 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
| 27447 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
| 27448 | { (exit 1); exit 1; }; } |
| 27449 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27450 | |
| 27451 | # configure is writing to config.log, and then calls config.status. |
| 27452 | # config.status does its own redirection, appending to config.log. |
| 27453 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 27454 | # by configure, so config.status won't be able to write to it; its |
| 27455 | # output is simply discarded. So we exec the FD to /dev/null, |
| 27456 | # effectively closing config.log, so it can be properly (re)opened and |
| 27457 | # appended to by config.status. When coming back to configure, we |
| 27458 | # need to make the FD available again. |
| 27459 | if test "$no_create" != yes; then |
| 27460 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27461 | ac_config_status_args= |
| 27462 | test "$silent" = yes && |
| 27463 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27464 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27465 | $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] | 27466 | exec 5>>config.log |
| 27467 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 27468 | # would make configure fail if this is the last instruction. |
| 27469 | $ac_cs_success || { (exit 1); exit 1; } |
| 27470 | fi |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 27471 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 27472 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 27473 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 27474 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27475 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 27476 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 27477 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 27478 | if test ! -f Modules/Setup |
| 27479 | then |
| 27480 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 27481 | fi |
| 27482 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 27483 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 27484 | if test ! -f Modules/Setup.local |
| 27485 | then |
| 27486 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 27487 | fi |
| 27488 | |
| 27489 | echo "creating Makefile" |
| 27490 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 27491 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 27492 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 27493 | mv config.c Modules |